Problem with masakari segment-list (auth parameter)

Bug #1755195 reported by Louie Kwan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-masakariclient
Undecided
Louie Kwan

Bug Description

ubuntu@yow-tic-demo1:~$ masakari --debug segment-list
DEBUG (connection) Connection: <openstack.connection.Connection object at 0x7f84245fe5d0>

Traceback (most recent call last):
  File "/usr/local/bin/masakari", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/masakariclient/shell.py", line 189, in mai
n
    MasakariShell().main(args)
  File "/usr/local/lib/python2.7/dist-packages/masakariclient/shell.py", line 160, in mai
n
    sc = self._setup_masakari_client(api_ver, args)
  File "/usr/local/lib/python2.7/dist-packages/masakariclient/shell.py", line 116, in _se
tup_masakari_client
    return masakari_client.Client(api_ver, user_agent=USER_AGENT, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/masakariclient/client.py", line 28, in Cli
ent
    return cls(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/masakariclient/v1/client.py", line 22, in
__init__
    prof=prof, user_agent=user_agent, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/masakariclient/sdk/ha/connection.py", line
 48, in create_connection
    raise e
openstack.exceptions.ConfigException: Problem with auth parameters

***
It may be related to the profile changes?

> /usr/local/lib/python2.7/dist-packages/masakariclient/sdk/ha/connection.py(49)create_connection()
-> LOG.debug('Connection: %s', conn)
(Pdb) n
> /usr/local/lib/python2.7/dist-packages/masakariclient/sdk/ha/connection.py(50)create_connection()
-> LOG.debug('masakari client initialized: %s', conn.ha)
(Pdb) print LOG
<logging.Logger object at 0x7f44dbc47350>
(Pdb) n
ConfigException: ConfigEx...meters',)
> /usr/local/lib/python2.7/dist-packages/masakariclient/sdk/ha/connection.py(50)create_connection()
-> LOG.debug('masakari client initialized: %s', conn.ha)
(Pdb) n
> /usr/local/lib/python2.7/dist-packages/masakariclient/sdk/ha/connection.py(51)create_connection()
-> except Exception as e:
(Pdb) print e
*** NameError: name 'e' is not defined
(Pdb) n
> /usr/local/lib/python2.7/dist-packages/masakariclient/sdk/ha/connection.py(52)create_connection()
-> raise e
(Pdb) print e
Problem with auth parameters
(Pdb)

***
Steps to reproduce
1) Install latest devstack with masakari
2) git clone https://github.com/openstack/python-masakariclient.git

cd python-masakariclient/

sudo python setup.py install

source ~/admin-openrc.sh

# To check the cli is working or not

masakari segment-list

Revision history for this message
Tushar Patil (tpatil) wrote :

Louie: This patch [1] was merged on 14th March which bumps the openstacksdk version from 0.9.19 to 0.11.2. When we installed latest masakari code using devstack, we are hitting this bug [2] and not the one you are getting.

[1] : https://review.openstack.org/#/c/544221/3
[2] : https://bugs.launchpad.net/python-masakariclient/+bug/1756047

Revision history for this message
Louie Kwan (lkwan) wrote :

I see that and the following should address the issue.

https://review.openstack.org/#/c/553319/1

Having said that, openstacksdk 12 is still have issue but I see another bug is filed last week.

Marked this as done for now.

Changed in python-masakariclient:
status: New → Fix Committed
assignee: nobody → Louie Kwan (lkwan)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers