Bug 1784177

Summary: [OSP 16] nova-compute unable to launch libguestfs using the default qemu:///user URI
Product: Red Hat OpenStack Reporter: chrisbro <chrisbro>
Component: openstack-tripleo-heat-templatesAssignee: Rajesh Tailor <ratailor>
Status: CLOSED ERRATA QA Contact: James Parker <jparker>
Severity: high Docs Contact:
Priority: high    
Version: 13.0 (Queens)CC: amodi, dasmith, eglynn, jacob.anders, jappleii, jhakimra, jparker, kchamart, lyarwood, mburns, mschuppe, pbabbar, ratailor, rcernin, sbauza, sgordon, vromanso
Target Milestone: z6Keywords: Patch, Triaged, ZStream
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-11.3.2-1.20210104205657.el8ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1803063 (view as bug list) Environment:
Last Closed: 2021-05-26 13:49:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version: Train
Embargoed:
Bug Depends On:    
Bug Blocks: 1803063, 1803068    

Description chrisbro@redhat.com 2019-12-16 22:08:16 UTC
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.

Comment 30 errata-xmlrpc 2021-05-26 13:49:36 UTC
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