Ошибка запуска сервиса imgbase-setupservice "Failed to start Configure Image Layers"

1. Вопрос

После установки zVirt Node ошибка запуска сервиса imgbase-setup.service.

В лог-файле /var/log/messages:

Failed to start Configure Image Layers.
imgbase-setup.service: Failed with result 'exit-code'.
mgbase-setup.service: Main process exited, code=exited, status=1/FAILURE
RuntimeError: Failed to parse NVR: root
raise RuntimeError("Failed to parse NVR: %s" % nvr)
File "/usr/lib/python3.6/site-packages/imgbased/naming.py", line 280, in parse
self.nvr = NVR.parse(nvr) # For convenience: Parse if necessary
File "/usr/lib/python3.6/site-packages/imgbased/naming.py", line 402, in __init__
File "/usr/lib/python3.6/site-packages/imgbased/naming.py", line 335, in from_nvr

Если продолжить установку в режиме Hosted Engine, то появляются ошибки:

[ INFO ] TASK [ovirt.hosted_engine_setup : Wait for the host to be up]
Failed to start Open vSwitch Forwarding Unit.
ovs-vswitchd.service: Failed with result 'exit-code'.
ovs-vswitchd.service: Start request repeated too quickly.
Stopped Open vSwitch Forwarding Unit.
ovs-vswitchd.service: Scheduled restart job, restart counter is at 5.
ovs-vswitchd.service: Service RestartSec=100ms expired, scheduling restart.
Failed to start Open vSwitch Forwarding Unit.
ovs-vswitchd.service: Failed with result 'exit-code'.
ovs-vswitchd.service: Control process exited, code=exited status=1
/usr/share/openvswitch/scripts/ovs-lib: line 515: /usr/share/openvswitch/scripts/ovs-kmod-ctl: Permission denied**

2. Решение

  • Выполнить проверку сбойных сервисов командой:

    systemctl list-units --failed --all
  • На Node запустить проверку imgbase check. Корректный результат:

    imgbase check
    Status: OK
    Bootloader ... OK
      Layer boot entries ... OK
      Valid boot entries ... OK
    Mount points ... OK
      Separate /var ... OK
      Discard is used ... OK
    Basic storage ... OK
      Initialized VG ... OK
      Initialized Thin Pool ... OK
      Initialized LVs ... OK
    Thin storage ... OK
      Checking available space in thinpool ... OK
      Checking thinpool auto-extend ... OK
  • На хосте запустить проверку правильность разметки дисков. Корректный результат:

    df -hT
    
    Filesystem                                                  Type      Size  Used Avail Use% Mounted on
    devtmpfs                                                    devtmpfs   32G     0   32G   0% /dev
    tmpfs                                                       tmpfs      32G  4.0K   32G   1% /dev/shm
    tmpfs                                                       tmpfs      32G  610M   31G   2% /run
    tmpfs                                                       tmpfs      32G     0   32G   0% /sys/fs/cgroup
    /dev/mapper/znn-zvirt--node--ng--3.0--0.20220410.0+1        xfs       1.6T   81G  1.5T   5% /
    /dev/sda1                                                   xfs      1014M  350M  665M  35% /boot
    /dev/mapper/znn-tmp                                         xfs      1014M   40M  975M   4% /tmp
    /dev/mapper/znn-home                                        xfs      1014M   40M  975M   4% /home
    /dev/mapper/znn-var                                         xfs        15G  1.5G   14G  10% /var
    /dev/mapper/znn-var_log                                     xfs       8.0G  396M  7.7G   5% /var/log
    /dev/mapper/znn-var_crash                                   xfs        10G  105M  9.9G   2% /var/crash
    /dev/mapper/znn-var_log_audit                               xfs       2.0G   84M  2.0G   5% /var/log/audit
    /dev/sdb2                                                   xfs       1.0T  393G  632G  39% /nfs/sdb2
    /dev/sdb1                                                   xfs       1.0T  459G  565G  45% /nfs/sdb1
    tmpfs                                                       tmpfs     6.3G     0  6.3G   0% /run/user/0
  • Если для создания загрузочных USB-накопителей использовался Ventoy, его необходимо заменить на другое ПО, например Rufus.