Bug 575166
| Summary: | Specifying block-device-mapping causes euca-bundle-image to fail | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Robert Banfield <rbanfield> |
| Component: | euca2ools | Assignee: | Garrett Holmstrom <gholms> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 12 | CC: | gholms |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | euca2ools-1.2-2.fc12 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-04-09 04:15:59 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Specifying the block-device-mapping as: --block-device-mapping='ami=sda1,root=/dev/sda1,ephemeral0=sda2,swap=sda3' also fails Patch for ec2-bundle-image: 87c87 < def get_block_devs(mapping): --- > def get_block_devs(mapstring): 89c89 < mapping_pairs = mapping.split(',') --- > mapping_pairs = mapstring.split(',') Although I don't have anything I can use to test --block-device-mapping, it's pretty obvious why this is broken. ;-) I'll add a patch for this to the next release. Please test it and comment in bodhi when it hits updates-testing. euca2ools-1.2-2.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/euca2ools-1.2-2.fc13 euca2ools-1.2-2.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/euca2ools-1.2-2.fc12 euca2ools-1.2-2.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update euca2ools'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/euca2ools-1.2-2.fc12 euca2ools-1.2-2.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update euca2ools'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/euca2ools-1.2-2.fc13 Tested in the F12 testing repository and it works correctly. If you would, after testing the package in updates-testing please provide feedback at http://admin.fedoraproject.org/updates/euca2ools-1.2-2.fc12 by giving comments and/or a +1 or -1 rating. After the update gets enough feedback it can be pushed to the stable repository. euca2ools-1.2-2.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. euca2ools-1.2-2.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: euca-bundle-image does not successfully complete when using option --block-device-mapping Version-Release number of selected component (if applicable): euca2ools.noarch 0:1.2-1.fc12 How reproducible: Always Steps to Reproduce: 1. euca-bundle-image -i $IMAGE --cert=$EC2CERT --privatekey=$EC2PK --user=$EC2AWSUSER -r $BASEARCH --block-device-mapping ami=sda1,root=/dev/sda1,ephemeral0=sda2,swap=sda3 --kernel $KERNEL --ramdisk $RAMDISK --ec2cert=/root/EC2/support/ec2-ami-tools-1.3-31780/etc/ec2/amitools/cert-ec2.pem Actual results: Traceback (most recent call last): File "/usr/bin/euca-bundle-image", line 228, in <module> main() File "/usr/bin/euca-bundle-image", line 210, in main mapping = get_block_devs(mapping) File "/usr/bin/euca-bundle-image", line 89, in get_block_devs mapping_pairs = mapping.split(',') AttributeError: 'list' object has no attribute 'split' Expected results: A bundle Additional info: euca-bundle-vol likely has the same problem