[openstack-dev] OS::Metering::Alarm?

Dina Belova dbelova at mirantis.com
Tue Dec 17 09:48:19 UTC 2013


Sebastian, you are welcome :)


On Tue, Dec 17, 2013 at 1:30 PM, Sebastian Porombka <
porombka at uni-paderborn.de> wrote:

>  Hi Dina, hi developers.
>
>  Thanks for the very very helpful hint.
>
>  The problem issuing this exception is the lack of
>  /etc/heat/environment.d/default.yaml in the ubuntu cloud reposity packages.
>
>  root at head2:# cd /etc/heat/
>
> root at head2:/etc/heat# ls -alh environment.d/
>
> total 12K
>
> drwxr-xr-x 2 heat heat 4.0K Dec 17 10:25 *.*
>
> drwxr-xr-x 3 heat heat 4.0K Dec 17 10:25 *..*
>
> -rw-rw-r-- 1 heat heat  436 Dec 17 10:25 default.yaml
>
> root at head2:/etc/heat# cat environment.d/default.yaml
>
>
>  resource_registry:
>
>     # allow older templates with Quantum in them.
>
>     "OS::Quantum*": "OS::Neutron*"
>
>     # Choose your implementation of AWS::CloudWatch::Alarm
>
>     #"AWS::CloudWatch::Alarm":
> "file:///etc/heat/templates/AWS_CloudWatch_Alarm.yaml"
>
>     "AWS::CloudWatch::Alarm": "OS::Heat::CWLiteAlarm"
>
>     "OS::Metering::Alarm": "OS::Ceilometer::Alarm"
>
>     "AWS::RDS::DBInstance":
> "file:///etc/heat/templates/AWS_RDS_DBInstance.yaml"
>
> root at head2:/etc/heat#
>
>  Big 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.
>
>   Von: Dina Belova <dbelova at mirantis.com>
> Antworten an: "OpenStack Development Mailing List (not for usage
> questions)" <openstack-dev at lists.openstack.org>
> Datum: Dienstag, 17. Dezember 2013 10:08
> An: "OpenStack Development Mailing List (not for usage questions)" <
> openstack-dev at lists.openstack.org>
> Betreff: Re: [openstack-dev] OS::Metering::Alarm?
>
>   As I see on
> http://docs.openstack.org/developer/heat/template_guide/openstack.html,
> there is type OS::Ceilometer::Alarm, not  OS::Metering::Alarm... Maybe
> it's somehow connected with your problem?
>
>
> On Tue, Dec 17, 2013 at 12:59 PM, Sebastian Porombka <
> porombka at uni-paderborn.de> wrote:
>
>>  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.
>>
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>
>
>  --
>
> Best regards,
>
> Dina Belova
>
> Software Engineer
>
> Mirantis Inc.
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>


-- 

Best regards,

Dina Belova

Software Engineer

Mirantis Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20131217/1b8b73b9/attachment.html>


More information about the OpenStack-dev mailing list