[openstack-dev] OS::Metering::Alarm?
Sebastian Porombka
porombka at uni-paderborn.de
Tue Dec 17 08:59:19 UTC 2013
Hi Folks.
I’m currently trying to understand the openstack mechanics in detail (e.g. to fix various ec2 api shortcomings) and reached heat. I tried to add heat to our on-premise installation and failed to try the ‚AutoScalingCeilometer.yaml‘ demo template. Heat-api throwed a
==> /var/log/upstart/heat-api.log <==
2013-12-17 09:51:30.268 3341 ERROR root [-] Unexpected error occurred serving API: Unknown resource Type : OS::Metering::Alarm
2013-12-17 09:51:30.268 3341 TRACE root Traceback (most recent call last):
2013-12-17 09:51:30.268 3341 TRACE root File "/usr/lib/python2.7/dist-packages/heat/common/wsgi.py", line 661, in __call__
2013-12-17 09:51:30.268 3341 TRACE root request, **action_args)
2013-12-17 09:51:30.268 3341 TRACE root File "/usr/lib/python2.7/dist-packages/heat/common/wsgi.py", line 729, in dispatch
2013-12-17 09:51:30.268 3341 TRACE root return method(*args, **kwargs)
2013-12-17 09:51:30.268 3341 TRACE root File "/usr/lib/python2.7/dist-packages/heat/api/openstack/v1/util.py", line 30, in handle_stack_method
2013-12-17 09:51:30.268 3341 TRACE root return handler(controller, req, **kwargs)
2013-12-17 09:51:30.268 3341 TRACE root File "/usr/lib/python2.7/dist-packages/heat/api/openstack/v1/stacks.py", line 314, in validate_template
2013-12-17 09:51:30.268 3341 TRACE root data.template())
2013-12-17 09:51:30.268 3341 TRACE root File "/usr/lib/python2.7/dist-packages/heat/rpc/client.py", line 121, in validate_template
2013-12-17 09:51:30.268 3341 TRACE root template=template))
2013-12-17 09:51:30.268 3341 TRACE root File "/usr/lib/python2.7/dist-packages/heat/openstack/common/rpc/proxy.py", line 126, in call
2013-12-17 09:51:30.268 3341 TRACE root result = rpc.call(context, real_topic, msg, timeout)
2013-12-17 09:51:30.268 3341 TRACE root File "/usr/lib/python2.7/dist-packages/heat/openstack/common/rpc/__init__.py", line 141, in call
2013-12-17 09:51:30.268 3341 TRACE root return _get_impl().call(CONF, context, topic, msg, timeout)
2013-12-17 09:51:30.268 3341 TRACE root File "/usr/lib/python2.7/dist-packages/heat/openstack/common/rpc/impl_kombu.py", line 816, in call
2013-12-17 09:51:30.268 3341 TRACE root rpc_amqp.get_connection_pool(conf, Connection))
2013-12-17 09:51:30.268 3341 TRACE root File "/usr/lib/python2.7/dist-packages/heat/openstack/common/rpc/amqp.py", line 574, in call
2013-12-17 09:51:30.268 3341 TRACE root rv = list(rv)
2013-12-17 09:51:30.268 3341 TRACE root File "/usr/lib/python2.7/dist-packages/heat/openstack/common/rpc/amqp.py", line 539, in __iter__
2013-12-17 09:51:30.268 3341 TRACE root raise result
2013-12-17 09:51:30.268 3341 TRACE root StackValidationFailed_Remote: Unknown resource Type : OS::Metering::Alarm
2013-12-17 09:51:30.268 3341 TRACE root Traceback (most recent call last):
2013-12-17 09:51:30.268 3341 TRACE root
2013-12-17 09:51:30.268 3341 TRACE root File "/usr/lib/python2.7/dist-packages/heat/openstack/common/rpc/amqp.py", line 461, in _process_data
2013-12-17 09:51:30.268 3341 TRACE root **args)
2013-12-17 09:51:30.268 3341 TRACE root
2013-12-17 09:51:30.268 3341 TRACE root File "/usr/lib/python2.7/dist-packages/heat/openstack/common/rpc/dispatcher.py", line 172, in dispatch
2013-12-17 09:51:30.268 3341 TRACE root result = getattr(proxyobj, method)(ctxt, **kwargs)
2013-12-17 09:51:30.268 3341 TRACE root
2013-12-17 09:51:30.268 3341 TRACE root File "/usr/lib/python2.7/dist-packages/heat/engine/service.py", line 60, in wrapped
2013-12-17 09:51:30.268 3341 TRACE root return func(self, ctx, *args, **kwargs)
2013-12-17 09:51:30.268 3341 TRACE root
2013-12-17 09:51:30.268 3341 TRACE root File "/usr/lib/python2.7/dist-packages/heat/engine/service.py", line 364, in validate_template
2013-12-17 09:51:30.268 3341 TRACE root ResourceClass = resource.get_class(res['Type'])
2013-12-17 09:51:30.268 3341 TRACE root
2013-12-17 09:51:30.268 3341 TRACE root File "/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 45, in get_class
2013-12-17 09:51:30.268 3341 TRACE root return resources.global_env().get_class(resource_type, resource_name)
2013-12-17 09:51:30.268 3341 TRACE root
2013-12-17 09:51:30.268 3341 TRACE root File "/usr/lib/python2.7/dist-packages/heat/engine/environment.py", line 326, in get_class
2013-12-17 09:51:30.268 3341 TRACE root return self.registry.get_class(resource_type, resource_name)
2013-12-17 09:51:30.268 3341 TRACE root
2013-12-17 09:51:30.268 3341 TRACE root File "/usr/lib/python2.7/dist-packages/heat/engine/environment.py", line 257, in get_class
2013-12-17 09:51:30.268 3341 TRACE root raise exception.StackValidationFailed(message=msg)
2013-12-17 09:51:30.268 3341 TRACE root
2013-12-17 09:51:30.268 3341 TRACE root StackValidationFailed: Unknown resource Type : OS::Metering::Alarm
2013-12-17 09:51:30.268 3341 TRACE root
2013-12-17 09:51:30.268 3341 TRACE root
2013-12-17 09:51:30.269 3341 DEBUG root [-] JSON response : {"explanation": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400, "error": {"message": "Unknown resource Type : OS::Metering::Alarm", "traceback": "Traceback (most recent call last):\n\n File \"/usr/lib/python2.7/dist-packages/heat/openstack/common/rpc/amqp.py\", line 461, in _process_data\n **args)\n\n File \"/usr/lib/python2.7/dist-packages/heat/openstack/common/rpc/dispatcher.py\", line 172, in dispatch\n result = getattr(proxyobj, method)(ctxt, **kwargs)\n\n File \"/usr/lib/python2.7/dist-packages/heat/engine/service.py\", line 60, in wrapped\n return func(self, ctx, *args, **kwargs)\n\n File \"/usr/lib/python2.7/dist-packages/heat/engine/service.py\", line 364, in validate_template\n ResourceClass = resource.get_class(res['Type'])\n\n File \"/usr/lib/python2.7/dist-packages/heat/engine/resource.py\", line 45, in get_class\n return resources.global_env().get_class(resource_type, resource_name)\n\n File \"/usr/lib/python2.7/dist-packages/heat/engine/environment.py\", line 326, in get_class\n return self.registry.get_class(resource_type, resource_name)\n\n File \"/usr/lib/python2.7/dist-packages/heat/engine/environment.py\", line 257, in get_class\n raise exception.StackValidationFailed(message=msg)\n\nStackValidationFailed: Unknown resource Type : OS::Metering::Alarm\n", "type": "StackValidationFailed"}, "title": "Bad Request"} to_json /usr/lib/python2.7/dist-packages/heat/common/wsgi.py:562
Execption. I compared the on premise installation to my local devstack vm (where the template is accepted) and are unable to find the big difference in configuration. Where is the correct point to debug this thing? I also found no documentation which helps in this situation. :(
And I also have to present recent things around openstack on our university tomorrow – for which I would be happy to get this (rudimentarily) working. :)
Thanks.
Sebastian
--
Sebastian Porombka, M.Sc.
Zentrum für Informations- und Medientechnologien (IMT)
Universität Paderborn
E-Mail: porombka at uni-paderborn.de
Tel.: 05251/60-5999
Fax: 05251/60-48-5999
Raum: N5.314
--------------------------------------------
Q: Why is this email five sentences or less?
A: http://five.sentenc.es
Please consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20131217/9af6c85b/attachment.html>
More information about the OpenStack-dev
mailing list