Nova cannot complete DescribeImages with Glance

asked 2011-06-23 20:15:07 -0500

peads gravatar image

I am unable to get an install of Nova to correctly interface with Glance. I have, however, had this setup work in the past.

Here is the DEBUG info:

/services/Cloud/ AWSAccessKeyId=admin%3Aadmin&Action=DescribeImages&ExecutableBy.1=self&Owner.1=self&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-06-23T16%3A30%3A35&Version=2009-11-30 from (pid=18832) _calc_signature_2 /usr/local/nova/sandbox/nova/nova/auth/signer.py:144 2011-06-23 12:30:36,047 DEBUG nova.signer [-] len(b64)=44 from (pid=18832) _calc_signature_2 /usr/local/nova/sandbox/nova/nova/auth/signer.py:147 2011-06-23 12:30:36,048 DEBUG nova.signer [-] base64 encoded digest: nXE8V1OhE0QAGmNcgRdSkFRe236Vl5fNM5Pac+zZGx8= from (pid=18832) _calc_signature_2 /usr/local/nova/sandbox/nova/nova/auth/signer.py:148 2011-06-23 12:30:36,048 DEBUG nova.auth.manager [-] user.secret: admin from (pid=18832) authenticate /usr/local/nova/sandbox/nova/nova/auth/manager.py:322 2011-06-23 12:30:36,048 DEBUG nova.auth.manager [-] expected_signature: nXE8V1OhE0QAGmNcgRdSkFRe236Vl5fNM5Pac+zZGx8= from (pid=18832) authenticate /usr/local/nova/sandbox/nova/nova/auth/manager.py:323 2011-06-23 12:30:36,048 DEBUG nova.auth.manager [-] signature: nXE8V1OhE0QAGmNcgRdSkFRe236Vl5fNM5Pac+zZGx8= from (pid=18832) authenticate /usr/local/nova/sandbox/nova/nova/auth/manager.py:324 2011-06-23 12:30:36,048 AUDIT nova.api [-KWF4W8I72Q-99UUZ21- admin admin] Authenticated Request For admin:admin) 2011-06-23 12:30:36,049 DEBUG nova.api [-] action: DescribeImages from (pid=18832) __call__ /usr/local/nova/sandbox/nova/nova/api/ec2/__init__.py:214 2011-06-23 12:30:36,049 DEBUG nova.api [-] arg: Owner.1 val: self from (pid=18832) __call__ /usr/local/nova/sandbox/nova/nova/api/ec2/__init__.py:216 2011-06-23 12:30:36,049 DEBUG nova.api [-] arg: ExecutableBy.1 val: self from (pid=18832) __call__ /usr/local/nova/sandbox/nova/nova/api/ec2/__init__.py:216 2011-06-23 12:30:36,050 ERROR nova.api [-KWF4W8I72Q-99UUZ21- admin admin] Unexpected error raised: get_images_detailed() got an unexpected keyword argument 'filters' (nova.api): TRACE: Traceback (most recent call last): (nova.api): TRACE: File "/usr/local/nova/sandbox/nova/nova/api/ec2/__init__.py", line 320, in __call__ (nova.api): TRACE: result = api_request.invoke(context) (nova.api): TRACE: File "/usr/local/nova/sandbox/nova/nova/api/ec2/apirequest.py", line 150, in invoke (nova.api): TRACE: result = method(context, **args) (nova.api): TRACE: File "/usr/local/nova/sandbox/nova/nova/api/ec2/cloud.py", line 1071, in describe_images (nova.api): TRACE: images = self.image_service.detail(context) (nova.api): TRACE: File "/usr/local/nova/sandbox/nova/nova/image/s3.py", line 75, in detail (nova.api): TRACE: return self.service.detail(context) (nova.api): TRACE: File "/usr/local/nova/sandbox/nova/nova/image/glance.py", line 106, in detail (nova.api): TRACE: limit=limit) (nova.api): TRACE: TypeError: get_images_detailed() got an unexpected keyword argument 'filters' (nova.api): TRACE: 2011-06-23 12:30:36,085 ERROR nova.api [-KWF4W8I72Q-99UUZ21- admin admin] Environment: {"HTTP_AUTHORIZATION": "AWS admin:admin:okGpRyX3nAdnhSLo/XztHTXePVE=", "CONTENT_TYPE": "text/plain", "SCRIPT_NAME": "/services/Cloud", "HTTP_DATE": "Thu, 23 Jun 2011 16:30:35 GMT", "REQUEST_METHOD": "GET", "HTTP_HOST": "65.114.169.38:8773 ... (more)

edit retag flag offensive close merge delete

6 answers

Sort by ยป oldest newest most voted
0

answered 2011-06-27 15:05:48 -0500

Sorry about that, Patrick. The documentation definitely needs to be updated. We've had a lot of questions about this. I'm going to mark this question answered and link a bug in openstack-manuals.

edit flag offensive delete link more
0

answered 2011-06-27 16:23:05 -0500

peads gravatar image

Thanks!

edit flag offensive delete link more
0

answered 2011-06-27 16:39:57 -0500

peads gravatar image

Thanks Brian Waldon, that solved my question.

edit flag offensive delete link more
0

answered 2011-06-23 20:38:20 -0500

vishvananda gravatar image

This is due running an old version of glance client. You need to get the new version from trunk, pypi, or milestone ppa Vish

On Jun 23, 2011, at 1:15 PM, Patrick Eads wrote:

New question #162526 on OpenStack Compute (nova): https://answers.launchpad.net/nova/+q...

I am unable to get an install of Nova to correctly interface with Glance. I have, however, had this setup work in the past.

Here is the DEBUG info:

/services/Cloud/ AWSAccessKeyId=admin%3Aadmin&Action=DescribeImages&ExecutableBy.1=self&Owner.1=self&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-06-23T16%3A30%3A35&Version=2009-11-30 from (pid=18832) _calc_signature_2 /usr/local/nova/sandbox/nova/nova/auth/signer.py:144 2011-06-23 12:30:36,047 DEBUG nova.signer [-] len(b64)=44 from (pid=18832) _calc_signature_2 /usr/local/nova/sandbox/nova/nova/auth/signer.py:147 2011-06-23 12:30:36,048 DEBUG nova.signer [-] base64 encoded digest: nXE8V1OhE0QAGmNcgRdSkFRe236Vl5fNM5Pac+zZGx8= from (pid=18832) _calc_signature_2 /usr/local/nova/sandbox/nova/nova/auth/signer.py:148 2011-06-23 12:30:36,048 DEBUG nova.auth.manager [-] user.secret: admin from (pid=18832) authenticate /usr/local/nova/sandbox/nova/nova/auth/manager.py:322 2011-06-23 12:30:36,048 DEBUG nova.auth.manager [-] expected_signature: nXE8V1OhE0QAGmNcgRdSkFRe236Vl5fNM5Pac+zZGx8= from (pid=18832) authenticate /usr/local/nova/sandbox/nova/nova/auth/manager.py:323 2011-06-23 12:30:36,048 DEBUG nova.auth.manager [-] signature: nXE8V1OhE0QAGmNcgRdSkFRe236Vl5fNM5Pac+zZGx8= from (pid=18832) authenticate /usr/local/nova/sandbox/nova/nova/auth/manager.py:324 2011-06-23 12:30:36,048 AUDIT nova.api [-KWF4W8I72Q-99UUZ21- admin admin] Authenticated Request For admin:admin) 2011-06-23 12:30:36,049 DEBUG nova.api [-] action: DescribeImages from (pid=18832) __call__ /usr/local/nova/sandbox/nova/nova/api/ec2/__init__.py:214 2011-06-23 12:30:36,049 DEBUG nova.api [-] arg: Owner.1 val: self from (pid=18832) __call__ /usr/local/nova/sandbox/nova/nova/api/ec2/__init__.py:216 2011-06-23 12:30:36,049 DEBUG nova.api [-] arg: ExecutableBy.1 val: self from (pid=18832) __call__ /usr/local/nova/sandbox/nova/nova/api/ec2/__init__.py:216 2011-06-23 12:30:36,050 ERROR nova.api [-KWF4W8I72Q-99UUZ21- admin admin] Unexpected error raised: get_images_detailed() got an unexpected keyword argument 'filters' (nova.api): TRACE: Traceback (most recent call last): (nova.api): TRACE: File "/usr/local/nova/sandbox/nova/nova/api/ec2/__init__.py", line 320, in __call__ (nova.api): TRACE: result = api_request.invoke(context) (nova.api): TRACE: File "/usr/local/nova/sandbox/nova/nova/api/ec2/apirequest.py", line 150, in invoke (nova.api): TRACE: result = method(context, **args) (nova.api): TRACE: File "/usr/local/nova/sandbox/nova/nova/api/ec2/cloud.py", line 1071, in describe_images (nova.api): TRACE: images = self.image_service.detail(context) (nova.api): TRACE: File "/usr/local/nova/sandbox/nova/nova/image/s3.py", line 75, in detail (nova.api): TRACE: return self.service.detail(context) (nova.api): TRACE: File "/usr/local/nova/sandbox/nova/nova/image/glance.py", line 106, in detail (nova.api): TRACE: limit=limit) (nova.api): TRACE: TypeError: get_images_detailed() got an ...

