AttributeError: 'Client' object has no attribute 'ec2'

Bug #1236326 reported by Abhijeet Malawade
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Kieran Spear
python-keystoneclient
Fix Released
High
Jamie Lennox
python-openstackclient
Fix Released
Medium
Jamie Lennox

Bug Description

While downloading ec2 credentials file from dashboard, getting 'AttributeError at /project/access_and_security/api_access/ec2/'.

Horizon traceback link : http://paste.openstack.org/show/48015/.

Actual output:
 AttributeError: 'Client' object has no attribute 'ec2'

Expected output:
 EC2 Credentials file should be downloaded.

Changed in horizon:
assignee: nobody → Abhijeet Malawade (abhijeet-malawade)
Revision history for this message
Kieran Spear (kspear) wrote :

keystoneclient doesn't implement the ec2 interface for the v3 API. Keystone itself appears to support it fine.

Changed in horizon:
status: New → Confirmed
Changed in python-keystoneclient:
status: New → Confirmed
Revision history for this message
Kieran Spear (kspear) wrote :

I can work around this in Horizon by creating the CredentialsManager from keystoneclient.v2_0.ec2 directly, but obviously we'd rather not do that. There's nothing v2.0 specific about the manager though from what I can see.

Changed in horizon:
importance: Undecided → High
tags: added: havana-rc-potential
Revision history for this message
Dolph Mathews (dolph) wrote :

It turns out we actually shipped grizzly's v3 pipeline to include both the ec2 and s3 extensions by default (havana does the same), so including the ec2 manager in the v3 client sounds like the correct approach to me.

Changed in python-keystoneclient:
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/50806

Changed in horizon:
assignee: Abhijeet Malawade (abhijeet-malawade) → Kieran Spear (kspear)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-keystoneclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/50810

Changed in python-keystoneclient:
assignee: nobody → Kieran Spear (kspear)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/50806
Committed: http://github.com/openstack/horizon/commit/7187d12a1727b98e91c7d90941de6bd46f098809
Submitter: Jenkins
Branch: master

commit 7187d12a1727b98e91c7d90941de6bd46f098809
Author: Kieran Spear <email address hidden>
Date: Thu Oct 10 13:41:38 2013 +1100

    Add keystoneclient CredentialsManager if missing

    The keystone v3 client doesn't include the 'ec2' manager, even
    though the EC2 API is included in the default pipeline.

    This commit creates the ec2 manager manually if it's missing
    (and necessary). It uses the same call that the client itself
    should have used.

    Change-Id: I83e7bfa04cde5093c10bf2bc27af5ec03da4b48e
    Closes-bug: #1236326

Changed in horizon:
status: In Progress → Fix Committed
Kieran Spear (kspear)
Changed in horizon:
milestone: none → havana-rc2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (milestone-proposed)

Fix proposed to branch: milestone-proposed
Review: https://review.openstack.org/51165

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (milestone-proposed)

Reviewed: https://review.openstack.org/51165
Committed: http://github.com/openstack/horizon/commit/904eebee866e43841b5e267db8ada6e80b4bb365
Submitter: Jenkins
Branch: milestone-proposed

commit 904eebee866e43841b5e267db8ada6e80b4bb365
Author: Kieran Spear <email address hidden>
Date: Thu Oct 10 13:41:38 2013 +1100

    Add keystoneclient CredentialsManager if missing

    The keystone v3 client doesn't include the 'ec2' manager, even
    though the EC2 API is included in the default pipeline.

    This commit creates the ec2 manager manually if it's missing
    (and necessary). It uses the same call that the client itself
    should have used.

    Change-Id: I83e7bfa04cde5093c10bf2bc27af5ec03da4b48e
    Closes-bug: #1236326
    (cherry picked from commit 7187d12a1727b98e91c7d90941de6bd46f098809)

Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
tags: removed: havana-rc-potential
Thierry Carrez (ttx)
Changed in horizon:
milestone: havana-rc2 → 2013.2
Revision history for this message
Dolph Mathews (dolph) wrote :

Unassigning due to inactivity.

Changed in python-keystoneclient:
assignee: Kieran Spear (kspear) → nobody
status: In Progress → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-keystoneclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/187094

Changed in python-keystoneclient:
assignee: nobody → Jamie Lennox (jamielennox)
status: Triaged → In Progress
Changed in python-keystoneclient:
importance: Wishlist → High
milestone: none → 1.6.0
Changed in python-keystoneclient:
assignee: Jamie Lennox (jamielennox) → Morgan Fainberg (mdrnstm)
Changed in python-keystoneclient:
assignee: Morgan Fainberg (mdrnstm) → Jamie Lennox (jamielennox)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-keystoneclient (master)

Reviewed: https://review.openstack.org/187094
Committed: https://git.openstack.org/cgit/openstack/python-keystoneclient/commit/?id=f6ab133f25f00e041cd84aa8bbfb422594d1942f
Submitter: Jenkins
Branch: master

commit f6ab133f25f00e041cd84aa8bbfb422594d1942f
Author: Jamie Lennox <email address hidden>
Date: Mon Jun 1 13:13:38 2015 +1000

    Add EC2 CRUD credential support to v3 API

    The keystone V3 API ships with EC2 in the pipeline by default. The CRUD
    manager is available for the V2 API and we should also make it available
    for v3.

    Change-Id: I635a12b1647d5187ded7d0aea9c0277dfbb15eff
    Closes-Bug: #1236326

Changed in python-keystoneclient:
status: In Progress → Fix Committed
Dean Troyer (dtroyer)
Changed in python-openstackclient:
milestone: none → m12
Revision history for this message
Steve Martinelli (stevemar) wrote :
Changed in python-openstackclient:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Jamie Lennox (jamielennox)
milestone: m12 → m13
Changed in python-keystoneclient:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/187127
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=15d3717e733aec9e8b6526a1abffd62f2da1e32b
Submitter: Jenkins
Branch: master

commit 15d3717e733aec9e8b6526a1abffd62f2da1e32b
Author: Jamie Lennox <email address hidden>
Date: Mon Jun 1 17:43:56 2015 +1000

    Add EC2 support for identity v3 API

    EC2 support is provided for the v2 identity API and is available in
    almost exactly the same format in the v3 API and enabled by default.

    Supporting EC2 in the v3 identity API in OSC will make it much easier to
    transition devstack to a v3 only state.

    Closes-Bug: 1236326

    Change-Id: I52ff2020ef2fcbdc8a98280b73c6fd4a93bc8e0f

Changed in python-openstackclient:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/187854
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=7665d52a0c0643aa6034aa8cf3ae1240c693ca5f
Submitter: Jenkins
Branch: master

commit 7665d52a0c0643aa6034aa8cf3ae1240c693ca5f
Author: Steve Martinelli <email address hidden>
Date: Tue Jun 2 23:38:02 2015 -0400

    Add domain support for ec2creds in v3 identity

    A follow up work item from I52ff2020ef2fcbdc8a98280b73c6fd4a93bc8e0f
    to support domain scoped users and projects for ec2creds in the
    v3 identity api.

    Related-Bug: 1236326

    Change-Id: If4ac5356ade8cff347bb9eb9f88d1ace82bb7275

Changed in python-openstackclient:
milestone: m13 → next-liberty
Changed in python-openstackclient:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-keystoneclient (feature/keystoneauth_integration)

Fix proposed to branch: feature/keystoneauth_integration
Review: https://review.openstack.org/196023

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-keystoneclient (feature/keystoneauth_integration)
Download full text (7.9 KiB)

