Bug 1784177 - [OSP 16] nova-compute unable to launch libguestfs using the default qemu:///user URI
Summary: [OSP 16] nova-compute unable to launch libguestfs using the default qemu:///u...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z6
: 16.1 (Train on RHEL 8.2)
Assignee: Rajesh Tailor
QA Contact: James Parker
URL:
Whiteboard:
Depends On:
Blocks: 1803063 1803068
TreeView+ depends on / blocked
 
Reported: 2019-12-16 22:08 UTC by chrisbro@redhat.com
Modified: 2023-09-07 21:16 UTC (History)
17 users (show)

Fixed In Version: openstack-tripleo-heat-templates-11.3.2-1.20210104205657.el8ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1803063 (view as bug list)
Environment:
Last Closed: 2021-05-26 13:49:36 UTC
Target Upstream Version: Train
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 701984 0 None MERGED nova: Always provide LIBGUESTFS_BACKEND=libvirt:qemu:///system 2021-02-16 06:34:49 UTC
OpenStack gerrit 702594 0 None MERGED nova: Always provide LIBGUESTFS_BACKEND=libvirt:qemu:///system 2021-02-16 06:34:50 UTC
OpenStack gerrit 771160 0 None MERGED nova: Use LIBGUESTFS_BACKEND=direct 2021-02-16 06:34:49 UTC
Red Hat Issue Tracker OSP-617 0 None None None 2022-09-05 13:30:57 UTC
Red Hat Product Errata RHBA-2021:2097 0 None None None 2021-05-26 13:50:16 UTC

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


Note You need to log in before you can comment on or make changes to this bug.