(more)
edit flag offensive delete link more
0

answered 2011-06-24 12:37:03 -0500

peads gravatar image

Same problem, different box. Both Nova and Glance are 2011.3.

/services/Cloud/ AWSAccessKeyId=admin%3Aadmin&Action=DescribeImages&Owner.1=self&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-06-24T12%3A34%3A02&Version=2009-11-30 from (pid=15757) _calc_signature_2 /usr/bin/nova/nova/auth/signer.py:144 2011-06-24 08:34:02,272 DEBUG nova.signer [-] len(b64)=44 from (pid=15757) _calc_signature_2 /usr/bin/nova/nova/auth/signer.py:147 2011-06-24 08:34:02,272 DEBUG nova.signer [-] base64 encoded digest: 4wlZaJ5UkO+oFUa3HRu2Xd9/9Si7uJR2v9myOxcPWDQ= from (pid=15757) _calc_signature_2 /usr/bin/nova/nova/auth/signer.py:148 2011-06-24 08:34:02,272 DEBUG nova.auth.manager [-] user.secret: admin from (pid=15757) authenticate /usr/bin/nova/nova/auth/manager.py:322 2011-06-24 08:34:02,272 DEBUG nova.auth.manager [-] expected_signature: 4wlZaJ5UkO+oFUa3HRu2Xd9/9Si7uJR2v9myOxcPWDQ= from (pid=15757) authenticate /usr/bin/nova/nova/auth/manager.py:323 2011-06-24 08:34:02,272 DEBUG nova.auth.manager [-] signature: 4wlZaJ5UkO+oFUa3HRu2Xd9/9Si7uJR2v9myOxcPWDQ= from (pid=15757) authenticate /usr/bin/nova/nova/auth/manager.py:324 2011-06-24 08:34:02,273 AUDIT nova.api [LH2TDZX8GR-JSZAWZMWM admin admin] Authenticated Request For admin:admin) 2011-06-24 08:34:02,273 DEBUG nova.api [-] action: DescribeImages from (pid=15757) __call__ /usr/bin/nova/nova/api/ec2/__init__.py:214 2011-06-24 08:34:02,273 DEBUG nova.api [-] arg: Owner.1 val: self from (pid=15757) __call__ /usr/bin/nova/nova/api/ec2/__init__.py:216 2011-06-24 08:34:02,274 ERROR nova.api [LH2TDZX8GR-JSZAWZMWM admin admin] Unexpected error raised: Unable to connect to server. Got error: [Errno 111] ECONNREFUSED (nova.api): TRACE: Traceback (most recent call last): (nova.api): TRACE: File "/usr/bin/nova/nova/api/ec2/__init__.py", line 320, in __call__ (nova.api): TRACE: result = api_request.invoke(context) (nova.api): TRACE: File "/usr/bin/nova/nova/api/ec2/apirequest.py", line 78, in invoke (nova.api): TRACE: result = method(context, **args) (nova.api): TRACE: File "/usr/bin/nova/nova/api/ec2/cloud.py", line 1097, in describe_images (nova.api): TRACE: images = self.image_service.detail(context) (nova.api): TRACE: File "/usr/bin/nova/nova/image/s3.py", line 75, in detail (nova.api): TRACE: return self.service.detail(context) (nova.api): TRACE: File "/usr/bin/nova/nova/image/glance.py", line 106, in detail (nova.api): TRACE: limit=limit) (nova.api): TRACE: File "/usr/local/lib/python2.7/dist-packages/glance-2011.3-py2.7.egg/glance/client.py", line 246, in get_images_detailed (nova.api): TRACE: res = self.do_request("GET", "/images/detail", params=params) (nova.api): TRACE: File "/usr/local/lib/python2.7/dist-packages/glance-2011.3-py2.7.egg/glance/client.py", line 210, in do_request (nova.api): TRACE: headers, params) (nova.api): TRACE: File "/usr/local/lib/python2.7/dist-packages/glance-2011.3-py2.7.egg/glance/client.py", line 174, in do_request (nova.api): TRACE: "server. Got error: %s" % e) (nova.api): TRACE: ClientConnectionError: Unable to connect to server. Got error: [Errno 111] ECONNREFUSED (nova.api): TRACE: 2011-06-24 08:34:02,276 ERROR nova.api [LH2TDZX8GR-JSZAWZMWM admin admin] Environment: {"HTTP_AUTHORIZATION": "AWS admin:admin:FB/JA4F8AoOuQAe5VGldMtlm0AA=", "CONTENT_TYPE": "text ... (more)

edit flag offensive delete link more
0

answered 2011-06-27 13:40:40 -0500

peads gravatar image

changed the flags:

--glance_host=<glance_host> --glance_port=<glance_port>

to:

--glance_api_servers=<glance_host>:<glance_port>

in the nova.conf, seemingly fixing the issue, but still unsure as to why there are multiple and/or undocumented flags.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-06-23 20:15:07 -0500

Seen: 23 times

Last updated: Jun 27 '11