Couldn't login with v3password

Bug #1744314 reported by Numitec Inc.
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloudkitty
Invalid
Undecided
Unassigned

Bug Description

Trying on a clean Centos/7 PackStack single host installation, following configuration docs at https://docs.openstack.org/cloudkitty/latest/configuration/configuration.html, using keystone (identity) API v3, processor service throws: "CRITICAL cloudkitty [-] Unhandled error: NotFound: (http://192.168.64.6:5000/auth/tokens): The resource could not be found. (HTTP 404)"

Checking http://192.168.64.6:5000/ throws:

{"versions": {"values": [{"status": "stable", "updated": "2017-02-22T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.8", "links": [{"href": "http://192.168.64.6:5000/v3/", "rel": "self"}]}, {"status": "deprecated", "updated": "2016-08-04T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://192.168.64.6:5000/v2.0/", "rel": "self"}, {"href": "https://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}]}}

Checking http://192.168.64.6:5000/v3 throws:

{"version": {"status": "stable", "updated": "2017-02-22T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.8", "links": [{"href": "http://192.168.64.6:5000/v3/", "rel": "self"}]}}

This is my /etc/cloudkitty/cloudkitty.conf:

[DEFAULT]
verbose = True
log_dir = /var/log/cloudkitty
# oslo_messaging_rabbit is deprecated
transport_url = rabbit://RABBIT_USER:WHITE_RABBIT@192.168.64.6/
auth_strategy = keystone

[ks_auth]
auth_type = v3password
auth_protocol = http
auth_url = http://192.168.64.6:5000/
identity_uri = http://192.168.64.6:35357/
username = cloudkitty
password = CK_PASSWORD
project_name = services
user_domain_name = default
project_domain_name = default
debug = True

[keystone_authtoken]
auth_section = ks_auth

[database]
connection = mysql://CK_DBUSER:CK_DBPASSWORD@192.168.64.6/cloudkitty

[keystone_fetcher]
auth_section = ks_auth
keystone_version = 3

[tenant_fetcher]
backend = keystone

[storage]
backend = gnocchihybrid

[storage_gnocchi]
auth_section = ks_auth

[collect]
metrics_conf = /etc/cloudkitty/metrics.yml

[gnocchi_collector]
auth_section = ks_auth

And finally I paste /var/log/cloudkitty/processor.log

2018-01-19 09:08:36.376 7932 CRITICAL cloudkitty [-] Unhandled error: NotFound: (http://192.168.64.6:5000/auth/tokens): The resource could not be found. (HTTP 404)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty Traceback (most recent call last):
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/bin/cloudkitty-processor", line 10, in <module>
2018-01-19 09:08:36.376 7932 ERROR cloudkitty sys.exit(main())
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/cloudkitty/cli/processor.py", line 24, in main
2018-01-19 09:08:36.376 7932 ERROR cloudkitty processor = orchestrator.Orchestrator()
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/cloudkitty/orchestrator.py", line 218, in __init__
2018-01-19 09:08:36.376 7932 ERROR cloudkitty invoke_on_load=True).driver
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/stevedore/driver.py", line 61, in __init__
2018-01-19 09:08:36.376 7932 ERROR cloudkitty warn_on_missing_entrypoint=warn_on_missing_entrypoint
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/stevedore/named.py", line 81, in __init__
2018-01-19 09:08:36.376 7932 ERROR cloudkitty verify_requirements)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 194, in _load_plugins
2018-01-19 09:08:36.376 7932 ERROR cloudkitty self._on_load_failure_callback(self, ep, err)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 186, in _load_plugins
2018-01-19 09:08:36.376 7932 ERROR cloudkitty verify_requirements,
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/stevedore/named.py", line 158, in _load_one_plugin
2018-01-19 09:08:36.376 7932 ERROR cloudkitty verify_requirements,
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 218, in _load_one_plugin
2018-01-19 09:08:36.376 7932 ERROR cloudkitty obj = plugin(*invoke_args, **invoke_kwds)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/cloudkitty/tenant_fetcher/keystone.py", line 59, in __init__
2018-01-19 09:08:36.376 7932 ERROR cloudkitty auth_url=self.auth.auth_url)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/keystoneclient/client.py", line 62, in Client
2018-01-19 09:08:36.376 7932 ERROR cloudkitty d = discover.Discover(session=session, **kwargs)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
2018-01-19 09:08:36.376 7932 ERROR cloudkitty return wrapped(*args, **kwargs)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/keystoneclient/discover.py", line 180, in __init__
2018-01-19 09:08:36.376 7932 ERROR cloudkitty authenticated=authenticated)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
2018-01-19 09:08:36.376 7932 ERROR cloudkitty return wrapped(*args, **kwargs)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/keystoneclient/_discover.py", line 147, in __init__
2018-01-19 09:08:36.376 7932 ERROR cloudkitty authenticated=authenticated)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
2018-01-19 09:08:36.376 7932 ERROR cloudkitty return wrapped(*args, **kwargs)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/keystoneclient/_discover.py", line 41, in get_version_data
2018-01-19 09:08:36.376 7932 ERROR cloudkitty resp = session.get(url, headers=headers, authenticated=authenticated)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 845, in get
2018-01-19 09:08:36.376 7932 ERROR cloudkitty return self.request(url, 'GET', **kwargs)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
2018-01-19 09:08:36.376 7932 ERROR cloudkitty return wrapped(*args, **kwargs)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 578, in request
2018-01-19 09:08:36.376 7932 ERROR cloudkitty auth_headers = self.get_auth_headers(auth)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 905, in get_auth_headers
2018-01-19 09:08:36.376 7932 ERROR cloudkitty return auth.get_headers(self, **kwargs)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/keystoneauth1/plugin.py", line 90, in get_headers
2018-01-19 09:08:36.376 7932 ERROR cloudkitty token = self.get_token(session)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 89, in get_token
2018-01-19 09:08:36.376 7932 ERROR cloudkitty return self.get_access(session).auth_token
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 135, in get_access
2018-01-19 09:08:36.376 7932 ERROR cloudkitty self.auth_ref = self.get_auth_ref(session)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/v3/base.py", line 167, in get_auth_ref
2018-01-19 09:08:36.376 7932 ERROR cloudkitty authenticated=False, log=False, **rkwargs)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 853, in post
2018-01-19 09:08:36.376 7932 ERROR cloudkitty return self.request(url, 'POST', **kwargs)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
2018-01-19 09:08:36.376 7932 ERROR cloudkitty return wrapped(*args, **kwargs)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 742, in request
2018-01-19 09:08:36.376 7932 ERROR cloudkitty raise exceptions.from_response(resp, method, url)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty NotFound: (http://192.168.64.6:5000/auth/tokens): The resource could not be found. (HTTP 404)
2018-01-19 09:08:36.376 7932 ERROR cloudkitty

  It seems it is trying to fetch the token using v1 schema (http://192.168.64.6:5000/auth/tokens) instead of v3 (http://192.168.64.6:5000/v3/auth/tokens) ??

  Thanks for any clue,

S.

Revision history for this message
Adrian Campos Garrido (hadrianweb) wrote :

Yo have to change some things:

auth_url = http://192.168.64.6:5000/v3
identity_uri = http://192.168.64.6:35357/v3

Changed in cloudkitty:
status: New → Invalid
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.