xcp-ng / xenadmin

XCP-ng Center, the Windows management console for XCP-ng and XenServer. /!\ EOL-Notice /!\ Community-maintained only /!\
https://xcp-ng.org
Other
429 stars 74 forks source link

Running Update command from 7.4 to 7.5 broke xapi momentarily? #106

Closed namekal closed 6 years ago

namekal commented 6 years ago

Describe the bug I ran the [experimental] update command found here: https://xcp-ng.org/2018/08/10/xcp-ng-7-5-upgrade/ and upon reboot I could not connect via XCP-Center. XSConsole is displayed in the console as expected. The system info and "Management Network Parameters" displays the correct info.

However, when navigating menus, the network interface list is empty, along with all VMs, and Storage repositories. All empty.

I hopped down to command shell and ran yum update one more time for kicks. The summary:

================================================================================
 Package                  Arch   Version                   Repository      Size
================================================================================
Installing:
 xcp-emu-manager          x86_64 0.0.3-1                   xcp-ng-base    419 k
     replacing  emu-manager.x86_64 0.0.6-1
Updating:
 QConvergeConsoleCLI-Citrix
                          x86_64 2.0.00-24.3.xcp           xcp-ng-updates  15 M
 blktap                   x86_64 3.5.0-1.17                xcp-ng-base    294 k
 control-slice            x86_64 1.1.0-1                   xcp-ng-base     11 k
 corosync                 x86_64 2.4.0-12.xs+1.2.0         xcp-ng-base    218 k
 corosynclib              x86_64 2.4.0-12.xs+1.2.0         xcp-ng-base    131 k
 dlm                      x86_64 4.0.7-3.el7.centos        xcp-ng-base     89 k
 dlm-lib                  x86_64 4.0.7-3.el7.centos        xcp-ng-base     23 k
 forkexecd                x86_64 1.8.0-5.el7.centos        xcp-ng-base    5.5 M
 gfs2-utils               x86_64 3.1.10-3.el7.centos       xcp-ng-base    303 k
 gpumon                   x86_64 0.11.0-5.el7.centos       xcp-ng-base    1.0 M
 guest-templates-json     noarch 1.7.8-1                   xcp-ng-base     21 k
 guest-templates-json-data-linux
                          noarch 1.7.8-1                   xcp-ng-base     18 k
 guest-templates-json-data-other
                          noarch 1.7.8-1                   xcp-ng-base    5.4 k
 guest-templates-json-data-windows
                          noarch 1.7.8-1                   xcp-ng-base    8.7 k
 guest-templates-json-data-xenapp
                          noarch 1.7.8-1                   xcp-ng-base    6.1 k
 host-upgrade-plugin      noarch 1.1.5-1                   xcp-ng-base     20 k
 intel-igb                x86_64 5.3.5.3-2.el7.centos      xcp-ng-base     89 k
 interface-rename         noarch 2.0.2-1                   xcp-ng-base     16 k
 kernel                   x86_64 4.4.52-4.0.7.1            xcp-ng-updates  18 M
 libqb                    x86_64 1.0.1-6.el7.centos        xcp-ng-base     95 k
 linux-firmware           noarch 20170622-3.2              xcp-ng-updates  24 M
 linux-guest-loader       noarch 2.2.1-1                   xcp-ng-base     26 k
 linux-guest-loader-data  noarch 2.2.1-1                   xcp-ng-base     14 M
 message-switch           x86_64 1.11.0-6.el7.centos       xcp-ng-base    3.7 M
 microcode_ctl            x86_64 2:2.1-26.xs1              xcp-ng-updates 1.3 M
 ocaml-xenops-tools       x86_64 2.0.0-6.el7.centos        xcp-ng-base    3.2 M
 openssl                  x86_64 1:1.0.2k-8.el7            xcp-ng-base    491 k
 openssl-libs             x86_64 1:1.0.2k-8.el7            xcp-ng-base    1.2 M
 openssl-perl             x86_64 1:1.0.2k-8.el7            xcp-ng-base     69 k
 openvswitch              x86_64 2.5.3-2.2.3               xcp-ng-base    2.2 M
 pbis-open                x86_64 8.2.2-1.7.2               xcp-ng-base    9.0 M
 qemu                     x86_64 2:2.10.2-3.0.5            xcp-ng-base    5.2 M
 qlogic-fastlinq          x86_64 8.30.15.0-1.el7.centos    xcp-ng-base    364 k
 rrd2csv                  x86_64 1.0.5-5.el7.centos        xcp-ng-base    3.8 M
 rrdd-plugins             x86_64 1.1.7-4.el7.centos        xcp-ng-base     10 M
 sm                       x86_64 1.18.0-1.31               xcp-ng-base    517 k
 sm-cli                   x86_64 0.17.0-5.el7.centos       xcp-ng-base    3.2 M
 sm-rawhba                x86_64 1.18.0-1.31               xcp-ng-base     17 k
 squeezed                 x86_64 0.18.0-5.el7.centos       xcp-ng-base    3.2 M
 strace                   x86_64 4.9-1.1.5                 xcp-ng-base    145 k
 vendor-update-keys       noarch 1.3.6-1                   xcp-ng-base     13 k
 vhd-tool                 x86_64 0.20.0-4.3.xcp.el7.centos xcp-ng-updates 9.8 M
 vncsnapshot              x86_64 1.2a-xs18                 xcp-ng-base     50 k
 wsproxy                  x86_64 1.4.0-5.el7.centos        xcp-ng-base    481 k
 xapi-core                x86_64 1.90.6-1                  xcp-ng-updates  37 M
 xapi-nbd                 x86_64 1.3.0-3.el7.centos        xcp-ng-base    3.8 M
 xapi-storage             x86_64 0.16.0-1.el7.centos       xcp-ng-base     38 k
 xapi-storage-script      x86_64 0.21.0-1.el7.centos       xcp-ng-base    5.5 M
 xapi-tests               x86_64 1.90.6-1                  xcp-ng-updates 8.0 M
 xapi-xe                  x86_64 1.90.6-1                  xcp-ng-updates 2.9 M
 xcp-featured             x86_64 1.1.0-2.el7.centos        xcp-ng-base    3.1 M
 xcp-networkd             x86_64 0.29.0-1.el7.centos       xcp-ng-base    7.1 M
 xcp-ng-updater           noarch 1.1.0-2                   xcp-ng-base     18 k
 xcp-python-libs          noarch 2.0.3.xcp-1               xcp-ng-base    100 k
 xcp-rrdd                 x86_64 1.6.0-4.el7.centos        xcp-ng-base    3.6 M
 xen-device-model         x86_64 0.10.2.xs-3.0.1           xcp-ng-base    499 k
 xen-dom0-libs            x86_64 4.7.5-5.5.1.xcp           xcp-ng-updates 551 k
 xen-dom0-tools           x86_64 4.7.5-5.5.1.xcp           xcp-ng-updates 1.1 M
 xen-hypervisor           x86_64 4.7.5-5.5.1.xcp           xcp-ng-updates 2.0 M
 xen-libs                 x86_64 4.7.5-5.5.1.xcp           xcp-ng-updates  30 k
 xen-tools                x86_64 4.7.5-5.5.1.xcp           xcp-ng-updates  22 k
 xengt-4.4.0+10-modules   x86_64 4.0.0-1                   xcp-ng-base    910 k
 xengt-modules            x86_64 4.0.0-1                   xcp-ng-base    2.2 k
 xengt-userspace          x86_64 4.0.0-1                   xcp-ng-base    3.5 k
 xenops-cli               x86_64 1.1.0-5.el7.centos        xcp-ng-base    1.1 M
 xenopsd                  x86_64 0.52.1-1.el7.centos       xcp-ng-base     53 k
 xenopsd-xc               x86_64 0.52.1-1.el7.centos       xcp-ng-base    5.5 M
 xenopsd-xenlight         x86_64 0.52.1-1.el7.centos       xcp-ng-base    3.9 M
 xenserver-firstboot      noarch 1.0.7-1.1.xcp             xcp-ng-base     17 k
 xsconsole                x86_64 10.1.7-1                  xcp-ng-base    271 k
Installing for dependencies:
 inotify-tools            x86_64 3.14-8.el7                xcp-ng-base     50 k
 libseccomp               x86_64 2.2.1-1.el7               xcp-ng-base     49 k
 libtool-ltdl             x86_64 2.4.2-21.el7_2            xcp-ng-base     48 k
 nbd                      x86_64 3.14-2.el7                xcp-ng-base     85 k
 pacemaker-cluster-libs   x86_64 1.1.16-12.el7.centos.9    xcp-ng-base    147 k
 pacemaker-libs           x86_64 1.1.16-12.el7.centos.9    xcp-ng-base    591 k
 qemu-dp                  x86_64 2:2.10.2-1.2.0            xcp-ng-base    906 k
 sbd                      x86_64 1.3.0-6.xs+1.0.0          xcp-ng-base     55 k
 sm-transport-lib         noarch 0.5.0-1.el7.centos        xcp-ng-base     33 k
 xapi-clusterd            x86_64 0.9.0-1.el7.centos        xcp-ng-base     11 M
 xapi-storage-plugins     x86_64 1.6.0-1                   xcp-ng-base    153 k

Transaction Summary
================================================================================
Install   1 Package  (+11 Dependent packages)
Upgrade  70 Packages

Total download size: 238 M

After all of this processed, I was immediately able to connect via XCP-Center again, and thankfully NO DATA/METADATA was lost.

Hard-/Software involved:

stormi commented 6 years ago

Hi. There's a known bug when upgrading from 7.4.0 instead of 7.4.1, which would probably explain the issue. The second part your experience reveals is that we should make sure to clean the yum metadata cache after downloading the new repo file, because that's what caused the two-steps update.

borzel commented 6 years ago

so nothing to do here for XCP-ng Center :-)

namekal commented 6 years ago

so nothing to do here for XCP-ng Center :-)

Oh man, my bad on that. I was confused on why you mentioned that at first. At least it wasn't a serious issue that meant to be in the right repo. Thanks. :+1:

borzel commented 6 years ago

no problem :-)