Merge lp://staging/~tellis/ubuntu-on-ec2/attach-volume into lp://staging/~ubuntu-on-ec2/ubuntu-on-ec2/cloud-utils

Proposed by Tom Ellis
Status: Merged
Merged at revision: 86
Proposed branch: lp://staging/~tellis/ubuntu-on-ec2/attach-volume
Merge into: lp://staging/~ubuntu-on-ec2/ubuntu-on-ec2/cloud-utils
Diff against target: 71 lines (+40/-0)
1 file modified
uec-run-instances (+40/-0)
To merge this branch: bzr merge lp://staging/~tellis/ubuntu-on-ec2/attach-volume
Reviewer Review Type Date Requested Status
Tom Ellis (community) Needs Resubmitting
Scott Moser Pending
Review via email: mp+49576@code.staging.launchpad.net

Description of the change

Attach volume on boot of system. This work is based on the associate ip and wait_for=ssh work, as volumes can only be attached successfully when instance status = running.
Tested on UEC, might need some tweaking for volume device on ec2.

My first foray into python so be gentle :-)

To post a comment you must log in.
Revision history for this message
Scott Moser (smoser) wrote :

Thanks for doing this. I have two suggestions:
- make default dev (/dev/sdb) configurable via command line options (maybe '--attach-volume-dev). Its fine to use /dev/sdb by default as on ec2, people would probably use --block-device-mapping.
- support attaching a snapshot. I think with the end goal of EBS root, this is more reasonable. Ie, if the target of --attach-volume starts with SNAP- or 'snap-' the, create a volume from that SNAP, wait for it to become available, and then start the instances.

Revision history for this message
Tom Ellis (tellis) wrote :

Thanks for the comments Scott, I'll work on updating the patch to add these two features.

86. By Scott Moser

add --attach-volume from Tom Ellis

Revision history for this message
Scott Moser (smoser) wrote :

I merged.
Tom just work on the other two changes and submit those.

Revision history for this message
Tom Ellis (tellis) wrote :

Checked out the branch after your merge and noticed a problem with an indent causing it traceback. Fixed it in this merge, not sure how that got in there...

Working on those other proposals and will submit other merge requests.

Cheers!

review: Needs Resubmitting

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches