ec2 credentials create fails in 1.0.0

Bug #1399757 reported by Dean Troyer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
High
Dean Troyer

Bug Description

Release 1.0.0 of python-openstackclient introduces this failure:

  openstack ec2 credentials create
  ERROR: openstack auth_tenant_id

With --debug:

  DEBUG: openstackclient.identity.client Instantiating identity client: <class 'openstackclient.identity.client.IdentityClientv2'>
  DEBUG: openstackclient.identity.client Using auth plugin: None
  ERROR: openstack auth_tenant_id
  Traceback (most recent call last):
    File "/Library/Python/2.7/site-packages/cliff-1.7.0-py2.7.egg/cliff/app.py", line 280, in run_subcommand
      result = cmd.run(parsed_args)
    File "/Library/Python/2.7/site-packages/cliff-1.7.0-py2.7.egg/cliff/display.py", line 91, in run
      column_names, data = self.take_action(parsed_args)
    File "/Users/dtroyer/src/openstack/python-openstackclient/openstackclient/identity/v2_0/ec2creds.py", line 60, in take_action
      project = identity_client.auth_tenant_id
    File "/Users/dtroyer/src/openstack/python-openstackclient/openstackclient/identity/client.py", line 78, in __getattr__
      raise AttributeError(name)
  AttributeError: auth_tenant_id

Revision history for this message
Dean Troyer (dtroyer) wrote :

Retrieving the current authenticated project and user needs to come from client_manager.auth_ref rather than identity_client.

Changed in python-openstackclient:
assignee: nobody → Dean Troyer (dtroyer)
milestone: none → m7
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

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

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

Reviewed: https://review.openstack.org/139729
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=62a2083a785bcfac25b2b7e409e1c7e066f9edff
Submitter: Jenkins
Branch: master

commit 62a2083a785bcfac25b2b7e409e1c7e066f9edff
Author: Dean Troyer <email address hidden>
Date: Fri Dec 5 12:54:19 2014 -0600

    Fix ec2 credentials commands for new auth

    These commands were not updated for the new authentication model.

    Closes-Bug: 1399757

    Change-Id: I5d4beb9d1fa6914fef5e4c7b459cdd967e614b24

Changed in python-openstackclient:
status: In Progress → Fix Committed
Dean Troyer (dtroyer)
Changed in python-openstackclient:
status: Fix Committed → Fix Released
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.