)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2fedf5c8aa12f8e085360dd37ef4e36abebad49d","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Move _abort_attach_volumes functionality to detach_volumes"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This is a followup to the Cinder driver patch. There were several"},{"line_number":10,"context_line":"comments during review that asked why we weren\u0027t using"},{"line_number":11,"context_line":"detach_volumes instead of _abort_attach_volumes. This patch is a"},{"line_number":12,"context_line":"proposal to remove the method and merge it\u0027s functionality with"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"7f231b9d_ad6351b1","line":9,"updated":"2017-06-13 01:29:03.000000000","message":"it would be good to put a link to the original patch (eg, the commit value). Would make it easier for the reviewer (moi) to know what you are addressing.","commit_id":"eae8d8d4b3a509f041c80d404e209dc66ef12334"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"86743b26f7687072808d81296dac589be9137770","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Move _abort_attach_volumes functionality to detach_volumes"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This is a followup to the Cinder driver patch. There were several"},{"line_number":10,"context_line":"comments during review that asked why we weren\u0027t using"},{"line_number":11,"context_line":"detach_volumes instead of _abort_attach_volumes. This patch is a"},{"line_number":12,"context_line":"proposal to remove the method and merge it\u0027s functionality with"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"7f231b9d_31a85b8a","line":9,"in_reply_to":"7f231b9d_5349ed88","updated":"2017-06-15 16:56:17.000000000","message":"Done!","commit_id":"eae8d8d4b3a509f041c80d404e209dc66ef12334"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"00c1e9ac80c11859cdaec53161d5aa4f361bcdb0","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Move _abort_attach_volumes functionality to detach_volumes"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This is a followup to the Cinder driver patch. There were several"},{"line_number":10,"context_line":"comments during review that asked why we weren\u0027t using"},{"line_number":11,"context_line":"detach_volumes instead of _abort_attach_volumes. This patch is a"},{"line_number":12,"context_line":"proposal to remove the method and merge it\u0027s functionality with"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"7f231b9d_5349ed88","line":9,"in_reply_to":"7f231b9d_ad6351b1","updated":"2017-06-13 13:27:24.000000000","message":"++","commit_id":"eae8d8d4b3a509f041c80d404e209dc66ef12334"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"00c1e9ac80c11859cdaec53161d5aa4f361bcdb0","unresolved":false,"context_lines":[{"line_number":13,"context_line":"the detach_volumes method."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"This patch also addresses some nits found in the cinder driver."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: Ic5584bc1380a65fdd9a74c174bee63bae1c6a4b3"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"7f231b9d_d37bbdbb","line":16,"updated":"2017-06-13 13:27:24.000000000","message":"Also please add the partial-bug flag.","commit_id":"eae8d8d4b3a509f041c80d404e209dc66ef12334"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"86743b26f7687072808d81296dac589be9137770","unresolved":false,"context_lines":[{"line_number":13,"context_line":"the detach_volumes method."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"This patch also addresses some nits found in the cinder driver."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: Ic5584bc1380a65fdd9a74c174bee63bae1c6a4b3"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"7f231b9d_b19b4b71","line":16,"in_reply_to":"7f231b9d_d37bbdbb","updated":"2017-06-15 16:56:17.000000000","message":"Don\u0027t know why I keep forgetting this... Thanks!!","commit_id":"eae8d8d4b3a509f041c80d404e209dc66ef12334"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"7dd2faac0f22acdc83a41a1c7c8704708b195685","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"This patch also addresses some nits found in the cinder driver."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"[0] https://review.openstack.org/#/c/467766/"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Change-Id: Ic5584bc1380a65fdd9a74c174bee63bae1c6a4b3"},{"line_number":20,"context_line":"Parital-bug: #1559691"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"5f201791_5e3b899b","line":17,"updated":"2017-06-20 14:30:25.000000000","message":"I was going to give this another go, but this link is this patch :-(\n\nFor the actual original patch, people prefer the commit value or the change-id value, preference being the commit value I believe. (Ie, not the URL link to the patch.)","commit_id":"5bf3fb9bfa73b42237854c21caa37fe5ea11447d"}],"ironic/drivers/modules/storage/cinder.py":[{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"79a69db492765f17bb064580d7088d4580977c80","unresolved":false,"context_lines":[{"line_number":274,"context_line":"                # Volumes that were already attached are"},{"line_number":275,"context_line":"                # skipped. Updating target volume properties"},{"line_number":276,"context_line":"                # for these volumes is nova\u0027s responsibility."},{"line_number":277,"context_line":"                if not volume.get(\u0027already_attached\u0027):"},{"line_number":278,"context_line":"                    target.properties \u003d volume[\u0027data\u0027]"},{"line_number":279,"context_line":"                    target.save()"},{"line_number":280,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"df140735_d7cb986f","line":277,"updated":"2017-06-01 01:39:05.000000000","message":"It might be better to see if a volume is already attached in Line 269 for avoiding extra DB access.","commit_id":"779d42d955132f3db731f47835526020db9e7a72"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"409177e8890297775311ede1fa7d6526fab8a20f","unresolved":false,"context_lines":[{"line_number":274,"context_line":"                # Volumes that were already attached are"},{"line_number":275,"context_line":"                # skipped. Updating target volume properties"},{"line_number":276,"context_line":"                # for these volumes is nova\u0027s responsibility."},{"line_number":277,"context_line":"                if not volume.get(\u0027already_attached\u0027):"},{"line_number":278,"context_line":"                    target.properties \u003d volume[\u0027data\u0027]"},{"line_number":279,"context_line":"                    target.save()"},{"line_number":280,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"bf091321_fae125d2","line":277,"in_reply_to":"df140735_d7cb986f","updated":"2017-06-08 15:37:38.000000000","message":"Great idea!","commit_id":"779d42d955132f3db731f47835526020db9e7a72"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2fedf5c8aa12f8e085360dd37ef4e36abebad49d","unresolved":false,"context_lines":[{"line_number":285,"context_line":""},{"line_number":286,"context_line":"        :param task: The task object."},{"line_number":287,"context_line":"        :param connector: The dictionary representing a node\u0027s connectivity"},{"line_number":288,"context_line":"                          as define by _generate_connector. Generated if not"},{"line_number":289,"context_line":"                          passed."},{"line_number":290,"context_line":"        :param aborting_attach: Boolean representing if this detachment"},{"line_number":291,"context_line":"                                was requested to handle aborting a"}],"source_content_type":"text/x-python","patch_set":2,"id":"7f231b9d_cd768da5","line":288,"updated":"2017-06-13 01:29:03.000000000","message":"nit s/define/defined/\n\n_generate_connector is a method? maybe \u0027_generate_connector()\u0027 to make that clearer.","commit_id":"eae8d8d4b3a509f041c80d404e209dc66ef12334"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"86743b26f7687072808d81296dac589be9137770","unresolved":false,"context_lines":[{"line_number":285,"context_line":""},{"line_number":286,"context_line":"        :param task: The task object."},{"line_number":287,"context_line":"        :param connector: The dictionary representing a node\u0027s connectivity"},{"line_number":288,"context_line":"                          as define by _generate_connector. Generated if not"},{"line_number":289,"context_line":"                          passed."},{"line_number":290,"context_line":"        :param aborting_attach: Boolean representing if this detachment"},{"line_number":291,"context_line":"                                was requested to handle aborting a"}],"source_content_type":"text/x-python","patch_set":2,"id":"7f231b9d_7fd9ff54","line":288,"in_reply_to":"7f231b9d_cd768da5","updated":"2017-06-15 16:56:17.000000000","message":"Done and Done!","commit_id":"eae8d8d4b3a509f041c80d404e209dc66ef12334"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2fedf5c8aa12f8e085360dd37ef4e36abebad49d","unresolved":false,"context_lines":[{"line_number":294,"context_line":"                              is detected."},{"line_number":295,"context_line":"        \"\"\""},{"line_number":296,"context_line":"        # TODO(TheJulia): Ideally we should query the cinder API and reconcile"},{"line_number":297,"context_line":"        # or add any missing volumes and initiate detachments."},{"line_number":298,"context_line":"        node \u003d task.node"},{"line_number":299,"context_line":"        targets \u003d [target.volume_id for target in task.volume_targets]"},{"line_number":300,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7f231b9d_4d6a7db3","line":297,"updated":"2017-06-13 01:29:03.000000000","message":"does this TODO also apply when aborting_attach?","commit_id":"eae8d8d4b3a509f041c80d404e209dc66ef12334"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"00c1e9ac80c11859cdaec53161d5aa4f361bcdb0","unresolved":false,"context_lines":[{"line_number":294,"context_line":"                              is detected."},{"line_number":295,"context_line":"        \"\"\""},{"line_number":296,"context_line":"        # TODO(TheJulia): Ideally we should query the cinder API and reconcile"},{"line_number":297,"context_line":"        # or add any missing volumes and initiate detachments."},{"line_number":298,"context_line":"        node \u003d task.node"},{"line_number":299,"context_line":"        targets \u003d [target.volume_id for target in task.volume_targets]"},{"line_number":300,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7f231b9d_73b86975","line":297,"in_reply_to":"7f231b9d_4d6a7db3","updated":"2017-06-13 13:27:24.000000000","message":"As a TODO, it would apply generally if ever implemented.  It should not be crazy to do at some point, and I think Joanna may have done it while I wasn\u0027t looking because I remember discussing doing so at one point.","commit_id":"eae8d8d4b3a509f041c80d404e209dc66ef12334"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2fedf5c8aa12f8e085360dd37ef4e36abebad49d","unresolved":false,"context_lines":[{"line_number":318,"context_line":"                                aborting_attach and outer_args[\u0027attempt\u0027] \u003e 0)"},{"line_number":319,"context_line":"                cinder.detach_volumes(task, targets, connector,"},{"line_number":320,"context_line":"                                      allow_errors\u003dallow_errors)"},{"line_number":321,"context_line":"            except exception.StorageError as e:"},{"line_number":322,"context_line":"                # NOTE(TheJulia): In the event that the node is not in"},{"line_number":323,"context_line":"                # ACTIVE state, we need to fail hard as we need to ensure"},{"line_number":324,"context_line":"                # all attachments are removed."}],"source_content_type":"text/x-python","patch_set":2,"id":"7f231b9d_ad3a3195","line":321,"updated":"2017-06-13 01:29:03.000000000","message":"this code was already there, but wondering if we should do \u0027with excutils.save_and_reraise_exception() [1]. We do that elsewhere.\n\n[1] https://docs.openstack.org/developer/oslo.utils/api/excutils.html","commit_id":"eae8d8d4b3a509f041c80d404e209dc66ef12334"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"86743b26f7687072808d81296dac589be9137770","unresolved":false,"context_lines":[{"line_number":318,"context_line":"                                aborting_attach and outer_args[\u0027attempt\u0027] \u003e 0)"},{"line_number":319,"context_line":"                cinder.detach_volumes(task, targets, connector,"},{"line_number":320,"context_line":"                                      allow_errors\u003dallow_errors)"},{"line_number":321,"context_line":"            except exception.StorageError as e:"},{"line_number":322,"context_line":"                # NOTE(TheJulia): In the event that the node is not in"},{"line_number":323,"context_line":"                # ACTIVE state, we need to fail hard as we need to ensure"},{"line_number":324,"context_line":"                # all attachments are removed."}],"source_content_type":"text/x-python","patch_set":2,"id":"7f231b9d_54050510","line":321,"in_reply_to":"7f231b9d_ad3a3195","updated":"2017-06-15 16:56:17.000000000","message":"sure! I\u0027m not sure there\u0027s benefit to using it in this case over the raise at the end of the except block, but I\u0027m + as it promotes consistency","commit_id":"eae8d8d4b3a509f041c80d404e209dc66ef12334"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2fedf5c8aa12f8e085360dd37ef4e36abebad49d","unresolved":false,"context_lines":[{"line_number":324,"context_line":"                # all attachments are removed."},{"line_number":325,"context_line":"                msg \u003d (\"Error detaching volumes for \""},{"line_number":326,"context_line":"                       \"node %(node)s: %(err)s.\") % {\u0027node\u0027: node.uuid,"},{"line_number":327,"context_line":"                                                     \u0027err\u0027: e}"},{"line_number":328,"context_line":"                if outer_args[\u0027attempt\u0027] \u003c CONF.cinder.action_retries:"},{"line_number":329,"context_line":"                    outer_args[\u0027attempt\u0027] +\u003d 1"},{"line_number":330,"context_line":"                    msg +\u003d \" Re-attempting detachment.\""}],"source_content_type":"text/x-python","patch_set":2,"id":"7f231b9d_0d55a5c6","line":327,"updated":"2017-06-13 01:29:03.000000000","message":"I don\u0027t know if it is worth it or not, but the original code for aborting an attach had \u0027on aborting volume detach\u0027 in the msg. Did you/we want to add that here too?","commit_id":"eae8d8d4b3a509f041c80d404e209dc66ef12334"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"86743b26f7687072808d81296dac589be9137770","unresolved":false,"context_lines":[{"line_number":324,"context_line":"                # all attachments are removed."},{"line_number":325,"context_line":"                msg \u003d (\"Error detaching volumes for \""},{"line_number":326,"context_line":"                       \"node %(node)s: %(err)s.\") % {\u0027node\u0027: node.uuid,"},{"line_number":327,"context_line":"                                                     \u0027err\u0027: e}"},{"line_number":328,"context_line":"                if outer_args[\u0027attempt\u0027] \u003c CONF.cinder.action_retries:"},{"line_number":329,"context_line":"                    outer_args[\u0027attempt\u0027] +\u003d 1"},{"line_number":330,"context_line":"                    msg +\u003d \" Re-attempting detachment.\""}],"source_content_type":"text/x-python","patch_set":2,"id":"7f231b9d_f17e6317","line":327,"in_reply_to":"7f231b9d_0d55a5c6","updated":"2017-06-15 16:56:17.000000000","message":"Sure! Done","commit_id":"eae8d8d4b3a509f041c80d404e209dc66ef12334"}]}
