)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"985ac9a814e227fc70dc23b49fe5ae933e9474b6","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"continue to delete next node if failed with previous one"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"We delete multiply nodes which include the non-exist nodes, ironic"},{"line_number":10,"context_line":"client will break at the node which non-exist, so with this patch,"},{"line_number":11,"context_line":"we will add try-except logic to continue to delete next one, and"},{"line_number":12,"context_line":"print the results which are deleted and which are failed."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"da6ed579_e2bd3a03","line":9,"updated":"2016-01-18 08:49:35.000000000","message":"nit:s/multiply/multiple/","commit_id":"82f704e1fb4c479fd22a01e3d023bc77fbffdc7e"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"3e504c52671ec245e0f15be578eedb41bc008abc","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"continue to delete next node if failed with previous one"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"We delete multiply nodes which include the non-exist nodes, ironic"},{"line_number":10,"context_line":"client will break at the node which non-exist, so with this patch,"},{"line_number":11,"context_line":"we will add try-except logic to continue to delete next one, and"},{"line_number":12,"context_line":"print the results which are deleted and which are failed."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"9a68dd71_7187df61","line":9,"updated":"2016-01-21 03:22:04.000000000","message":"nit: multiple nodes not multiply nodes","commit_id":"c73b85e1df80e920159701629561485db8ee3c1a"}],"ironicclient/tests/unit/v1/test_node_shell.py":[{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"3e504c52671ec245e0f15be578eedb41bc008abc","unresolved":false,"context_lines":[{"line_number":76,"context_line":"    def test_do_node_delete_multiple_with_exception(self):"},{"line_number":77,"context_line":"        client_mock \u003d mock.MagicMock()"},{"line_number":78,"context_line":"        client_mock.node.delete.side_effect \u003d ("},{"line_number":79,"context_line":"            [None, exceptions.ClientException])"},{"line_number":80,"context_line":"        args \u003d mock.MagicMock()"},{"line_number":81,"context_line":"        args.node \u003d [\u0027node_uuid1\u0027, \u0027node_uuid2\u0027]"},{"line_number":82,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"9a68dd71_b18d577d","line":79,"updated":"2016-01-21 03:22:04.000000000","message":"nit: [exceptions.ClientException, None] might be better.","commit_id":"c73b85e1df80e920159701629561485db8ee3c1a"}],"ironicclient/v1/node_shell.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"6930d991b403bdbd4f050b1e74c6a9ada3f5b5ac","unresolved":false,"context_lines":[{"line_number":218,"context_line":"        try:"},{"line_number":219,"context_line":"            cc.node.delete(n)"},{"line_number":220,"context_line":"            print(_(\u0027Deleted node %s\u0027) % n)"},{"line_number":221,"context_line":"        except Exception as e:"},{"line_number":222,"context_line":"            print(\"Delete node %(node)s failed, error: \""},{"line_number":223,"context_line":"                  \"%(error)s\" % {\u0027node\u0027: n, \u0027error\u0027: e})"},{"line_number":224,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa69d971_988eb3ce","line":221,"updated":"2016-01-05 21:36:57.000000000","message":"this has a consequence of masking programming errors, e.g. we\u0027ll no longer be able to use --debug to get a traceback. maybe catch only 4xx HTTP errors here?","commit_id":"6372c024b8143f15eae1955ac96f22be834c5a28"},{"author":{"_account_id":8106,"name":"Haomeng,Wang","email":"wanghaomeng@gmail.com","username":"whaom"},"change_message_id":"f96b4f1544b6e4b2497a4d61ba7a43572fa0e6a4","unresolved":false,"context_lines":[{"line_number":218,"context_line":"        try:"},{"line_number":219,"context_line":"            cc.node.delete(n)"},{"line_number":220,"context_line":"            print(_(\u0027Deleted node %s\u0027) % n)"},{"line_number":221,"context_line":"        except Exception as e:"},{"line_number":222,"context_line":"            print(\"Delete node %(node)s failed, error: \""},{"line_number":223,"context_line":"                  \"%(error)s\" % {\u0027node\u0027: n, \u0027error\u0027: e})"},{"line_number":224,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa69d971_5519a420","line":221,"in_reply_to":"fa69d971_988eb3ce","updated":"2016-01-07 03:00:13.000000000","message":"This looks like not a HTTP exception, I try to debug, it is ironicclient.openstack.common.apiclient.exceptions.NotFound exception for invalid uuid case, and 4xx HTTP exception is catched by these code[1] already. So we need to catch \n\nhttps://github.com/openstack/python-ironicclient/blob/master/ironicclient/common/http.py#L507-L510\n\nSo I just change Exception to ClientException to have a exactly catch block, any thoughts?","commit_id":"6372c024b8143f15eae1955ac96f22be834c5a28"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"ba3a9a4ff6f9a6a6c14ce16255e34601ccc17e8f","unresolved":false,"context_lines":[{"line_number":218,"context_line":"        try:"},{"line_number":219,"context_line":"            cc.node.delete(n)"},{"line_number":220,"context_line":"            print(_(\u0027Deleted node %s\u0027) % n)"},{"line_number":221,"context_line":"        except exceptions.ClientExceptio as e:"},{"line_number":222,"context_line":"            print(_(\"Delete node %(node)s failed, error: \""},{"line_number":223,"context_line":"                  \"%(error)s\") % {\u0027node\u0027: n, \u0027error\u0027: e})"},{"line_number":224,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"da6ed579_37638843","line":221,"updated":"2016-01-18 12:46:51.000000000","message":"typo in Exception","commit_id":"82f704e1fb4c479fd22a01e3d023bc77fbffdc7e"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"985ac9a814e227fc70dc23b49fe5ae933e9474b6","unresolved":false,"context_lines":[{"line_number":220,"context_line":"            print(_(\u0027Deleted node %s\u0027) % n)"},{"line_number":221,"context_line":"        except exceptions.ClientExceptio as e:"},{"line_number":222,"context_line":"            print(_(\"Delete node %(node)s failed, error: \""},{"line_number":223,"context_line":"                  \"%(error)s\") % {\u0027node\u0027: n, \u0027error\u0027: e})"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"@cliutils.arg(\u0027node\u0027, metavar\u003d\u0027\u003cnode\u003e\u0027, help\u003d\"Name or UUID of the node.\")"}],"source_content_type":"text/x-python","patch_set":5,"id":"da6ed579_0203ae10","line":223,"updated":"2016-01-18 08:49:35.000000000","message":"You can fake cc.node.delete.side_effect\u003d[None, exceptions.ClientExceptio] in test_do_node_delete_multiple(), without try/except handle thing in your patch, test will fail. This can prove you patch is working correctly.","commit_id":"82f704e1fb4c479fd22a01e3d023bc77fbffdc7e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"42dca4c6e1e2e7315807317ba2e5ee49e1a8fc84","unresolved":false,"context_lines":[{"line_number":219,"context_line":"            cc.node.delete(n)"},{"line_number":220,"context_line":"            print(_(\u0027Deleted node %s\u0027) % n)"},{"line_number":221,"context_line":"        except exceptions.ClientException as e:"},{"line_number":222,"context_line":"            print(_(\"Delete node %(node)s failed, error: \""},{"line_number":223,"context_line":"                  \"%(error)s\") % {\u0027node\u0027: n, \u0027error\u0027: e})"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"7a5de9d1_f048cd8c","line":222,"updated":"2016-02-02 11:47:47.000000000","message":"\"Failed to delete node %(node)s: %(error)s\"","commit_id":"188e317f987e43f45857328d7ad3adb343a14cb6"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"ba3636a0fbc46a8a9fbf1f712d18a44fa8f917a3","unresolved":false,"context_lines":[{"line_number":219,"context_line":"            cc.node.delete(n)"},{"line_number":220,"context_line":"            print(_(\u0027Deleted node %s\u0027) % n)"},{"line_number":221,"context_line":"        except exceptions.ClientException as e:"},{"line_number":222,"context_line":"            print(_(\"Failed to delete node %(node)s: %(error)s\")"},{"line_number":223,"context_line":"                  % {\u0027node\u0027: n, \u0027error\u0027: e})"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"dae33548_3881fd8f","line":222,"updated":"2016-02-18 03:29:59.000000000","message":"We should use oslo.log no?","commit_id":"6efd5d8653fee9c506885553e9b2f2b7c76a4db4"},{"author":{"_account_id":8106,"name":"Haomeng,Wang","email":"wanghaomeng@gmail.com","username":"whaom"},"change_message_id":"c96c8b4974b9c50f56211d23454ebb7e37d4859d","unresolved":false,"context_lines":[{"line_number":219,"context_line":"            cc.node.delete(n)"},{"line_number":220,"context_line":"            print(_(\u0027Deleted node %s\u0027) % n)"},{"line_number":221,"context_line":"        except exceptions.ClientException as e:"},{"line_number":222,"context_line":"            print(_(\"Failed to delete node %(node)s: %(error)s\")"},{"line_number":223,"context_line":"                  % {\u0027node\u0027: n, \u0027error\u0027: e})"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"dae33548_f26b311c","line":222,"in_reply_to":"dae33548_3881fd8f","updated":"2016-02-18 05:32:47.000000000","message":"I think this is shell script, so we can just call print to show message on console.","commit_id":"6efd5d8653fee9c506885553e9b2f2b7c76a4db4"}],"releasenotes/notes/continue-del-next-node-8827e67e1c41a0a5.yaml":[{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"ba3636a0fbc46a8a9fbf1f712d18a44fa8f917a3","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - continue to delete next node if failed with previous one."}],"source_content_type":"text/x-yaml","patch_set":14,"id":"dae33548_98464979","line":3,"updated":"2016-02-18 03:29:59.000000000","message":"Maybe \"when deleting multiple nodes, continue with deletes even if one fails\"?","commit_id":"6efd5d8653fee9c506885553e9b2f2b7c76a4db4"},{"author":{"_account_id":8106,"name":"Haomeng,Wang","email":"wanghaomeng@gmail.com","username":"whaom"},"change_message_id":"c96c8b4974b9c50f56211d23454ebb7e37d4859d","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - continue to delete next node if failed with previous one."}],"source_content_type":"text/x-yaml","patch_set":14,"id":"dae33548_72660152","line":3,"in_reply_to":"dae33548_98464979","updated":"2016-02-18 05:32:47.000000000","message":"Done","commit_id":"6efd5d8653fee9c506885553e9b2f2b7c76a4db4"}]}
