)]}'
{"tacker/vnfm/monitor.py":[{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"c37c07b3b361c8e06fdf99530678cdbf26e863a6","unresolved":false,"context_lines":[{"line_number":392,"context_line":"class ActionAutoscalingHeat(ActionPolicy):"},{"line_number":393,"context_line":"    @classmethod"},{"line_number":394,"context_line":"    def execute_action(cls, plugin, vnf_dict, scale):"},{"line_number":395,"context_line":"        if vnf_dict[\u0027status\u0027] !\u003d constants.ACTIVE:"},{"line_number":396,"context_line":"            LOG.info(t_context.get_admin_context(),"},{"line_number":397,"context_line":"                     vnf_dict, \"ActionAutoscalingHeat skipped\")"},{"line_number":398,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a95cdbc_65a0bef5","line":395,"updated":"2016-10-05 05:21:57.000000000","message":"i feel this might not be required, because create_vnf_scale does this already. pls let me know the intention of this check here?","commit_id":"1ffea5c3af45631b49619396dc0df6e61d11f29b"},{"author":{"_account_id":12525,"name":"vishwanath jayaraman","email":"vishwanathj@hotmail.com","username":"vish"},"change_message_id":"48c86fdb06b046b8683ed093b1be1dfd5ffcd790","unresolved":false,"context_lines":[{"line_number":392,"context_line":"class ActionAutoscalingHeat(ActionPolicy):"},{"line_number":393,"context_line":"    @classmethod"},{"line_number":394,"context_line":"    def execute_action(cls, plugin, vnf_dict, scale):"},{"line_number":395,"context_line":"        if vnf_dict[\u0027status\u0027] !\u003d constants.ACTIVE:"},{"line_number":396,"context_line":"            LOG.info(t_context.get_admin_context(),"},{"line_number":397,"context_line":"                     vnf_dict, \"ActionAutoscalingHeat skipped\")"},{"line_number":398,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a95cdbc_9ff3380a","line":395,"in_reply_to":"1a95cdbc_65a0bef5","updated":"2016-10-05 22:02:42.000000000","message":"I believe that, the create_vnf_scale method was initially implemented to support manual scaling in mind and was invoked just once where it would check if scaling was possible. With alarm monitoring implementation,I am seeing that the create_vnf_scale is being invoked multiple times when the threshold is reached. This is logging multiple events in the event database for every alarm action invocation.  Ideally, the alarm action to scale should never be invoked when the VNF is not in ACTIVE state and should not log multiple events for the same in the events database.","commit_id":"1ffea5c3af45631b49619396dc0df6e61d11f29b"},{"author":{"_account_id":12525,"name":"vishwanath jayaraman","email":"vishwanathj@hotmail.com","username":"vish"},"change_message_id":"4d1455c49298286cd0b3c005e26b0eb8f450a18b","unresolved":false,"context_lines":[{"line_number":392,"context_line":"class ActionAutoscalingHeat(ActionPolicy):"},{"line_number":393,"context_line":"    @classmethod"},{"line_number":394,"context_line":"    def execute_action(cls, plugin, vnf_dict, scale):"},{"line_number":395,"context_line":"        if vnf_dict[\u0027status\u0027] !\u003d constants.ACTIVE:"},{"line_number":396,"context_line":"            LOG.info(t_context.get_admin_context(),"},{"line_number":397,"context_line":"                     vnf_dict, \"ActionAutoscalingHeat skipped\")"},{"line_number":398,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a95cdbc_28a49da4","line":395,"in_reply_to":"1a95cdbc_9ff3380a","updated":"2016-10-05 22:08:46.000000000","message":"I further think that it might be better to do the check that VNF is active at https://github.com/openstack/tacker/blob/master/tacker/vnfm/plugin.py#L761. Do you agree?","commit_id":"1ffea5c3af45631b49619396dc0df6e61d11f29b"}]}
