Baremetal driver reports bogus vm_mode of 'baremetal'

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

Bug Description

The Baremetal driver reports a 'vm_mode' of 'baremetal' for supported instance types. This is bogus because the baremetal driver is running OS using the native machine ABI, which is represented by vm_mode.HVM

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/109593

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/109594

Sean Dague (sdague)
Changed in nova:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to nova (master)

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

commit 77efa337c5b17b1853c6dd0f02009ed60925ff37
Author: Daniel P. Berrange <email address hidden>
Date: Fri Jul 25 12:41:53 2014 +0100

    compute: tweaks to vm_mode APIs to align with arch/hvtype

    Rename the 'name' method to 'canonicalize' to make its purpose
    clearer. Also add a 'is_valid' method to check validity without
    doing canonicalization. Make it use a specialized exception
    class instead of the generic 'Invalid' class.

    Related-bug: #1348629
    Change-Id: I4bb972aeafb69be594bff40eded3cfeec22f0bef

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

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

commit 8fcd1b2c73dad8e2a7b4d299da270934fd5328cc
Author: Daniel P. Berrange <email address hidden>
Date: Fri Jul 25 12:55:40 2014 +0100

    virt: use compute.vm_mode constants and validate vm mode type

    Where we have hardcoded vm modes, use compute.vm_mode constants.
    Where we get vm modes from external systems, validate them against
    the list of acceptable names.

    The baremetal/ironic drivers are reporting a bogus vm mode of
    'baremetal' for supported instances which is confusing the vm
    mode with the Nova driver type. These drivers use the native
    ABI for their architecture, so should be reporting 'hvm' as
    the vm mode, which indicates an unmodified native OS ABI.

    On the other side, the ImagePropertiesFilter will canonicalize
    the hvtype it fetches from image metadata, so that 'baremetal'
    gets remapped to 'hvm' during comparison.

    Closes-bug: #1348629
    Change-Id: Ibda7c5ab0759aee672870d84974ccdea25f14407

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
no longer affects: nova/juno
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.