Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1183604

Summary: cannot remove or add device after try to remove primary video device firstly
Product: Red Hat Enterprise Linux 7 Reporter: CongDong <codong>
Component: virt-managerAssignee: Giuseppe Scrivano <gscrivan>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: codong, juzhou, mzhan, tzheng
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-06 08:36:50 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:
Attachments:
Description Flags
virt-manager debug for S1 with cirrus and qxl
none
virt-manager debug for S2 with two qxl none

Description CongDong 2015-01-19 10:11:59 UTC
Description of problem:
As subject

Version-Release number of selected component (if applicable):
virt-manager-1.1.0-12.el7.noarch
libvirt-1.2.8-13.el7.x86_64
qemu-kvm-1.5.3-85.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
S1:
1. configure the guest like this, primary one is cirrus, second one is qxl:
    <video>
      <model type='cirrus' vram='16384' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </video>
2. # virt-manager and open the details page.
3. click the primary video device "Video Cirrus", and click "Remove" button
4. repeat step 3
5. Try to remove other device or add a new device

S2:
1. configure the guest like this, both primary and the second one are qxl:
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </video>
2. # virt-manager and open the details page.
3. click the primary video device "Video Cirrus", and click "Remove" button
4. repeate step3 
5. Try to remove other device or add a new device

Actual results:
S1:
Step, 3,  cannot remove primary video device and get an error:
Error Removing Device: internal error: Primary video card must havwe PCI address 0:0:2.0
Step 4 and 5, still get the same error and cannot add or remove other device

S2:
Step3, cannot remove primary video device and get an error:
Error Removing Device: internal error: Primary video card must havwe PCI address 0:0:2.0
Step4, the primary video device can be removed the second time.
can add or remove other device after that

Expected results:
The primary video device can be removed, and should add or remove other device successfully

Additional info:
Cannot reproduce with qemu-kvm-rhev-2.1.2-20.el7
Feel free to update the component

Comment 1 CongDong 2015-01-19 10:19:54 UTC
Created attachment 981449 [details]
virt-manager debug for S1 with cirrus and qxl

Comment 2 CongDong 2015-01-19 10:20:58 UTC
Created attachment 981450 [details]
virt-manager debug for S2 with two qxl

Comment 3 Giuseppe Scrivano 2015-05-06 08:36:50 UTC

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