)]}'
{"ironic/conductor/utils.py":[{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"9d42ecdc7b90fd42c9ce8462f32a9078da423691","unresolved":false,"context_lines":[{"line_number":352,"context_line":"            task.driver.deploy.tear_down_cleaning(task)"},{"line_number":353,"context_line":"        except Exception as e:"},{"line_number":354,"context_line":"            msg \u003d (\u0027Failed to tear down cleaning on node %(uuid)s, \u0027"},{"line_number":355,"context_line":"                   \u0027reason: %(err)s\u0027 % {\u0027err\u0027: e, \u0027uuid\u0027: node.uuid})"},{"line_number":356,"context_line":"            LOG.exception(msg)"},{"line_number":357,"context_line":""},{"line_number":358,"context_line":"    if node.provision_state in ("}],"source_content_type":"text/x-python","patch_set":3,"id":"df7087c5_8acbb2a3","line":355,"updated":"2018-03-20 17:29:52.000000000","message":"We\u0027ll still end up overwriting the real reason that cleaning errored if tearing down cleaning fails, should we chain the messages together, e.g. Failed to tear down cleaning reason ... after cleaning failed due to reason ....","commit_id":"42296d18f31b440165d9e6c23e038769bd0429f6"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"b543c4c777d1af873dc3941647300dbe7a76a15a","unresolved":false,"context_lines":[{"line_number":352,"context_line":"            task.driver.deploy.tear_down_cleaning(task)"},{"line_number":353,"context_line":"        except Exception as e:"},{"line_number":354,"context_line":"            msg \u003d (\u0027Failed to tear down cleaning on node %(uuid)s, \u0027"},{"line_number":355,"context_line":"                   \u0027reason: %(err)s\u0027 % {\u0027err\u0027: e, \u0027uuid\u0027: node.uuid})"},{"line_number":356,"context_line":"            LOG.exception(msg)"},{"line_number":357,"context_line":""},{"line_number":358,"context_line":"    if node.provision_state in ("}],"source_content_type":"text/x-python","patch_set":3,"id":"df7087c5_cab76ad8","line":355,"in_reply_to":"df7087c5_2a1626f3","updated":"2018-03-20 17:38:57.000000000","message":"the error message that we put into last error comes into this function as the parameter msg and thats used to set the last error field below, but we overwrite msg here if we catch an exception, so then last error gets set to \"Failed to tear down cleaning on node\" instead of the reason cleaning failed passed into this function.\n\nSo we\u0027re no longer losing the cleaning error message due to code setting last error inside of tear_down_cleaning, but we do still lose the message if tear_down_cleaning raised an exception.","commit_id":"42296d18f31b440165d9e6c23e038769bd0429f6"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8350ee1d069a25a3397c9749d57c247f83958a6e","unresolved":false,"context_lines":[{"line_number":352,"context_line":"            task.driver.deploy.tear_down_cleaning(task)"},{"line_number":353,"context_line":"        except Exception as e:"},{"line_number":354,"context_line":"            msg \u003d (\u0027Failed to tear down cleaning on node %(uuid)s, \u0027"},{"line_number":355,"context_line":"                   \u0027reason: %(err)s\u0027 % {\u0027err\u0027: e, \u0027uuid\u0027: node.uuid})"},{"line_number":356,"context_line":"            LOG.exception(msg)"},{"line_number":357,"context_line":""},{"line_number":358,"context_line":"    if node.provision_state in ("}],"source_content_type":"text/x-python","patch_set":3,"id":"df7087c5_2a1626f3","line":355,"in_reply_to":"df7087c5_8acbb2a3","updated":"2018-03-20 17:32:58.000000000","message":"\u003e We\u0027ll still end up overwriting the real reason that cleaning errored if tearing down cleaning fails\n\nNot sure I get why.\n\nI like the idea of chaining the messages, but I\u0027d like to understand your concern.","commit_id":"42296d18f31b440165d9e6c23e038769bd0429f6"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"abd9b6ba90a24f822f403d3b875aac80c03c4471","unresolved":false,"context_lines":[{"line_number":352,"context_line":"            task.driver.deploy.tear_down_cleaning(task)"},{"line_number":353,"context_line":"        except Exception as e:"},{"line_number":354,"context_line":"            msg \u003d (\u0027Failed to tear down cleaning on node %(uuid)s, \u0027"},{"line_number":355,"context_line":"                   \u0027reason: %(err)s\u0027 % {\u0027err\u0027: e, \u0027uuid\u0027: node.uuid})"},{"line_number":356,"context_line":"            LOG.exception(msg)"},{"line_number":357,"context_line":""},{"line_number":358,"context_line":"    if node.provision_state in ("}],"source_content_type":"text/x-python","patch_set":3,"id":"df7087c5_eaf26e6f","line":355,"in_reply_to":"df7087c5_cab76ad8","updated":"2018-03-20 17:46:02.000000000","message":"Daaaaaamn, good catch. I guess I\u0027ll just rename it.","commit_id":"42296d18f31b440165d9e6c23e038769bd0429f6"}]}
