Bug 1209723

Summary: Cannot open VM information window on ppc64le backend host
Product: [Fedora] Fedora Reporter: David Gibson <dgibson>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 21CC: berrange, crobinso, virt-maint
Target Milestone: ---   
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-02 20:01:57 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 David Gibson 2015-04-08 04:24:47 UTC
Description of problem:

I have virt-manager on an x86 Fedora machine connecting to a qemu backend on a ppc64le machine.  I have VMs installed by other means (virt-install) on the backend machine, but I am unable to open and view these VMs from virt-manager.

Version-Release number of selected component (if applicable):

virt-manager-1.1.0-5.git310f6527.fc21.noarch

How reproducible:

100%

Steps to Reproduce:
1. Create a connection with a qemu+ssh URL connecting to a ppc64le host.
2. Create VMs on this host via any means (virt-manager itself won't work due to bug 1209720)
3. Double-click on one of the VMs

Actual results:

An error message pops up saying: "Error launching details: invalid argument: architecture from emulator 'ppc64' doesn't match given architecture 'ppc64le'"

Expected results:

Normal VM window opens giving access to VM configuration and console.

Additional info:

Comment 1 Cole Robinson 2015-04-08 13:38:09 UTC
Thanks for the report. This is the backtrace:

Traceback (most recent call last):
  File "/home/crobinso/src/virt-manager/virtManager/engine.py", line 755, in _show_vm_helper
    details = self._get_details_dialog(uri, vm.get_connkey())
  File "/home/crobinso/src/virt-manager/virtManager/engine.py", line 733, in _get_details_dialog
    obj = vmmDetails(conn.get_vm(connkey))
  File "/home/crobinso/src/virt-manager/virtManager/details.py", line 417, in __init__
    self.init_details()
  File "/home/crobinso/src/virt-manager/virtManager/details.py", line 820, in init_details
    domcaps = self.vm.get_domain_capabilities()
  File "/home/crobinso/src/virt-manager/virtManager/domain.py", line 513, in get_domain_capabilities
    self.get_xmlobj())
  File "/home/crobinso/src/virt-manager/virtinst/domcapabilities.py", line 94, in build_from_guest
    guest.emulator, guest.os.arch, guest.os.machine, guest.type)
  File "/home/crobinso/src/virt-manager/virtinst/domcapabilities.py", line 88, in build_from_params
    xml = conn.getDomainCapabilities(emulator, arch, machine, hvtype)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3650, in getDomainCapabilities
    if ret is None: raise libvirtError ('virConnectGetDomainCapabilities() failed', conn=self)
libvirtError: invalid argument: architecture from emulator 'ppc64' doesn't match given architecture 'ppc64le'

Looks like a libvirt issue, I'll create a bug for that. but we can ignore the error in virt-manager

Comment 2 Cole Robinson 2015-04-08 13:48:28 UTC
Libvirt bug:

https://bugzilla.redhat.com/show_bug.cgi?id=1209948

Comment 3 Cole Robinson 2015-04-08 13:54:42 UTC
virt-manager commit to catch the error:

commit 6634053533e878d8e4ed6541350c060b22a096f6
Author: Cole Robinson <crobinso>
Date:   Wed Apr 8 09:53:30 2015 -0400

    domcapabilities: Can and log error fetching XML (bz #1209723)

Comment 4 Fedora Update System 2015-04-13 22:43:51 UTC
virt-manager-1.1.0-6.git310f6527.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/virt-manager-1.1.0-6.git310f6527.fc21

Comment 5 Fedora Update System 2015-04-18 09:34:47 UTC
Package virt-manager-1.1.0-6.git310f6527.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing virt-manager-1.1.0-6.git310f6527.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-6281/virt-manager-1.1.0-6.git310f6527.fc21
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2015-04-18 20:49:18 UTC
virt-manager-1.1.0-7.git310f6527.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/virt-manager-1.1.0-7.git310f6527.fc21

Comment 7 David Gibson 2015-04-20 01:03:11 UTC
I downloaded and tried virt-manager-1.1.0-7.git310f6527.fc21.  I now get a different error when I try to open the VM details window:

Error launching details: global name 'logging' is not defined

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/engine.py", line 748, in _show_vm_helper
    details = self._get_details_dialog(uri, vm.get_connkey())
  File "/usr/share/virt-manager/virtManager/engine.py", line 726, in _get_details_dialog
    obj = vmmDetails(conn.get_vm(connkey))
  File "/usr/share/virt-manager/virtManager/details.py", line 399, in __init__
    self.init_details()
  File "/usr/share/virt-manager/virtManager/details.py", line 784, in init_details
    domcaps = self.vm.get_domain_capabilities()
  File "/usr/share/virt-manager/virtManager/domain.py", line 513, in get_domain_capabilities
    self.get_xmlobj())
  File "/usr/share/virt-manager/virtinst/domcapabilities.py", line 103, in build_from_guest
    guest.emulator, guest.os.arch, guest.os.machine, guest.type)
  File "/usr/share/virt-manager/virtinst/domcapabilities.py", line 92, in build_from_params
    logging.debug("Error fetching domcapabilities XML",
NameError: global name 'logging' is not defined

Comment 8 Cole Robinson 2015-05-02 20:01:57 UTC
Fixed in virt-manage-1.1.0-8 which is in stable now