)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"9d40a00fc9d01e86d4515faa800afa03c939beec","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Previously, we log these failures at debug level but these should be logged"},{"line_number":10,"context_line":"at least at error level as now if we we fail to update the port_status"},{"line_number":11,"context_line":"value it can cause nova to not starting the vm. Logging as exception should"},{"line_number":12,"context_line":"hopefully provide a little more info about why this sometimes fails"},{"line_number":13,"context_line":"in the gate."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Closes-bug: 1357593"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1abeadc6_c785aeae","line":12,"updated":"2014-08-17 17:24:00.000000000","message":"no, it won\u0027t. You\u0027re gonna get a stacktrace that shows a RemoteError, because that\u0027s most likely error it can occur. If you really want to get to the bottom of the issue, you\u0027d need to instrument the server side.","commit_id":"0f20be3bf9cabe3d0357e456f59aabce04fdf202"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"d27f91d6b394c49165661cfc846fb41b2eaf7718","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Previously, we log these failures at debug level but these should be logged"},{"line_number":10,"context_line":"at least at error level as now if we we fail to update the port_status"},{"line_number":11,"context_line":"value it can cause nova to not starting the vm. Logging as exception should"},{"line_number":12,"context_line":"hopefully provide a little more info about why this sometimes fails"},{"line_number":13,"context_line":"in the gate."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Closes-bug: 1357593"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1abeadc6_c88e04d0","line":12,"in_reply_to":"1abeadc6_485cb4ed","updated":"2014-08-21 05:16:14.000000000","message":"personally I prefer to see a trace especially if we are catching all exceptions like this code is doing. I\u0027ve seen several times where there is a syntax error in the code and that would be just logged as error without the actual error and line that caused it.","commit_id":"0f20be3bf9cabe3d0357e456f59aabce04fdf202"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"3def89bfea14c07f263f04245ee0e2ee48360396","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Previously, we log these failures at debug level but these should be logged"},{"line_number":10,"context_line":"at least at error level as now if we we fail to update the port_status"},{"line_number":11,"context_line":"value it can cause nova to not starting the vm. Logging as exception should"},{"line_number":12,"context_line":"hopefully provide a little more info about why this sometimes fails"},{"line_number":13,"context_line":"in the gate."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Closes-bug: 1357593"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1abeadc6_485cb4ed","line":12,"in_reply_to":"1abeadc6_48cc4b36","updated":"2014-08-21 04:49:14.000000000","message":"my understanding is that the error will originate on the server, unless there\u0027s something terribly wrong. If that\u0027s the case, I\u0027d start looking from the server, why would you start from the agent? The trace will be a lot clearer on the server side.","commit_id":"0f20be3bf9cabe3d0357e456f59aabce04fdf202"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"39b34b53347f45a5eff4a74a8c5c114962ca5547","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Previously, we log these failures at debug level but these should be logged"},{"line_number":10,"context_line":"at least at error level as now if we we fail to update the port_status"},{"line_number":11,"context_line":"value it can cause nova to not starting the vm. Logging as exception should"},{"line_number":12,"context_line":"hopefully provide a little more info about why this sometimes fails"},{"line_number":13,"context_line":"in the gate."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Closes-bug: 1357593"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1abeadc6_c36dc2cd","line":12,"in_reply_to":"1abeadc6_63178e45","updated":"2014-08-22 19:20:37.000000000","message":"we don\u0027t print the stacktrace, but we do print the error message.","commit_id":"0f20be3bf9cabe3d0357e456f59aabce04fdf202"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"8bd72450ca304cf9a304f4f9d757ccbf598244f5","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Previously, we log these failures at debug level but these should be logged"},{"line_number":10,"context_line":"at least at error level as now if we we fail to update the port_status"},{"line_number":11,"context_line":"value it can cause nova to not starting the vm. Logging as exception should"},{"line_number":12,"context_line":"hopefully provide a little more info about why this sometimes fails"},{"line_number":13,"context_line":"in the gate."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Closes-bug: 1357593"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1abeadc6_63178e45","line":12,"in_reply_to":"1abeadc6_759cd75d","updated":"2014-08-22 19:18:57.000000000","message":"we don\u0027t print the exception on the agent side.","commit_id":"0f20be3bf9cabe3d0357e456f59aabce04fdf202"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"f5acb1da800489a4da0f4cff1ff894a2d07fd066","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Previously, we log these failures at debug level but these should be logged"},{"line_number":10,"context_line":"at least at error level as now if we we fail to update the port_status"},{"line_number":11,"context_line":"value it can cause nova to not starting the vm. Logging as exception should"},{"line_number":12,"context_line":"hopefully provide a little more info about why this sometimes fails"},{"line_number":13,"context_line":"in the gate."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Closes-bug: 1357593"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1abeadc6_c38222c7","line":12,"in_reply_to":"1abeadc6_c36dc2cd","updated":"2014-08-22 19:39:04.000000000","message":"Right the error message: port_removed failed for %s\") is useless  as it doesn\u0027t say what occurred in this failure.","commit_id":"0f20be3bf9cabe3d0357e456f59aabce04fdf202"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"a6c4ff0d7cd5883e7ffcabbb28e82c43aa2d11fc","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Previously, we log these failures at debug level but these should be logged"},{"line_number":10,"context_line":"at least at error level as now if we we fail to update the port_status"},{"line_number":11,"context_line":"value it can cause nova to not starting the vm. Logging as exception should"},{"line_number":12,"context_line":"hopefully provide a little more info about why this sometimes fails"},{"line_number":13,"context_line":"in the gate."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Closes-bug: 1357593"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1abeadc6_a337e6fd","line":12,"in_reply_to":"1abeadc6_c38222c7","updated":"2014-08-22 19:47:24.000000000","message":"The right fix here is to narrow the Except to just RemoteError and do your UT homework. Logging is not saving your back.","commit_id":"0f20be3bf9cabe3d0357e456f59aabce04fdf202"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"4e22d4647ea00d877281af83ef9bb92c78200891","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Previously, we log these failures at debug level but these should be logged"},{"line_number":10,"context_line":"at least at error level as now if we we fail to update the port_status"},{"line_number":11,"context_line":"value it can cause nova to not starting the vm. Logging as exception should"},{"line_number":12,"context_line":"hopefully provide a little more info about why this sometimes fails"},{"line_number":13,"context_line":"in the gate."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Closes-bug: 1357593"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1abeadc6_48cc4b36","line":12,"in_reply_to":"1abeadc6_c785aeae","updated":"2014-08-17 22:27:24.000000000","message":"Sure the error could be also occurring on the server side as well. Raising here though brings attention to the error on the client side so on can go track it down on the server.","commit_id":"0f20be3bf9cabe3d0357e456f59aabce04fdf202"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"ff5926329cb06d5c58922de1253952c8c195d732","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Previously, we log these failures at debug level but these should be logged"},{"line_number":10,"context_line":"at least at error level as now if we we fail to update the port_status"},{"line_number":11,"context_line":"value it can cause nova to not starting the vm. Logging as exception should"},{"line_number":12,"context_line":"hopefully provide a little more info about why this sometimes fails"},{"line_number":13,"context_line":"in the gate."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Closes-bug: 1357593"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1abeadc6_759cd75d","line":12,"in_reply_to":"1abeadc6_c88e04d0","updated":"2014-08-21 14:14:46.000000000","message":"to your point, we print the exception message, what else do you need? In this particular instance, the stacktrace will show up oslo rpc message junk, unless something is fundamentally wrong like self.plugin_rpc or any of the objects used not being initialized.\n\nSo to sum it up, I think this change, albeit innocuous, it gets us nothing but log noise.","commit_id":"0f20be3bf9cabe3d0357e456f59aabce04fdf202"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"6854c38c05711fb213ef7e05c4cfe6364a258e14","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Previously, we log these failures at debug level but these should be logged"},{"line_number":10,"context_line":"at the error level as if we fail to update the port_status value it can"},{"line_number":11,"context_line":"cause nova to not starting the vm."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Closes-bug: 1357593"},{"line_number":14,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"fa98f980_2431ad0b","line":11,"updated":"2014-09-10 05:45:26.000000000","message":"the code in question is to notify vswitch port removal to neutron server.\ncan you explain how its failure can prevent nova from starting vm?","commit_id":"436a2769d1283aaa593ea4bfecf2381eb3bb9bd1"}],"neutron/plugins/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"fb64ae2ab3686771490e3bd84062e992291f2e42","unresolved":false,"context_lines":[{"line_number":1160,"context_line":"                                                   cfg.CONF.host)"},{"line_number":1161,"context_line":"            except Exception as e:"},{"line_number":1162,"context_line":"                LOG.exception(_(\"port_removed failed for %(device)s: %(e)s\"),"},{"line_number":1163,"context_line":"                              {\u0027device\u0027: device, \u0027e\u0027: e})"},{"line_number":1164,"context_line":"                resync \u003d True"},{"line_number":1165,"context_line":"                continue"},{"line_number":1166,"context_line":"            self.port_unbound(device)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7ac7a964_516f3afd","line":1163,"updated":"2014-08-16 00:15:15.000000000","message":"there\u0027s no need to log e","commit_id":"f4a9f083bd0e71a263b7d4e08be35ff5a55f7992"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"fb64ae2ab3686771490e3bd84062e992291f2e42","unresolved":false,"context_lines":[{"line_number":1177,"context_line":"                                                             cfg.CONF.host)"},{"line_number":1178,"context_line":"            except Exception as e:"},{"line_number":1179,"context_line":"                LOG.exception(_(\"port_removed failed for %(device)s: %(e)s\"),"},{"line_number":1180,"context_line":"                              {\u0027device\u0027: device, \u0027e\u0027: e})"},{"line_number":1181,"context_line":"                resync \u003d True"},{"line_number":1182,"context_line":"                continue"},{"line_number":1183,"context_line":"            if details[\u0027exists\u0027]:"}],"source_content_type":"text/x-python","patch_set":1,"id":"7ac7a964_717276e6","line":1180,"updated":"2014-08-16 00:15:15.000000000","message":"ditto","commit_id":"f4a9f083bd0e71a263b7d4e08be35ff5a55f7992"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"6283153b4091a792a9412abe862564f9fda4c765","unresolved":false,"context_lines":[{"line_number":1159,"context_line":"                                                   self.agent_id,"},{"line_number":1160,"context_line":"                                                   cfg.CONF.host)"},{"line_number":1161,"context_line":"            except Exception:"},{"line_number":1162,"context_line":"                LOG.exception(_(\"port_removed failed for %s\"), device)"},{"line_number":1163,"context_line":"                resync \u003d True"},{"line_number":1164,"context_line":"                continue"},{"line_number":1165,"context_line":"            self.port_unbound(device)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1abeadc6_f3e1909b","line":1162,"updated":"2014-08-17 03:50:28.000000000","message":"why not LOG.error?","commit_id":"0f20be3bf9cabe3d0357e456f59aabce04fdf202"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"4e22d4647ea00d877281af83ef9bb92c78200891","unresolved":false,"context_lines":[{"line_number":1159,"context_line":"                                                   self.agent_id,"},{"line_number":1160,"context_line":"                                                   cfg.CONF.host)"},{"line_number":1161,"context_line":"            except Exception:"},{"line_number":1162,"context_line":"                LOG.exception(_(\"port_removed failed for %s\"), device)"},{"line_number":1163,"context_line":"                resync \u003d True"},{"line_number":1164,"context_line":"                continue"},{"line_number":1165,"context_line":"            self.port_unbound(device)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1abeadc6_a8531f6b","line":1162,"in_reply_to":"1abeadc6_f3e1909b","updated":"2014-08-17 22:27:24.000000000","message":"want to see the full trace.","commit_id":"0f20be3bf9cabe3d0357e456f59aabce04fdf202"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"bdbb841e2aef841af9443db728be22299c24b934","unresolved":false,"context_lines":[{"line_number":1160,"context_line":"                                                   cfg.CONF.host)"},{"line_number":1161,"context_line":"            except Exception:"},{"line_number":1162,"context_line":"                LOG.error(_(\"port_removed failed for %(device)s: %(e)s\"),"},{"line_number":1163,"context_line":"                          {\u0027device\u0027: device, \u0027e\u0027: e})"},{"line_number":1164,"context_line":"                resync \u003d True"},{"line_number":1165,"context_line":"                continue"},{"line_number":1166,"context_line":"            self.port_unbound(device)"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_60f4a487","line":1163,"updated":"2014-08-25 19:26:27.000000000","message":"In case this catches, it\u0027ll throw another exception because e is undefined!","commit_id":"0646621182cdcefa0416533845e5106545fd72c0"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"bdbb841e2aef841af9443db728be22299c24b934","unresolved":false,"context_lines":[{"line_number":1176,"context_line":"                                                             self.agent_id,"},{"line_number":1177,"context_line":"                                                             cfg.CONF.host)"},{"line_number":1178,"context_line":"            except Exception:"},{"line_number":1179,"context_line":"                LOG.error(_(\"port_removed failed for %(device)s: %(e)s\"),"},{"line_number":1180,"context_line":"                          {\u0027device\u0027: device, \u0027e\u0027: e})"},{"line_number":1181,"context_line":"                resync \u003d True"},{"line_number":1182,"context_line":"                continue"}],"source_content_type":"text/x-python","patch_set":5,"id":"1abeadc6_80f1c097","line":1179,"updated":"2014-08-25 19:26:27.000000000","message":"ditto","commit_id":"0646621182cdcefa0416533845e5106545fd72c0"}]}
