Nova cannot complete DescribeImages with Glance

Asked by Patrick Eads

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", "PATH_INFO": "/", "SERVER_PROTOCOL": "HTTP/1.0", "QUERY_STRING": "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&Signature=nXE8V1OhE0QAGmNcgRdSkFRe236Vl5fNM5Pac%2BzZGx8%3D", "CONTENT_LENGTH": "0", "HTTP_USER_AGENT": "Boto/1.9b (linux2)", "SERVER_NAME": "65.114.169.38", "REMOTE_ADDR": "65.114.169.38", "wsgi.url_scheme": "http", "SERVER_PORT": "8773", "GATEWAY_INTERFACE": "CGI/1.1", "HTTP_ACCEPT_ENCODING": "identity"}
2011-06-23 12:30:36,085 ERROR nova.api [-KWF4W8I72Q-99UUZ21- admin admin] UnknownError: An unknown error has occurred. Please try your request again.
2011-06-23 12:30:36,086 INFO nova.api [-KWF4W8I72Q-99UUZ21- admin admin] 0.325765s 65.114.169.38 GET /services/Cloud/ CloudController:DescribeImages 400 [Boto/1.9b (linux2)] text/plain text/xml
2011-06-23 12:30:43,761 DEBUG nova.auth.manager [-] Looking up user: u'admin' from (pid=18832) authenticate /usr/local/nova/sandbox/nova/nova/auth/manager.py:277
2011-06-23 12:30:43,764 DEBUG nova.auth.manager [-] user: User('admin', 'admin', 'admin', 'admin', True) from (pid=18832) authenticate /usr/local/nova/sandbox/nova/nova/auth/manager.py:279
2011-06-23 12:30:43,772 DEBUG nova.signer [-] using _calc_signature_2 from (pid=18832) _calc_signature_2 /usr/local/nova/sandbox/nova/nova/auth/signer.py:126
2011-06-23 12:30:43,772 DEBUG nova.signer [-] query string: AWSAccessKeyId=admin%3Aadmin&Action=DescribeImages&ExecutableBy.1=self&Owner.1=self&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-06-23T16%3A30%3A43&Version=2009-11-30 from (pid=18832) _calc_signature_2 /usr/local/nova/sandbox/nova/nova/auth/signer.py:142
2011-06-23 12:30:43,773 DEBUG nova.signer [-] string_to_sign: GET
65.114.169.38:8773

Question information

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

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/+question/162526
>
> 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", "PATH_INFO": "/", "SERVER_PROTOCOL": "HTTP/1.0", "QUERY_STRING": "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&Signature=nXE8V1OhE0QAGmNcgRdSkFRe236Vl5fNM5Pac%2BzZGx8%3D", "CONTENT_LENGTH": "0", "HTTP_USER_AGENT": "Boto/1.9b (linux2)", "SERVER_NAME": "65.114.169.38", "REMOTE_ADDR": "65.114.169.38", "wsgi.url_scheme": "http", "SERVER_PORT": "8773", "GATEWAY_INTERFACE": "CGI/1.1", "HTTP_ACCEPT_ENCODING": "identity"}
> 2011-06-23 12:30:36,085 ERROR nova.api [-KWF4W8I72Q-99UUZ21- admin admin] UnknownError: An unknown error has occurred. Please try your request again.
> 2011-06-23 12:30:36,086 INFO nova.api [-KWF4W8I72Q-99UUZ21- admin admin] 0.325765s 65.114.169.38 GET /services/Cloud/ CloudController:DescribeImages 400 [Boto/1.9b (linux2)] text/plain text/xml
> 2011-06-23 12:30:43,761 DEBUG nova.auth.manager [-] Looking up user: u'admin' from (pid=18832) authenticate /usr/local/nova/sandbox/nova/nova/auth/manager.py:277
> 2011-06-23 12:30:43,764 DEBUG nova.auth.manager [-] user: User('admin', 'admin', 'admin', 'admin', True) from (pid=18832) authenticate /usr/local/nova/sandbox/nova/nova/auth/manager.py:279
> 2011-06-23 12:30:43,772 DEBUG nova.signer [-] using _calc_signature_2 from (pid=18832) _calc_signature_2 /usr/local/nova/sandbox/nova/nova/auth/signer.py:126
> 2011-06-23 12:30:43,772 DEBUG nova.signer [-] query string: AWSAccessKeyId=admin%3Aadmin&Action=DescribeImages&ExecutableBy.1=self&Owner.1=self&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-06-23T16%3A30%3A43&Version=2009-11-30 from (pid=18832) _calc_signature_2 /usr/local/nova/sandbox/nova/nova/auth/signer.py:142
> 2011-06-23 12:30:43,773 DEBUG nova.signer [-] string_to_sign: GET
> 65.114.169.38:8773
>
>
> --
> 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
Patrick Eads (peads) said :
#2

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/plain", "SCRIPT_NAME": "/services/Cloud", "HTTP_DATE": "Fri, 24 Jun 2011 12:34:02 GMT", "REQUEST_METHOD": "GET", "HTTP_HOST": "10.0.0.1:8773", "PATH_INFO": "/", "SERVER_PROTOCOL": "HTTP/1.0", "QUERY_STRING": "AWSAccessKeyId=admin%3Aadmin&Action=DescribeImages&Owner.1=self&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-06-24T12%3A34%3A02&Version=2009-11-30&Signature=4wlZaJ5UkO%2BoFUa3HRu2Xd9/9Si7uJR2v9myOxcPWDQ%3D", "CONTENT_LENGTH": "0", "HTTP_USER_AGENT": "Boto/1.9b (linux2)", "SERVER_NAME": "10.0.0.1", "REMOTE_ADDR": "10.0.0.1", "wsgi.url_scheme": "http", "SERVER_PORT": "8773", "GATEWAY_INTERFACE": "CGI/1.1", "HTTP_ACCEPT_ENCODING": "identity"}
2011-06-24 08:34:02,276 ERROR nova.api [LH2TDZX8GR-JSZAWZMWM admin admin] UnknownError: An unknown error has occurred. Please try your request again.
2011-06-24 08:34:02,276 INFO nova.api [LH2TDZX8GR-JSZAWZMWM admin admin] 0.255901s 10.0.0.1 GET /services/Cloud/ CloudController:DescribeImages 400 [Boto/1.9b (linux2)] text/plain text/xml

Revision history for this message
Patrick Eads (peads) said :
#3

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.

Revision history for this message
Best Brian Waldon (bcwaldon) said :
#4

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.

Revision history for this message
Patrick Eads (peads) said :
#5

Thanks!

Revision history for this message
Patrick Eads (peads) said :
#6

Thanks Brian Waldon, that solved my question.