)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d425e1301dcf3954235ae09a74a737de1bc08392","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The method validate_driver_interfaces in conductor manager"},{"line_number":10,"context_line":"catches only known exceptions. But some third-party can"},{"line_number":11,"context_line":"break this method."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Adding catch of general Ironic Exception to this method"},{"line_number":14,"context_line":"to avoid these issues."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"3a71b18c_fe338e60","line":11,"updated":"2016-12-07 14:57:05.000000000","message":"I\u0027m not sure how returning meaningless answer instead of an error actually fixes the method. I\u0027d leave it as it is.","commit_id":"affd41766d3ec21a9287a49f92b56384477149bd"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"cab6e377e9419634bea5960cc378c7af7197c7e2","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The method validate_driver_interfaces in conductor manager"},{"line_number":10,"context_line":"catches only known exceptions. But some third-party can"},{"line_number":11,"context_line":"break this method."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Adding catch of general Ironic Exception to this method"},{"line_number":14,"context_line":"to avoid these issues."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"1a6eadb0_94277463","line":11,"in_reply_to":"3a71b18c_0cf520ca","updated":"2016-12-14 14:32:32.000000000","message":"\u003e If this method will be broken by some third-party drivers, it would break the node deployment\n\nAnd it should.","commit_id":"affd41766d3ec21a9287a49f92b56384477149bd"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"2c03c0e7b1c08751370264fb9e1ebc037fd22f15","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The method validate_driver_interfaces in conductor manager"},{"line_number":10,"context_line":"catches only known exceptions. But some third-party can"},{"line_number":11,"context_line":"break this method."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Adding catch of general Ironic Exception to this method"},{"line_number":14,"context_line":"to avoid these issues."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"3a71b18c_0cf520ca","line":11,"in_reply_to":"3a71b18c_fe338e60","updated":"2016-12-14 14:21:42.000000000","message":"Thanks for the review\nI could put the exception in the result also.\nIf this method will be broken by some third-party drivers, it would break the node deployment","commit_id":"affd41766d3ec21a9287a49f92b56384477149bd"}],"ironic/conductor/manager.py":[{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"7dc22566c706541f3656e9e5a152b8a57be24a05","unresolved":false,"context_lines":[{"line_number":1426,"context_line":"                            exception.UnsupportedDriverExtension) as e:"},{"line_number":1427,"context_line":"                        result \u003d False"},{"line_number":1428,"context_line":"                        reason \u003d str(e)"},{"line_number":1429,"context_line":"                    except exception.IronicException as e:"},{"line_number":1430,"context_line":"                        result \u003d False"},{"line_number":1431,"context_line":"                        reason \u003d str(e)"},{"line_number":1432,"context_line":"                else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a71b18c_69e3f805","line":1429,"updated":"2016-12-02 16:14:35.000000000","message":"Thanks for the patch. 1) Please create a bug 2) Please create a release note 3) Please add unit test 4) Third-party drivers can raise any exception, not only IronicException 5) I personally prefer to hide detail of unexpected exception here that returned via API and write it to the log","commit_id":"bf4820df81700cc384d63cb024fac7afd070f77f"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"b9c99e0606b89fe5e82ab2fc54759bfa8bce783b","unresolved":false,"context_lines":[{"line_number":1426,"context_line":"                            exception.UnsupportedDriverExtension) as e:"},{"line_number":1427,"context_line":"                        result \u003d False"},{"line_number":1428,"context_line":"                        reason \u003d str(e)"},{"line_number":1429,"context_line":"                    except exception.IronicException as e:"},{"line_number":1430,"context_line":"                        result \u003d False"},{"line_number":1431,"context_line":"                        reason \u003d str(e)"},{"line_number":1432,"context_line":"                else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a71b18c_bff6e9f6","line":1429,"in_reply_to":"3a71b18c_69e3f805","updated":"2016-12-05 11:37:05.000000000","message":"Done","commit_id":"bf4820df81700cc384d63cb024fac7afd070f77f"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"d2f8b0c524b5d8ef1abf9e5f1b1931182d8c9da0","unresolved":false,"context_lines":[{"line_number":1426,"context_line":"                            exception.UnsupportedDriverExtension) as e:"},{"line_number":1427,"context_line":"                        result \u003d False"},{"line_number":1428,"context_line":"                        reason \u003d str(e)"},{"line_number":1429,"context_line":"                    except exception.IronicException as e:"},{"line_number":1430,"context_line":"                        result \u003d False"},{"line_number":1431,"context_line":"                        reason \u003d str(e)"},{"line_number":1432,"context_line":"                else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a71b18c_69c6984a","line":1429,"in_reply_to":"3a71b18c_69e3f805","updated":"2016-12-02 16:17:11.000000000","message":"Sorry, the bug already created but -1 for other items","commit_id":"bf4820df81700cc384d63cb024fac7afd070f77f"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"d84884002b1592f3c5ae3c511f094dba40a8658f","unresolved":false,"context_lines":[{"line_number":1442,"context_line":"                    except Exception:"},{"line_number":1443,"context_line":"                        result \u003d False"},{"line_number":1444,"context_line":"                        reason \u003d \u0027Unexpected exception. See logs\u0027"},{"line_number":1445,"context_line":"                        LOG.debug(_(\u0027Unexpected exception occurred while\u0027"},{"line_number":1446,"context_line":"                                    \u0027validating driver interfaces: %s\u0027),"},{"line_number":1447,"context_line":"                                  traceback.format_exc())"},{"line_number":1448,"context_line":"                else:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a71b18c_45bc26dc","line":1445,"updated":"2016-12-05 12:33:09.000000000","message":"Please use LOG.exception here.","commit_id":"69bf4808dd49842c1168d28328a650d855ceadd9"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"ddf9ae3f97ade93b6a887c95d716ce530cca26c7","unresolved":false,"context_lines":[{"line_number":1442,"context_line":"                    except Exception:"},{"line_number":1443,"context_line":"                        result \u003d False"},{"line_number":1444,"context_line":"                        reason \u003d \u0027Unexpected exception. See logs\u0027"},{"line_number":1445,"context_line":"                        LOG.debug(_(\u0027Unexpected exception occurred while\u0027"},{"line_number":1446,"context_line":"                                    \u0027validating driver interfaces: %s\u0027),"},{"line_number":1447,"context_line":"                                  traceback.format_exc())"},{"line_number":1448,"context_line":"                else:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a71b18c_4b76f7a4","line":1445,"in_reply_to":"3a71b18c_45bc26dc","updated":"2016-12-05 13:14:42.000000000","message":"Done","commit_id":"69bf4808dd49842c1168d28328a650d855ceadd9"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"9f746583e6134ab18f3fad3f5bde10a0b89552b8","unresolved":false,"context_lines":[{"line_number":1444,"context_line":"                        reason \u003d \u0027Unexpected exception. See logs\u0027"},{"line_number":1445,"context_line":"                        LOG.exception(_(\u0027Unexpected exception occurred while\u0027"},{"line_number":1446,"context_line":"                                        \u0027validating driver interfaces: %s\u0027),"},{"line_number":1447,"context_line":"                                      traceback.format_exc())"},{"line_number":1448,"context_line":"                else:"},{"line_number":1449,"context_line":"                    reason \u003d _(\u0027not supported\u0027)"},{"line_number":1450,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3a71b18c_5dda2be9","line":1447,"updated":"2016-12-05 18:41:05.000000000","message":"I don\u0027t think traceback.format_exc() is necessary here. LOG.exception should automatically result in a traceback.","commit_id":"28340e29a1c89ae6ae519af9c876f85ecb38ad6e"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"f1bbe3aeab4b3cfa22fec3bf44b1d6839ddfe27a","unresolved":false,"context_lines":[{"line_number":1444,"context_line":"                        reason \u003d \u0027Unexpected exception. See logs\u0027"},{"line_number":1445,"context_line":"                        LOG.exception(_(\u0027Unexpected exception occurred while\u0027"},{"line_number":1446,"context_line":"                                        \u0027validating driver interfaces: %s\u0027),"},{"line_number":1447,"context_line":"                                      traceback.format_exc())"},{"line_number":1448,"context_line":"                else:"},{"line_number":1449,"context_line":"                    reason \u003d _(\u0027not supported\u0027)"},{"line_number":1450,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3a71b18c_db570756","line":1447,"in_reply_to":"3a71b18c_5dda2be9","updated":"2016-12-06 10:11:19.000000000","message":"Done","commit_id":"28340e29a1c89ae6ae519af9c876f85ecb38ad6e"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"cbbbc4992e1f1ce9b0fb83dc9823e7388d99667d","unresolved":false,"context_lines":[{"line_number":1440,"context_line":"                        reason \u003d str(e)"},{"line_number":1441,"context_line":"                    except Exception as e:"},{"line_number":1442,"context_line":"                        result \u003d False"},{"line_number":1443,"context_line":"                        reason \u003d \u0027Unexpected exception. See logs\u0027"},{"line_number":1444,"context_line":"                        LOG.exception(_(\u0027Unexpected exception occurred while\u0027"},{"line_number":1445,"context_line":"                                        \u0027validating driver interfaces: %s\u0027),"},{"line_number":1446,"context_line":"                                      e)"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a71b18c_6887ddb4","line":1443,"updated":"2016-12-07 06:13:23.000000000","message":"please use translation _() like l1448","commit_id":"b5de23cc5778771aad56b02de6240a653251e88d"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"cbbbc4992e1f1ce9b0fb83dc9823e7388d99667d","unresolved":false,"context_lines":[{"line_number":1441,"context_line":"                    except Exception as e:"},{"line_number":1442,"context_line":"                        result \u003d False"},{"line_number":1443,"context_line":"                        reason \u003d \u0027Unexpected exception. See logs\u0027"},{"line_number":1444,"context_line":"                        LOG.exception(_(\u0027Unexpected exception occurred while\u0027"},{"line_number":1445,"context_line":"                                        \u0027validating driver interfaces: %s\u0027),"},{"line_number":1446,"context_line":"                                      e)"},{"line_number":1447,"context_line":"                else:"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a71b18c_285c057c","line":1444,"range":{"start_line":1444,"start_character":38,"end_line":1444,"end_character":39},"updated":"2016-12-07 06:13:23.000000000","message":"Because this message intended only for logs we should use _LE translation here.","commit_id":"b5de23cc5778771aad56b02de6240a653251e88d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"4d0ac2f668844d25c127933aa850523b2a02796f","unresolved":false,"context_lines":[{"line_number":1441,"context_line":"                    except Exception as e:"},{"line_number":1442,"context_line":"                        result \u003d False"},{"line_number":1443,"context_line":"                        reason \u003d _(\u0027Unexpected exception. See logs\u0027)"},{"line_number":1444,"context_line":"                        LOG.exception(_LE(\u0027Unexpected exception occurred while\u0027"},{"line_number":1445,"context_line":"                                          \u0027validating driver interfaces: %s\u0027),"},{"line_number":1446,"context_line":"                                      e)"},{"line_number":1447,"context_line":"                else:"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a6eadb0_a47a47ef","line":1444,"updated":"2016-12-15 14:29:53.000000000","message":"Missing space here.","commit_id":"affd41766d3ec21a9287a49f92b56384477149bd"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"d21757bf24f000822a930eff46cbb7155bc71f3d","unresolved":false,"context_lines":[{"line_number":1441,"context_line":"                    except Exception as e:"},{"line_number":1442,"context_line":"                        result \u003d False"},{"line_number":1443,"context_line":"                        reason \u003d _(\u0027Unexpected exception. See logs\u0027)"},{"line_number":1444,"context_line":"                        LOG.exception(_LE(\u0027Unexpected exception occurred while\u0027"},{"line_number":1445,"context_line":"                                          \u0027validating driver interfaces: %s\u0027),"},{"line_number":1446,"context_line":"                                      e)"},{"line_number":1447,"context_line":"                else:"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a6eadb0_3a98de1b","line":1444,"in_reply_to":"1a6eadb0_a47a47ef","updated":"2016-12-16 12:27:34.000000000","message":"Done","commit_id":"affd41766d3ec21a9287a49f92b56384477149bd"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"06aba0880e519327756ef19a9366c07470882de5","unresolved":false,"context_lines":[{"line_number":1443,"context_line":"                        msg \u003d (_(\u0027Unexpected exception occurred while \u0027"},{"line_number":1444,"context_line":"                                 \u0027validating driver interface %(iface)s \u0027"},{"line_number":1445,"context_line":"                                 \u0027for driver %(driver)s: %(err)s.\u0027) %"},{"line_number":1446,"context_line":"                               {\u0027iface\u0027: iface, \u0027driver\u0027: task.driver,"},{"line_number":1447,"context_line":"                                \u0027err\u0027: e})"},{"line_number":1448,"context_line":"                        reason \u003d msg"},{"line_number":1449,"context_line":"                        LOG.exception(msg)"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a6eadb0_7ee08129","line":1446,"updated":"2016-12-16 15:27:32.000000000","message":"iface is the instance of interface, task.driver is the instance of driver. Names are iface_name and task.node.driver. But this info is needed only for log, better do not include it in the reason. IMO reason should be like \"Unexpected exception %s\" % e.","commit_id":"69436d5a12222a1d781a3d3504c53f3402f58ac2"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"908583de0fcc14cd77dac40df82b04926f20ffac","unresolved":false,"context_lines":[{"line_number":1443,"context_line":"                        msg \u003d (_(\u0027Unexpected exception occurred while \u0027"},{"line_number":1444,"context_line":"                                 \u0027validating driver interface %(iface)s \u0027"},{"line_number":1445,"context_line":"                                 \u0027for driver %(driver)s: %(err)s.\u0027) %"},{"line_number":1446,"context_line":"                               {\u0027iface\u0027: iface, \u0027driver\u0027: task.driver,"},{"line_number":1447,"context_line":"                                \u0027err\u0027: e})"},{"line_number":1448,"context_line":"                        reason \u003d msg"},{"line_number":1449,"context_line":"                        LOG.exception(msg)"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a6eadb0_367d0de8","line":1446,"in_reply_to":"1a6eadb0_7ee08129","updated":"2016-12-19 14:59:50.000000000","message":"I think the name of the driver can be included in the message, why not. just better for the code, that same message is shown\nAnd agree, erased interface from message","commit_id":"69436d5a12222a1d781a3d3504c53f3402f58ac2"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"711b6df32aa345f6f03a785d05b9a15f7c479be5","unresolved":false,"context_lines":[{"line_number":1443,"context_line":"                        msg \u003d (_(\u0027Unexpected exception occurred while \u0027"},{"line_number":1444,"context_line":"                                 \u0027validating driver interface \u0027"},{"line_number":1445,"context_line":"                                 \u0027for driver %(driver)s: %(err)s.\u0027) %"},{"line_number":1446,"context_line":"                               {\u0027driver\u0027: task.driver, \u0027err\u0027: e})"},{"line_number":1447,"context_line":"                        reason \u003d msg"},{"line_number":1448,"context_line":"                        LOG.exception(msg)"},{"line_number":1449,"context_line":"                else:"}],"source_content_type":"text/x-python","patch_set":9,"id":"1a6eadb0_99dc5276","line":1446,"range":{"start_line":1446,"start_character":31,"end_line":1446,"end_character":53},"updated":"2016-12-19 15:06:22.000000000","message":"With driver composition and hardware types/dynamic interfaces, I think it might be good to log the interface as well.","commit_id":"8057ceefe9607386d5c050d371ce633ba1052d79"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"c706e47289ce2535c2ac7c21abcaa4caabe1050e","unresolved":false,"context_lines":[{"line_number":1443,"context_line":"                        msg \u003d (_(\u0027Unexpected exception occurred while \u0027"},{"line_number":1444,"context_line":"                                 \u0027validating driver interface \u0027"},{"line_number":1445,"context_line":"                                 \u0027for driver %(driver)s: %(err)s.\u0027) %"},{"line_number":1446,"context_line":"                               {\u0027driver\u0027: task.driver, \u0027err\u0027: e})"},{"line_number":1447,"context_line":"                        reason \u003d msg"},{"line_number":1448,"context_line":"                        LOG.exception(msg)"},{"line_number":1449,"context_line":"                else:"}],"source_content_type":"text/x-python","patch_set":9,"id":"1a6eadb0_99da92e8","line":1446,"range":{"start_line":1446,"start_character":31,"end_line":1446,"end_character":53},"in_reply_to":"1a6eadb0_99dc5276","updated":"2016-12-19 15:20:04.000000000","message":"I agree with Yuriy, not sure we should have this in the message. We know the node uuid, we know the interface that has failed, we can just do node show and see the problematic interface. Even if we log it, it should be task.node.driver (or task.node.\u003csome_interface\u003e) as task.driver will actually print something like \u003cAgentAndIPMIToolDriver object at 0x1236726\u003e.","commit_id":"8057ceefe9607386d5c050d371ce633ba1052d79"},{"author":{"_account_id":21775,"name":"Ricardo Araújo Santos","email":"ricardo@lsd.ufcg.edu.br","username":"ricardoas"},"change_message_id":"8e93896f08b355d491afb3e104156d42844955a8","unresolved":false,"context_lines":[{"line_number":1438,"context_line":"                            exception.UnsupportedDriverExtension) as e:"},{"line_number":1439,"context_line":"                        result \u003d False"},{"line_number":1440,"context_line":"                        reason \u003d str(e)"},{"line_number":1441,"context_line":"                    except Exception as e:"},{"line_number":1442,"context_line":"                        result \u003d False"},{"line_number":1443,"context_line":"                        reason \u003d (_(\u0027Unexpected exception while validating \u0027"},{"line_number":1444,"context_line":"                                    \u0027driver interfaces: %s\u0027) % e)"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a6eadb0_83177853","line":1441,"range":{"start_line":1441,"start_character":1,"end_line":1441,"end_character":42},"updated":"2016-12-19 18:49:20.000000000","message":"Should we catch this also at set_boot_device on line 2147?","commit_id":"409eb6f9c30007255ce3f6253ac535f93e0d0bb0"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"847e40b91193480b0adcd6f1b64f4d82ad9c1c5a","unresolved":false,"context_lines":[{"line_number":1438,"context_line":"                            exception.UnsupportedDriverExtension) as e:"},{"line_number":1439,"context_line":"                        result \u003d False"},{"line_number":1440,"context_line":"                        reason \u003d str(e)"},{"line_number":1441,"context_line":"                    except Exception as e:"},{"line_number":1442,"context_line":"                        result \u003d False"},{"line_number":1443,"context_line":"                        reason \u003d (_(\u0027Unexpected exception while validating \u0027"},{"line_number":1444,"context_line":"                                    \u0027driver interfaces: %s\u0027) % e)"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a6eadb0_93c32a57","line":1441,"range":{"start_line":1441,"start_character":1,"end_line":1441,"end_character":42},"in_reply_to":"1a6eadb0_83177853","updated":"2016-12-20 09:10:11.000000000","message":"it can be done, but it is not the purpose of this patch","commit_id":"409eb6f9c30007255ce3f6253ac535f93e0d0bb0"},{"author":{"_account_id":21775,"name":"Ricardo Araújo Santos","email":"ricardo@lsd.ufcg.edu.br","username":"ricardoas"},"change_message_id":"467aa8762c26ccb4b350205c6dcd30dcf3a1687d","unresolved":false,"context_lines":[{"line_number":1438,"context_line":"                            exception.UnsupportedDriverExtension) as e:"},{"line_number":1439,"context_line":"                        result \u003d False"},{"line_number":1440,"context_line":"                        reason \u003d str(e)"},{"line_number":1441,"context_line":"                    except Exception as e:"},{"line_number":1442,"context_line":"                        result \u003d False"},{"line_number":1443,"context_line":"                        reason \u003d (_(\u0027Unexpected exception while validating \u0027"},{"line_number":1444,"context_line":"                                    \u0027driver interfaces: %s\u0027) % e)"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a6eadb0_7ef1dc69","line":1441,"range":{"start_line":1441,"start_character":1,"end_line":1441,"end_character":42},"in_reply_to":"1a6eadb0_93c32a57","updated":"2016-12-20 16:26:48.000000000","message":"I was wondering if this was the case to extend this patch to check all places validation is used in the conductor not just the validate_driver_interfaces... I guess it was not a good idea, sorry! :)","commit_id":"409eb6f9c30007255ce3f6253ac535f93e0d0bb0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"4c4c3d6b065cd44e8a7da91e87c21077e8912021","unresolved":false,"context_lines":[{"line_number":1441,"context_line":"                    except Exception as e:"},{"line_number":1442,"context_line":"                        result \u003d False"},{"line_number":1443,"context_line":"                        reason \u003d (_(\u0027Unexpected exception while validating \u0027"},{"line_number":1444,"context_line":"                                    \u0027driver interfaces: %s\u0027) % e)"},{"line_number":1445,"context_line":"                        LOG.exception(_LE("},{"line_number":1446,"context_line":"                            \u0027Unexpected exception occurred while validating \u0027"},{"line_number":1447,"context_line":"                            \u0027%(iface)s driver interface for driver \u0027"}],"source_content_type":"text/x-python","patch_set":12,"id":"da4df55a_ebef3aae","line":1444,"range":{"start_line":1444,"start_character":44,"end_line":1444,"end_character":54},"updated":"2016-12-22 09:39:53.000000000","message":"interface","commit_id":"0e4748e8bd085009289e43090c7bfa4beb617735"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"49911ba0f8f2c007454376ab4474091cd5a8db44","unresolved":false,"context_lines":[{"line_number":1441,"context_line":"                    except Exception as e:"},{"line_number":1442,"context_line":"                        result \u003d False"},{"line_number":1443,"context_line":"                        reason \u003d (_(\u0027Unexpected exception while validating \u0027"},{"line_number":1444,"context_line":"                                    \u0027driver interfaces: %s\u0027) % e)"},{"line_number":1445,"context_line":"                        LOG.exception(_LE("},{"line_number":1446,"context_line":"                            \u0027Unexpected exception occurred while validating \u0027"},{"line_number":1447,"context_line":"                            \u0027%(iface)s driver interface for driver \u0027"}],"source_content_type":"text/x-python","patch_set":12,"id":"da4df55a_8444781b","line":1444,"range":{"start_line":1444,"start_character":44,"end_line":1444,"end_character":54},"in_reply_to":"da4df55a_ebef3aae","updated":"2016-12-26 11:06:23.000000000","message":"Done","commit_id":"0e4748e8bd085009289e43090c7bfa4beb617735"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"73e6f10572944c37cd494f76ee006444d60e216f","unresolved":false,"context_lines":[{"line_number":1440,"context_line":"                        reason \u003d str(e)"},{"line_number":1441,"context_line":"                    except Exception as e:"},{"line_number":1442,"context_line":"                        result \u003d False"},{"line_number":1443,"context_line":"                        reason \u003d (_(\u0027Unexpected exception while validating \u0027"},{"line_number":1444,"context_line":"                                    \u0027driver interface: %s\u0027) % e)"},{"line_number":1445,"context_line":"                        LOG.exception(_LE("},{"line_number":1446,"context_line":"                            \u0027Unexpected exception occurred while validating \u0027"},{"line_number":1447,"context_line":"                            \u0027%(iface)s driver interface for driver \u0027"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba5201f7_536c969c","line":1444,"range":{"start_line":1443,"start_character":58,"end_line":1444,"end_character":53},"updated":"2016-12-29 05:19:28.000000000","message":"I think this can be skipped. What about: \"Unexpected exception, traceback saved into log by ironic conductor service that is running on %(host)s: %(error)s\" % {\u0027host\u0027: self.host, \u0027error\u0027:}","commit_id":"139f5348ba1e9d7f12e83720510ee14dae5ff3c4"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"7f1b62971b727fce726aeb65acec8ffab20d7c2a","unresolved":false,"context_lines":[{"line_number":1440,"context_line":"                        reason \u003d str(e)"},{"line_number":1441,"context_line":"                    except Exception as e:"},{"line_number":1442,"context_line":"                        result \u003d False"},{"line_number":1443,"context_line":"                        reason \u003d (_(\u0027Unexpected exception while validating \u0027"},{"line_number":1444,"context_line":"                                    \u0027driver interface: %s\u0027) % e)"},{"line_number":1445,"context_line":"                        LOG.exception(_LE("},{"line_number":1446,"context_line":"                            \u0027Unexpected exception occurred while validating \u0027"},{"line_number":1447,"context_line":"                            \u0027%(iface)s driver interface for driver \u0027"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba5201f7_0db026f4","line":1444,"range":{"start_line":1443,"start_character":58,"end_line":1444,"end_character":53},"in_reply_to":"ba5201f7_536c969c","updated":"2016-12-29 13:33:05.000000000","message":"Done","commit_id":"139f5348ba1e9d7f12e83720510ee14dae5ff3c4"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"73e6f10572944c37cd494f76ee006444d60e216f","unresolved":false,"context_lines":[{"line_number":1445,"context_line":"                        LOG.exception(_LE("},{"line_number":1446,"context_line":"                            \u0027Unexpected exception occurred while validating \u0027"},{"line_number":1447,"context_line":"                            \u0027%(iface)s driver interface for driver \u0027"},{"line_number":1448,"context_line":"                            \u0027%(driver)s: %(err)s.\u0027),"},{"line_number":1449,"context_line":"                            {\u0027iface\u0027: iface_name, \u0027driver\u0027: task.driver,"},{"line_number":1450,"context_line":"                             \u0027err\u0027: e})"},{"line_number":1451,"context_line":"                else:"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba5201f7_d308862b","line":1448,"updated":"2016-12-29 05:19:28.000000000","message":"nit: extra space","commit_id":"139f5348ba1e9d7f12e83720510ee14dae5ff3c4"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"73e6f10572944c37cd494f76ee006444d60e216f","unresolved":false,"context_lines":[{"line_number":1446,"context_line":"                            \u0027Unexpected exception occurred while validating \u0027"},{"line_number":1447,"context_line":"                            \u0027%(iface)s driver interface for driver \u0027"},{"line_number":1448,"context_line":"                            \u0027%(driver)s: %(err)s.\u0027),"},{"line_number":1449,"context_line":"                            {\u0027iface\u0027: iface_name, \u0027driver\u0027: task.driver,"},{"line_number":1450,"context_line":"                             \u0027err\u0027: e})"},{"line_number":1451,"context_line":"                else:"},{"line_number":1452,"context_line":"                    reason \u003d _(\u0027not supported\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba5201f7_333712e5","line":1449,"range":{"start_line":1449,"start_character":60,"end_line":1449,"end_character":71},"updated":"2016-12-29 05:19:28.000000000","message":"This is instance of driver, not name. Please use task.node.driver instead and also add task.node.uuid into log error message.","commit_id":"139f5348ba1e9d7f12e83720510ee14dae5ff3c4"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"7f1b62971b727fce726aeb65acec8ffab20d7c2a","unresolved":false,"context_lines":[{"line_number":1446,"context_line":"                            \u0027Unexpected exception occurred while validating \u0027"},{"line_number":1447,"context_line":"                            \u0027%(iface)s driver interface for driver \u0027"},{"line_number":1448,"context_line":"                            \u0027%(driver)s: %(err)s.\u0027),"},{"line_number":1449,"context_line":"                            {\u0027iface\u0027: iface_name, \u0027driver\u0027: task.driver,"},{"line_number":1450,"context_line":"                             \u0027err\u0027: e})"},{"line_number":1451,"context_line":"                else:"},{"line_number":1452,"context_line":"                    reason \u003d _(\u0027not supported\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba5201f7_2df88a7c","line":1449,"range":{"start_line":1449,"start_character":60,"end_line":1449,"end_character":71},"in_reply_to":"ba5201f7_333712e5","updated":"2016-12-29 13:33:05.000000000","message":"Done","commit_id":"139f5348ba1e9d7f12e83720510ee14dae5ff3c4"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"fffcccb29a3afdfb8e5e2605db9e5acecc026f57","unresolved":false,"context_lines":[{"line_number":1447,"context_line":"                        LOG.exception(_LE("},{"line_number":1448,"context_line":"                            \u0027Unexpected exception occurred while validating \u0027"},{"line_number":1449,"context_line":"                            \u0027%(iface)s driver interface for driver \u0027"},{"line_number":1450,"context_line":"                            \u0027%(driver)s: %(err)s on node %(node).\u0027),"},{"line_number":1451,"context_line":"                            {\u0027iface\u0027: iface_name, \u0027driver\u0027: task.node.driver,"},{"line_number":1452,"context_line":"                             \u0027err\u0027: e, \u0027node\u0027: task.node.uuid})"},{"line_number":1453,"context_line":"                else:"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba5201f7_108839e7","line":1450,"range":{"start_line":1450,"start_character":57,"end_line":1450,"end_character":64},"updated":"2016-12-29 14:16:50.000000000","message":"Missing \"s\" at the end.","commit_id":"05614f8e8e7a1624d6d1cee9c12c1a2a3b43cc39"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"261b8d84b8764b00b9a857d12dd638b2973417b0","unresolved":false,"context_lines":[{"line_number":1447,"context_line":"                        LOG.exception(_LE("},{"line_number":1448,"context_line":"                            \u0027Unexpected exception occurred while validating \u0027"},{"line_number":1449,"context_line":"                            \u0027%(iface)s driver interface for driver \u0027"},{"line_number":1450,"context_line":"                            \u0027%(driver)s: %(err)s on node %(node).\u0027),"},{"line_number":1451,"context_line":"                            {\u0027iface\u0027: iface_name, \u0027driver\u0027: task.node.driver,"},{"line_number":1452,"context_line":"                             \u0027err\u0027: e, \u0027node\u0027: task.node.uuid})"},{"line_number":1453,"context_line":"                else:"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba5201f7_7058a557","line":1450,"range":{"start_line":1450,"start_character":57,"end_line":1450,"end_character":64},"in_reply_to":"ba5201f7_108839e7","updated":"2016-12-29 14:26:39.000000000","message":"Done","commit_id":"05614f8e8e7a1624d6d1cee9c12c1a2a3b43cc39"}],"ironic/tests/unit/conductor/test_manager.py":[{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"90902d35a8414fb661b7c77999a19a4639d579de","unresolved":false,"context_lines":[{"line_number":2623,"context_line":"            reason \u003d (\u0027Unexpected exception while validating driver \u0027"},{"line_number":2624,"context_line":"                      \u0027interfaces: \u0027)"},{"line_number":2625,"context_line":"            self.assertFalse(ret[\u0027deploy\u0027][\u0027result\u0027])"},{"line_number":2626,"context_line":"            self.assertIn(reason, ret[\u0027deploy\u0027][\u0027reason\u0027])"},{"line_number":2627,"context_line":"            mock_iwdi.assert_called_once_with(self.context, node.instance_info)"},{"line_number":2628,"context_line":""},{"line_number":2629,"context_line":"    @mock.patch.object(manager.ConductorManager, \u0027_fail_if_in_state\u0027,"}],"source_content_type":"text/x-python","patch_set":11,"id":"da4df55a_e5edb08f","line":2626,"range":{"start_line":2626,"start_character":17,"end_line":2626,"end_character":25},"updated":"2016-12-22 06:28:56.000000000","message":"assertIn(a, b) checks that a in b, so I think it should be assertEqual() such as L.2610.","commit_id":"409eb6f9c30007255ce3f6253ac535f93e0d0bb0"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"d8ad8dc1658de6a0e4cb12120d0e2c76d54669ba","unresolved":false,"context_lines":[{"line_number":2623,"context_line":"            reason \u003d (\u0027Unexpected exception while validating driver \u0027"},{"line_number":2624,"context_line":"                      \u0027interfaces: \u0027)"},{"line_number":2625,"context_line":"            self.assertFalse(ret[\u0027deploy\u0027][\u0027result\u0027])"},{"line_number":2626,"context_line":"            self.assertIn(reason, ret[\u0027deploy\u0027][\u0027reason\u0027])"},{"line_number":2627,"context_line":"            mock_iwdi.assert_called_once_with(self.context, node.instance_info)"},{"line_number":2628,"context_line":""},{"line_number":2629,"context_line":"    @mock.patch.object(manager.ConductorManager, \u0027_fail_if_in_state\u0027,"}],"source_content_type":"text/x-python","patch_set":11,"id":"da4df55a_689ef057","line":2626,"range":{"start_line":2626,"start_character":17,"end_line":2626,"end_character":25},"in_reply_to":"da4df55a_e5edb08f","updated":"2016-12-22 09:16:50.000000000","message":"Done","commit_id":"409eb6f9c30007255ce3f6253ac535f93e0d0bb0"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"4c4c3d6b065cd44e8a7da91e87c21077e8912021","unresolved":false,"context_lines":[{"line_number":2617,"context_line":"        with mock.patch("},{"line_number":2618,"context_line":"                \u0027ironic.drivers.modules.fake.FakeDeploy.validate\u0027"},{"line_number":2619,"context_line":"        ) as deploy:"},{"line_number":2620,"context_line":"            deploy.side_effect \u003d Exception"},{"line_number":2621,"context_line":"            ret \u003d self.service.validate_driver_interfaces(self.context,"},{"line_number":2622,"context_line":"                                                          node.uuid)"},{"line_number":2623,"context_line":"            reason \u003d (\u0027Unexpected exception while validating driver \u0027"}],"source_content_type":"text/x-python","patch_set":12,"id":"da4df55a_eb4bbaae","line":2620,"range":{"start_line":2620,"start_character":33,"end_line":2620,"end_character":42},"updated":"2016-12-22 09:39:53.000000000","message":"nit - I\u0027d prefer it to be an instance of Exception, not a class, with some text inside, like Exception(\u0027foo\u0027), then check it in the reason too.","commit_id":"0e4748e8bd085009289e43090c7bfa4beb617735"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"49911ba0f8f2c007454376ab4474091cd5a8db44","unresolved":false,"context_lines":[{"line_number":2617,"context_line":"        with mock.patch("},{"line_number":2618,"context_line":"                \u0027ironic.drivers.modules.fake.FakeDeploy.validate\u0027"},{"line_number":2619,"context_line":"        ) as deploy:"},{"line_number":2620,"context_line":"            deploy.side_effect \u003d Exception"},{"line_number":2621,"context_line":"            ret \u003d self.service.validate_driver_interfaces(self.context,"},{"line_number":2622,"context_line":"                                                          node.uuid)"},{"line_number":2623,"context_line":"            reason \u003d (\u0027Unexpected exception while validating driver \u0027"}],"source_content_type":"text/x-python","patch_set":12,"id":"da4df55a_24bcacdb","line":2620,"range":{"start_line":2620,"start_character":33,"end_line":2620,"end_character":42},"in_reply_to":"da4df55a_eb4bbaae","updated":"2016-12-26 11:06:23.000000000","message":"Done","commit_id":"0e4748e8bd085009289e43090c7bfa4beb617735"}],"releasenotes/notes/catch-third-party-driver-validate-exceptions-94ed2a91c50d2d8e.yaml":[{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"711b6df32aa345f6f03a785d05b9a15f7c479be5","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Catch unknown exceptions with traceback"},{"line_number":4,"context_line":"    when validating driver interfaces."}],"source_content_type":"text/x-yaml","patch_set":9,"id":"1a6eadb0_19fe8205","line":4,"range":{"start_line":3,"start_character":4,"end_line":4,"end_character":38},"updated":"2016-12-19 15:06:22.000000000","message":"Perhaps \"An unknown exception in the validation of the driver interface will now result in the validation calls explicitly failing.\" ?","commit_id":"8057ceefe9607386d5c050d371ce633ba1052d79"}]}
