Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error: Invalid signature for user admin

I am getting the following error, when I try to start an instance. I created a new user using "nova-manage user" and sourced the right novarc, but I get the same error.

root@cloud-openstack2:~/openstack/nova# euca-run-instances -k os2 -s m1.tiny ami-00000003 Warning: failed to parse error message from AWS: <unknown>:1:0: syntax error BotoServerError: 500 Internal Server Error Traceback (most recent call last): File "/usr/lib/python2.6/dist-packages/eventlet/wsgi.py", line 336, in handle_one_response result = self.application(self.environ, start_response) File "/usr/lib/pymodules/python2.6/paste/urlmap.py", line 203, in __call__ return app(environ, start_response) File "/usr/lib/pymodules/python2.6/webob/dec.py", line 147, in __call__ resp = self.call_func(req, args, *self.kwargs) File "/usr/lib/pymodules/python2.6/webob/dec.py", line 208, in call_func return self.func(req, args, *kwargs) File "/home/cloud/openstack/nova/nova/api/ec2/__init__.py", line 57, in __call__ rv = req.get_response(self.application) File "/usr/lib/pymodules/python2.6/webob/request.py", line 1053, in get_response application, catch_exc_info=False) File "/usr/lib/pymodules/python2.6/webob/request.py", line 1022, in call_application app_iter = application(self.environ, start_response) File "/usr/lib/pymodules/python2.6/webob/dec.py", line 147, in __call__ resp = self.call_func(req, args, *self.kwargs) File "/usr/lib/pymodules/python2.6/webob/dec.py", line 208, in call_func return self.func(req, args, *kwargs) File "/home/cloud/openstack/nova/nova/api/ec2/__init__.py", line 167, in __call__ req.path) File "/home/cloud/openstack/nova/nova/auth/manager.py", line 338, in authenticate user=user) InvalidSignature: Invalid signature GD6f2+326LeD21osVQL4Lbrch/Y3dtLW00lweR83QE0= for user User('admin', 'admin', 'admin', 'admin', True).

From nova-api:

2011-08-24 11:41:29,870 DEBUG nova.auth.manager [-] Looking up user: u'admin' from (pid=8130) authenticate /home/cloud/openstack/nova/nova/auth/manager.py:277 2011-08-24 11:41:29,876 DEBUG nova.auth.manager [-] user: User('admin', 'admin', 'admin', 'admin', True) from (pid=8130) authenticate /home/cloud/openstack/nova/nova/auth/manager.py:279 2011-08-24 11:41:29,890 DEBUG nova.signer [-] using _calc_signature_2 from (pid=8130) _calc_signature_2 /home/cloud/openstack/nova/nova/auth/signer.py:126 2011-08-24 11:41:29,890 DEBUG nova.signer [-] query string: AWSAccessKeyId=admin%3Aadmin&Action=RunInstances&ImageId=ami-00000003&InstanceType=m1.small&KeyName=os2&MaxCount=1&MinCount=1&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-08-24T18%3A40%3A58&Version=2009-11-30 from (pid=8130) _calc_signature_2 /home/cloud/openstack/nova/nova/auth/signer.py:142 2011-08-24 11:41:29,890 DEBUG nova.signer [-] string_to_sign: POST 192.168.1.199:8773 /services/Cloud/ AWSAccessKeyId=admin%3Aadmin&Action=RunInstances&ImageId=ami-00000003&InstanceType=m1.small&KeyName=os2&MaxCount=1&MinCount=1&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-08-24T18%3A40%3A58&Version=2009-11-30 from (pid=8130) _calc_signature_2 /home/cloud/openstack/nova/nova/auth/signer.py:144 2011-08-24 11:41:29,890 DEBUG nova.signer [-] len(b64)=44 from (pid=8130) _calc_signature_2 /home/cloud/openstack/nova/nova/auth/signer.py:147 2011-08-24 11:41:29,891 DEBUG nova.signer [-] base64 encoded digest: BiyIWuIYolAXxe5uU/xAiuQGiAZqHJkHDKdXEQ8uw1A= from (pid=8130) _calc_signature_2 /home/cloud/openstack/nova/nova/auth/signer.py:148 2011-08-24 11:41:29,891 DEBUG nova.auth.manager [-] user.secret: admin from (pid=8130) authenticate /home/cloud/openstack/nova/nova/auth/manager.py:322 2011-08-24 11:41:29,891 DEBUG nova.auth.manager [-] expected_signature: BiyIWuIYolAXxe5uU/xAiuQGiAZqHJkHDKdXEQ8uw1A= from (pid=8130) authenticate /home/cloud/openstack/nova/nova/auth/manager.py:323 2011-08-24 11:41:29,891 DEBUG nova.auth.manager [-] signature: GD6f2+326LeD21osVQL4Lbrch/Y3dtLW00lweR83QE0= from (pid=8130) authenticate /home/cloud/openstack/nova/nova/auth/manager.py:324 2011-08-24 11:41:29,891 DEBUG nova.signer [-] using _calc_signature_2 from (pid=8130) _calc_signature_2 /home/cloud/openstack/nova/nova/auth/signer.py:126 2011-08-24 11:41:29,891 DEBUG nova.signer [-] query string: AWSAccessKeyId=admin%3Aadmin&Action=RunInstances&ImageId=ami-00000003&InstanceType=m1.small&KeyName=os2&MaxCount=1&MinCount=1&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-08-24T18%3A40%3A58&Version=2009-11-30 from (pid=8130) _calc_signature_2 /home/cloud/openstack/nova/nova/auth/signer.py:142 2011-08-24 11:41:29,891 DEBUG nova.signer [-] string_to_sign: POST 192.168.1.199 /services/Cloud/ AWSAccessKeyId=admin%3Aadmin&Action=RunInstances&ImageId=ami-00000003&InstanceType=m1.small&KeyName=os2&MaxCount=1&MinCount=1&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-08-24T18%3A40%3A58&Version=2009-11-30 from (pid=8130) _calc_signature_2 /home/cloud/openstack/nova/nova/auth/signer.py:144 2011-08-24 11:41:29,892 DEBUG nova.signer [-] len(b64)=44 from (pid=8130) _calc_signature_2 /home/cloud/openstack/nova/nova/auth/signer.py:147 2011-08-24 11:41:29,892 DEBUG nova.signer [-] base64 encoded digest: ev9xPSbl4ZM02lMgZVikJs1kCSuksEaqn3gKkXs0UyY= from (pid=8130) _calc_signature_2 /home/cloud/openstack/nova/nova/auth/signer.py:148 2011-08-24 11:41:29,892 DEBUG nova.auth.manager [-] host_only_signature: ev9xPSbl4ZM02lMgZVikJs1kCSuksEaqn3gKkXs0UyY= from (pid=8130) authenticate /home/cloud/openstack/nova/nova/auth/manager.py:333 2011-08-24 11:41:29,892 AUDIT nova.auth.manager [-] Invalid signature for user admin