Problem with masakari client authentication in keystone

Bug #1800886 reported by Dmitriy Rabotyagov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-masakariclient
Undecided
Unassigned

Bug Description

I've faced with the following problem, when tried to use masakariclient. None command is working for me, for example:

root@uacloud-deploy:~# masakari --debug segment-list
DEBUG (session) REQ: curl -g -i -X GET http://172.20.0.9:5000/v3 -H "Accept: application/json" -H "User-Agent: masakari keystoneauth1/3.11.1 python-requests/2.20.0 CPython/2.7.15rc1"
DEBUG (session) RESP: [200] Content-Length: 258 Content-Security-Policy: default-src 'self' https: wss:; Content-Type: application/json Date: Wed, 31 Oct 2018 16:40:26 GMT Server: nginx/1.14.0 (Ubuntu) Vary: X-Auth-Token X-Content-Type-Options: nosniff X-Frame-Options: DENY X-XSS-Protection: 1; mode=block x-openstack-request-id: req-0da69a3e-8265-4b0b-bf1b-3c71b5c3d7d4
DEBUG (session) RESP BODY: {"version": {"status": "stable", "updated": "2018-02-28T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.10", "links": [{"href": "https://172.20.0.9:5000/v3/", "rel": "self"}]}}
DEBUG (session) GET call to http://172.20.0.9:5000/v3 used request id req-0da69a3e-8265-4b0b-bf1b-3c71b5c3d7d4
DEBUG (base) Making authentication request to http://172.20.0.9:5000/v3/auth/tokens
DEBUG (session) Request returned failure status: 400
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 main
    MasakariShell().main(args)
  File "/usr/local/lib/python2.7/dist-packages/masakariclient/shell.py", line 160, in main
    sc = self._setup_masakari_client(api_ver, args)
  File "/usr/local/lib/python2.7/dist-packages/masakariclient/shell.py", line 116, in _setup_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 Client
    return cls(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/masakariclient/v1/client.py", line 34, in __init__
    self.service = self.con.instance_ha
  File "/usr/local/lib/python2.7/dist-packages/openstack/service_description.py", line 80, in __get__
    instance._proxies[self.service_type] = self._make_proxy(instance)
  File "/usr/local/lib/python2.7/dist-packages/openstack/service_description.py", line 189, in _make_proxy
    found_version = temp_adapter.get_api_major_version()
  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 310, in get_api_major_version
    return self.session.get_api_major_version(auth or self.auth, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 1146, in get_api_major_version
    return auth.get_api_major_version(self, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/base.py", line 500, in get_api_major_version
    data = get_endpoint_data(discover_versions=discover_versions)
  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/base.py", line 271, in get_endpoint_data
    service_catalog = self.get_access(session).service_catalog
  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/base.py", line 134, in get_access
    self.auth_ref = self.get_auth_ref(session)
  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/generic/base.py", line 208, in get_auth_ref
    return self._plugin.get_auth_ref(session, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/v3/base.py", line 178, in get_auth_ref
    authenticated=False, log=False, **rkwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 1019, in post
    return self.request(url, 'POST', **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 869, in request
    raise exceptions.from_response(resp, method, url)
keystoneauth1.exceptions.http.BadRequest: Expecting to find domain in project. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-f42da376-2f3b-4350-a880-daaec41de57a)
root@uacloud-deploy:~#

I've sourced default openrc file (with which I work with openstack client), and even tried to pass token with --os-token, but without any result.

I'm running python-masakariclient version 5.2.0:
root@uacloud-deploy:~# pip show python-masakariclient
Name: python-masakariclient
Version: 5.2.0
Summary: masakariclient module and a CLI tool for masakari
Home-page: http://www.openstack.org/
Author: OpenStack
Author-email: <email address hidden>
License: UNKNOWN
Location: /usr/local/lib/python2.7/dist-packages
Requires: openstacksdk, osc-lib, oslo.i18n, oslo.serialization, pbr
root@uacloud-deploy:~#

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers