Hello,
Template used: https://github.com/openstack/tacker/blob/master/samples/tosca-templates/vnfd/tosca-vnfd-alarm-scale.yaml
Tacker version: 0.7.1
Openstack release: Newton
I am using above mentioned template and getting following error in tacker.log:
2017-02-08 18:41:09.632 11302 ERROR tacker.api.v1.resource [req-6a733992-03eb-47f9-a318-6d169d244967 75d8b1daa51a46fb8ed5f9095409f9f6 6e665ce96bfa4907ac24b694b94711ab - - -] create failed
2017-02-08 18:41:09.632 11302 ERROR tacker.api.v1.resource Traceback (most recent call last):
2017-02-08 18:41:09.632 11302 ERROR tacker.api.v1.resource File "/usr/local/lib/python2.7/dist-packages/tacker/api/v1/resource.py", line 83, in resource
2017-02-08 18:41:09.632 11302 ERROR tacker.api.v1.resource result = method(request=request, **args)
2017-02-08 18:41:09.632 11302 ERROR tacker.api.v1.resource File "/usr/local/lib/python2.7/dist-packages/tacker/api/v1/base.py", line 395, in create
2017-02-08 18:41:09.632 11302 ERROR tacker.api.v1.resource obj = obj_creator(request.context, **kwargs)
2017-02-08 18:41:09.632 11302 ERROR tacker.api.v1.resource File "/usr/local/lib/python2.7/dist-packages/tacker/vnfm/plugin.py", line 394, in create_vnf
2017-02-08 18:41:09.632 11302 ERROR tacker.api.v1.resource vnf_dict = self._create_vnf(context, vnf_info, vim_auth, infra_driver)
2017-02-08 18:41:09.632 11302 ERROR tacker.api.v1.resource File "/usr/local/lib/python2.7/dist-packages/tacker/vnfm/plugin.py", line 346, in _create_vnf
2017-02-08 18:41:09.632 11302 ERROR tacker.api.v1.resource self.add_alarm_url_to_vnf(vnf_dict)
2017-02-08 18:41:09.632 11302 ERROR tacker.api.v1.resource File "/usr/local/lib/python2.7/dist-packages/tacker/vnfm/plugin.py", line 261, in add_alarm_url_to_vnf
2017-02-08 18:41:09.632 11302 ERROR tacker.api.v1.resource vnf_dict, name, policy)
2017-02-08 18:41:09.632 11302 ERROR tacker.api.v1.resource File "/usr/local/lib/python2.7/dist-packages/tacker/vnfm/monitor.py", line 222, in update_vnf_with_alarm
2017-02-08 18:41:09.632 11302 ERROR tacker.api.v1.resource driver = policy_dict['triggers']['resize_compute'][
2017-02-08 18:41:09.632 11302 ERROR tacker.api.v1.resource KeyError: 'resize_compute'
2017-02-08 18:41:09.632 11302 ERROR tacker.api.v1.resource
2017-02-08 18:48:09.414 11302 ERROR tacker.api.v1.resource [req-e8e3ee0b-9d93-4d31-9943-108c9ec2e82d 75d8b1daa51a46fb8ed5f9095409f9f6 6e665ce96bfa4907ac24b694b94711ab - - -] create failed
2017-02-08 18:48:09.414 11302 ERROR tacker.api.v1.resource Traceback (most recent call last):
2017-02-08 18:48:09.414 11302 ERROR tacker.api.v1.resource File "/usr/local/lib/python2.7/dist-packages/tacker/api/v1/resource.py", line 83, in resource
2017-02-08 18:48:09.414 11302 ERROR tacker.api.v1.resource result = method(request=request, **args)
2017-02-08 18:48:09.414 11302 ERROR tacker.api.v1.resource File "/usr/local/lib/python2.7/dist-packages/tacker/api/v1/base.py", line 395, in create
2017-02-08 18:48:09.414 11302 ERROR tacker.api.v1.resource obj = obj_creator(request.context, **kwargs)
2017-02-08 18:48:09.414 11302 ERROR tacker.api.v1.resource File "/usr/local/lib/python2.7/dist-packages/tacker/vnfm/plugin.py", line 394, in create_vnf
2017-02-08 18:48:09.414 11302 ERROR tacker.api.v1.resource vnf_dict = self._create_vnf(context, vnf_info, vim_auth, infra_driver)
2017-02-08 18:48:09.414 11302 ERROR tacker.api.v1.resource File "/usr/local/lib/python2.7/dist-packages/tacker/vnfm/plugin.py", line 346, in _create_vnf
2017-02-08 18:48:09.414 11302 ERROR tacker.api.v1.resource self.add_alarm_url_to_vnf(vnf_dict)
2017-02-08 18:48:09.414 11302 ERROR tacker.api.v1.resource File "/usr/local/lib/python2.7/dist-packages/tacker/vnfm/plugin.py", line 261, in add_alarm_url_to_vnf
2017-02-08 18:48:09.414 11302 ERROR tacker.api.v1.resource vnf_dict, name, policy)
2017-02-08 18:48:09.414 11302 ERROR tacker.api.v1.resource File "/usr/local/lib/python2.7/dist-packages/tacker/vnfm/monitor.py", line 222, in update_vnf_with_alarm
2017-02-08 18:48:09.414 11302 ERROR tacker.api.v1.resource driver = policy_dict['triggers']['resize_compute'][
2017-02-08 18:48:09.414 11302 ERROR tacker.api.v1.resource KeyError: 'resize_compute'
2017-02-08 18:48:09.414 11302 ERROR tacker.api.v1.resource
Please suggest what could be wrong here.
Regards
AB
It looks resize_compute is missing in template. /github. com/openstack/ tacker/ blob/stable/ newton/ samples/ tosca-templates /vnfd/tosca- vnfd-alarm- scale.yaml
Could you please try with https:/