While upgrading from OpenNebula 5.4 to 5.6 on Debin I get an error with the opennebula-node package. It seem there is something wrong at the step where augtool is being used to modify /etc/libvirt/qemu.conf
Versions of the related components and OS (frontend, hypervisors, VMs):
Debian 9.5 with KVM
Steps to reproduce:
Upgrade opennebula-node package from 5.4 to 5.6
Current results:
apt upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up opennebula-node (5.6.0-1) …
Adding user oneadmin' to group
libvirt’ …
Adding user oneadmin to group libvirt
Done.
Adding user oneadmin' to group
kvm’ …
Adding user oneadmin to group kvm
Done.
dpkg: error processing package opennebula-node (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
opennebula-node
E: Sub-process /usr/bin/dpkg returned an error code (1)
Running steps by hand:
augtool -A
augtool> set /augeas/load/Libvirtd_qemu/lens Libvirtd_qemu.lns
augtool> set /augeas/load/Libvirtd_qemu/incl /etc/libvirt/qemu.conf
augtool> load
augtool>
augtool> set /files/etc/libvirt/qemu.conf/user oneadmin
augtool> set /files/etc/libvirt/qemu.conf/group oneadmin
augtool> set /files/etc/libvirt/qemu.conf/dynamic_ownership 0
augtool>
augtool> save
error: Failed to execute command
saving failed (run ‘errors’ for details)
augtool> errors
Error in /etc/libvirt/qemu.conf:476.0 (parse_skel_failed)
Iterated lens matched less than it should
Lens: /usr/share/augeas/lenses/libvirtd_qemu.aug:134.13-.43:
Last matched: /usr/share/augeas/lenses/libvirtd_qemu.aug:7.21-.47:
Next (no match): /usr/share/augeas/lenses/libvirtd_qemu.aug:14.17-.30:
augtool>
Expected results:
An upgraded package