Reviewed: https://review.openstack.org/196023
Committed: https://git.openstack.org/cgit/openstack/python-keystoneclient/commit/?id=d2b9a9ac018d153f9f740f1e579e9df92d96778d
Submitter: Jenkins
Branch: feature/keystoneauth_integration

commit 2b058baf7be866df60d29cc13554f4715ba63554
Author: OpenStack Proposal Bot <email address hidden>
Date: Mon Jun 22 20:00:20 2015 +0000

    Updated from global requirements

    Change-Id: I5245437065635831c58d6e433d1c5dfe089f0dd0

commit 02f07cfb493b2b81ab4e64d3d674a0ea6af7500b
Author: Steve Martinelli <email address hidden>
Date: Sat Nov 15 05:47:32 2014 -0500

    Add openid connect client support

    This patch allows a federated user to obtain an unscoped token by
    providing login credentials for a keystone identity provider.

    The current implementation should work with any properly configured
    openid connect provider.

    partially implements bp openid-connect

    Change-Id: Iade52b5c1432d64582cbaa8bac41ac6366c210f9

commit 350b7951d07bc088836e1270eeb8284dcdf0b817
Author: Brant Knudson <email address hidden>
Date: Mon Jun 8 21:20:37 2015 -0500

    Stop using tearDown

    tearDown doesn't get called when there's an exception in setUp,
    which can cause issues with test stability and isolation, so
    better to avoid it.

    Change-Id: I5ca2d84bcf82f4c88af26b4c582b0f23264a959c

commit f249332bb61dfa47a77e4b5a0b76581763936680
Author: Brant Knudson <email address hidden>
Date: Sat Jun 13 08:17:20 2015 -0500

    Use mock rather than mox

    Switch to mock rather than mox. We should pick one or the other
    mocking library, and mock is preferred.

    Change-Id: I86ad9638da2f53189fbaea3fd9476356eb0c7ff5

commit 75d4b16eaf5b021e1e6d5d421fafe789736da8c8
Author: Brant Knudson <email address hidden>
Date: Sat Jun 13 09:01:44 2015 -0500

    Remove unused setUp from ClientTest

    The mocking that's done in ClientTest.setUp isn't being used.

    Change-Id: I78e6012c7a26b27a7cc8da36469c5812e91282bf

commit 08783e0fb5e5277e9ac02d7bb94496d7ff4846dd
Author: OpenStack Proposal Bot <email address hidden>
Date: Thu Jun 11 00:48:15 2015 +0000

    Updated from global requirements

    Change-Id: I299a6998ccbe237a244473aff08697c20e606623

commit d99c56fa531ba149df84f7a1178ec9a2a740f1ee
Author: Corey Bryant <email address hidden>
Date: Tue Jun 9 13:42:53 2015 -0400

    Iterate over copy of sys.modules keys in Python2/3

    Iterate over a copy of sys.modules keys in both Python 2.x and
    Python 3.x. In Python 3.x, keys() is not a copy, and therefore
    items can't be popped from it while iterating.

    Change-Id: I98c3d7695bbfe3a6a4f23990af45a07dc147f22f
    Closes-Bug: #1463503

commit 945e5195e8ba7aa53f6fd656aab81ead79d94449
Author: Brant Knudson <email address hidden>
Date: Mon Jun 8 20:58:15 2015 -0500

    Use random strings for test fixtures

    Tests should use a random string so that we don't mistakenly use
    the wrong string and not test what we think we're testing.

    Change-Id: Ied0672db78a1e1cf2d390020cc5a49d0203683be

commit c0046d7d0120ee18aab2f32ac6bdfca724d972ce
...

Read more...

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-keystoneclient (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/212515

Dolph Mathews (dolph)
tags: added: kilo-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-keystoneclient (stable/kilo)

Change abandoned by Steve Martinelli (<email address hidden>) on branch: stable/kilo
Review: https://review.openstack.org/212515
Reason: abandoning since it's been >45 days since a negative review and no change. sorry dolph, this is a feature

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.