)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8106,"name":"Haomeng,Wang","email":"wanghaomeng@gmail.com","username":"whaom"},"change_message_id":"ee21c14baa1232f7792950c6b67323321a90735e","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add node UUID to messages/exceptions"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Add the node UUID to some messages/exceptions that didn\u0027t have the node"},{"line_number":10,"context_line":"UUID being displayed."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Update unit tests to ensure the UUID is present in the"},{"line_number":13,"context_line":"messages/exceptions."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Partial-Bug: #1567689"},{"line_number":16,"context_line":"Change-Id: I8fb62dd341aba71062f47e82db2d0d85320827a4"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9a061dce_260a5526","line":15,"range":{"start_line":9,"start_character":0,"end_line":15,"end_character":21},"updated":"2016-04-08 01:46:18.000000000","message":"I understand that we will have more patches to add node uuid to more message, and this just covers node_power_action code path only, right?\n\nAnd we need to have a clear message here what fix is done by this patch, and if it is partial fix, else, it should be a Closes-Bug tag covering all fix for such same issue.","commit_id":"28052b0b0cf528716d8fe37320d43693d14ff077"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"3d6eccb1747d33c9997c49baee29209cd2b2a925","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add node UUID to messages/exceptions"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Add the node UUID to some messages/exceptions that didn\u0027t have the node"},{"line_number":10,"context_line":"UUID being displayed."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Update unit tests to ensure the UUID is present in the"},{"line_number":13,"context_line":"messages/exceptions."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Partial-Bug: #1567689"},{"line_number":16,"context_line":"Change-Id: I8fb62dd341aba71062f47e82db2d0d85320827a4"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9a061dce_bac5cd0b","line":15,"range":{"start_line":9,"start_character":0,"end_line":15,"end_character":21},"in_reply_to":"9a061dce_260a5526","updated":"2016-04-08 07:36:01.000000000","message":"+1","commit_id":"28052b0b0cf528716d8fe37320d43693d14ff077"}],"ironic/conductor/manager.py":[{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"0a7ad1152f009fed38ec22315f66187383e222bf","unresolved":false,"context_lines":[{"line_number":2514,"context_line":"        node.last_error \u003d e"},{"line_number":2515,"context_line":"        task.process_event(\u0027fail\u0027)"},{"line_number":2516,"context_line":"        LOG.error(_LE(\"Failed to inspect node %(node)s: %(err)s\"),"},{"line_number":2517,"context_line":"                  {\u0027node\u0027: node.uuid, \u0027err\u0027: e})"},{"line_number":2518,"context_line":""},{"line_number":2519,"context_line":"    try:"},{"line_number":2520,"context_line":"        new_state \u003d task.driver.inspect.inspect_hardware(task)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a061dce_78e9421a","line":2517,"updated":"2016-04-05 08:53:56.000000000","message":"There is node uuid in the log already.","commit_id":"e90ae43be129bff6d0540e3b22dd609c03f110c5"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"d49e9deac121b8c6bc983e33077ddc51d642bee1","unresolved":false,"context_lines":[{"line_number":2514,"context_line":"        node.last_error \u003d e"},{"line_number":2515,"context_line":"        task.process_event(\u0027fail\u0027)"},{"line_number":2516,"context_line":"        LOG.error(_LE(\"Failed to inspect node %(node)s: %(err)s\"),"},{"line_number":2517,"context_line":"                  {\u0027node\u0027: node.uuid, \u0027err\u0027: e})"},{"line_number":2518,"context_line":""},{"line_number":2519,"context_line":"    try:"},{"line_number":2520,"context_line":"        new_state \u003d task.driver.inspect.inspect_hardware(task)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a061dce_3a6e7495","line":2517,"in_reply_to":"9a061dce_78e9421a","updated":"2016-04-05 20:49:56.000000000","message":"Oh yes. Good catch. Thanks for your input will revert that.","commit_id":"e90ae43be129bff6d0540e3b22dd609c03f110c5"}],"ironic/conductor/utils.py":[{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"02d5922593f7d6dc3200a02ff698a05b8383e9e9","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        except Exception as e:"},{"line_number":81,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":82,"context_line":"                node[\u0027last_error\u0027] \u003d _("},{"line_number":83,"context_line":"                    \"Node %(node)s failed to change power state to \""},{"line_number":84,"context_line":"                    \"\u0027%(target)s\u0027. Error: %(error)s\") % {"},{"line_number":85,"context_line":"                        \u0027node\u0027: node.uuid, \u0027target\u0027: new_state, \u0027error\u0027:"},{"line_number":86,"context_line":"                        e}"},{"line_number":87,"context_line":"                node[\u0027target_power_state\u0027] \u003d states.NOSTATE"},{"line_number":88,"context_line":"                node.save()"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a061dce_1f78f5c3","line":86,"range":{"start_line":83,"start_character":20,"end_line":86,"end_character":26},"updated":"2016-04-05 05:22:00.000000000","message":"I don\u0027t think we need to explicitly add the uuid here, as you need to use `ironic node-show xxx` to get node\u0027s last error, so when you see it, you already known it belongs to node xxx.","commit_id":"e90ae43be129bff6d0540e3b22dd609c03f110c5"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"0a7ad1152f009fed38ec22315f66187383e222bf","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        except Exception as e:"},{"line_number":81,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":82,"context_line":"                node[\u0027last_error\u0027] \u003d _("},{"line_number":83,"context_line":"                    \"Node %(node)s failed to change power state to \""},{"line_number":84,"context_line":"                    \"\u0027%(target)s\u0027. Error: %(error)s\") % {"},{"line_number":85,"context_line":"                        \u0027node\u0027: node.uuid, \u0027target\u0027: new_state, \u0027error\u0027:"},{"line_number":86,"context_line":"                        e}"},{"line_number":87,"context_line":"                node[\u0027target_power_state\u0027] \u003d states.NOSTATE"},{"line_number":88,"context_line":"                node.save()"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a061dce_9846d621","line":86,"range":{"start_line":83,"start_character":20,"end_line":86,"end_character":26},"in_reply_to":"9a061dce_1f78f5c3","updated":"2016-04-05 08:53:56.000000000","message":"+1. \u0027last_error\u0027 is the node field.","commit_id":"e90ae43be129bff6d0540e3b22dd609c03f110c5"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"d49e9deac121b8c6bc983e33077ddc51d642bee1","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        except Exception as e:"},{"line_number":81,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":82,"context_line":"                node[\u0027last_error\u0027] \u003d _("},{"line_number":83,"context_line":"                    \"Node %(node)s failed to change power state to \""},{"line_number":84,"context_line":"                    \"\u0027%(target)s\u0027. Error: %(error)s\") % {"},{"line_number":85,"context_line":"                        \u0027node\u0027: node.uuid, \u0027target\u0027: new_state, \u0027error\u0027:"},{"line_number":86,"context_line":"                        e}"},{"line_number":87,"context_line":"                node[\u0027target_power_state\u0027] \u003d states.NOSTATE"},{"line_number":88,"context_line":"                node.save()"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a061dce_3a05d4bb","line":86,"range":{"start_line":83,"start_character":20,"end_line":86,"end_character":26},"in_reply_to":"9a061dce_1f78f5c3","updated":"2016-04-05 20:49:56.000000000","message":"Oh yeah. Thanks for your input. Will revert and submit new patch","commit_id":"e90ae43be129bff6d0540e3b22dd609c03f110c5"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"c3eb91e5a0e49e0f4dfc1fcd039ee67a8ecb8d68","unresolved":false,"context_lines":[{"line_number":102,"context_line":"            node[\u0027power_state\u0027] \u003d new_state"},{"line_number":103,"context_line":"            node[\u0027target_power_state\u0027] \u003d states.NOSTATE"},{"line_number":104,"context_line":"            node.save()"},{"line_number":105,"context_line":"            LOG.warning(_LW(\"Not going to change node power state because \""},{"line_number":106,"context_line":"                            \"current state \u003d requested state \u003d \u0027%(state)s\u0027.\"),"},{"line_number":107,"context_line":"                        {\u0027state\u0027: curr_state})"},{"line_number":108,"context_line":"            return"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        if curr_state \u003d\u003d states.ERROR:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a061dce_bd12ac60","line":107,"range":{"start_line":105,"start_character":24,"end_line":107,"end_character":46},"updated":"2016-04-05 08:38:30.000000000","message":"you might also need to add node.uuid here too","commit_id":"e90ae43be129bff6d0540e3b22dd609c03f110c5"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"d49e9deac121b8c6bc983e33077ddc51d642bee1","unresolved":false,"context_lines":[{"line_number":102,"context_line":"            node[\u0027power_state\u0027] \u003d new_state"},{"line_number":103,"context_line":"            node[\u0027target_power_state\u0027] \u003d states.NOSTATE"},{"line_number":104,"context_line":"            node.save()"},{"line_number":105,"context_line":"            LOG.warning(_LW(\"Not going to change node power state because \""},{"line_number":106,"context_line":"                            \"current state \u003d requested state \u003d \u0027%(state)s\u0027.\"),"},{"line_number":107,"context_line":"                        {\u0027state\u0027: curr_state})"},{"line_number":108,"context_line":"            return"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        if curr_state \u003d\u003d states.ERROR:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a061dce_5b6417e3","line":107,"range":{"start_line":105,"start_character":24,"end_line":107,"end_character":46},"in_reply_to":"9a061dce_bd12ac60","updated":"2016-04-05 20:49:56.000000000","message":"Yes. I just added in few methods on which I was working. I will add here too.","commit_id":"e90ae43be129bff6d0540e3b22dd609c03f110c5"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"a792d8d1efa9d1cfd9645f6c9cd269958ab43abd","unresolved":false,"context_lines":[{"line_number":128,"context_line":"            task.driver.power.reboot(task)"},{"line_number":129,"context_line":"    except Exception as e:"},{"line_number":130,"context_line":"        with excutils.save_and_reraise_exception():"},{"line_number":131,"context_line":"            node[\u0027last_error\u0027] \u003d _("},{"line_number":132,"context_line":"                \"Node %(node)s failed to change power state to \u0027%(target)s\u0027. \""},{"line_number":133,"context_line":"                \"Error: %(error)s\") % {\u0027node\u0027: node.uuid, \u0027target\u0027:"},{"line_number":134,"context_line":"                                       target_state, \u0027error\u0027: e}"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a061dce_f5cdea31","line":131,"updated":"2016-04-07 00:32:31.000000000","message":"I thought this wasn\u0027t going to get removed based on comments in patch set 1.","commit_id":"d3cfec837e679ab4c00f7e220b0bbc1ff644739a"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"0c66528c89d7e3341656f77d19d7868d3ad9554b","unresolved":false,"context_lines":[{"line_number":128,"context_line":"            task.driver.power.reboot(task)"},{"line_number":129,"context_line":"    except Exception as e:"},{"line_number":130,"context_line":"        with excutils.save_and_reraise_exception():"},{"line_number":131,"context_line":"            node[\u0027last_error\u0027] \u003d _("},{"line_number":132,"context_line":"                \"Node %(node)s failed to change power state to \u0027%(target)s\u0027. \""},{"line_number":133,"context_line":"                \"Error: %(error)s\") % {\u0027node\u0027: node.uuid, \u0027target\u0027:"},{"line_number":134,"context_line":"                                       target_state, \u0027error\u0027: e}"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a061dce_7839cfd6","line":131,"in_reply_to":"9a061dce_f5cdea31","updated":"2016-04-07 00:48:18.000000000","message":"Oh. Yeah this is also going in field \"last_error\". I will revert that","commit_id":"d3cfec837e679ab4c00f7e220b0bbc1ff644739a"}],"ironic/tests/unit/conductor/test_utils.py":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"47e28c8a8a3151441f6750f3268f46e8b9fe134f","unresolved":false,"context_lines":[{"line_number":208,"context_line":"                self.assertIsNone(node[\u0027target_power_state\u0027])"},{"line_number":209,"context_line":"                self.assertIsNone(node[\u0027last_error\u0027])"},{"line_number":210,"context_line":"                log_mock.warning.assert_called_once_with("},{"line_number":211,"context_line":"                    u\"Not going to change node %(node)s power state because \""},{"line_number":212,"context_line":"                    u\"current state \u003d requested state \u003d \u0027%(state)s\u0027.\","},{"line_number":213,"context_line":"                    {\u0027state\u0027: states.POWER_ON, \u0027node\u0027: node.uuid})"},{"line_number":214,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"7a1b2928_1c1ddd0f","line":211,"updated":"2016-04-10 17:41:18.000000000","message":"I\u0027d rather check that the message contains node uuid, not the whole string.","commit_id":"db02ef5173c33af68d2ee9827b49b6f2ff7b2392"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"a719d975f793a8da0f1c390c110ca6e369a51474","unresolved":false,"context_lines":[{"line_number":208,"context_line":"                self.assertIsNone(node[\u0027target_power_state\u0027])"},{"line_number":209,"context_line":"                self.assertIsNone(node[\u0027last_error\u0027])"},{"line_number":210,"context_line":"                log_mock.warning.assert_called_once_with("},{"line_number":211,"context_line":"                    u\"Not going to change node %(node)s power state because \""},{"line_number":212,"context_line":"                    u\"current state \u003d requested state \u003d \u0027%(state)s\u0027.\","},{"line_number":213,"context_line":"                    {\u0027state\u0027: states.POWER_ON, \u0027node\u0027: node.uuid})"},{"line_number":214,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"5a18252c_2604cd15","line":211,"in_reply_to":"5a18252c_d0d678c4","updated":"2016-04-12 21:32:45.000000000","message":"To some extent, it seems silly because this looks quite similar to the actual code, so I wouldn\u0027t be surprised if you had a case where the code was incorrect (eg \u0027(node)s\u0027 instead of \u0027%(node)s\u0027 and if this test had the same \u0027(node)s\u0027 it would succeed.\n\nI don\u0027t think we have any consensus on this and personally, I wouldn\u0027t have even added this test because we don\u0027t normally test every log line.\n\nWe could bikeshed on this and I believe in the past, we\u0027ve had people change the tests so the entire string isn\u0027t there, especially since I don\u0027t want others to copy this. But since John is for this and I assume didn\u0027t bribe Anup to put it in, I guess we can let it go.","commit_id":"db02ef5173c33af68d2ee9827b49b6f2ff7b2392"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"81c9fc850cb87d59f2035f9a588d5b70a12f6963","unresolved":false,"context_lines":[{"line_number":208,"context_line":"                self.assertIsNone(node[\u0027target_power_state\u0027])"},{"line_number":209,"context_line":"                self.assertIsNone(node[\u0027last_error\u0027])"},{"line_number":210,"context_line":"                log_mock.warning.assert_called_once_with("},{"line_number":211,"context_line":"                    u\"Not going to change node %(node)s power state because \""},{"line_number":212,"context_line":"                    u\"current state \u003d requested state \u003d \u0027%(state)s\u0027.\","},{"line_number":213,"context_line":"                    {\u0027state\u0027: states.POWER_ON, \u0027node\u0027: node.uuid})"},{"line_number":214,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"7a1b2928_7d7e88af","line":211,"in_reply_to":"7a1b2928_1c1ddd0f","updated":"2016-04-11 05:57:32.000000000","message":"+1, this is too much","commit_id":"db02ef5173c33af68d2ee9827b49b6f2ff7b2392"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"4591f5a9d61a16eeeb98751086915c071a180328","unresolved":false,"context_lines":[{"line_number":208,"context_line":"                self.assertIsNone(node[\u0027target_power_state\u0027])"},{"line_number":209,"context_line":"                self.assertIsNone(node[\u0027last_error\u0027])"},{"line_number":210,"context_line":"                log_mock.warning.assert_called_once_with("},{"line_number":211,"context_line":"                    u\"Not going to change node %(node)s power state because \""},{"line_number":212,"context_line":"                    u\"current state \u003d requested state \u003d \u0027%(state)s\u0027.\","},{"line_number":213,"context_line":"                    {\u0027state\u0027: states.POWER_ON, \u0027node\u0027: node.uuid})"},{"line_number":214,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"5a18252c_d0d678c4","line":211,"in_reply_to":"7a1b2928_7d7e88af","updated":"2016-04-12 19:34:05.000000000","message":"I guess it could be assert...(mock.ANY, {\u0027state\u0027: ..., \u0027node\u0027: node.uuid}\n\nBut me personally I like the full message. Though I realize I am in the minority. But I will keep fighting the good fight :)  As I keep seeing issues where they would be caught if we check the whole message.\n\nFor example this patch: https://review.openstack.org/#/c/300204/","commit_id":"db02ef5173c33af68d2ee9827b49b6f2ff7b2392"}]}
