Error: Unable to fetch EC2 credentials

Bug #953530 reported by Joe Gordon
This bug report is a duplicate of:  Bug #952977: Can't fetch EC2 credentials. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Committed
Medium
Jake Dahn

Bug Description

When running the latest horizon in devstack. When trying to download the EC2 Credentials (as admin user in settings/ec2/) I get

"Error: Unable to fetch EC2 credentials" along with a stack trace in the horizon logs

[Mon Mar 12 22:53:24 2012] [error] ERROR:keystoneclient.client:Request returned failure status.
[Mon Mar 12 22:53:24 2012] [error] Traceback (most recent call last):
[Mon Mar 12 22:53:24 2012] [error] File "/opt/stack/python-keystoneclient/keystoneclient/client.py", line 121, in request
[Mon Mar 12 22:53:24 2012] [error] body = json.loads(body)
[Mon Mar 12 22:53:24 2012] [error] File "/usr/lib/python2.7/json/__init__.py", line 326, in loads
....
[Mon Mar 12 22:53:24 2012] [error] result = method(context, **params)
[Mon Mar 12 22:53:24 2012] [error] File "/opt/stack/keystone/keystone/contrib/ec2/core.py", line 211, in create_credential
[Mon Mar 12 22:53:24 2012] [error] if not self._is_admin(context):
[Mon Mar 12 22:53:24 2012] [error] File "/opt/stack/keystone/keystone/contrib/ec2/core.py", line 286, in _is_admin
[Mon Mar 12 22:53:24 2012] [error] self.assert_admin(context)
[Mon Mar 12 22:53:24 2012] [error] File "/opt/stack/keystone/keystone/common/wsgi.py", line 212, in assert_admin
[Mon Mar 12 22:53:24 2012] [error] creds['tenant_id'] = user_token_ref['tenant'].get('id')
[Mon Mar 12 22:53:24 2012] [error] AttributeError: 'NoneType' object has no attribute 'get'
[Mon Mar 12 22:53:24 2012] [error] . (HTTP 500)

Changed in horizon:
assignee: nobody → Jake Dahn (jakedahn)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/5263
Committed: http://github.com/openstack/horizon/commit/7d6089b81a6c91c3e1bf03fdd8c61d4286982eed
Submitter: Jenkins
Branch: master

commit 7d6089b81a6c91c3e1bf03fdd8c61d4286982eed
Author: jakedahn <email address hidden>
Date: Mon Mar 12 20:13:13 2012 -0700

    Updating ec2 credentials verbiage.

      * Makes it more clear that you are also receiving your access
        and secret key in an rc file, instead of just your x509 certs.
      * If user already has ec2 credentials, return them, otherwise create.
        Prior to this fix, every time you downloaded a new bundle, you would get
        a new access/secret key pair.
      * Fixes bug 947647
      * Fixes bug 953530

    Change-Id: Ifdbdf0036bfbaacae2e525fd6791f83aa947f3ff

Changed in horizon:
status: In Progress → Fix Committed
Devin Carlen (devcamcar)
Changed in horizon:
milestone: none → essex-rc1
importance: Undecided → Medium
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.