local image service fails on uec-publish-tarball

Bug #719002 reported by Kost
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Incomplete
Undecided
Unassigned

Bug Description

I tried all the image_service options, none worked for me. Anyway, the local image service fails on a uec-publish-tarball...

root@island109:/etc/nova# uec-publish-tarball ttylinux-uec-amd64-12.1_2.6.35-22_1.tar.gz mybucket2
Mon Feb 14 16:19:21 EST 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 Feb 14 16:19:21 EST 2011: ====== bundle/upload kernel ======
failed to register ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz.manifest.xml
failed: euca-register mybucket2/ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz.manifest.xml
UnknownError: An unknown error has occurred. Please try your request again.failed to upload kernel
root@island109:/etc/nova# vim /var/log/nova/nova-api.log

--------
from nova-api.py....

 /services/Cloud/
359 AWSAccessKeyId=832adbe6-c64a-488f-9f3a-8679cd740da8%3Aadminproject&Action=RegisterImage&ImageLocation=mybucket2%2Fttylinux-uec-amd64-12.1_ 2.6.35-22_1-vmlinuz.manifest.xml&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-02-14T21%3A19%3A22&Version=2009-11-30 from M ainProcess (pid=22084) _calc_signature_2 /usr/lib/pymodules/python2.6/nova/auth/signer.py:144
360 2011-02-14 16:19:22,587 DEBUG nova.signer [-] len(b64)=44 from MainProcess (pid=22084) _calc_signature_2 /usr/lib/pymodules/python2.6/nova /auth/signer.py:147
361 2011-02-14 16:19:22,587 DEBUG nova.signer [-] base64 encoded digest: V2ZXyehQv3gywXxCzgiWRmsUn3zJBbj4pbOG1IdbVZo= from MainProcess (pid=22 084) _calc_signature_2 /usr/lib/pymodules/python2.6/nova/auth/signer.py:148
362 2011-02-14 16:19:22,588 DEBUG nova.auth.manager [-] user.secret: abe8cdde-afbf-4a58-94c4-3c27b27ab7b6 from MainProcess (pid=22084) authent icate /usr/lib/pymodules/python2.6/nova/auth/manager.py:305
363 2011-02-14 16:19:22,588 DEBUG nova.auth.manager [-] expected_signature: V2ZXyehQv3gywXxCzgiWRmsUn3zJBbj4pbOG1IdbVZo= from MainProcess (pid =22084) authenticate /usr/lib/pymodules/python2.6/nova/auth/manager.py:306
364 2011-02-14 16:19:22,588 DEBUG nova.auth.manager [-] signature: V2ZXyehQv3gywXxCzgiWRmsUn3zJBbj4pbOG1IdbVZo= from MainProcess (pid=22084) a uthenticate /usr/lib/pymodules/python2.6/nova/auth/manager.py:307
365 2011-02-14 16:19:22,596 AUDIT nova.api [N59Y-EI3T4IH6D-XU7-W admin adminproject] Authenticated Request For admin:adminproject)
366 2011-02-14 16:19:22,597 DEBUG nova.api [-] action: RegisterImage from MainProcess (pid=22084) __call__ /usr/lib/pymodules/python2.6/nova/a pi/ec2/__init__.py:211
367 2011-02-14 16:19:22,597 DEBUG nova.api [-] arg: ImageLocation val: mybucket2/ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz.manifest.xm l from MainProcess (pid=22084) __call__ /usr/lib/pymodules/python2.6/nova/api/ec2/__init__.py:213
368 2011-02-14 16:19:22,603 ERROR nova.api [N59Y-EI3T4IH6D-XU7-W admin adminproject] Unexpected error raised: 'LocalImageService' object has n o attribute 'register'
369 (nova.api): TRACE: Traceback (most recent call last):
370 (nova.api): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/ec2/__init__.py", line 316, in __call__
371 (nova.api): TRACE: result = api_request.invoke(context)
372 (nova.api): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/ec2/apirequest.py", line 128, in invoke
373 (nova.api): TRACE: result = method(context, **args)
374 (nova.api): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/ec2/cloud.py", line 874, in register_image
375 (nova.api): TRACE: image_id = self.image_service.register(context, image_location)
376 (nova.api): TRACE: AttributeError: 'LocalImageService' object has no attribute 'register'
377 (nova.api): TRACE:
378 2011-02-14 16:19:22,604 ERROR nova.api [N59Y-EI3T4IH6D-XU7-W admin adminproject] Environment: {"HTTP_AUTHORIZATION": "AWS 832adbe6-c64a-48 8f-9f3a-8679cd740da8:adminproject:nXZA4Uq5ooFhLChQNcUMpPLgep4=", "CONTENT_TYPE": "text/plain", "SCRIPT_NAME": "/services/Cloud", "HTTP_DAT E": "Mon, 14 Feb 2011 21:19:22 GMT", "REQUEST_METHOD": "GET", "HTTP_HOST": "65.123.202.109:8773", "PATH_INFO": "/", "SERVER_PROTOCOL": "HT TP/1.0", "QUERY_STRING": "AWSAccessKeyId=832adbe6-c64a-488f-9f3a-8679cd740da8%3Aadminproject&Action=RegisterImage&ImageLocation=mybucket2% 2Fttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz.manifest.xml&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-02-14T21%3A19%3A22 &Version=2009-11-30&Signature=V2ZXyehQv3gywXxCzgiWRmsUn3zJBbj4pbOG1IdbVZo%3D", "CONTENT_LENGTH": "0", "HTTP_USER_AGENT": "Boto/1.9b (linux 2)", "SERVER_NAME": "65.123.202.109", "REMOTE_ADDR": "65.123.202.109", "wsgi.url_scheme": "http", "SERVER_PORT": "8773", "GATEWAY_INTERFAC E": "CGI/1.1", "HTTP_ACCEPT_ENCODING": "identity"}
379 2011-02-14 16:19:22,604 ERROR nova.api [N59Y-EI3T4IH6D-XU7-W admin adminproject] UnknownError: An unknown error has occurred. Please try y our request again.

