Description of problem: libguestfs could not connect to libvirt and inject root password Version-Release number of selected component (if applicable): OSP13 How reproducible: Always Steps to Reproduce: 1. Creating instance 2. 3. We were able to bypass this by telling libguestfs not to use libvirt Actual results: Expected results: Should be able to spawn an instance which nova generates the password Additional info: Workaround: /usr/lib/python2.7/site-packages/nova/virt/disk/vfs/guestfs.py def inspect_capabilities(self): (around #87) g.set_backend('direct') g.launch() def setup(self, mount=True)): (around #227) self.handle.set_backend('direct') self.handle.launch() This is not a good solution but customer is happy at least we have a way to define the root password. I really think this is the problem with running Libvirt as root on qemu:///system.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat OpenStack Platform 16.1.6 bug fix and enhancement advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:2097