ConPaaS-team / conpaas

ConPaaS: integrated runtime environment for elastic cloud applications
http://www.conpaas.eu
BSD 3-Clause "New" or "Revised" License
14 stars 3 forks source link

register-image-ec2-ebs.sh does not work #66

Open tcrivat opened 9 years ago

tcrivat commented 9 years ago

The script that registers a custom ConPaaS image on Amazon EC2 (register-image-ec2-ebs.sh) does not work anymore in Ubuntu 14.04. It fails during the last step (register_ebs_ami) with the following error:

'BlockDeviceMapping' object has no attribute 'build_list_params'

It seems that python-boto, a dependency of euca2ools (the tool used by the script to actually register the image), has changed an API function (build_list_params is replaced by ec2_build_list_params), possibly some other changes. The solution seems to be to use a newer version of euca2ools, that is updated to work with the new python-boto...

tcrivat commented 9 years ago

The newer version of euca2ools has a different syntax, probably that's why the script used a specific older version.

I finally managed to register the new image by running the latest step of the script (register_ebs_ami) inside another VM running Debian 6. However the reported issue still remains, register-image-ec2-ebs.sh does not work on newer systems.

tcrivat commented 9 years ago

This script does not work even on older systems (Debian 6). Every time I created a new ConPaaS services image, I had to execute the last step from the script manually.

kavvv commented 9 years ago

FYI, the creator of this script is Liviu who is now graduated.