Revision history for this message
Jay Pipes (jaypipes) wrote :

If you are using the EC2 API, you need to have FLAGS.image_service = 's3'. No other image service has a "register" method.

This is an issue of having inconsistent image services under the covers in Nova. So, it's still a bug, but I'll just point you to a workaround for now. I'll update the bug description accordingly.

Revision history for this message
Kanthi Kiran N (nkanthikiran) wrote :
Download full text (6.0 KiB)

I am also experiencing the same problem, I am stuck at this point of installation & configuring Nova Compute, I am using openstack for the first time...when can i expect the workaround for this ?

------------------------Command Execution -----------------------------

root@cc:~# uec-publish-tarball ttylinux-uec-amd64-12.1_2.6.35-22_1.tar.gz king-bucket x86_64

Unable to run euca-describe-images. Is euca2ools environment set up?
root@cc:~#

-------------------------------------------------------------------------------------------------------------------

------------------Log file ------------- /var/log/nova/nova-api.log--------------------------

2011-02-15 12:39:59,745 DEBUG nova.auth.manager [-] Looking up user: '0d3e8d67-b3d4-432d-9ba2-5937c2caa4fa' from MainProcess (pid=6293) authenticate /usr/lib/pymodules/python2.6/nova/auth/manager.py:259
2011-02-15 12:39:59,747 DEBUG nova.auth.manager [-] user: User('king', 'king', '0d3e8d67-b3d4-432d-9ba2-5937c2caa4fa', 'c81dfe82-2a28-47be-98a9-dfa2367a3925', True) from MainProcess (pid=6293) authenticate /usr/lib/pymodules/python2.6/nova/auth/manager.py:261
2011-02-15 12:39:59,755 DEBUG nova.signer [-] using _calc_signature_2 from MainProcess (pid=6293) _calc_signature_2 /usr/lib/pymodules/python2.6/nova/auth/signer.py:126
2011-02-15 12:39:59,755 DEBUG nova.signer [-] query string: AWSAccessKeyId=0d3e8d67-b3d4-432d-9ba2-5937c2caa4fa%3Akingcloud&Action=DescribeImages&Owner.1=self&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-02-15T07%3A09%3A59&Version=2009-11-30 from MainProcess (pid=6293) _calc_signature_2 /usr/lib/pymodules/python2.6/nova/auth/signer.py:142
2011-02-15 12:39:59,755 DEBUG nova.signer [-] string_to_sign: GET
192.168.138.100:8773
/services/Cloud/
AWSAccessKeyId=0d3e8d67-b3d4-432d-9ba2-5937c2caa4fa%3Akingcloud&Action=DescribeImages&Owner.1=self&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-02-15T07%3A09%3A59&Version=2009-11-30 from MainProcess (pid=6293) _calc_signature_2 /usr/lib/pymodules/python2.6/nova/auth/signer.py:144
2011-02-15 12:39:59,755 DEBUG nova.signer [-] len(b64)=44 from MainProcess (pid=6293) _calc_signature_2 /usr/lib/pymodules/python2.6/nova/auth/signer.py:147
2011-02-15 12:39:59,755 DEBUG nova.signer [-] base64 encoded digest: GQw5bX6WMF+JzqCo4QyajnrbjowV8AwjsGo5OrrRbvs= from MainProcess (pid=6293) _calc_signature_2 /usr/lib/pymodules/python2.6/nova/auth/signer.py:148
2011-02-15 12:39:59,756 DEBUG nova.auth.manager [-] user.secret: c81dfe82-2a28-47be-98a9-dfa2367a3925 from MainProcess (pid=6293) authenticate /usr/lib/pymodules/python2.6/nova/auth/manager.py:305
2011-02-15 12:39:59,756 DEBUG nova.auth.manager [-] expected_signature: GQw5bX6WMF+JzqCo4QyajnrbjowV8AwjsGo5OrrRbvs= from MainProcess (pid=6293) authenticate /usr/lib/pymodules/python2.6/nova/auth/manager.py:306
2011-02-15 12:39:59,756 DEBUG nova.auth.manager [-] signature: GQw5bX6WMF+JzqCo4QyajnrbjowV8AwjsGo5OrrRbvs= from MainProcess (pid=6293) authenticate /usr/lib/pymodules/python2.6/nova/auth/manager.py:307
2011-02-15 12:39:59,769 AUDIT nova.api [BOH4GI6-H0F0KRENZYYX king kingcloud] Authenticated Request For king:kingcloud)
2011-02-15 12:39:59,769 DEBUG nova.api [...

Read more...

Revision history for this message
Kost (kost-isi) wrote : Re: [Bug 719002] Re: local image service fails on uec-publish-tarball
Download full text (6.1 KiB)

Jay,

I am setting up manual multinode as described here, http://wiki.openstack.org/NovaInstall/MultipleServer. I was pointed to trying image_service = local and image_service = glance, because S3 was failing. See:

http://paste.org/pastebin/view/28876

Is there any documentation on how to use the glance or local image services or aren't they ready yet?

Thanks

----- Original Message -----
From: "Jay Pipes" <email address hidden>
To: <email address hidden>
Sent: Monday, February 14, 2011 4:44:27 PM
Subject: [Bug 719002] Re: local image service fails on uec-publish-tarball

If you are using the EC2 API, you need to have FLAGS.image_service =
's3'. No other image service has a "register" method.

This is an issue of having inconsistent image services under the covers
in Nova. So, it's still a bug, but I'll just point you to a workaround
for now. I'll update the bug description accordingly.

--
You received this bug notification because you are a direct subscriber
of the bug.
https://bugs.launchpad.net/bugs/719002

Title:
  local image service fails on uec-publish-tarball

Status in OpenStack Compute (Nova):
  New

Bug description:
  I tried all the image_service options, none worked for me. Anyway,
  the local image service fails on a uec-publish-tarball...

  root@island109:/etc/nova# uec-publish-tarball ttylinux-uec-amd64-12.1_2.6.35-22_1.tar.gz mybucket2
  Mon Feb 14 16:19:21 EST 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 Feb 14 16:19:21 EST 2011: ====== bundle/upload kernel ======
  failed to register ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz.manifest.xml
  failed: euca-register mybucket2/ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz.manifest.xml
  UnknownError: An unknown error has occurred. Please try your request again.failed to upload kernel
  root@island109:/etc/nova# vim /var/log/nova/nova-api.log

  --------
  from nova-api.py....

   /services/Cloud/
  359 AWSAccessKeyId=832adbe6-c64a-488f-9f3a-8679cd740da8%3Aadminproject&Action=RegisterImage&ImageLocation=mybucket2%2Fttylinux-uec-amd64-12.1_ 2.6.35-22_1-vmlinuz.manifest.xml&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-02-14T21%3A19%3A22&Version=2009-11-30 from M ainProcess (pid=22084) _calc_signature_2 /usr/lib/pymodules/python2.6/nova/auth/signer.py:144
  360 2011-02-14 16:19:22,587 DEBUG nova.signer [-] len(b64)=44 from MainProcess (pid=22084) _calc_signature_2 /usr/lib/pymodules/python2.6/nova /auth/signer.py:147
  361 2011-02-14 16:19:22,587 DEBUG nova.signer [-] base64 encoded digest: V2ZXyehQv3gywXxCzgiWRmsUn3zJBbj4pbOG1IdbVZo= from MainProcess (pid=22 084) _calc_signature_2 /usr/lib/pymodules/python2.6/nova/auth/signer.py:148
  362 2011-02-14 16:19:22,588 DEBUG nova.auth.manager [-] user.secret: abe8cdde-afbf-4a58-94c4-3c27b27ab7b6 from MainProcess (pid=22084) authent icate /usr/lib/pymodules/python2.6/nova/auth/manager.py:305
  363 2011-02-14 16:19:22,588 DEBUG nova.auth.manager [-] expected_signature: V2ZXyehQv3gywXxCzgiWRmsUn3zJBbj4pbOG1IdbVZo= from MainProcess (pid =22084) auth...

Read more...

Revision history for this message
Christian Berendt (berendt) wrote :

Your pasted logging looks like bug #719093. Please apply the commited patch in bug #719093 and retry it...

Thierry Carrez (ttx)
Changed in nova:
status: New → Incomplete
Revision history for this message
Kost (kost-isi) wrote :
Download full text (5.6 KiB)

That fixed the problem. Thanks.

----- Original Message -----
From: "Christian Berendt" <email address hidden>
To: <email address hidden>
Sent: Tuesday, February 15, 2011 8:36:36 AM
Subject: [Bug 719002] Re: local image service fails on uec-publish-tarball

Your pasted logging looks like bug #719093. Please apply the commited
patch in bug #719093 and retry it...

--
You received this bug notification because you are a direct subscriber
of the bug.
https://bugs.launchpad.net/bugs/719002

Title:
  local image service fails on uec-publish-tarball

Status in OpenStack Compute (Nova):
  New

Bug description:
  I tried all the image_service options, none worked for me. Anyway,
  the local image service fails on a uec-publish-tarball...

  root@island109:/etc/nova# uec-publish-tarball ttylinux-uec-amd64-12.1_2.6.35-22_1.tar.gz mybucket2
  Mon Feb 14 16:19:21 EST 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 Feb 14 16:19:21 EST 2011: ====== bundle/upload kernel ======
  failed to register ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz.manifest.xml
  failed: euca-register mybucket2/ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz.manifest.xml
  UnknownError: An unknown error has occurred. Please try your request again.failed to upload kernel
  root@island109:/etc/nova# vim /var/log/nova/nova-api.log

  --------
  from nova-api.py....

   /services/Cloud/
  359 AWSAccessKeyId=832adbe6-c64a-488f-9f3a-8679cd740da8%3Aadminproject&Action=RegisterImage&ImageLocation=mybucket2%2Fttylinux-uec-amd64-12.1_ 2.6.35-22_1-vmlinuz.manifest.xml&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-02-14T21%3A19%3A22&Version=2009-11-30 from M ainProcess (pid=22084) _calc_signature_2 /usr/lib/pymodules/python2.6/nova/auth/signer.py:144
  360 2011-02-14 16:19:22,587 DEBUG nova.signer [-] len(b64)=44 from MainProcess (pid=22084) _calc_signature_2 /usr/lib/pymodules/python2.6/nova /auth/signer.py:147
  361 2011-02-14 16:19:22,587 DEBUG nova.signer [-] base64 encoded digest: V2ZXyehQv3gywXxCzgiWRmsUn3zJBbj4pbOG1IdbVZo= from MainProcess (pid=22 084) _calc_signature_2 /usr/lib/pymodules/python2.6/nova/auth/signer.py:148
  362 2011-02-14 16:19:22,588 DEBUG nova.auth.manager [-] user.secret: abe8cdde-afbf-4a58-94c4-3c27b27ab7b6 from MainProcess (pid=22084) authent icate /usr/lib/pymodules/python2.6/nova/auth/manager.py:305
  363 2011-02-14 16:19:22,588 DEBUG nova.auth.manager [-] expected_signature: V2ZXyehQv3gywXxCzgiWRmsUn3zJBbj4pbOG1IdbVZo= from MainProcess (pid =22084) authenticate /usr/lib/pymodules/python2.6/nova/auth/manager.py:306
  364 2011-02-14 16:19:22,588 DEBUG nova.auth.manager [-] signature: V2ZXyehQv3gywXxCzgiWRmsUn3zJBbj4pbOG1IdbVZo= from MainProcess (pid=22084) a uthenticate /usr/lib/pymodules/python2.6/nova/auth/manager.py:307
  365 2011-02-14 16:19:22,596 AUDIT nova.api [N59Y-EI3T4IH6D-XU7-W admin adminproject] Authenticated Request For admin:adminproject)
  366 2011-02-14 16:19:22,597 DEBUG nova.api [-] action: RegisterImage from MainProcess (pid=22084) __call__ /usr/lib/pymodules/py...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.