)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b6b6ba8663f434b69453fd75df701609d4214513","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Generalize exception handling in Nova driver"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Remove the catching of specific exceptions during instance spawn and"},{"line_number":10,"context_line":"perform required cleanup and reraising for all exceptions."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I9461139400d7aa0a339550cf89f3d49e3a8cb2c0"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"baada198_c8e1b4d1","line":10,"updated":"2014-07-24 18:15:05.000000000","message":"Maybe add more info here for folks like me, as to why we need to do this, since we don\u0027t do this for all operations.\n\neg \u0027We need to catch and clean up from all exceptions during instance spawn so that failed provisions properly disassociate instances from nodes and kick resources back to Nova.\u0027","commit_id":"cd3fa959c2eda71c46cb8f131015cffae4ee9b5a"}],"ironic/nova/tests/virt/ironic/test_driver.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b6b6ba8663f434b69453fd75df701609d4214513","unresolved":false,"context_lines":[{"line_number":667,"context_line":"        self.assertRaises(ironic_exception.BadRequest,"},{"line_number":668,"context_line":"                          self.driver.spawn,"},{"line_number":669,"context_line":"                          self.ctx, instance, None, [], None)"},{"line_number":670,"context_line":""},{"line_number":671,"context_line":"    @mock.patch.object(loopingcall, \u0027FixedIntervalLoopingCall\u0027)"},{"line_number":672,"context_line":"    @mock.patch.object(instance_obj.Instance, \u0027save\u0027)"},{"line_number":673,"context_line":"    @mock.patch.object(FAKE_CLIENT, \u0027node\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_a89480e8","line":670,"updated":"2014-07-24 18:15:05.000000000","message":"Do you want to check mock_node, mock_looping, mock_cleanup_deploy, etc, to see if they were called or not?","commit_id":"cd3fa959c2eda71c46cb8f131015cffae4ee9b5a"}],"ironic/nova/virt/ironic/driver.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"863fb64d5bad87efbfa94cbcdaf0f55f73b12506","unresolved":false,"context_lines":[{"line_number":550,"context_line":"            icli.call(\"node.set_provision_state\", node_uuid,"},{"line_number":551,"context_line":"                      ironic_states.ACTIVE)"},{"line_number":552,"context_line":"        except Exception as e:"},{"line_number":553,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":554,"context_line":"                msg \u003d (_(\"Failed to request Ironic to provision instance \""},{"line_number":555,"context_line":"                         \"%(inst)s: %(reason)s\") % {\u0027inst\u0027: instance[\u0027uuid\u0027],"},{"line_number":556,"context_line":"                                                    \u0027reason\u0027: str(e)})"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_f21bc56c","line":553,"updated":"2014-07-24 17:10:08.000000000","message":"So this is a dumb question. I\u0027m not sure who/what calls spawn(), but it isn\u0027t this driver. And this is in nova. Should we be raising ironic exceptions here, or converting them to nova exceptions?","commit_id":"cd3fa959c2eda71c46cb8f131015cffae4ee9b5a"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b6b6ba8663f434b69453fd75df701609d4214513","unresolved":false,"context_lines":[{"line_number":550,"context_line":"            icli.call(\"node.set_provision_state\", node_uuid,"},{"line_number":551,"context_line":"                      ironic_states.ACTIVE)"},{"line_number":552,"context_line":"        except Exception as e:"},{"line_number":553,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":554,"context_line":"                msg \u003d (_(\"Failed to request Ironic to provision instance \""},{"line_number":555,"context_line":"                         \"%(inst)s: %(reason)s\") % {\u0027inst\u0027: instance[\u0027uuid\u0027],"},{"line_number":556,"context_line":"                                                    \u0027reason\u0027: str(e)})"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_c86294ac","line":553,"in_reply_to":"baada198_f21bc56c","updated":"2014-07-24 18:15:05.000000000","message":"Adam explained that nova\u0027s compute manager [1] catches all Exception\u0027s, so it is ok to reraise ironic exceptions.\n\n[1] https://git.openstack.org/cgit/openstack/nova/tree/nova/compute/manager.py#n1344","commit_id":"cd3fa959c2eda71c46cb8f131015cffae4ee9b5a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"a3de010ef0520d87fcf4079c02aa7d2a28393ec2","unresolved":false,"context_lines":[{"line_number":551,"context_line":"                      ironic_states.ACTIVE)"},{"line_number":552,"context_line":"        except Exception as e:"},{"line_number":553,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":554,"context_line":"                msg \u003d (_(\"Failed to request Ironic to provision instance \""},{"line_number":555,"context_line":"                         \"%(inst)s: %(reason)s\") % {\u0027inst\u0027: instance[\u0027uuid\u0027],"},{"line_number":556,"context_line":"                                                    \u0027reason\u0027: str(e)})"},{"line_number":557,"context_line":"                LOG.error(msg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_7dbcebb5","line":554,"updated":"2014-07-24 16:40:09.000000000","message":"if we no longer use msg for raising exception, we can use _LE here","commit_id":"cd3fa959c2eda71c46cb8f131015cffae4ee9b5a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"a3de010ef0520d87fcf4079c02aa7d2a28393ec2","unresolved":false,"context_lines":[{"line_number":564,"context_line":"            timer.start(interval\u003dCONF.ironic.api_retry_interval).wait()"},{"line_number":565,"context_line":"        except Exception:"},{"line_number":566,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":567,"context_line":"                LOG.error(_(\"Error deploying instance %(instance)s on \""},{"line_number":568,"context_line":"                            \"baremetal node %(node)s.\") %"},{"line_number":569,"context_line":"                          {\u0027instance\u0027: instance[\u0027uuid\u0027],"},{"line_number":570,"context_line":"                           \u0027node\u0027: node_uuid})"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_5dd647f3","line":567,"updated":"2014-07-24 16:40:09.000000000","message":"maybe change this to _LE as well, if we touch this code?","commit_id":"cd3fa959c2eda71c46cb8f131015cffae4ee9b5a"}]}
