uec-publish-tarball: Failed to upload kernel

Asked by Graham Hemingway

I am trying to upload an image to my cloud. On one node I have all of the Nova services (except compute) and also all Glance services. On my other node is nova-compute. When I try uec-publish-tarball using the tty kernel I get the following error:

uec-publish-tarball ttylinux-uec-amd64-12.1_2.6.35-22_1.tar.gz tty_bucket

Mon Apr 25 15:29:08 CDT 2011: ====== extracting image ======
kernel : ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz
ramdisk: ttylinux-uec-amd64-12.1_2.6.35-22_1-initrd
image : ttylinux-uec-amd64-12.1_2.6.35-22_1.img
Mon Apr 25 15:29:09 CDT 2011: ====== bundle/upload kernel ======
Traceback (most recent call last):
  File "/usr/bin/euca-upload-bundle", line 231, in <module>
    main()
  File "/usr/bin/euca-upload-bundle", line 214, in main
    bucket_instance = ensure_bucket(conn, bucket, canned_acl)
  File "/usr/bin/euca-upload-bundle", line 87, in ensure_bucket
    bucket_instance = connection.get_bucket(bucket)
  File "/usr/lib/pymodules/python2.6/boto/s3/connection.py", line 275, in get_bucket
    rs = bucket.get_all_keys(headers, maxkeys=0)
  File "/usr/lib/pymodules/python2.6/boto/s3/bucket.py", line 204, in get_all_keys
    headers=headers, query_args=s)
  File "/usr/lib/pymodules/python2.6/boto/s3/connection.py", line 342, in make_request
    data, host, auth_path, sender)
  File "/usr/lib/pymodules/python2.6/boto/connection.py", line 459, in make_request
    return self._mexe(method, path, data, headers, host, sender)
  File "/usr/lib/pymodules/python2.6/boto/connection.py", line 437, in _mexe
    raise e
socket.error: [Errno 111] Connection refused
failed to upload bundle to tty_bucket/ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz.manifest.xml
failed: euca-upload-bundle --bucket tty_bucket --manifest /tmp/uec-publish-image.MOoajf/ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz.manifest.xml
Checking bucket: tty_bucketfailed to upload kernel

Thank you.
Cheers,
   Graham

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Graham Hemingway
Solved:
Last query:
Last reply:
Revision history for this message
Vish Ishaya (vishvananda) said :
#1

looks like it is failing to connect to nova-objectstore
a) ensure nova-objectstore is running
b) check S3_URL in your novarc and make sure that the ip correct and accessible from wherever you are uploading from. You can modify it if it is somehow set incorrectly

On Apr 25, 2011, at 1:36 PM, Graham Hemingway wrote:

> New question #154229 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/154229
>
> I am trying to upload an image to my cloud. On one node I have all of the Nova services (except compute) and also all Glance services. On my other node is nova-compute. When I try uec-publish-tarball using the tty kernel I get the following error:
>
>
> uec-publish-tarball ttylinux-uec-amd64-12.1_2.6.35-22_1.tar.gz tty_bucket
>
> Mon Apr 25 15:29:08 CDT 2011: ====== extracting image ======
> kernel : ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz
> ramdisk: ttylinux-uec-amd64-12.1_2.6.35-22_1-initrd
> image : ttylinux-uec-amd64-12.1_2.6.35-22_1.img
> Mon Apr 25 15:29:09 CDT 2011: ====== bundle/upload kernel ======
> Traceback (most recent call last):
> File "/usr/bin/euca-upload-bundle", line 231, in <module>
> main()
> File "/usr/bin/euca-upload-bundle", line 214, in main
> bucket_instance = ensure_bucket(conn, bucket, canned_acl)
> File "/usr/bin/euca-upload-bundle", line 87, in ensure_bucket
> bucket_instance = connection.get_bucket(bucket)
> File "/usr/lib/pymodules/python2.6/boto/s3/connection.py", line 275, in get_bucket
> rs = bucket.get_all_keys(headers, maxkeys=0)
> File "/usr/lib/pymodules/python2.6/boto/s3/bucket.py", line 204, in get_all_keys
> headers=headers, query_args=s)
> File "/usr/lib/pymodules/python2.6/boto/s3/connection.py", line 342, in make_request
> data, host, auth_path, sender)
> File "/usr/lib/pymodules/python2.6/boto/connection.py", line 459, in make_request
> return self._mexe(method, path, data, headers, host, sender)
> File "/usr/lib/pymodules/python2.6/boto/connection.py", line 437, in _mexe
> raise e
> socket.error: [Errno 111] Connection refused
> failed to upload bundle to tty_bucket/ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz.manifest.xml
> failed: euca-upload-bundle --bucket tty_bucket --manifest /tmp/uec-publish-image.MOoajf/ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz.manifest.xml
> Checking bucket: tty_bucketfailed to upload kernel
>
> Thank you.
> Cheers,
> Graham
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Revision history for this message
Graham Hemingway (graham-hemingway) said :
#2

