baremetal block device mapping is wonky

Bug #1239524 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Joe Gordon
tripleo
Fix Released
High
Joe Gordon

Bug Description

http://169.254.169.254/latest/meta-data/block-device-mapping/root
->
/dev/sda

but this is bong - it's actually /dev/sda1 for this instance. Note that because baremetal does partition images, not disk images, specifying a partition is appropriate IMO.

Tags: baremetal
description: updated
Revision history for this message
Robert Collins (lifeless) wrote :

This is what a flavor with swap and ephemeral gives:
ubuntu@foo:~$ wget -q -O- http://169.254.169.254/latest/meta-data/block-device-mapping
ami
ephemeral0
root
swap
ubuntu@foo:~$ wget -q -O- http://169.254.169.254/latest/meta-data/block-device-mapping/ephemeral0
/dev/vdb
ubuntu@foo:~$ wget -q -O- http://169.254.169.254/latest/meta-data/block-device-mapping/root
/dev/vda
ubuntu@foo:~$ wget -q -O- http://169.254.169.254/latest/meta-data/block-device-mapping/swap
/dev/vdc
ubuntu@foo:~$

-> we should aim for this for baremetal.

Changed in tripleo:
status: New → Triaged
importance: Undecided → High
Joe Gordon (jogo)
Changed in tripleo:
assignee: nobody → Joe Gordon (jogo)
Changed in nova:
assignee: nobody → Joe Gordon (jogo)
Revision history for this message
Joe Gordon (jogo) wrote :

wget -q -O- http://169.254.169.254/latest/meta-data/block-device-mapping/ephemeral0

gets pulled from default_ephemeral_device in instances

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

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

Reviewed: https://review.openstack.org/52704
Committed: http://github.com/openstack/nova/commit/32e553324c72f323ac646984b770b06cfd00198b
Submitter: Jenkins
Branch: master

commit 32e553324c72f323ac646984b770b06cfd00198b
Author: Joe Gordon <email address hidden>
Date: Fri Oct 18 13:43:52 2013 -0700

    Make baremetal support metadata for ephemeral block-device-mapping

    Make baremetal driver set instance['default_ephemeral_device'] to
    /dev/sda1 since we are using the same device for root(sda3) and
    ephemeral(sda1)

    Change-Id: Ib2076198eacb0ea61706043b42d673c35d26f5d1
    Partial-Bug: #1239524

Joe Gordon (jogo)
Changed in nova:
status: In Progress → Fix Released
Revision history for this message
Ben Nemec (bnemec) wrote :

This appears to have been fixed in Nova, closing the TripleO bug as well.

Changed in tripleo:
status: Triaged → Fix Released
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.