WebUI Linbo-Synchronisierung

Hallo,

wir haben wegen neuer HW auf 7.1 Testing gewechselt. Insgesamt hat es relativ schwerzfrei geklappt.

Was aber nicht funktioniert ist die Anzeige von „Letzte Synchronisierung“ für qcow Images. Interessanterweise liest er das für die alten cloop Images tadellos ein.

Ich hab mal ein bisschen gestöbert und glaube es gibt direkt 2 Gründe.

Zunächst mal scheint das Linbo 7 den Status nicht auf den Server zu speichern. Außerdem wird in den Sourcen für das Plugin in der Statusdatei nach cloop gesucht.

Hallo,

Es wird nicht nach cloop gesucht :

Die Status-Datei ist unabhängig von der Erweiterung.
Ich habe gerade gestestet, bei mir gibt es schon die StatusDatei auf dem Server :

$ dpkg -l | grep linuxm
916:ii  linuxmuster-base7                      7.1.3-0                                         all          linuxmuster.net configuration scripts
917:ii  linuxmuster-linbo-gui7                 7.0.4                                           all          Linuxmuster Linbo GUI
918:ii  linuxmuster-linbo7                     4.0.5-0                                         all          linuxmuster-linbo7
919:ii  linuxmuster-prepare                    7.1.3-0                                         all          linuxmuster.net pre setup configuration scripts

Vielleicht hat @thomas es schon korrigiert, ich habe die letzte Tage nicht alles verfolgt.

Gruß

Arnaud

Hallo Arnaud,

vielen Dank für die Rückmeldung. Leider sieht das bei mir nicht so aus wie bei dir.

statusfile = '/var/log/linuxmuster/linbo/%s_image.status' % w
    last = False

    if os.path.isfile(statusfile) and os.stat(statusfile).st_size != 0:
        for line in open(statusfile, 'r').readlines():
            if cloop in line:
                last = line.rstrip()
                break

    if last:
        ## Linbo locale is en_GB, not necessarily the server locale
        saved = locale.setlocale(locale.LC_ALL)
        locale.setlocale(locale.LC_ALL, 'C.UTF-8')
        last = datetime.strptime(last.split(' ')[0], '%Y%m%d%H%M')
        locale.setlocale(locale.LC_ALL, saved)

        last = time.mktime(last.timetuple())
    return last

Gefühlt bin ich auch auf dem gleichen Stand wie du und ich habe bereits das Paket linuxmuster-linbo-webui7 neu installiert um sicher zu gehen.

ii  linuxmuster-base7                      7.1.3-0                                         all          linuxmuster.net configuration scripts
ii  linuxmuster-dehydrated                 0.7                                             all          Dehydrated for easy Letsencrypr Certs in linuxmuster.net
rc  linuxmuster-linbo-common7              2.4.3-4                                         all          linuxmuster-linbo common files: kernel, initrd and pxe boot configuration
ii  linuxmuster-linbo-gui7                 7.0.4                                           all          Linuxmuster Linbo GUI
ii  linuxmuster-linbo7                     4.0.5-0                                         all          linuxmuster-linbo7
ii  linuxmuster-prepare                    7.1.3-0                                         all          linuxmuster.net pre setup configuration scripts
ii  linuxmuster-webui7                     7.1.0                                           all          next generation web-based management tool for linuxmuster.net v7.x

Auch das mit dem Status kann ich nicht bestätigen. Mit den cloops ist das wohl so:

cat /var/log/linuxmuster/linbo/virt3_image.status
202111192130 applied: ubu20.cloop 202111061249

Das war vor dem Wechsel auf das qcow2 image
Wie man aber deutlich sehen kann habe ich ein neues Image gezogen und der Eintrag im Status ist nicht aktualisiert.

 cat /var/log/linuxmuster/linbo/virt3_image.log
## Log session begin: Di 4. Jan 09:16:19 UTC 2022 ##
Torrent options: -I 10.0.111.3 -M 40 -z 128
Starting torrent service for ubu20.qcow2.
## Log session end: Di 4. Jan 09:16:19 UTC 2022 ##
## Log session begin: Di 4. Jan 09:16:22 UTC 2022 ##
Image ubu20.qcow2 downloaded successfully.
## Log session end: Di 4. Jan 09:16:22 UTC 2022 ##
## Log session begin: Mi 5. Jan 15:55:19 UTC 2022 ##
Torrent options: -I 10.0.111.3 -M 40 -z 128
Starting torrent service for ubu20.qcow2.
## Log session end: Mi 5. Jan 15:55:19 UTC 2022 ##

Ist jetzt nicht unbedingt das alles entscheidende Feature. Aber ich fand es spontan schön und habe deswegen festgestellt dass es nicht geht.

Hallo,

Yep, aber das funktioniert genau so : in die Bearbeitung der nächste Version habe ich einfach die Variabeln umbennant. Ob es cloop oder weissichwas heißt, macht es nur eine Unterschied für die Lesbarkeit :wink:

Das kann ich leider nicht antworten, vielleicht lieber @thomas.
Bei mir sieht es wie erwartet aus :

$ cat /var/log/linuxmuster/linbo/client1_image.status
202201051027 applied: ubuntu.qcow2 "202108291639"

Gruß

Arnaud

Hi @Arnaud

ich hab jetzt auf dem Server die vorhandenen .status Dateien gelöscht. Jetzt geht es plötzlich.

Grüße
Björn