AWS::EC2::VolumeAttachment Device doesn't work

Bug #1231705 reported by Kevin Fox
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Low
Angus Salkeld

Bug Description

Due to this bug:
https://bugs.launchpad.net/nova/+bug/1004328

The Device listed is ignored by heat instanciated templates. At very least, a warning should be placed in the documentation that your drives may be attached in unexpected/unsafe orders.

Revision history for this message
Steve Baker (steve-stevebaker) wrote :

According to bug #1004328, this was fixed in Nova before the folsom release. We definitely do not support Heat running on Essex or earlier, so could you please provide more information on why you are hitting this bug?

Revision history for this message
Kevin Fox (kevin-fox-y) wrote :

Please review the bug #1004328 details. The bug thread says that its a libvirt/kvm issue that will be difficult to fix and they submitted a patch that makes the cinder id available in /dev/disks. It does not fix the /dev/vdX showing up as /dev/vdY issue though, which is what heat relies on.

Thanks,
Kevin

Revision history for this message
Kevin Fox (kevin-fox-y) wrote :

I'm using heat on RDO Grizzly. I'm trying to instantiate a template that has one vm and 4 volumes. The volumes where not getting attached to the devices as specified in the template file. They are getting /dev/vdb - /dev/vde instead of the specified /dev/vdh - /dev/hdk. And in a totally random order.

Revision history for this message
Steve Baker (steve-stevebaker) wrote :

The Description for VolumeAttachment currently says:
    The device where the volume is exposed on the instance

How about the following wording?
    The device where the volume is exposed on the instance. This assignment may not be honored and it is advised that the path /dev/disk/by-id/virtio-<VolumeId> be used instead.

Feel free to suggest an alternative wording.

Also, you might want to evaluate OS::Cinder::Volume and OS::Cinder::VolumeAttachment to see if it meets your needs better.

OS::Cinder::VolumeAttachment mountpoint is currently mandatory, but a bug could be raised to make it optional if its use should be discouraged.

Revision history for this message
Kevin Fox (kevin-fox-y) wrote :

That wording seems good to me. It would have prevented me from tripping over it and spending an hour trying to figure out what was going on.

Yeah, I could try the OS::Cinder::VolumeAttachment option too. I think its going to run into the exact same problem though.

If it is a source of confusion and it is just ignored by the system, maybe it should be optional and maybe even warn people when its used. In my case, I had no data yet relying on it, but it could have eaten production data if it went unnoticed.

Thanks,
Kevin

Angus Salkeld (asalkeld)
Changed in heat:
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Angus Salkeld (asalkeld)
milestone: none → icehouse-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

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

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

Reviewed: https://review.openstack.org/61324
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=c1fae45fe729f065928b138b29c9caaa0be54ffa
Submitter: Jenkins
Branch: master

commit c1fae45fe729f065928b138b29c9caaa0be54ffa
Author: Angus Salkeld <email address hidden>
Date: Wed Dec 11 17:28:40 2013 +1100

    Make the mountpoint property description clearer

    There is an issue where the mountpoint may not be honored
    so add this note to the property documentation so users can be
    aware of the issue.

    Change-Id: Iddab9b1f6e5fadddd00e651e92b8b9c922a59347
    Closes-bug: #1231705

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: icehouse-2 → 2014.1
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.