__init__() got an unexpected keyword argument 'username'

Bug #1747718 reported by David Rabel
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-pankoclient
Fix Released
Undecided
Vadym Markov

Bug Description

openstack event list and similar commands throw an error:

Instantiating event client: <class 'pankoclient.v2.client.Client'>
__init__() got an unexpected keyword argument 'username'
Traceback (most recent call last):
  File "/root/venv/local/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/root/venv/local/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/root/venv/local/lib/python2.7/site-packages/cliff/display.py", line 116, in run
    column_names, data = self.take_action(parsed_args)
  File "/root/venv/local/lib/python2.7/site-packages/pankoclient/v2/events_cli.py", line 58, in take_action
    ac = self.app.client_manager.event
  File "/root/venv/local/lib/python2.7/site-packages/osc_lib/clientmanager.py", line 55, in __get__
    self._handle = self.factory(instance)
  File "/root/venv/local/lib/python2.7/site-packages/pankoclient/osc.py", line 56, in make_client
    client = panko_client(**kwargs)
  File "/root/venv/local/lib/python2.7/site-packages/pankoclient/v2/client.py", line 31, in __init__
    session, service_type=service_type, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'username'
clean_up EventList: __init__() got an unexpected keyword argument 'username'
Traceback (most recent call last):
  File "/root/venv/local/lib/python2.7/site-packages/osc_lib/shell.py", line 134, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/root/venv/local/lib/python2.7/site-packages/cliff/app.py", line 279, in run
    result = self.run_subcommand(remainder)
  File "/root/venv/local/lib/python2.7/site-packages/osc_lib/shell.py", line 169, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/root/venv/local/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/root/venv/local/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/root/venv/local/lib/python2.7/site-packages/cliff/display.py", line 116, in run
    column_names, data = self.take_action(parsed_args)
  File "/root/venv/local/lib/python2.7/site-packages/pankoclient/v2/events_cli.py", line 58, in take_action
    ac = self.app.client_manager.event
  File "/root/venv/local/lib/python2.7/site-packages/osc_lib/clientmanager.py", line 55, in __get__
    self._handle = self.factory(instance)
  File "/root/venv/local/lib/python2.7/site-packages/pankoclient/osc.py", line 56, in make_client
    client = panko_client(**kwargs)
  File "/root/venv/local/lib/python2.7/site-packages/pankoclient/v2/client.py", line 31, in __init__
    session, service_type=service_type, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'username'

END return value: 1

Vadym Markov (vmarkov)
Changed in python-pankoclient:
status: New → In Progress
assignee: nobody → Vadym Markov (vmarkov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-pankoclient (master)

Reviewed: https://review.openstack.org/552930
Committed: https://git.openstack.org/cgit/openstack/python-pankoclient/commit/?id=be4dfa504e2d8c8abace915f7548e854f4fcc95b
Submitter: Zuul
Branch: master

commit be4dfa504e2d8c8abace915f7548e854f4fcc95b
Author: vmarkov <email address hidden>
Date: Wed Mar 14 17:36:09 2018 +0200

    Make osc plugin work again

    while moving to SessionClient the OSC plugin
    was forgotten to be amended accordingly.

    Besides, the keystoneauth Adapter's request method
    returns a single response object, not a tuple.

    This commit also updates relevant requirements to be
    in sync with global OpenStack ones.

    Change-Id: I1cd33feec81bafad6237ca72b9c2f410237898b4
    Closes-Bug: #1747718

Changed in python-pankoclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-pankoclient (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/575391

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-pankoclient (stable/queens)

Reviewed: https://review.openstack.org/575391
Committed: https://git.openstack.org/cgit/openstack/python-pankoclient/commit/?id=8e2149f12d79c95f8a1dbbb038f2c85244e6f66c
Submitter: Zuul
Branch: stable/queens

commit 8e2149f12d79c95f8a1dbbb038f2c85244e6f66c
Author: vmarkov <email address hidden>
Date: Wed Mar 14 17:36:09 2018 +0200

    Make osc plugin work again

    while moving to SessionClient the OSC plugin
    was forgotten to be amended accordingly.

    Besides, the keystoneauth Adapter's request method
    returns a single response object, not a tuple.

    This commit also updates relevant requirements to be
    in sync with global OpenStack ones.

    Change-Id: I1cd33feec81bafad6237ca72b9c2f410237898b4
    Closes-Bug: #1747718
    (cherry picked from commit be4dfa504e2d8c8abace915f7548e854f4fcc95b)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-pankoclient 0.4.1

This issue was fixed in the openstack/python-pankoclient 0.4.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-pankoclient 0.5.0

This issue was fixed in the openstack/python-pankoclient 0.5.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-pankoclient (master)

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

Revision history for this message
Viktor (viktorsvecov) wrote :

I have got similar error message with 0.4.0-0ubuntu1 version installed on Ubuntu 20.04 using python3-pankoclient package.

[(openstack1_admin)]# openstack event list
__init__() got an unexpected keyword argument 'endpoint'

In latest version (1.1.0) the error is gone.

Perhaps it was the same problem.

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.