oVirt/ovirt-engine

Sealed template with LVM layout breaks boot.

ricardoalonso opened this issue · 0 comments

Affected version
4.5.4-1

  • oVirt Engine: ovirt-engine-4.5.4-1.el8.noarch
  • Host OS Variant: Rocky 8/9
  • VDSM version: vdsm-4.50.3.4-1.el9.x86_64

Describe the bug
Template create for RocketLinux 9 with LVM devices won't work when creating a new VM. The seal process is not removing the /etc/lvm/devices/system.devices file, so the machine can't find the correct PV ID.

To reproduce

  1. Create a new VM with EL 9 and use LVM for the disk layout.
  2. Shutdown the VM and create a template from it, checking the option "Seal Template"
  3. Create a new VM from the generate template
  4. VM will drop to emergency shell due to the PV not found

Expected behavior
Machine created from the template boots successfully

Additional context
To workaround, remove manually the file /etc/lvm/devices/system.devices before shutting down the VM.