)]}'
{"watcher_tempest_plugin/tests/scenario/base.py":[{"author":{"_account_id":19055,"name":"Alexander Chadin","email":"joker946@gmail.com","username":"joker946"},"change_message_id":"11c38a4e76faf0d22ce9d74d5e035903f1cb4cb9","unresolved":false,"context_lines":[{"line_number":123,"context_line":"        :return: A tuple with The HTTP response and its body"},{"line_number":124,"context_line":"        \"\"\""},{"line_number":125,"context_line":"        # Checking if action_plan is ongoing before creating audit"},{"line_number":126,"context_line":"        # If there are action_plans ongoing, the new audit will fail"},{"line_number":127,"context_line":"        # and the state will be set to CANCELLED"},{"line_number":128,"context_line":"        _, action_plans \u003d self.client.list_action_plans()"},{"line_number":129,"context_line":"        for action_plan in action_plans.get(\"action_plans\", []):"},{"line_number":130,"context_line":"            self.assertTrue(test_utils.call_until_true("}],"source_content_type":"text/x-python","patch_set":2,"id":"3f1d235d_6206061f","line":127,"range":{"start_line":126,"start_character":45,"end_line":127,"end_character":48},"updated":"2017-07-05 11:49:48.000000000","message":"Where is the responsible logic?","commit_id":"f43ac118f6e38e360783573a7b73c9dcd3ecb35b"},{"author":{"_account_id":21692,"name":"licanwei","email":"li.canwei2@zte.com.cn","username":"licanwei"},"change_message_id":"5a11c59549b4ffb4969ab267a84c7810ef2a0bae","unresolved":false,"context_lines":[{"line_number":123,"context_line":"        :return: A tuple with The HTTP response and its body"},{"line_number":124,"context_line":"        \"\"\""},{"line_number":125,"context_line":"        # Checking if action_plan is ongoing before creating audit"},{"line_number":126,"context_line":"        # If there are action_plans ongoing, the new audit will fail"},{"line_number":127,"context_line":"        # and the state will be set to CANCELLED"},{"line_number":128,"context_line":"        _, action_plans \u003d self.client.list_action_plans()"},{"line_number":129,"context_line":"        for action_plan in action_plans.get(\"action_plans\", []):"},{"line_number":130,"context_line":"            self.assertTrue(test_utils.call_until_true("}],"source_content_type":"text/x-python","patch_set":2,"id":"ff346bd7_d458cc88","line":127,"range":{"start_line":126,"start_character":45,"end_line":127,"end_character":48},"in_reply_to":"3f1d235d_12054411","updated":"2017-07-28 02:48:20.000000000","message":"I got some logging from http://logs.openstack.org/52/488152/4/check/gate-watcher-dsvm-multinode-ubuntu-xenial-nv/b9a1812/console.html:\n2017-07-27 21:52:53.183791 | \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\n2017-07-27 21:52:53.183807 | Failed 1 tests - output below:\n2017-07-27 21:52:53.183819 | \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\n2017-07-27 21:52:53.183825 | \n2017-07-27 21:52:53.183854 | watcher_tempest_plugin.tests.scenario.test_execute_dummy_optim.TestExecuteDummyStrategy.test_execute_dummy_action_plan\n2017-07-27 21:52:53.183885 | ----------------------------------------------------------------------------------------------------------------------\n2017-07-27 21:52:53.183891 | \n2017-07-27 21:52:53.183900 | Captured traceback:\n2017-07-27 21:52:53.184135 | ~~~~~~~~~~~~~~~~~~~\n2017-07-27 21:52:53.184157 |     Traceback (most recent call last):\n2017-07-27 21:52:53.184197 |       File \"/opt/stack/new/watcher/watcher_tempest_plugin/tests/scenario/test_execute_dummy_optim.py\", line 50, in test_execute_dummy_action_plan\n2017-07-27 21:52:53.184220 |         self.assertTrue(self.has_audit_succeeded(audit[\u0027uuid\u0027]))\n2017-07-27 21:52:53.184252 |       File \"/opt/stack/new/watcher/watcher_tempest_plugin/tests/scenario/base.py\", line 147, in has_audit_succeeded\n2017-07-27 21:52:53.184276 |         raise ValueError()\n2017-07-27 21:52:53.184289 |     ValueError\n\nCaptured pythonlogging:\naudit:\nBody: {\"auto_trigger\": false, \"next_run_time\": null, \"audit_type\": \"ONESHOT\", \"interval\": null, \"uuid\": \"bbc7f1d0-765b-48bf-a67d-ec77ee84337d\", \"parameters\": {}, \"goal_uuid\": \"5b2ef346-d03d-4bc9-8128-ae807ee34ed9\", \"created_at\": \"2017-07-27T21:51:39+00:00\", \"links\": [{\"href\": \"http://10.16.106.249:9322/v1/audits/bbc7f1d0-765b-48bf-a67d-ec77ee84337d\", \"rel\": \"self\"}, {\"href\": \"http://10.16.106.249:9322/audits/bbc7f1d0-765b-48bf-a67d-ec77ee84337d\", \"rel\": \"bookmark\"}], \"goal_name\": \"dummy\", \"strategy_name\": null, \"updated_at\": \"2017-07-27T21:51:40+00:00\", \"state\": \"CANCELLED\", \"strategy_uuid\": null, \"scope\": [], \"deleted_at\": null}\n\nThen we know the audit uuid \"bbc7f1d0-765b-48bf-a67d-ec77ee84337d\".\n\nsearch the audit uui in the http://logs.openstack.org/52/488152/4/check/gate-watcher-dsvm-multinode-ubuntu-xenial-nv/b9a1812/logs/screen-watcher-decision-engine.txt.gz\n\nwe find logging:\nJul 27 21:51:39.508243 ubuntu-xenial-2-node-osic-cloud1-disk-10130195 watcher-decision-engine[17342]: 2017-07-27 21:51:39.505 DEBUG oslo_messaging._drivers.amqpdriver [req-d398a1b1-f243-4694-8d92-691224d76e3f None None None] received message with unique_id: 41c8891c417646b190e4910669d11e70 __call__ /usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:269\nJul 27 21:51:39.510474 ubuntu-xenial-2-node-osic-cloud1-disk-10130195 watcher-decision-engine[17342]: 2017-07-27 21:51:39.509 DEBUG watcher.decision_engine.messaging.audit_endpoint [req-44b1e115-fe4c-4452-aac5-d94af76b0f1a None None None] Trigger audit bbc7f1d0-765b-48bf-a67d-ec77ee84337d trigger_audit /opt/stack/new/watcher/watcher/decision_engine/messaging/audit_endpoint.py:51\nJul 27 21:51:39.519364 ubuntu-xenial-2-node-osic-cloud1-disk-10130195 watcher-decision-engine[17342]: 2017-07-27 21:51:39.518 DEBUG watcher.decision_engine.audit.base [req-44b1e115-fe4c-4452-aac5-d94af76b0f1a None None None] Trigger audit bbc7f1d0-765b-48bf-a67d-ec77ee84337d pre_execute /opt/stack/new/watcher/watcher/decision_engine/audit/base.py:112\nJul 27 21:51:39.523021 ubuntu-xenial-2-node-osic-cloud1-disk-10130195 watcher-decision-engine[17342]: 2017-07-27 21:51:39.522 WARNING watcher.decision_engine.audit.base [req-44b1e115-fe4c-4452-aac5-d94af76b0f1a None None None] Action Plan 6635d470-022b-440f-8e3b-23b7d781ee1b is currently running.: ActionPlanIsOngoing: Action Plan 6635d470-022b-440f-8e3b-23b7d781ee1b is currently running.\nJul 27 21:51:39.523625 ubuntu-xenial-2-node-osic-cloud1-disk-10130195 watcher-decision-engine[17342]: 2017-07-27 21:51:39.522 DEBUG watcher.decision_engine.audit.base [req-44b1e115-fe4c-4452-aac5-d94af76b0f1a None None None] Update audit state: CANCELLED update_audit_state /opt/stack/new/watcher/watcher/decision_engine/audit/base.py:99\nJul 27 21:51:39.533650 ubuntu-xenial-2-node-osic-cloud1-disk-10130195 watcher-decision-engine[17342]: 2017-07-27 21:51:39.531 DEBUG watcher.notifications.base [req-44b1e115-fe4c-4452-aac5-d94af76b0f1a None None None] Emitting notification `audit.update` _emit /opt/stack/new/watcher/watcher/notifications/base.py:177\n\nThe audit state was set to CANCELLED because  Action Plan 6635d470-022b-440f-8e3b-23b7d781ee1b is currently running.","commit_id":"f43ac118f6e38e360783573a7b73c9dcd3ecb35b"},{"author":{"_account_id":21692,"name":"licanwei","email":"li.canwei2@zte.com.cn","username":"licanwei"},"change_message_id":"49647a21c2e5f83de25c0a558bc07e84fbe4622d","unresolved":false,"context_lines":[{"line_number":123,"context_line":"        :return: A tuple with The HTTP response and its body"},{"line_number":124,"context_line":"        \"\"\""},{"line_number":125,"context_line":"        # Checking if action_plan is ongoing before creating audit"},{"line_number":126,"context_line":"        # If there are action_plans ongoing, the new audit will fail"},{"line_number":127,"context_line":"        # and the state will be set to CANCELLED"},{"line_number":128,"context_line":"        _, action_plans \u003d self.client.list_action_plans()"},{"line_number":129,"context_line":"        for action_plan in action_plans.get(\"action_plans\", []):"},{"line_number":130,"context_line":"            self.assertTrue(test_utils.call_until_true("}],"source_content_type":"text/x-python","patch_set":2,"id":"3f1d235d_12054411","line":127,"range":{"start_line":126,"start_character":45,"end_line":127,"end_character":48},"in_reply_to":"3f1d235d_6206061f","updated":"2017-07-06 03:23:45.000000000","message":"https://github.com/openstack/watcher/blob/master/watcher/decision_engine/audit/base.py#L132","commit_id":"f43ac118f6e38e360783573a7b73c9dcd3ecb35b"}]}
