)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"2c19f79122953c9f58cbfafb88c45dcdd09a2a78","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This backports a few changes regarding exception handling from the"},{"line_number":10,"context_line":"in-tree driver. It ensures that LOG.exception is passed a meaningful"},{"line_number":11,"context_line":"error message whenever called and is passed the instance when applicable."},{"line_number":12,"context_line":"It also removes the use of the raise keyword on its own, replacing it"},{"line_number":13,"context_line":"with the preferred excutils.save_and_reraise_exception() from oslo_utils."},{"line_number":14,"context_line":"This is the first of a series of changes to the OOT driver exception"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"5ff73747_cc193723","line":11,"range":{"start_line":11,"start_character":72,"end_line":11,"end_character":73},"updated":"2017-05-02 13:43:28.000000000","message":"Technically one character too wide.  :-)","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"}],"nova_powervm/virt/powervm/disk/driver.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"1b131c2c71111865611dec3f7f7fdef830ff9303","unresolved":false,"context_lines":[{"line_number":379,"context_line":"                        LOG.exception(\"PowerVM error creating disk from \""},{"line_number":380,"context_line":"                                      \"image.\", instance\u003dinstance)"},{"line_number":381,"context_line":"                        LOG.warning(_LW("},{"line_number":382,"context_line":"                            \"Instance %(inst)s Disk Upload attempt \""},{"line_number":383,"context_line":"                            \"#%(attempt)d failed. Retrying the upload.\"),"},{"line_number":384,"context_line":"                            {\"attempt\": attempt, \"inst\": instance.name},"},{"line_number":385,"context_line":"                            instance\u003dinstance)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_7ad78b4c","line":382,"range":{"start_line":382,"start_character":38,"end_line":382,"end_character":46},"updated":"2017-05-01 23:09:46.000000000","message":"We don\u0027t need %(inst)s.\n\nAnd we can just put this message into the LOG.exception above.  We don\u0027t need two separate log messages.","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"2c19f79122953c9f58cbfafb88c45dcdd09a2a78","unresolved":false,"context_lines":[{"line_number":379,"context_line":"                        LOG.exception(\"PowerVM error creating disk from \""},{"line_number":380,"context_line":"                                      \"image.\", instance\u003dinstance)"},{"line_number":381,"context_line":"                        LOG.warning(_LW("},{"line_number":382,"context_line":"                            \"Instance %(inst)s Disk Upload attempt \""},{"line_number":383,"context_line":"                            \"#%(attempt)d failed. Retrying the upload.\"),"},{"line_number":384,"context_line":"                            {\"attempt\": attempt, \"inst\": instance.name},"},{"line_number":385,"context_line":"                            instance\u003dinstance)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_0ce5df0a","line":382,"range":{"start_line":382,"start_character":38,"end_line":382,"end_character":46},"in_reply_to":"5ff73747_7ad78b4c","updated":"2017-05-02 13:43:28.000000000","message":"+1","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"},{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"68526ef4843bfe9b76a42fa83fb8c3e5a5e378c7","unresolved":false,"context_lines":[{"line_number":379,"context_line":"                        LOG.exception(\"PowerVM error creating disk from \""},{"line_number":380,"context_line":"                                      \"image.\", instance\u003dinstance)"},{"line_number":381,"context_line":"                        LOG.warning(_LW("},{"line_number":382,"context_line":"                            \"Instance %(inst)s Disk Upload attempt \""},{"line_number":383,"context_line":"                            \"#%(attempt)d failed. Retrying the upload.\"),"},{"line_number":384,"context_line":"                            {\"attempt\": attempt, \"inst\": instance.name},"},{"line_number":385,"context_line":"                            instance\u003dinstance)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_8998bc1b","line":382,"range":{"start_line":382,"start_character":38,"end_line":382,"end_character":46},"in_reply_to":"5ff73747_7ad78b4c","updated":"2017-05-02 16:10:43.000000000","message":"Done","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"}],"nova_powervm/virt/powervm/disk/ssp.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"1b131c2c71111865611dec3f7f7fdef830ff9303","unresolved":false,"context_lines":[{"line_number":368,"context_line":"            clust_wrap \u003d wraps[0]"},{"line_number":369,"context_line":"        except Exception as e:"},{"line_number":370,"context_line":"            LOG.exception(\"PowerVM error fetching cluster.\")"},{"line_number":371,"context_line":"            raise e"},{"line_number":372,"context_line":"        return clust_wrap"},{"line_number":373,"context_line":""},{"line_number":374,"context_line":"    def _refresh_cluster(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_fa471b1c","line":371,"range":{"start_line":371,"start_character":0,"end_line":371,"end_character":19},"updated":"2017-05-01 23:09:46.000000000","message":"Just use \u0027raise\u0027 here so we don\u0027t lose the original context.\n\nIf you want to use save_and_reraise, you can.  Though I\u0027m pretty unconcerned about LOG.exception clearing the exception context.","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"},{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"68526ef4843bfe9b76a42fa83fb8c3e5a5e378c7","unresolved":false,"context_lines":[{"line_number":368,"context_line":"            clust_wrap \u003d wraps[0]"},{"line_number":369,"context_line":"        except Exception as e:"},{"line_number":370,"context_line":"            LOG.exception(\"PowerVM error fetching cluster.\")"},{"line_number":371,"context_line":"            raise e"},{"line_number":372,"context_line":"        return clust_wrap"},{"line_number":373,"context_line":""},{"line_number":374,"context_line":"    def _refresh_cluster(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_7cd53043","line":371,"range":{"start_line":371,"start_character":0,"end_line":371,"end_character":19},"in_reply_to":"5ff73747_aceb8bda","updated":"2017-05-02 16:10:43.000000000","message":"Done. Ended up doing save and reraise just to keep it consistent","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"2c19f79122953c9f58cbfafb88c45dcdd09a2a78","unresolved":false,"context_lines":[{"line_number":368,"context_line":"            clust_wrap \u003d wraps[0]"},{"line_number":369,"context_line":"        except Exception as e:"},{"line_number":370,"context_line":"            LOG.exception(\"PowerVM error fetching cluster.\")"},{"line_number":371,"context_line":"            raise e"},{"line_number":372,"context_line":"        return clust_wrap"},{"line_number":373,"context_line":""},{"line_number":374,"context_line":"    def _refresh_cluster(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_aceb8bda","line":371,"range":{"start_line":371,"start_character":0,"end_line":371,"end_character":19},"in_reply_to":"5ff73747_fa471b1c","updated":"2017-05-02 13:43:28.000000000","message":"+1","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"}],"nova_powervm/virt/powervm/driver.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"1b131c2c71111865611dec3f7f7fdef830ff9303","unresolved":false,"context_lines":[{"line_number":1048,"context_line":"        try:"},{"line_number":1049,"context_line":"            engine.run()"},{"line_number":1050,"context_line":"        except exception.InstanceNotFound:"},{"line_number":1051,"context_line":"            LOG.exception(\"Instance not found trying to unplug vifs.\","},{"line_number":1052,"context_line":"                          instance\u003dinstance)"},{"line_number":1053,"context_line":"            LOG.warning(_LW(\u0027VM was not found during unplug operation \u0027"},{"line_number":1054,"context_line":"                            \u0027as it is already possibly deleted.\u0027),"},{"line_number":1055,"context_line":"                        instance\u003dinstance)"},{"line_number":1056,"context_line":"        except Exception:"},{"line_number":1057,"context_line":"            LOG.exception(\"PowerVM error trying to unplug vifs.\","}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_3a5b43f6","line":1054,"range":{"start_line":1051,"start_character":0,"end_line":1054,"end_character":66},"updated":"2017-05-01 23:09:46.000000000","message":"consolidate","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"},{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"68526ef4843bfe9b76a42fa83fb8c3e5a5e378c7","unresolved":false,"context_lines":[{"line_number":1048,"context_line":"        try:"},{"line_number":1049,"context_line":"            engine.run()"},{"line_number":1050,"context_line":"        except exception.InstanceNotFound:"},{"line_number":1051,"context_line":"            LOG.exception(\"Instance not found trying to unplug vifs.\","},{"line_number":1052,"context_line":"                          instance\u003dinstance)"},{"line_number":1053,"context_line":"            LOG.warning(_LW(\u0027VM was not found during unplug operation \u0027"},{"line_number":1054,"context_line":"                            \u0027as it is already possibly deleted.\u0027),"},{"line_number":1055,"context_line":"                        instance\u003dinstance)"},{"line_number":1056,"context_line":"        except Exception:"},{"line_number":1057,"context_line":"            LOG.exception(\"PowerVM error trying to unplug vifs.\","}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_12cf3a58","line":1054,"range":{"start_line":1051,"start_character":0,"end_line":1054,"end_character":66},"in_reply_to":"5ff73747_3a5b43f6","updated":"2017-05-02 16:10:43.000000000","message":"Done","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"}],"nova_powervm/virt/powervm/event.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"1b131c2c71111865611dec3f7f7fdef830ff9303","unresolved":false,"context_lines":[{"line_number":117,"context_line":"                    pvm_event, details, inst\u003dinst_cache.get(pvm_event.data,"},{"line_number":118,"context_line":"                                                            None))"},{"line_number":119,"context_line":"            except Exception:"},{"line_number":120,"context_line":"                LOG.exception(\"PowerVM error processing event.\")"},{"line_number":121,"context_line":"                LOG.warning(_LW(\u0027Unable to parse event URI: %s from PowerVM.\u0027),"},{"line_number":122,"context_line":"                            pvm_event.data)"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"class PowerVMLifecycleEventHandler(object):"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_bafbd3bb","line":122,"range":{"start_line":120,"start_character":0,"end_line":122,"end_character":43},"updated":"2017-05-01 23:09:46.000000000","message":"Consolidate","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"},{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"68526ef4843bfe9b76a42fa83fb8c3e5a5e378c7","unresolved":false,"context_lines":[{"line_number":117,"context_line":"                    pvm_event, details, inst\u003dinst_cache.get(pvm_event.data,"},{"line_number":118,"context_line":"                                                            None))"},{"line_number":119,"context_line":"            except Exception:"},{"line_number":120,"context_line":"                LOG.exception(\"PowerVM error processing event.\")"},{"line_number":121,"context_line":"                LOG.warning(_LW(\u0027Unable to parse event URI: %s from PowerVM.\u0027),"},{"line_number":122,"context_line":"                            pvm_event.data)"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"class PowerVMLifecycleEventHandler(object):"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_b243e6af","line":122,"range":{"start_line":120,"start_character":0,"end_line":122,"end_character":43},"in_reply_to":"5ff73747_bafbd3bb","updated":"2017-05-02 16:10:43.000000000","message":"Done","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"}],"nova_powervm/virt/powervm/live_migration.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"1b131c2c71111865611dec3f7f7fdef830ff9303","unresolved":false,"context_lines":[{"line_number":378,"context_line":"                trunk_to_del.delete()"},{"line_number":379,"context_line":"        except Exception:"},{"line_number":380,"context_line":"            with excutils.save_and_reraise_exception(logger\u003dLOG):"},{"line_number":381,"context_line":"                LOG.error(_LE(\"Live migration failed.\"),"},{"line_number":382,"context_line":"                          instance\u003dself.instance)"},{"line_number":383,"context_line":"        finally:"},{"line_number":384,"context_line":"            LOG.debug(\"Finished migration.\", instance\u003dself.instance)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_5a260f6a","line":381,"range":{"start_line":381,"start_character":20,"end_line":381,"end_character":25},"updated":"2017-05-01 23:09:46.000000000","message":"Let\u0027s go ahead and make this a LOG.exception","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"},{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"68526ef4843bfe9b76a42fa83fb8c3e5a5e378c7","unresolved":false,"context_lines":[{"line_number":378,"context_line":"                trunk_to_del.delete()"},{"line_number":379,"context_line":"        except Exception:"},{"line_number":380,"context_line":"            with excutils.save_and_reraise_exception(logger\u003dLOG):"},{"line_number":381,"context_line":"                LOG.error(_LE(\"Live migration failed.\"),"},{"line_number":382,"context_line":"                          instance\u003dself.instance)"},{"line_number":383,"context_line":"        finally:"},{"line_number":384,"context_line":"            LOG.debug(\"Finished migration.\", instance\u003dself.instance)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_7cc1b0e4","line":381,"range":{"start_line":381,"start_character":20,"end_line":381,"end_character":25},"in_reply_to":"5ff73747_5a260f6a","updated":"2017-05-02 16:10:43.000000000","message":"Done","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"2c19f79122953c9f58cbfafb88c45dcdd09a2a78","unresolved":false,"context_lines":[{"line_number":378,"context_line":"                trunk_to_del.delete()"},{"line_number":379,"context_line":"        except Exception:"},{"line_number":380,"context_line":"            with excutils.save_and_reraise_exception(logger\u003dLOG):"},{"line_number":381,"context_line":"                LOG.error(_LE(\"Live migration failed.\"),"},{"line_number":382,"context_line":"                          instance\u003dself.instance)"},{"line_number":383,"context_line":"        finally:"},{"line_number":384,"context_line":"            LOG.debug(\"Finished migration.\", instance\u003dself.instance)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_cc75b734","line":381,"range":{"start_line":381,"start_character":20,"end_line":381,"end_character":25},"in_reply_to":"5ff73747_5a260f6a","updated":"2017-05-02 13:43:28.000000000","message":"Probably just want to query through to figure out if we have any other error\u0027s.","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"1b131c2c71111865611dec3f7f7fdef830ff9303","unresolved":false,"context_lines":[{"line_number":470,"context_line":"        try:"},{"line_number":471,"context_line":"            mig.migrate_abort(self.lpar_w)"},{"line_number":472,"context_line":"        except Exception:"},{"line_number":473,"context_line":"            LOG.error(_LE(\"Abort of live migration has failed. \""},{"line_number":474,"context_line":"                          \"This is non-blocking. Exception is logged below.\"),"},{"line_number":475,"context_line":"                      instance\u003dself.instance)"},{"line_number":476,"context_line":"            LOG.exception(\"PowerVM error aborting migration.\","},{"line_number":477,"context_line":"                          instance\u003dself.instance)"},{"line_number":478,"context_line":""},{"line_number":479,"context_line":"    def migration_recover(self):"},{"line_number":480,"context_line":"        \"\"\"Recover migration if the migration failed for any reason. \"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_3a290336","line":477,"range":{"start_line":473,"start_character":0,"end_line":477,"end_character":49},"updated":"2017-05-01 23:09:46.000000000","message":"Consolidate.","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"},{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"68526ef4843bfe9b76a42fa83fb8c3e5a5e378c7","unresolved":false,"context_lines":[{"line_number":470,"context_line":"        try:"},{"line_number":471,"context_line":"            mig.migrate_abort(self.lpar_w)"},{"line_number":472,"context_line":"        except Exception:"},{"line_number":473,"context_line":"            LOG.error(_LE(\"Abort of live migration has failed. \""},{"line_number":474,"context_line":"                          \"This is non-blocking. Exception is logged below.\"),"},{"line_number":475,"context_line":"                      instance\u003dself.instance)"},{"line_number":476,"context_line":"            LOG.exception(\"PowerVM error aborting migration.\","},{"line_number":477,"context_line":"                          instance\u003dself.instance)"},{"line_number":478,"context_line":""},{"line_number":479,"context_line":"    def migration_recover(self):"},{"line_number":480,"context_line":"        \"\"\"Recover migration if the migration failed for any reason. \"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_3ced688b","line":477,"range":{"start_line":473,"start_character":0,"end_line":477,"end_character":49},"in_reply_to":"5ff73747_3a290336","updated":"2017-05-02 16:10:43.000000000","message":"Ahh the source of all the consolidation issues. I was gonna do it before, but this business about the exception being logged below made me reconsider. Thought there was a reason to have both. Done","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"}],"nova_powervm/virt/powervm/nvram/manager.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"1b131c2c71111865611dec3f7f7fdef830ff9303","unresolved":false,"context_lines":[{"line_number":194,"context_line":"        except pvm_exc.HttpError as e:"},{"line_number":195,"context_line":"            # The VM might have been deleted since the store request."},{"line_number":196,"context_line":"            if e.response.status not in [404]:"},{"line_number":197,"context_line":"                LOG.exception(\"HttpError 404 trying to get instance NVRAM \""},{"line_number":198,"context_line":"                              \"data.\", instance\u003dinstance)"},{"line_number":199,"context_line":"                LOG.warning(_LW(\u0027Unable to store the NVRAM for instance: \u0027"},{"line_number":200,"context_line":"                                \u0027%s\u0027), instance.name)"},{"line_number":201,"context_line":"        return data"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"    def _update_thread(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_da19ff21","line":200,"range":{"start_line":197,"start_character":0,"end_line":200,"end_character":53},"updated":"2017-05-01 23:09:46.000000000","message":"Consolidate","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"},{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"68526ef4843bfe9b76a42fa83fb8c3e5a5e378c7","unresolved":false,"context_lines":[{"line_number":194,"context_line":"        except pvm_exc.HttpError as e:"},{"line_number":195,"context_line":"            # The VM might have been deleted since the store request."},{"line_number":196,"context_line":"            if e.response.status not in [404]:"},{"line_number":197,"context_line":"                LOG.exception(\"HttpError 404 trying to get instance NVRAM \""},{"line_number":198,"context_line":"                              \"data.\", instance\u003dinstance)"},{"line_number":199,"context_line":"                LOG.warning(_LW(\u0027Unable to store the NVRAM for instance: \u0027"},{"line_number":200,"context_line":"                                \u0027%s\u0027), instance.name)"},{"line_number":201,"context_line":"        return data"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"    def _update_thread(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_72c1dee4","line":200,"range":{"start_line":197,"start_character":0,"end_line":200,"end_character":53},"in_reply_to":"5ff73747_da19ff21","updated":"2017-05-02 16:10:43.000000000","message":"Done","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"}],"nova_powervm/virt/powervm/tasks/network.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"1b131c2c71111865611dec3f7f7fdef830ff9303","unresolved":false,"context_lines":[{"line_number":259,"context_line":"            try:"},{"line_number":260,"context_line":"                vif.unplug(self.adapter, self.host_uuid, self.instance,"},{"line_number":261,"context_line":"                           network_info, self.slot_mgr, cna_w_list\u003dcna_w_list)"},{"line_number":262,"context_line":"            except Exception:"},{"line_number":263,"context_line":"                LOG.exception(\"Error unplugging during vif rollback.\","},{"line_number":264,"context_line":"                              instance\u003dself.instance)"},{"line_number":265,"context_line":"                LOG.warning(_LW(\"An exception occurred during an unplug \""},{"line_number":266,"context_line":"                                \"in the vif rollback.  Ignoring.\"),"},{"line_number":267,"context_line":"                            instance\u003dself.instance)"},{"line_number":268,"context_line":""},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"class PlugMgmtVif(pvm_task.PowerVMTask):"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_ba14f3e9","line":267,"range":{"start_line":262,"start_character":0,"end_line":267,"end_character":51},"updated":"2017-05-01 23:09:46.000000000","message":"consolidate","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"},{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"68526ef4843bfe9b76a42fa83fb8c3e5a5e378c7","unresolved":false,"context_lines":[{"line_number":259,"context_line":"            try:"},{"line_number":260,"context_line":"                vif.unplug(self.adapter, self.host_uuid, self.instance,"},{"line_number":261,"context_line":"                           network_info, self.slot_mgr, cna_w_list\u003dcna_w_list)"},{"line_number":262,"context_line":"            except Exception:"},{"line_number":263,"context_line":"                LOG.exception(\"Error unplugging during vif rollback.\","},{"line_number":264,"context_line":"                              instance\u003dself.instance)"},{"line_number":265,"context_line":"                LOG.warning(_LW(\"An exception occurred during an unplug \""},{"line_number":266,"context_line":"                                \"in the vif rollback.  Ignoring.\"),"},{"line_number":267,"context_line":"                            instance\u003dself.instance)"},{"line_number":268,"context_line":""},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"class PlugMgmtVif(pvm_task.PowerVMTask):"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_b27be6bc","line":267,"range":{"start_line":262,"start_character":0,"end_line":267,"end_character":51},"in_reply_to":"5ff73747_ba14f3e9","updated":"2017-05-02 16:10:43.000000000","message":"Done","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"}],"nova_powervm/virt/powervm/vif.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"1b131c2c71111865611dec3f7f7fdef830ff9303","unresolved":false,"context_lines":[{"line_number":118,"context_line":"                      \u0027%s\u0027), str(event), instance\u003dinstance)"},{"line_number":119,"context_line":"    except Exception:"},{"line_number":120,"context_line":"        with excutils.save_and_reraise_exception(logger\u003dLOG):"},{"line_number":121,"context_line":"            LOG.error(_LE(\u0027Custom VIF event push failed.  %s\u0027), str(event),"},{"line_number":122,"context_line":"                      instance\u003dinstance)"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_9ad5b71e","line":121,"range":{"start_line":121,"start_character":16,"end_line":121,"end_character":21},"updated":"2017-05-01 23:09:46.000000000","message":"Let\u0027s make this a LOG.exception","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"},{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"68526ef4843bfe9b76a42fa83fb8c3e5a5e378c7","unresolved":false,"context_lines":[{"line_number":118,"context_line":"                      \u0027%s\u0027), str(event), instance\u003dinstance)"},{"line_number":119,"context_line":"    except Exception:"},{"line_number":120,"context_line":"        with excutils.save_and_reraise_exception(logger\u003dLOG):"},{"line_number":121,"context_line":"            LOG.error(_LE(\u0027Custom VIF event push failed.  %s\u0027), str(event),"},{"line_number":122,"context_line":"                      instance\u003dinstance)"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_1223bac0","line":121,"range":{"start_line":121,"start_character":16,"end_line":121,"end_character":21},"in_reply_to":"5ff73747_9ad5b71e","updated":"2017-05-02 16:10:43.000000000","message":"Done","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"}],"nova_powervm/virt/powervm/vm.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"1b131c2c71111865611dec3f7f7fdef830ff9303","unresolved":false,"context_lines":[{"line_number":382,"context_line":"            else:"},{"line_number":383,"context_line":"                attr \u003d key + \u0027\u003d\u0027 + flavor.extra_specs[key]"},{"line_number":384,"context_line":"                exc \u003d exception.InvalidAttribute(attr\u003dattr)"},{"line_number":385,"context_line":"                LOG.exception(\"Invalid attribute used.\")"},{"line_number":386,"context_line":"                raise exc"},{"line_number":387,"context_line":"        elif key \u003d\u003d self._PVM_SHAR_PROC_POOL:"},{"line_number":388,"context_line":"            pool_name \u003d flavor.extra_specs[key]"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_faccbb89","line":385,"range":{"start_line":385,"start_character":0,"end_line":385,"end_character":56},"updated":"2017-05-01 23:09:46.000000000","message":"This isn\u0027t going to work.  LOG.exception relies on there being a current exception context, which there isn\u0027t here (or if there is, it\u0027ll be very confusingly wrong).  See https://review.openstack.org/#/c/391288/57/nova/virt/powervm/vm.py for how this is handled in-tree now.  (Wouldn\u0027t mind getting that whole thing backported, but in a separate change set.)","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"},{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"68526ef4843bfe9b76a42fa83fb8c3e5a5e378c7","unresolved":false,"context_lines":[{"line_number":382,"context_line":"            else:"},{"line_number":383,"context_line":"                attr \u003d key + \u0027\u003d\u0027 + flavor.extra_specs[key]"},{"line_number":384,"context_line":"                exc \u003d exception.InvalidAttribute(attr\u003dattr)"},{"line_number":385,"context_line":"                LOG.exception(\"Invalid attribute used.\")"},{"line_number":386,"context_line":"                raise exc"},{"line_number":387,"context_line":"        elif key \u003d\u003d self._PVM_SHAR_PROC_POOL:"},{"line_number":388,"context_line":"            pool_name \u003d flavor.extra_specs[key]"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_dc756434","line":385,"range":{"start_line":385,"start_character":0,"end_line":385,"end_character":56},"in_reply_to":"5ff73747_faccbb89","updated":"2017-05-02 16:10:43.000000000","message":"Im just reverting this for now. Added that to the queue for backporting","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"40f273dc96db4639d048f40ab9c0014b9dd3f92b","unresolved":false,"context_lines":[{"line_number":382,"context_line":"            else:"},{"line_number":383,"context_line":"                attr \u003d key + \u0027\u003d\u0027 + flavor.extra_specs[key]"},{"line_number":384,"context_line":"                exc \u003d exception.InvalidAttribute(attr\u003dattr)"},{"line_number":385,"context_line":"                LOG.exception(exc)"},{"line_number":386,"context_line":"                raise exc"},{"line_number":387,"context_line":"        elif key \u003d\u003d self._PVM_SHAR_PROC_POOL:"},{"line_number":388,"context_line":"            pool_name \u003d flavor.extra_specs[key]"}],"source_content_type":"text/x-python","patch_set":5,"id":"3f044301_e5f40cd2","line":385,"range":{"start_line":385,"start_character":16,"end_line":385,"end_character":34},"updated":"2017-05-03 20:56:35.000000000","message":"No, we can\u0027t revert it.  The LOG.exception makes literally no sense here.  Just change it to LOG.error and you\u0027ll at least log the message from the exception, which is okay for now.","commit_id":"37b22915953dc841a9ae21f4ef6146d5bec87fde"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"40f273dc96db4639d048f40ab9c0014b9dd3f92b","unresolved":false,"context_lines":[{"line_number":397,"context_line":"        else:"},{"line_number":398,"context_line":"            # There was no mapping or we didn\u0027t handle it."},{"line_number":399,"context_line":"            exc \u003d exception.InvalidAttribute(attr\u003dkey)"},{"line_number":400,"context_line":"            LOG.exception(exc)"},{"line_number":401,"context_line":"            raise exc"},{"line_number":402,"context_line":""},{"line_number":403,"context_line":"    def _spp_pool_id(self, pool_name):"}],"source_content_type":"text/x-python","patch_set":5,"id":"3f044301_c50110b2","line":400,"range":{"start_line":400,"start_character":13,"end_line":400,"end_character":29},"updated":"2017-05-03 20:56:35.000000000","message":"ditto","commit_id":"37b22915953dc841a9ae21f4ef6146d5bec87fde"}],"nova_powervm/virt/powervm/volume/iscsi.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"1b131c2c71111865611dec3f7f7fdef830ff9303","unresolved":false,"context_lines":[{"line_number":213,"context_line":"                    instance\u003dself.instance)"},{"line_number":214,"context_line":""},{"line_number":215,"context_line":"        except Exception as e:"},{"line_number":216,"context_line":"            LOG.error(_LE(\u0027Cannot detach volumes from virtual machine: %s\u0027),"},{"line_number":217,"context_line":"                      self.vm_uuid, instance\u003dself.instance)"},{"line_number":218,"context_line":"            LOG.exception(_LE(\u0027PowerVM error detaching volume from virtual \u0027"},{"line_number":219,"context_line":"                              \u0027machine.\u0027), instance\u003dself.instance)"},{"line_number":220,"context_line":"            ex_args \u003d {\u0027volume_id\u0027: self.volume_id, \u0027reason\u0027: six.text_type(e),"},{"line_number":221,"context_line":"                       \u0027instance_name\u0027: self.instance.name}"},{"line_number":222,"context_line":"            raise p_exc.VolumeDetachFailed(**ex_args)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_5aa96f8d","line":219,"range":{"start_line":216,"start_character":0,"end_line":219,"end_character":66},"updated":"2017-05-01 23:09:46.000000000","message":"Consolidate","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"},{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"68526ef4843bfe9b76a42fa83fb8c3e5a5e378c7","unresolved":false,"context_lines":[{"line_number":213,"context_line":"                    instance\u003dself.instance)"},{"line_number":214,"context_line":""},{"line_number":215,"context_line":"        except Exception as e:"},{"line_number":216,"context_line":"            LOG.error(_LE(\u0027Cannot detach volumes from virtual machine: %s\u0027),"},{"line_number":217,"context_line":"                      self.vm_uuid, instance\u003dself.instance)"},{"line_number":218,"context_line":"            LOG.exception(_LE(\u0027PowerVM error detaching volume from virtual \u0027"},{"line_number":219,"context_line":"                              \u0027machine.\u0027), instance\u003dself.instance)"},{"line_number":220,"context_line":"            ex_args \u003d {\u0027volume_id\u0027: self.volume_id, \u0027reason\u0027: six.text_type(e),"},{"line_number":221,"context_line":"                       \u0027instance_name\u0027: self.instance.name}"},{"line_number":222,"context_line":"            raise p_exc.VolumeDetachFailed(**ex_args)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_0637fbe5","line":219,"range":{"start_line":216,"start_character":0,"end_line":219,"end_character":66},"in_reply_to":"5ff73747_5aa96f8d","updated":"2017-05-02 16:10:43.000000000","message":"Done","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"}],"nova_powervm/virt/powervm/volume/vscsi.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"1b131c2c71111865611dec3f7f7fdef830ff9303","unresolved":false,"context_lines":[{"line_number":335,"context_line":"                            instance\u003dself.instance)"},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"        except Exception as e:"},{"line_number":338,"context_line":"            LOG.error(_LE(\u0027Cannot detach volumes from virtual machine\u0027),"},{"line_number":339,"context_line":"                      instance\u003dself.instance)"},{"line_number":340,"context_line":"            LOG.exception(_LE(\u0027PowerVM error detaching volume from virtual \u0027"},{"line_number":341,"context_line":"                              \u0027machine.\u0027), instance\u003dself.instance)"},{"line_number":342,"context_line":"            ex_args \u003d {\u0027volume_id\u0027: self.volume_id, \u0027reason\u0027: six.text_type(e),"},{"line_number":343,"context_line":"                       \u0027instance_name\u0027: self.instance.name}"},{"line_number":344,"context_line":"            raise p_exc.VolumeDetachFailed(**ex_args)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_3aac639d","line":341,"range":{"start_line":338,"start_character":0,"end_line":341,"end_character":66},"updated":"2017-05-01 23:09:46.000000000","message":"Consolidate","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"},{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"68526ef4843bfe9b76a42fa83fb8c3e5a5e378c7","unresolved":false,"context_lines":[{"line_number":335,"context_line":"                            instance\u003dself.instance)"},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"        except Exception as e:"},{"line_number":338,"context_line":"            LOG.error(_LE(\u0027Cannot detach volumes from virtual machine\u0027),"},{"line_number":339,"context_line":"                      instance\u003dself.instance)"},{"line_number":340,"context_line":"            LOG.exception(_LE(\u0027PowerVM error detaching volume from virtual \u0027"},{"line_number":341,"context_line":"                              \u0027machine.\u0027), instance\u003dself.instance)"},{"line_number":342,"context_line":"            ex_args \u003d {\u0027volume_id\u0027: self.volume_id, \u0027reason\u0027: six.text_type(e),"},{"line_number":343,"context_line":"                       \u0027instance_name\u0027: self.instance.name}"},{"line_number":344,"context_line":"            raise p_exc.VolumeDetachFailed(**ex_args)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5ff73747_063c9bbd","line":341,"range":{"start_line":338,"start_character":0,"end_line":341,"end_character":66},"in_reply_to":"5ff73747_3aac639d","updated":"2017-05-02 16:10:43.000000000","message":"Done","commit_id":"f5506f960e0c44591a8acd90eb6fd5634d5d7f37"}]}
