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 887106

Summary: Virt-manager error:ValueError: list.remove(x): x not in list after create lxc guest
Product: Red Hat Enterprise Linux 6 Reporter: tingting zheng <tzheng>
Component: virt-managerAssignee: Martin Kletzander <mkletzan>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: medium    
Version: 6.4CC: acathrow, cwei, dallan, gscrivan, lcui, mjenner, mkletzan, 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:
: 922676 (view as bug list) Environment:
Last Closed: 2014-02-21 16:09:35 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:
Bug Depends On:    
Bug Blocks: 922676    
Attachments:
Description Flags
Dedub info from virt-manager none

Description tingting zheng 2012-12-14 03:19:37 UTC
Created attachment 663314 [details]
Dedub info from virt-manager

Description of problem:
Virt-manager error:ValueError: list.remove(x): x not in list after create lxc guest

Version-Release number of selected component (if applicable):
libvirt-0.10.2-12.el6.x86_64
virt-manager-0.9.0-18.el6.x86_64
qemu-kvm-0.12.1.2-2.340.el6.x86_64
kernel:2.6.32-345.el6.x86_64

How reproducible:
90%

Steps to Reproduce:
1.Launch virt-manager,there is a local qemu/kvm connection.
# virt-manager --debug

2.Add a lxc connection from virt-manager,create a new lxc guest,choose container type:Application container,use other default configurations.

3.Destroy the new created lxc guest,and delete the guest.

4.Disconnect the lxc connection,delete the lxc connection.

5.From the local qemu/kvm connection,New a guest,there is error shows in GUI:Error:list.remove(x): x not in list
debug info:
(virt-manager:12473): libglade-WARNING **: unknown attribute `swapped' for <signal>.
/usr/share/virt-manager/virtManager/baseclass.py:124: Warning: gsignal.c:2387: instance `0x3987280' has no handler with id `1360'
  ret = GObject.disconnect(self, handle)
2012-12-13 19:45:09,115 (create:352): Error setting create wizard conn state.
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 350, in reset_state
    self.set_conn(activeconn, force_validate=True)
  File "/usr/share/virt-manager/virtManager/create.py", line 205, in set_conn
    self.remove_conn()
  File "/usr/share/virt-manager/virtManager/create.py", line 197, in remove_conn
    self.conn.disconnect(signal)
  File "/usr/share/virt-manager/virtManager/baseclass.py", line 125, in disconnect
    self._gobject_handles.remove(handle)
ValueError: list.remove(x): x not in list

Actual results:
As steps show.

Expected results:
No error shows.

Additional info: 
1.Detailed debug info attached.
2.When new a lxc guest,then destroy and delete the guest,there is error messages in debug info,details refer the debug info.
2012-12-13 19:44:54,458 (serialcon:150): Error receiving stream data
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/serialcon.py", line 148, in _event_on_stream
    got = self.stream.recv(1024 * 100)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 4249, in recv
    if ret == None: raise libvirtError ('virStreamRecv() failed')
libvirtError: stream had unexpected termination
2012-12-13 19:44:54,461 (serialcon:209): Error finishing stream
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/serialcon.py", line 207, in close
    self.stream.finish()
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 4101, in finish
    if ret == -1: raise libvirtError ('virStreamFinish() failed')
libvirtError: stream had unexpected termination

Comment 1 Martin Kletzander 2013-03-28 09:37:36 UTC
Please try to reproduce on 6.4 with newer packages, I failed to reproduce that in my setup.  Thanks, Martin

Comment 2 tingting zheng 2013-03-28 09:53:46 UTC
(In reply to comment #1)
> Please try to reproduce on 6.4 with newer packages, I failed to reproduce
> that in my setup.  Thanks, Martin

I can still reproduce this issue with newer packages in 6.4
version:
libvirt-0.10.2-18.el6_4.2.x86_64
virt-manager-0.9.0-18.el6.x86_64
qemu-kvm-0.12.1.2-2.355.el6.x86_64
kernel:2.6.32-358.2.1.el6.x86_64

Comment 7 Giuseppe Scrivano 2014-02-21 16:09:35 UTC
I think it is safe to close this bz for RHEL-6.6 as it is not a severe issue.