)]}'
{"etc/vitrage/templates.sample/host_down_scenarios.yaml":[{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"fbca809eda8e982fedbd8f6ae420268f978a4a02","unresolved":false,"context_lines":[{"line_number":75,"context_line":"        properties:"},{"line_number":76,"context_line":"          api_call: reset-state"},{"line_number":77,"context_line":"          parameters:"},{"line_number":78,"context_line":"            state: error"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"1f485f77_6ba8358b","line":78,"range":{"start_line":78,"start_character":12,"end_line":78,"end_character":24},"updated":"2017-11-16 12:29:51.000000000","message":"I think the state should not be part of the template. If we let the user decide to set the state to \u0027active\u0027, and the undo action will be \u0027error\u0027, we may get into a real mess...","commit_id":"c436969a6e36fbd5d6faec396539e7b6d9a997a1"}],"vitrage/evaluator/actions/recipes/execute_nova.py":[{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"fbca809eda8e982fedbd8f6ae420268f978a4a02","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2017 - Nokia"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_5d9c1f0d","line":1,"range":{"start_line":1,"start_character":19,"end_line":1,"end_character":24},"updated":"2017-11-16 12:29:51.000000000","message":"ZTE :-)","commit_id":"c436969a6e36fbd5d6faec396539e7b6d9a997a1"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"fbca809eda8e982fedbd8f6ae420268f978a4a02","unresolved":false,"context_lines":[{"line_number":59,"context_line":"        return [execute_external_step]"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    @staticmethod"},{"line_number":62,"context_line":"    def _get_execute_external_step(target_id, properties):"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"        properties[EXECUTION_ENGINE] \u003d NOVA"},{"line_number":65,"context_line":"        properties[VProps.ID] \u003d target_id"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_3dba836d","line":62,"range":{"start_line":62,"start_character":8,"end_line":62,"end_character":34},"updated":"2017-11-16 12:29:51.000000000","message":"Where do you set the new state (True/False)? I believe right now DO and UNDO are doing the same thing?","commit_id":"c436969a6e36fbd5d6faec396539e7b6d9a997a1"}],"vitrage/evaluator/scenario_evaluator.py":[{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"fbca809eda8e982fedbd8f6ae420268f978a4a02","unresolved":false,"context_lines":[{"line_number":242,"context_line":"        return hash("},{"line_number":243,"context_line":"            (action_spec.type,"},{"line_number":244,"context_line":"             tuple(sorted(targets)),"},{"line_number":245,"context_line":"             tuple(str(sorted(action_spec.properties.items()))))"},{"line_number":246,"context_line":"        )"},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"    def _analyze_and_filter_actions(self, actions):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_dda80f21","line":245,"range":{"start_line":245,"start_character":19,"end_line":245,"end_character":22},"updated":"2017-11-16 12:29:51.000000000","message":"Why is it needed?","commit_id":"c436969a6e36fbd5d6faec396539e7b6d9a997a1"}],"vitrage/notifier/plugins/nova/nova_notifier.py":[{"author":{"_account_id":18783,"name":"dongwenjuan","email":"dong.wenjuan@zte.com.cn","username":"dongwenjuan"},"change_message_id":"4ce01797148dd6469cccf4196f04cfd2929ee2cb","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        self.process_event(payload, event_type)"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def process_event(self, data, event_type):"},{"line_number":54,"context_line":"        if data and data.get(VProps.VITRAGE_TYPE) \u003d\u003d NOVA_HOST_DATASOURCE:"},{"line_number":55,"context_line":"            if event_type \u003d\u003d NotifierEventTypes.ACTIVATE_MARK_DOWN_EVENT:"},{"line_number":56,"context_line":"                self._mark_host_down(data.get(VProps.ID), True)"},{"line_number":57,"context_line":"            elif event_type \u003d\u003d NotifierEventTypes.DEACTIVATE_MARK_DOWN_EVENT:"},{"line_number":58,"context_line":"                self._mark_host_down(data.get(VProps.ID), False)"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"        if event_type \u003d\u003d NotifierEventTypes.EXECUTE_EXTERNAL_ACTION:"},{"line_number":61,"context_line":"            LOG.debug(\u0027Going to execute nova action: %s\u0027, data)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_f8863e13","line":58,"range":{"start_line":54,"start_character":0,"end_line":58,"end_character":64},"updated":"2017-11-16 09:39:21.000000000","message":"This all can be deleted for mark_down refactor. Only need to add an action in self.api_calls. And other handle extral in process-notifier for \u0027mark_down\u0027 can also be deleted.","commit_id":"7793d21d55c00277ab6f6d462c7571f7f7be9de9"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"fbca809eda8e982fedbd8f6ae420268f978a4a02","unresolved":false,"context_lines":[{"line_number":38,"context_line":"        return \u0027nova\u0027"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    @staticmethod"},{"line_number":41,"context_line":"    def use_private_topic():"},{"line_number":42,"context_line":"        return True"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    def info(self, ctxt, publisher_id, event_type, payload, metadata):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_5d43ff6c","line":41,"range":{"start_line":41,"start_character":8,"end_line":41,"end_character":25},"updated":"2017-11-16 12:29:51.000000000","message":"I think that once you add this, the existing notification for mark-down will no longer work. I\u0027m not sure about it, you should check and make sure it is not broken.","commit_id":"c436969a6e36fbd5d6faec396539e7b6d9a997a1"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"fbca809eda8e982fedbd8f6ae420268f978a4a02","unresolved":false,"context_lines":[{"line_number":42,"context_line":"        return True"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    def info(self, ctxt, publisher_id, event_type, payload, metadata):"},{"line_number":45,"context_line":"        \"\"\"Mistral Endpoint\"\"\""},{"line_number":46,"context_line":"        LOG.info(\u0027Vitrage Event Info: publisher_id %s\u0027, publisher_id)"},{"line_number":47,"context_line":"        LOG.info(\u0027Vitrage Event Info: event_type %s\u0027, event_type)"},{"line_number":48,"context_line":"        LOG.info(\u0027Vitrage Event Info: metadata %s\u0027, metadata)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_fd5d0b47","line":45,"range":{"start_line":45,"start_character":11,"end_line":45,"end_character":18},"updated":"2017-11-16 12:29:51.000000000","message":"Nova","commit_id":"c436969a6e36fbd5d6faec396539e7b6d9a997a1"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"fbca809eda8e982fedbd8f6ae420268f978a4a02","unresolved":false,"context_lines":[{"line_number":66,"context_line":""},{"line_number":67,"context_line":"            try:"},{"line_number":68,"context_line":"                api \u003d data[API_CALL]"},{"line_number":69,"context_line":"                params \u003d data[\u0027parameters\u0027]"},{"line_number":70,"context_line":"                self.api_calls[api](data[VProps.ID], params)"},{"line_number":71,"context_line":"            except Exception as e:"},{"line_number":72,"context_line":"                LOG.warning(\u0027Failed to execute Nova action. Exception: %s\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_fd22abb8","line":69,"range":{"start_line":69,"start_character":30,"end_line":69,"end_character":42},"updated":"2017-11-16 12:29:51.000000000","message":"Should be constant","commit_id":"c436969a6e36fbd5d6faec396539e7b6d9a997a1"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"fbca809eda8e982fedbd8f6ae420268f978a4a02","unresolved":false,"context_lines":[{"line_number":67,"context_line":"            try:"},{"line_number":68,"context_line":"                api \u003d data[API_CALL]"},{"line_number":69,"context_line":"                params \u003d data[\u0027parameters\u0027]"},{"line_number":70,"context_line":"                self.api_calls[api](data[VProps.ID], params)"},{"line_number":71,"context_line":"            except Exception as e:"},{"line_number":72,"context_line":"                LOG.warning(\u0027Failed to execute Nova action. Exception: %s\u0027,"},{"line_number":73,"context_line":"                            str(e))"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_3d160357","line":70,"range":{"start_line":70,"start_character":16,"end_line":70,"end_character":60},"updated":"2017-11-16 12:29:51.000000000","message":"Before calling, make sure api is not None","commit_id":"c436969a6e36fbd5d6faec396539e7b6d9a997a1"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"fbca809eda8e982fedbd8f6ae420268f978a4a02","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            LOG.exception(\u0027Failed to services.force_down - %s\u0027, e)"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"    def _reset_state(self, server, params):"},{"line_number":86,"context_line":"        state \u003d params.get(\u0027state\u0027)"},{"line_number":87,"context_line":"        try:"},{"line_number":88,"context_line":"            LOG.info(\u0027Nova servers.reset_state - server: %s, state: %s\u0027,"},{"line_number":89,"context_line":"                     str(server), str(state))"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_bd01d308","line":86,"range":{"start_line":86,"start_character":27,"end_line":86,"end_character":34},"updated":"2017-11-16 12:29:51.000000000","message":"Should be constant","commit_id":"c436969a6e36fbd5d6faec396539e7b6d9a997a1"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"fbca809eda8e982fedbd8f6ae420268f978a4a02","unresolved":false,"context_lines":[{"line_number":90,"context_line":"            response \u003d self.client.servers.reset_state(server, state)"},{"line_number":91,"context_line":"            LOG.info(\u0027RESPONSE %s\u0027, str(response))"},{"line_number":92,"context_line":"        except Exception as e:"},{"line_number":93,"context_line":"            LOG.exception(\u0027Failed to servers.reset_state - %s\u0027, e)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_e019e479","line":93,"range":{"start_line":93,"start_character":34,"end_line":93,"end_character":36},"updated":"2017-11-16 12:29:51.000000000","message":"to execute","commit_id":"c436969a6e36fbd5d6faec396539e7b6d9a997a1"}]}