On Apr 25, 2011, at 4:00 PM, Vish Ishaya wrote:
>
> Vish Ishaya proposed the following answer:
> looks like it is failing to connect to nova-objectstore
> a) ensure nova-objectstore is running

It is running.

> b) check S3_URL in your novarc and make sure that the ip correct and accessible from wherever you are uploading from. You can modify it if it is somehow set incorrectly
>

I don't have an S3_URL flag. I have S3_host which looks correct.
I did find this question in the Glance: https://answers.launchpad.net/glance/+question/153638
It sounds very similar though I am getting a different error. Please let me know if I should configure S3_URL.

> On Apr 25, 2011, at 1:36 PM, Graham Hemingway wrote:
>
>> New question #154229 on OpenStack Compute (nova):
>> https://answers.launchpad.net/nova/+question/154229
>>
>> I am trying to upload an image to my cloud. On one node I have all of the Nova services (except compute) and also all Glance services. On my other node is nova-compute. When I try uec-publish-tarball using the tty kernel I get the following error:
>>
>>
>> uec-publish-tarball ttylinux-uec-amd64-12.1_2.6.35-22_1.tar.gz tty_bucket
>>
>> Mon Apr 25 15:29:08 CDT 2011: ====== extracting image ======
>> kernel : ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz
>> ramdisk: ttylinux-uec-amd64-12.1_2.6.35-22_1-initrd
>> image : ttylinux-uec-amd64-12.1_2.6.35-22_1.img
>> Mon Apr 25 15:29:09 CDT 2011: ====== bundle/upload kernel ======
>> Traceback (most recent call last):
>> File "/usr/bin/euca-upload-bundle", line 231, in <module>
>> main()
>> File "/usr/bin/euca-upload-bundle", line 214, in main
>> bucket_instance = ensure_bucket(conn, bucket, canned_acl)
>> File "/usr/bin/euca-upload-bundle", line 87, in ensure_bucket
>> bucket_instance = connection.get_bucket(bucket)
>> File "/usr/lib/pymodules/python2.6/boto/s3/connection.py", line 275, in get_bucket
>> rs = bucket.get_all_keys(headers, maxkeys=0)
>> File "/usr/lib/pymodules/python2.6/boto/s3/bucket.py", line 204, in get_all_keys
>> headers=headers, query_args=s)
>> File "/usr/lib/pymodules/python2.6/boto/s3/connection.py", line 342, in make_request
>> data, host, auth_path, sender)
>> File "/usr/lib/pymodules/python2.6/boto/connection.py", line 459, in make_request
>> return self._mexe(method, path, data, headers, host, sender)
>> File "/usr/lib/pymodules/python2.6/boto/connection.py", line 437, in _mexe
>> raise e
>> socket.error: [Errno 111] Connection refused
>> failed to upload bundle to tty_bucket/ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz.manifest.xml
>> failed: euca-upload-bundle --bucket tty_bucket --manifest /tmp/uec-publish-image.MOoajf/ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz.manifest.xml
>> Checking bucket: tty_bucketfailed to upload kernel
>>
>> Thank you.
>> Cheers,
>> Graham
>>
>>

Revision history for this message
Graham Hemingway (graham-hemingway) said :
#3

Vish,

Nevermind. I see that my S3_URL is indeed misconfigured. I was looking in nova.conf not in novarc. I will try again.
Cheers,
   Graham

Revision history for this message
moubariksiham (moubarik-siham) said :
#4

please can you help me I have the same problem,i have changed the S3_URL in novarc and the servcie nova-objectstore is already running