XenAPI driver uses a bogus architecture type for i686 platforms

Bug #1348624 reported by Daniel Berrange
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Daniel Berrange

Bug Description

The XenAPI driver simply parses the Xen hypervisor capabilities to report the architecture type in the supported instances list. Unfortunately the Xen hypervisor uses a architecture name of 'x86_32' for i686 platforms which means it won't match the standard OS 'uname' reported architecture used by other drivers.

Changed in nova:
assignee: nobody → Daniel Berrange (berrange)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to nova (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/109589

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/109590

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to nova (master)

Reviewed: https://review.openstack.org/109589
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=e780b10189cf70130d935652eda08a740fe6e417
Submitter: Jenkins
Branch: master

commit e780b10189cf70130d935652eda08a740fe6e417
Author: Daniel P. Berrange <email address hidden>
Date: Mon Jul 14 14:25:14 2014 +0100

    Add standard constants for CPU architectures

    Introduce a nova/compute/arch.py module to serve a similar role
    to nova/compute/vmmode.py, by providing constants for known
    CPU architectures and validation/canonicalization APIs

    Related-bug: #1348624
    Change-Id: Idd4907b5488dd0832c15783d87d57d77ae654519

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/109590
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=4afece5aba8882ef1f53ea1a171b2afa69bdadb1
Submitter: Jenkins
Branch: master

commit 4afece5aba8882ef1f53ea1a171b2afa69bdadb1
Author: Daniel P. Berrange <email address hidden>
Date: Thu Jul 24 16:49:15 2014 +0100

    virt: use compute.arch constants and validate architectures

    Where we have hardcoded architectures, use the compute.arch
    constants. Where we get architectures from external systems
    or users, validate them against the list of acceptable names.

    The Xen hypervisor is reporting 'i686' architecture with the
    unusual name 'x86_32' so must be converted to use the normal
    name. Upon upgrade the existing data in the compute nodes
    table will be upgraded by the periodic refresh of compute
    node information.

    On the other side, the ImagePropertiesFilter will canonicalize
    the architecture it fetches from image metadata, so that
    'x86_32' gets remapped to 'i686' during comparison.

    Closes-bug: #1348624
    Change-Id: I1adfb0a2258a628004aaa28c1ac04c4cf3d3eea6

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → juno-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-rc1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.