virsh list doesn't show running VMs under unprivilged user

Bug #1733319 reported by Sergii Golovatiuk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Sergii Golovatiuk

Bug Description

virsh list doesn't show running VMs under unprivilged user

How to reproduce bug?

# sudo su stack
# virsh list
 Id Name State
----------------------------------------------------

# virsh list --all
setlocale: No such file or directory
 Id Name State
----------------------------------------------------
 - compute_0 shut off
 - control_0 shut off
 - undercloud shut off

How to fix it
# export XDG_RUNTIME_DIR=/run/user/$(id -u)/
# virsh list --all
 Id Name State
----------------------------------------------------
 1 undercloud running
 - compute_0 shut off
 - control_0 shut off

Changed in tripleo:
importance: Undecided → Low
status: New → Confirmed
status: Confirmed → New
affects: tripleo → tripleo-quickstart
Revision history for this message
Sergii Golovatiuk (sgolovatiuk) wrote :

It's related to #1577809

no longer affects: tripleo-quickstart
Changed in tripleo:
status: New → Triaged
importance: Undecided → Medium
milestone: none → queens-2
Changed in tripleo:
assignee: nobody → Sergii Golovatiuk (sgolovatiuk)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart (master)

Reviewed: https://review.openstack.org/521531
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart/commit/?id=42a3baffac38a9212558313dc72e7c89f8bd308a
Submitter: Zuul
Branch: master

commit 42a3baffac38a9212558313dc72e7c89f8bd308a
Author: Sergii Golovatiuk <email address hidden>
Date: Mon Nov 20 14:13:43 2017 +0100

    Set up XDG_RUNTIME_DIR in .bashrc

    This helps to set up unprivileged libvirt user

    Change-Id: I9383ab5d923ca39aa831d784d866b558bfd6c66b
    Closes-Bug: 1733319
    Related-Bug: 1714917

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-quickstart 2.1.1

This issue was fixed in the openstack/tripleo-quickstart 2.1.1 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.