Bug 1258691

Summary: Newly installed VM from CD-ROM should be blocked in user mode
Product: Red Hat Enterprise Linux 7 Reporter: fwu
Component: virt-managerAssignee: Pavel Hrdina <phrdina>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: hyao, juzhou, mxie, mzhan, phrdina, tzheng, xiaodwan
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-manager-1.3.2-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 01:58:13 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 fwu 2015-09-01 02:02:28 UTC
Description of problem:
Newly installed VM from CD-ROM is not blocked in user mode

Version-Release number of selected component (if applicable):
virt-manager-1.2.1-6.el7.noarch

How reproducible:
100%

Steps to Reproduce:
1.Launch virt-manager user session as a normal user
$virt-manager -c qemu:///session

2.Click 'Create a new virtual machine' button.

3.Choose 'Local install media(ISO image or CDROM), click 'Forward'

4.Check if the choice 'Use CDROM or DVD' is available.

Actual results:
The choice on Step 4 is available.

Expected results:
The choice on Step 4 should be disabled.

Additional info:
1. After Step 4, the installation cannot complete due to error of qemu. So this function should be disabled in user mode.
2. In root mode, the choice is disabled.

Comment 5 Pavel Hrdina 2015-11-05 14:16:55 UTC
*** Bug 1250402 has been marked as a duplicate of this bug. ***

Comment 6 Pavel Hrdina 2015-11-06 09:48:13 UTC
Upstream commit:

commit 1a760e74d8047c1debaf52046665d0acbdf1d0cf
Author: Pavel Hrdina <phrdina>
Date:   Thu Nov 5 13:31:43 2015 +0100

    virtinst.connection: detect RHEL system also for session connection
    
    We should detect RHEL qemu also for session connection, not only system
    connection, the capabilities of both are the same.
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1258691
    
    Signed-off-by: Pavel Hrdina <phrdina>

Comment 7 Pavel Hrdina 2015-11-06 09:48:33 UTC
*** Bug 1010944 has been marked as a duplicate of this bug. ***

Comment 8 Mike McCune 2016-03-28 23:17:33 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 9 errata-xmlrpc 2016-04-07 12:45:03 UTC
Bug report changed to ON_QA status by Errata System.
A QE request has been submitted for advisory RHEA-2016:23205-01
https://errata.devel.redhat.com/advisory/23205

Comment 10 XiaoyunHu 2016-05-18 09:36:22 UTC
I can reproduce this bug with package:
virt-manager-1.2.1-8.el7.noarch

Steps are the same as description above.

Then try to verify with new build:
virt-manager-1.3.2-1.el7.noarch

Step:
1.Launch virt-manager user session as a normal user
$virt-manager -c qemu:///session
2.Click 'Create a new virtual machine' button.
3.Choose 'Local install media(ISO image or CDROM), click 'Forward'
4.Check if the choice 'Use CDROM or DVD' is available.

Result:
The choice on Step 4 is disabled.

According to the result above in the latest version of virt-manager, move this bug from ON_QA to VERIFIED.

Comment 12 errata-xmlrpc 2016-11-04 01:58:13 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, 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://rhn.redhat.com/errata/RHBA-2016-2269.html