Bug 1010944

Summary: SCSI and USB should not be in the list of disk buses in VM details when running as user
Product: Red Hat Enterprise Linux 7 Reporter: hyao <hyao>
Component: virt-managerAssignee: Pavel Hrdina <phrdina>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: crobinso, cwei, dyuan, mkletzan, mzhan, rbalakri, tzheng
Target Milestone: rc   
Target Release: 7.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-06 09:48:33 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:
Embargoed:

Description hyao@redhat.com 2013-09-23 10:53:14 UTC
Description
SCSI and USB should not be in the list of disk bus of VM details by usermode on rhel6.5.
Also vmdk should not be in the list of storage format.

Version:
# rpm -qa libvirt virt-manager
libvirt-0.10.2-26.el6.x86_64
virt-manager-0.9.0-19.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. View the VM details by root in virt-manager and check the lists of disk bus and storage format.
IDE and Virtio are in the list of disk bus.
qcow2,qed,and raw are in the list.

2. View the VM details by not root in virt-manager and check the lists of disk bus and storage format.
SCSI,USB,IDE and Virtio are in the list of disk bus.
vmdk,qcow2,qed,and raw are in the list.


Actual results:
As description.

Expected results:
SCSI and USB should not be in the list of disk bus of VM details by usermode on rhel6.5.
Also vmdk should not be in the list of storage format.

Comment 2 hyao@redhat.com 2013-09-24 03:00:45 UTC
correct the component to virt-manager

Comment 5 Martin Kletzander 2013-09-27 07:58:04 UTC
I suspect you are connecting to qemu://system as a user, right?  If not, please specify.

Comment 6 hyao@redhat.com 2013-09-27 08:39:22 UTC
hi Martin, 
I connect to qemu:///session not qemu:///system

Steps
Login in the host with user name test
Launch virt-manager by commands
[test@7 ~]$ virt-manager
or
[test@7 ~]$ virt-manager qemu:///session

Check the details of the disk of a vm. 
SCSI ,USB, IDE and Virtio are in the list of disk bus.
qcow2,qed,vmdk and raw are in the list.

Let me know if you still need more info and you can contact with me on IRC by hyao.

Comment 7 Dave Allan 2013-10-01 17:48:15 UTC
You need to specify -c to make virt-manager connect to a specific URI, can you confirm behavior with virt-manager -c qemu:///session ?

Comment 8 Cole Robinson 2013-10-02 13:29:37 UTC
(In reply to Dave Allan from comment #7)
> You need to specify -c to make virt-manager connect to a specific URI, can
> you confirm behavior with virt-manager -c qemu:///session ?

Not entirely true, you just need to do that _once_ and then it persists in the list

vmmConnection:rhel6_defaults needs to change from is_qemu_system to is_qemu and it will cover this, we just aren't enforcing the RHEL limits for qemu session

Comment 9 hyao@redhat.com 2013-10-08 06:38:52 UTC
(In reply to Dave Allan from comment #7)
> You need to specify -c to make virt-manager connect to a specific URI, can
> you confirm behavior with virt-manager -c qemu:///session ?

I've used virt-manager -c qemu:///session to launch virt-manager by non root user, then create a new VM and check the disk Advanced options

SCSI,USB,IDE and Virtio are in the list of disk bus.
vmdk,qcow2,qed,and raw are in the list.

Comment 13 Pavel Hrdina 2015-11-06 09:48:33 UTC
Closing as duplicate, the referenced bug fixes the difference between system and session mode.

*** This bug has been marked as a duplicate of bug 1258691 ***