Ask Your Question

Revision history [back]

euca-describe-images does not work

Hi,

I carried out the scripted install

$> wget --no-check-certificate https://github.com/dubsquared/OpenStack-NOVA-Installer-Script/raw/master/nova-CC-install-v1.1.sh $> sudo chmod 755 nova-CC-install-v1.1.sh

and it successfully complete (without finding dnsmasq ... )

then euca-describe-instances silently returns, however, euca-describe-images gives an error shown below:

$> euca-describe-images UnknownError: An unknown error has occurred. Please try your request again. $>

the /var/log/nova/nova-api.log for this entry query and nova.conf have been copy-pasted over here.

Please let me know ff someone is able to locate the mistake/problem

thanks, -upendra

========== nova-api.log =========== 2011-06-30 12:35:50,273 DEBUG nova.auth.manager [-] Looking up user: u'413e67ee-8ad4-4b41-a786-e6aace156613' from (pid=30810) authenticate /usr/lib/pymodules/python2.6/nova/auth/manager.py:277 2011-06-30 12:35:50,279 DEBUG nova.auth.manager [-] user: User('upendra', 'upendra', '413e67ee-8ad4-4b41-a786-e6aace156613', '26b84301-7015-4004-9b56-dd9b7a5b83d4', True) from (pid=30810) authenticate /usr/lib/pymodules/python2.6/nova/auth/manager.py:279 2011-06-30 12:35:50,288 DEBUG nova.signer [-] using _calc_signature_2 from (pid=30810) _calc_signature_2 /usr/lib/pymodules/python2.6/nova/auth/signer.py:126 2011-06-30 12:35:50,288 DEBUG nova.signer [-] query string: AWSAccessKeyId=413e67ee-8ad4-4b41-a786-e6aace156613%3Amyproject&Action=DescribeImages&Owner.1=self&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-06-30T16%3A35%3A50&Version=2009-11-30 from (pid=30810) _calc_signature_2 /usr/lib/pymodules/python2.6/nova/auth/signer.py:142 2011-06-30 12:35:50,289 DEBUG nova.signer [-] string_to_sign: GET 9.59.230.122:8773 /services/Cloud/ AWSAccessKeyId=413e67ee-8ad4-4b41-a786-e6aace156613%3Amyproject&Action=DescribeImages&Owner.1=self&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-06-30T16%3A35%3A50&Version=2009-11-30 from (pid=30810) _calc_signature_2 /usr/lib/pymodules/python2.6/nova/auth/signer.py:144 2011-06-30 12:35:50,289 DEBUG nova.signer [-] len(b64)=44 from (pid=30810) _calc_signature_2 /usr/lib/pymodules/python2.6/nova/auth/signer.py:147 2011-06-30 12:35:50,289 DEBUG nova.signer [-] base64 encoded digest: nigBCZgwtzbVK7T08ksP5Sr5bh14jBoNMaqcMe7aCoA= from (pid=30810) _calc_signature_2 /usr/lib/pymodules/python2.6/nova/auth/signer.py:148 2011-06-30 12:35:50,289 DEBUG nova.auth.manager [-] user.secret: 26b84301-7015-4004-9b56-dd9b7a5b83d4 from (pid=30810) authenticate /usr/lib/pymodules/python2.6/nova/auth/manager.py:322 2011-06-30 12:35:50,290 DEBUG nova.auth.manager [-] expected_signature: nigBCZgwtzbVK7T08ksP5Sr5bh14jBoNMaqcMe7aCoA= from (pid=30810) authenticate /usr/lib/pymodules/python2.6/nova/auth/manager.py:323 2011-06-30 12:35:50,290 DEBUG nova.auth.manager [-] signature: nigBCZgwtzbVK7T08ksP5Sr5bh14jBoNMaqcMe7aCoA= from (pid=30810) authenticate /usr/lib/pymodules/python2.6/nova/auth/manager.py:324 2011-06-30 12:35:50,290 AUDIT nova.api [I3BJRIEJQ2J5-PREFWKM upendra myproject] Authenticated Request For upendra:myproject) 2011-06-30 12:35:50,291 DEBUG nova.api [-] action: DescribeImages from (pid=30810) __call__ /usr/lib/pymodules/python2.6/nova/api/ec2/__init__.py:214 2011-06-30 12:35:50,291 DEBUG nova.api [-] arg: Owner.1 val: self from (pid=30810) __call__ /usr/lib/pymodules/python2.6/nova/api/ec2/__init__.py:216 2011-06-30 12:35:50,292 ERROR nova.api [I3BJRIEJQ2J5-PREFWKM upendra myproject] 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/lib/pymodules/python2.6/nova/api/ec2/__init__.py", line 320, in __call__ (nova.api): TRACE: result = api_request.invoke(context) (nova.api): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/ec2/apirequest.py", line 78, in invoke (nova.api): TRACE: result = method(context, **args) (nova.api): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/ec2/cloud.py", line 1097, in describe_images (nova.api): TRACE: images = self.image_service.detail(context) (nova.api): TRACE: File "/usr/lib/pymodules/python2.6/nova/image/s3.py", line 75, in detail (nova.api): TRACE: return self.service.detail(context) (nova.api): TRACE: File "/usr/lib/pymodules/python2.6/nova/image/glance.py", line 106, in detail (nova.api): TRACE: limit=limit) (nova.api): TRACE: File "/usr/lib/pymodules/python2.6/glance/client.py", line 84, in get_images_detailed (nova.api): TRACE: res = self.do_request("GET", "/images/detail", params=params) (nova.api): TRACE: File "/usr/lib/pymodules/python2.6/glance/client.py", line 54, in do_request (nova.api): TRACE: headers, params) (nova.api): TRACE: File "/usr/lib/pymodules/python2.6/glance/common/client.py", line 148, in do_request (nova.api): TRACE: else: (nova.api): TRACE: ClientConnectionError: Unable to connect to server. Got error: [Errno 111] ECONNREFUSED (nova.api): TRACE: 2011-06-30 12:35:50,293 ERROR nova.api [I3BJRIEJQ2J5-PREFWKM upendra myproject] Environment: {"HTTP_AUTHORIZATION": "AWS 413e67ee-8ad4-4b41-a786-e6aace156613:myproject:hPguJCQnfILtE21NwT4pqTIyCdk=", "CONTENT_TYPE": "text/plain", "SCRIPT_NAME": "/services/Cloud", "HTTP_DATE": "Thu, 30 Jun 2011 16:35:50 GMT", "REQUEST_METHOD": "GET", "HTTP_HOST": "9.59.230.122:8773", "PATH_INFO": "/", "SERVER_PROTOCOL": "HTTP/1.0", "QUERY_STRING": "AWSAccessKeyId=413e67ee-8ad4-4b41-a786-e6aace156613%3Amyproject&Action=DescribeImages&Owner.1=self&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-06-30T16%3A35%3A50&Version=2009-11-30&Signature=nigBCZgwtzbVK7T08ksP5Sr5bh14jBoNMaqcMe7aCoA%3D", "CONTENT_LENGTH": "0", "HTTP_USER_AGENT": "Boto/1.9b (linux2)", "SERVER_NAME": "9.59.230.122", "REMOTE_ADDR": "9.59.230.122", "wsgi.url_scheme": "http", "SERVER_PORT": "8773", "GATEWAY_INTERFACE": "CGI/1.1", "HTTP_ACCEPT_ENCODING": "identity"} 2011-06-30 12:35:50,293 ERROR nova.api [I3BJRIEJQ2J5-PREFWKM upendra myproject] UnknownError: An unknown error has occurred. Please try your request again.

2011-06-30 12:35:50,294 INFO nova.api [I3BJRIEJQ2J5-PREFWKM upendra myproject] 0.20966s 9.59.230.122 GET /services/Cloud/ CloudController:DescribeImages 400 [Boto/1.9b (linux2)] text/plain text/xml

======== nova.conf ========== --dhcpbridge_flagfile=/etc/nova/nova.conf --dhcpbridge=/usr/bin/nova-dhcpbridge --logdir=/var/log/nova --state_path=/var/lib/nova --lock_path=/var/lock/nova --verbose --s3_host=9.59.230.122 --rabbit_host=9.59.230.122 --cc_host=9.59.230.122 --ec2_url=http://9.59.230.122:8773/services/Cloud --fixed_range=9.59.231.200/26 --network_size=32 --FAKE_subdomain=ec2 --routing_source_ip=9.59.230.122 --verbose --sql_connection=mysql://root:nova@9.59.230.122/nova

--network_manager=nova.network.manager.FlatManager