auth with os-token fails with unexpected keyword argument 'user_domain_id'

Bug #1418810 reported by Igor Bolotin
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
High
Igor Bolotin

Bug Description

when using --os-token for authentication instead of username/password - getting errors:

TypeError: __init__() got an unexpected keyword argument 'user_domain_id'
ERROR: openstackclient.shell Traceback (most recent call last):
  File "/Users/igor_bolotin/work/openstack/python-openstackclient/openstackclient/shell.py", line 178, in run
    return super(OpenStackShell, self).run(argv)
  File "/Users/igor_bolotin/work/openstack/python-openstackclient/.tox/py27/lib/python2.7/site-packages/cliff/app.py", line 199, in run
    self.initialize_app(remainder)
  File "/Users/igor_bolotin/work/openstack/python-openstackclient/openstackclient/shell.py", line 300, in initialize_app
    pw_func=prompt_for_password,
  File "/Users/igor_bolotin/work/openstack/python-openstackclient/openstackclient/common/clientmanager.py", line 149, in __init__
    self.auth = auth_plugin.load_from_options(**self._auth_params)
  File "/Users/igor_bolotin/work/openstack/python-openstackclient/.tox/py27/lib/python2.7/site-packages/keystoneclient/auth/base.py", line 131, in load_from_options
    return cls(**kwargs)
  File "/Users/igor_bolotin/work/openstack/python-openstackclient/.tox/py27/lib/python2.7/site-packages/keystoneclient/auth/identity/v3.py", line 275, in __init__
    super(Token, self).__init__(auth_url, token=token, **kwargs)
  File "/Users/igor_bolotin/work/openstack/python-openstackclient/.tox/py27/lib/python2.7/site-packages/keystoneclient/auth/identity/v3.py", line 204, in __init__
    super(AuthConstructor, self).__init__(auth_url, [method], **kwargs)
  File "/Users/igor_bolotin/work/openstack/python-openstackclient/.tox/py27/lib/python2.7/site-packages/keystoneclient/utils.py", line 318, in inner
    return func(*args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'user_domain_id'

Looks like the change to address issue #1385338 (https://review.openstack.org/#/c/135152/) is adding user_domain_id and v3token authentication doesn't expect this parameter

Revision history for this message
Steve Martinelli (stevemar) wrote :
Changed in python-openstackclient:
assignee: nobody → Igor Bolotin (ibolotin)
importance: Undecided → High
status: New → In Progress
milestone: none → m8
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/153458
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=4771feb7c4af6f718efb2a687c99b3bf5387bb2f
Submitter: Jenkins
Branch: master

commit 4771feb7c4af6f718efb2a687c99b3bf5387bb2f
Author: Igor_Bolotin <email address hidden>
Date: Thu Feb 5 20:14:51 2015 -0800

    Adding default user_domain_id parameter only when using
    password auth

    Change-Id: I31943739cc1b535cbd402c5e9245b2f7a19cfa32
    Closes-Bug: #1418810

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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.