You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The openebula-node Debian package does not handle the /etc/libvirt/qemu.conf configuration file in a sane way. There are two issues:
The opennebula-node postinst script checks the existence of the qemu.conf configuration file, and if it finds one, the existing configuration file is moved out of the way and replaced by a stub configuration file with minimum set of configuration options required by OpenNebula. This completely destroys existing configuration created by the local system administrator, without confirmation.
The /etc/libvirt/qemu.conf configuration file, in Debian Jessie, is managed by the libvirt-qemu-system package and is marked as a Conffile. After the opennebula-node package changes the existing configuration file, future libvirt-qemu-system package upgrades might be interrupted by the debconf system asking the user what to do with the changed configuration file.
The above issues affect automated installation and management of OpenNebula nodes to the point, where potential users (me included) might drop the usage of the opennebula-node package completely and just apply the required changes using their configuration management system of choice. Therefore I think that the current postinst script included in the package should be fixed. Suggested solutions:
Check if the /etc/libvirt/qemu.conf configuration file contains the desired configuration (user/group/dynamic_ownership) before blindly overwriting it.
If the script decides to write the new configuration file with the required changes, don't overwrite the /etc/libvirt/qemu.conf configuration file directly. Instead, check potential diversions using the dpkg-divert command and operate on that. If there are no diversions, create a diversion before writing the new configuration - this will ensure that upgrades of the libvirt-qemu-system package work correctly.
The text was updated successfully, but these errors were encountered:
This has been fixed by #1768, Libvirt configuration is now managed by the Augeas. It's not replaced as a whole, but only modifies the particular parameters. Closing as fixed.
Note about the:
future libvirt-qemu-system package upgrades might be interrupted by the debconf system asking the user what to do with the changed configuration file.
If you are running apt-get non-interactively, you also need to instruct the apt-get to use the non-interactive interface (via env. variable DEBIAN_FRONTEND=noninteractive), and how to deal with the configuration file changes (via parametrs --force-confnew, --force-confold, --force-confdef). Please check:
Author Name: Maciej Delmanowski (Maciej Delmanowski)
Original Redmine Issue: 4947, https://dev.opennebula.org/issues/4947
Original Date: 2016-12-01
The
openebula-node
Debian package does not handle the/etc/libvirt/qemu.conf
configuration file in a sane way. There are two issues:The
opennebula-node
postinst script checks the existence of theqemu.conf
configuration file, and if it finds one, the existing configuration file is moved out of the way and replaced by a stub configuration file with minimum set of configuration options required by OpenNebula. This completely destroys existing configuration created by the local system administrator, without confirmation.The
/etc/libvirt/qemu.conf
configuration file, in Debian Jessie, is managed by thelibvirt-qemu-system
package and is marked as a Conffile. After theopennebula-node
package changes the existing configuration file, futurelibvirt-qemu-system
package upgrades might be interrupted by thedebconf
system asking the user what to do with the changed configuration file.The above issues affect automated installation and management of OpenNebula nodes to the point, where potential users (me included) might drop the usage of the
opennebula-node
package completely and just apply the required changes using their configuration management system of choice. Therefore I think that the currentpostinst
script included in the package should be fixed. Suggested solutions:Check if the
/etc/libvirt/qemu.conf
configuration file contains the desired configuration (user/group/dynamic_ownership) before blindly overwriting it.If the script decides to write the new configuration file with the required changes, don't overwrite the
/etc/libvirt/qemu.conf
configuration file directly. Instead, check potential diversions using thedpkg-divert
command and operate on that. If there are no diversions, create a diversion before writing the new configuration - this will ensure that upgrades of thelibvirt-qemu-system
package work correctly.The text was updated successfully, but these errors were encountered: