ceilometerclient cannot resolve aodh redirect

Bug #1533712 reported by gordon chung
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
python-ceilometerclient
Fix Released
High
Mehdi Abaakouk

Bug Description

http://logs.openstack.org/41/266541/1/check/gate-ceilometer-dsvm-integration/1986475/logs/screen-h-eng.txt.gz#_2016-01-12_22_49_43_027

 _http_log_response /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:216
2016-01-12 22:49:43.027 27842 INFO heat.engine.resource [-] CREATE: CeilometerGnocchiAggregationByResourcesAlarm "cpu_alarm_high" Stack "integration_test" [65f990a2-c796-4d22-a831-da74b541ab08]
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource Traceback (most recent call last):
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource File "/opt/stack/new/heat/heat/engine/resource.py", line 626, in _action_recorder
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource yield
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource File "/opt/stack/new/heat/heat/engine/resource.py", line 697, in _do_action
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource yield self.action_handler_task(action, args=handler_args)
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource File "/opt/stack/new/heat/heat/engine/scheduler.py", line 295, in wrapper
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource step = next(subtask)
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource File "/opt/stack/new/heat/heat/engine/resource.py", line 668, in action_handler_task
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource handler_data = handler(*args)
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource File "/opt/stack/new/heat/heat/engine/resources/openstack/ceilometer/alarm.py", line 402, in handle_create
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource alarm = self.client().alarms.create(
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource File "/opt/stack/new/heat/heat/engine/resource.py", line 544, in client
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource return self.stack.clients.client(client_name)
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource File "/opt/stack/new/heat/heat/engine/clients/__init__.py", line 70, in client
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource return client_plugin.client()
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource File "/opt/stack/new/heat/heat/engine/clients/client_plugin.py", line 136, in client
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource self._client = self._create()
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource File "/opt/stack/new/heat/heat/engine/clients/os/ceilometer.py", line 50, in _create
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource return cc.get_client('2', **args)
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource File "/usr/local/lib/python2.7/dist-packages/ceilometerclient/client.py", line 345, in get_client
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource return Client(version, endpoint, **kwargs)
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource File "/usr/local/lib/python2.7/dist-packages/ceilometerclient/client.py", line 292, in Client
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource return client_class(*args, **client_kwargs)
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource File "/usr/local/lib/python2.7/dist-packages/ceilometerclient/v2/client.py", line 67, in __init__
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource self.alarm_client = self._get_alarm_client(**kwargs)
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource File "/usr/local/lib/python2.7/dist-packages/ceilometerclient/v2/client.py", line 122, in _get_alarm_client
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource c.get("/")
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource File "/usr/local/lib/python2.7/dist-packages/ceilometerclient/openstack/common/apiclient/client.py", line 355, in get
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource return self.client_request("GET", url, **kwargs)
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource File "/usr/local/lib/python2.7/dist-packages/ceilometerclient/openstack/common/apiclient/client.py", line 345, in client_request
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource self, method, url, **kwargs)
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource File "/usr/local/lib/python2.7/dist-packages/ceilometerclient/openstack/common/apiclient/client.py", line 244, in client_request
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource self.authenticate()
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource File "/usr/local/lib/python2.7/dist-packages/ceilometerclient/openstack/common/apiclient/client.py", line 315, in authenticate
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource self.auth_plugin.authenticate(self)
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource File "/usr/local/lib/python2.7/dist-packages/ceilometerclient/openstack/common/apiclient/auth.py", line 202, in authenticate
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource self.sufficient_options()
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource File "/usr/local/lib/python2.7/dist-packages/ceilometerclient/client.py", line 235, in sufficient_options
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource raise exceptions.AuthPluginOptionsMissing(missing_opts)
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource AuthPluginOptionsMissing: Authentication failed. Missing options: endpoint, username, password, tenant_id
2016-01-12 22:49:43.027 27842 ERROR heat.engine.resource

Changed in python-ceilometerclient:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-ceilometerclient (master)

Reviewed: https://review.openstack.org/266949
Committed: https://git.openstack.org/cgit/openstack/python-ceilometerclient/commit/?id=f0124b71d6bbf83737e0659a174d586d80bc377c
Submitter: Jenkins
Branch: master

commit f0124b71d6bbf83737e0659a174d586d80bc377c
Author: Mehdi Abaakouk <email address hidden>
Date: Wed Jan 13 15:37:47 2016 +0100

    Only token or creds are required.

    When token is provided and not the endpoint,
    the client works, because keystoneauth/keystoneclient will
    use the service_type to discover the endpoint.

    Closes-bug: #1533712
    Change-Id: I0cf1ba52f656a450d358b2356df67d004f9aba7d

Changed in python-ceilometerclient:
status: In Progress → 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.