Can't create EMI through store or Terminal

Asked by Shujaat on 2010-07-21

Hello,

I have created a cluster and a node. I have tried to download the image from store tab of UEC but I get an error "Error 28: connect() timed out!". I tried solving it but couldn't.

Than I tried following the instructions on https://help.ubuntu.com/community/UEC/BundlingImages9.10 as I am using 9.10. I downloaded cloud utils package but I can only run it's commands from its extracted folder. I placed my tarball in cloud utils folder and ran there but to no success.

I ran the command
uec-publish-tarball lucid1.tar.gz "${RELEASE}-${TIMESTAMP}" "i386"

lucid1 being my tarball and i386 the architecture. I get the output

Wed Jul 21 09:10:19 BST 2010: ====== extracting image ======
Warning: no ramdisk found, assuming '--ramdisk none'
kernel : lucid-server-uec-i386-vmlinuz-virtual
ramdisk: none
image : lucid-server-uec-i386.img
Wed Jul 21 09:11:39 BST 2010: ====== bundle/upload kernel ======
Traceback (most recent call last):
  File "/usr/local/bin/euca-bundle-image", line 228, in <module>
    main()
  File "/usr/local/bin/euca-bundle-image", line 122, in main
    cert_path=euca.get_environ('EC2_CERT')
AttributeError: Euca2ool instance has no attribute 'get_environ'
failed to bundle kernel lucid-server-uec-i386-vmlinuz-virtual
failed: euca-bundle-image --destination /tmp/uec-publish-image.ZPHMHB --arch i386 --image /tmp/uec-publish-image.ZPHMHB/.rename.tWWMu6/lucid-server-uec-i386-vmlinuz-virtual --kernel truefailed to upload kernel

I am stuck here for a long time. Please Help
Thanks
Regards

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu eucalyptus Edit question
Assignee:
No assignee Edit question
Last query:
2010-07-22
Last reply:
2010-07-23
Torsten Spindler (tspindler) said : #1

I suggest you manually upload the image via
1) euca-bundle-image
2) euca-upload-bundle
3) euca-register

Do this for the kernel and image itself. The details are outlined on
https://help.ubuntu.com/community/UEC/BundlingImages9.10
Alternate

Shujaat (shujaathussain) said : #2

Thanks for replying. I tried solving it like you mentioned. i took a karmic tarball and tried to run these commands

BUCKET_KERNEL="k-$TIMESTAMP"
UEC_KERNEL=karmic-server-uec-i386-vmlinuz-virtual
euca-bundle-image -i $UEC_KERNEL -r i386 --kernel true
euca-upload-bundle -b $BUCKET_KERNEL -m /tmp/$UEC_KERNEL.manifest.xml
EKI=$(euca-register $BUCKET_KERNEL/$UEC_KERNEL.manifest.xml | grep "^IMAGE" | awk '{print $2}') && echo $EKI

On running the 3rd command
euca-bundle-image -i $UEC_KERNEL -r i386 --kernel true
gave me errors below

Traceback (most recent call last):
  File "/usr/local/bin/euca-bundle-image", line 228, in <module>
    main()
  File "/usr/local/bin/euca-bundle-image", line 122, in main
    cert_path=euca.get_environ('EC2_CERT')
AttributeError: Euca2ool instance has no attribute 'get_environ'

What should be my next step?

Thanks for helping

Scott Moser (smoser) said : #3

I think that you must have a old version of euca2ools in your python path somewhere, or generally must have a mismatch of 'euca-bundle-image' in your /usr/local/bin and libraries possibly in /usr/share/pyshared/euca2ools/.

Scott Moser (smoser) said : #4

I think that you must have a old version of euca2ools in your python path somewhere, or generally must have a mismatch of 'euca-bundle-image' in your /usr/local/bin and libraries possibly in /usr/share/pyshared/euca2ools/.

Shujaat (shujaathussain) said : #5

What should I do then and how? Any ideas
Thanks for replying

Scott Moser (smoser) said : #6

Well, there must be something wrong.
You haven't said what your OS is, if you're running the euca2ools on any ubuntu, you should not have (or be using) euca-* files in /usr/local/bin. You probably want to uninstall those files however you installed them, and possibly reinstall (apt-get install --reinstall euca2ools) the packaged euca2ools.

Can you help with this problem?

Provide an answer of your own, or ask Shujaat for more information if necessary.

To post a message you must log in.