Comment 6 for bug 1568825

Revision history for this message
magicboiz (magicboiz) wrote :

Hi

I've deployed MOS 8.0 and fuel autoscaling test (also https://github.com/openstack/heat-templates/blob/master/hot/autoscaling.yaml) doesn't work.

I get

Check stack autoscaling
Failed to get to expected status. Currently in CREATE_FAILED status. Please refer to OpenStack logs for more details.
Target component: Heat

Scenario:
1. Create test flavor.
2. Create a keypair.
3. Save generated private key to file on Controller node.
4. Create a security group.
5. Create a stack.
6. Wait for the stack status to change to 'CREATE_COMPLETE'.
7. Create a floating IP.
8. Assign the floating IP to the instance of the stack.
9. Wait when the instance is ready to connect.
10. Wait for the 2nd instance to be launched.
11. Wait for the 2nd instance to be terminated.
12. Delete the file with private key.
13. Delete the stack.
14. Wait for the stack to be deleted.

and checking heat logs, I can see this problem: ERROR heat.engine.resource Forbidden: You are not authorized to perform the requested action.

Complete log heat-all.log:
...
<134>May 10 10:03:08 node-4 heat-engine: 2016-05-10 10:03:08.572 3513 INFO heat.engine.resource [-] CREATE: CeilometerAlarm "cpu_alarm_low" Stack "ost1_test-heat-stack-2108765664" [9f674d01-eccc-4cf0-8f0b-1345ae60777b]
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource Traceback (most recent call last):
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 640, in _action_recorder
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource yield
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 710, in _do_action
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource yield self.action_handler_task(action, args=handler_args)
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/heat/engine/scheduler.py", line 306, in wrapper
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource step = next(subtask)
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 681, in action_handler_task
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource handler_data = handler(*args)
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/heat/engine/resources/openstack/ceilometer/alarm.py", line 335, in handle_create
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource alarm = self.client().alarms.create(**props)
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 564, in client
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource return self.stack.clients.client(client_name)
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/heat/engine/clients/__init__.py", line 70, in client
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource return client_plugin.client()
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/heat/engine/clients/client_plugin.py", line 78, in client
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource self._client = self._create()
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/heat/engine/clients/os/ceilometer.py", line 46, in _create
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource return cc.get_client('2', **args)
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/ceilometerclient/client.py", line 395, in get_client
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource return Client(version, endpoint, **kwargs)
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/ceilometerclient/client.py", line 359, in Client
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource return client_class(*args, **client_kwargs)
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/ceilometerclient/v2/client.py", line 68, in __init__
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource self.alarm_client, aodh_enabled = self._get_alarm_client(**kwargs)
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/ceilometerclient/v2/client.py", line 106, in _get_alarm_client
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource kwargs.get('timeout'))
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/ceilometerclient/client.py", line 271, in redirect_to_aodh_endpoint
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource self.opts['endpoint'] = _get_endpoint(ks_session, **ks_kwargs)
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/ceilometerclient/client.py", line 201, in _get_endpoint
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource region_name=kwargs.get('region_name'))
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 660, in get_endpoint
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource return auth.get_endpoint(self, **kwargs)
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/base.py", line 315, in get_endpoint
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource service_catalog = self.get_access(session).service_catalog
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/base.py", line 240, in get_access
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource self.auth_ref = self.get_auth_ref(session)
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/v2.py", line 88, in get_auth_ref
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource authenticated=False, log=False)
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 501, in post
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource return self.request(url, 'POST', **kwargs)
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 337, in inner
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource return func(*args, **kwargs)
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 401, in request
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource raise exceptions.from_response(resp, method, url)
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource Forbidden: You are not authorized to perform the requested action. (HTTP 403) (Request-ID: req-32832bd3-de97-42e4-a5ea-3f65ebf8c09e)
2016-05-10 10:03:08.572 3513 ERROR heat.engine.resource
...

Is there any patch to test out there?
thanks