Ask Your Question

'S3ResponseError: 404 Not Found' on euca-register attempt

asked 2011-07-21 21:56:00 -0500


We are using Openstack for the first time, and attempting to get it functioning on a recent install of CentOS 6.0 (two machines in use: one Compute host with openstack-nova-compute, and one Controller host running openstack-nova-objectstore, openstack-nova-api, openstack-nova-directapi, openstack-nova-scheduler, and openstack-nova-vncproxy). An interesting bit of trouble is presented when trying to register an image via 'euca-register' on either the Compute or Controller hosts:

/usr/bin/euca-bundle-image -i ./vmlinuz-2.6.28-11-generic --kernel true Checking image Encrypting image Splitting image... Part: vmlinuz-2.6.28-11-generic.part.00 Generating manifest /tmp/vmlinuz-2.6.28-11-generic.manifest.xml

euca-upload-bundle -b newbucket -m /tmp/vmlinuz-2.6.28-11-generic.manifest.xml Checking bucket: newbucket Creating bucket: newbucket Uploading manifest file Uploading part: vmlinuz-2.6.28-11-generic.part.00 Uploaded image as newbucket/vmlinuz-2.6.28-11-generic.manifest.xml

euca-register newbucket/vmlinux-2.6.28-generic.manifest.xml UnknownError: An unknown error has occurred. Please try your request again.

The 'nova-api.log' on the Controller indicates the following:

2011-07-21 09:46:28,325 nova.auth.manager: Looking up user: 'removedfromlog' 2011-07-21 09:46:28,336 nova.auth.manager: user: User('test_user1', 'test_user1', 'removedfromlog', 'removedfromlog', True) 2011-07-21 09:46:28,357 nova.signer: using _calc_signature_2 2011-07-21 09:46:28,358 nova.signer: query string: AWSAccessKeyId=removedfromlog%3Atest_project1&Action=RegisterImage&ImageLocation=newbucket%2Fvmlinux-2.6.28-generic.manifest.xml&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-07-21T15%3A46%3A28&Version=2009-11-30 2011-07-21 09:46:28,359 nova.signer: string_to_sign: GET /services/Cloud/ AWSAccessKeyId=removedfromlog%3Atest_project1&Action=RegisterImage&ImageLocation=newbucket%2Fvmlinux-2.6.28-generic.manifest.xml&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-07-21T15%3A46%3A28&Version=2009-11-30 2011-07-21 09:46:28,359 nova.signer: len(b64)=44 2011-07-21 09:46:28,359 nova.signer: base64 encoded digest: removedfromlog 2011-07-21 09:46:28,360 nova.auth.manager: user.secret: removedfromlog 2011-07-21 09:46:28,360 nova.auth.manager: expected_signature: removedfromlog 2011-07-21 09:46:28,360 nova.auth.manager: signature:removedfromlog 2011-07-21 09:46:28,385 nova.api: AUDIT [removedfromlog test_user1 test_project1] Authenticated Request For test_user1:test_project1) 2011-07-21 09:46:28,386 nova.api: action: RegisterImage 2011-07-21 09:46:28,386 nova.api: arg: ImageLocation val: newbucket/vmlinux-2.6.28-generic.manifest.xml 2011-07-21 09:46:28,437 nova.api: ERROR [removedfromlog test_user1 test_project1] Unexpected error raised: S3ResponseError: 404 Not Found (nova.api): TRACE: Traceback (most recent call last): (nova.api): TRACE: File "/usr/lib/python2.6/site-packages/nova/api/ec2/", line 321, in __call__ (nova.api): TRACE: result = api_request.invoke(context) (nova.api): TRACE: File "/usr/lib/python2.6/site-packages/nova/api/ec2/", line 150, in invoke (nova.api): TRACE: result = method(context, **args) (nova.api): TRACE: File "/usr/lib/python2.6/site-packages/nova/api/ec2/", line 977, in register_image (nova.api): TRACE: image = self.image_service.create(context, metadata) (nova.api): TRACE: File "/usr/lib/python2.6/site-packages/nova/image/", line 58, in create (nova.api): TRACE: image = self._s3_create(context, metadata) (nova.api): TRACE: File "/usr/lib/python2.6/site-packages/nova/image/", line 112, in _s3_create (nova ... (more)

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2011-07-21 22:06:16 -0500

Quick typo:

euca-register newbucket/vmlinux-2.6.28-generic.manifest.xml

should be:

euca-register newbucket/vmlinux-2.6.28-11-generic.manifest.xml

(as per Generating "manifest /tmp/vmlinuz-2.6.28-11-generic.manifest.xml")

edit flag offensive delete link more

answered 2011-07-21 22:13:37 -0500

cthier gravatar image

Moved question to the Nova queue

edit flag offensive delete link more

answered 2011-07-22 21:26:32 -0500

We were able to get the image registered and spin it up - pretty sure it was just a typo on our side.

euca-register -n vmlinuz-2.6.28-11-generic -a x86_64 -A removedfromlog:test_project1 -S removedfromlog -U --debug newbucket/vmlinuz-2.6.28-11-generic.manifest.xml

IMAGE aki-39bee40f

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2011-07-21 21:56:00 -0500

Seen: 59 times

Last updated: Jul 22 '11