)]}'
{"ironic/drivers/base.py":[{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"ec5a56cae5060a11b2711fa08c2d84c3b2761c88","unresolved":false,"context_lines":[{"line_number":847,"context_line":"class InspectInterface(object):"},{"line_number":848,"context_line":"    \"\"\"Interface for inspection-related actions.\"\"\""},{"line_number":849,"context_line":""},{"line_number":850,"context_line":"    ESSENTIAL_PROPERTIES_KEYS \u003d {\u0027memory_mb\u0027, \u0027local_gb\u0027, \u0027cpus\u0027, \u0027cpu_arch\u0027}"},{"line_number":851,"context_line":""},{"line_number":852,"context_line":"    @abc.abstractmethod"},{"line_number":853,"context_line":"    def get_properties(self):"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_2ec4bf3e","line":850,"updated":"2015-08-17 12:26:39.000000000","message":"\"_KEYS\" are superfluous, ESSENTIAL_PROPERTIES\u003d","commit_id":"b0372b79e566c0d054b4a4e30619ef4ffcfdcfab"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"b600cfb217fb8a9464c774dac616a075e17db66e","unresolved":false,"context_lines":[{"line_number":847,"context_line":"class InspectInterface(object):"},{"line_number":848,"context_line":"    \"\"\"Interface for inspection-related actions.\"\"\""},{"line_number":849,"context_line":""},{"line_number":850,"context_line":"    ESSENTIAL_PROPERTIES_KEYS \u003d {\u0027memory_mb\u0027, \u0027local_gb\u0027, \u0027cpus\u0027, \u0027cpu_arch\u0027}"},{"line_number":851,"context_line":""},{"line_number":852,"context_line":"    @abc.abstractmethod"},{"line_number":853,"context_line":"    def get_properties(self):"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_75f91f4d","line":850,"in_reply_to":"fa1b9901_2ec4bf3e","updated":"2015-08-17 14:42:51.000000000","message":"I see the same ilo: https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/ilo/inspect.py#L33, should be removed in separate patch if you add this to base.","commit_id":"b0372b79e566c0d054b4a4e30619ef4ffcfdcfab"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"a77b071f5b18c19277ef777e651bee9f62766af2","unresolved":false,"context_lines":[{"line_number":847,"context_line":"class InspectInterface(object):"},{"line_number":848,"context_line":"    \"\"\"Interface for inspection-related actions.\"\"\""},{"line_number":849,"context_line":""},{"line_number":850,"context_line":"    ESSENTIAL_PROPERTIES_KEYS \u003d {\u0027memory_mb\u0027, \u0027local_gb\u0027, \u0027cpus\u0027, \u0027cpu_arch\u0027}"},{"line_number":851,"context_line":""},{"line_number":852,"context_line":"    @abc.abstractmethod"},{"line_number":853,"context_line":"    def get_properties(self):"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_6fac8aa0","line":850,"in_reply_to":"fa1b9901_75f91f4d","updated":"2015-08-19 09:59:13.000000000","message":"Okay, I\u0027ll do that.","commit_id":"b0372b79e566c0d054b4a4e30619ef4ffcfdcfab"}],"ironic/drivers/modules/irmc/common.py":[{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"50dc1866e0356a067564158f1dd432f3771ebba7","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                      \u0027\"ipmitool\" or \"scci\"\u0027)),"},{"line_number":45,"context_line":"    cfg.StrOpt(\u0027snmp_version\u0027,"},{"line_number":46,"context_line":"               default\u003d\u0027v2c\u0027,"},{"line_number":47,"context_line":"               help\u003d\u0027SNMP protocol version, either \"v1\", \"v2c\" or \"v3\"\u0027),"},{"line_number":48,"context_line":"    cfg.IntOpt(\u0027snmp_port\u0027,"},{"line_number":49,"context_line":"               default\u003d161,"},{"line_number":50,"context_line":"               help\u003d\u0027SNMP port\u0027),"}],"source_content_type":"text/x-python","patch_set":14,"id":"7a2fa921_83aa4fd3","line":47,"updated":"2015-10-06 17:29:33.000000000","message":"Help string should be translated.","commit_id":"e17ccc78ece015a3329248b4201a6a20057d85b5"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"1d0402239e5608eae9a8e1b617e3a8db6e145cce","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                      \u0027\"ipmitool\" or \"scci\"\u0027)),"},{"line_number":45,"context_line":"    cfg.StrOpt(\u0027snmp_version\u0027,"},{"line_number":46,"context_line":"               default\u003d\u0027v2c\u0027,"},{"line_number":47,"context_line":"               help\u003d\u0027SNMP protocol version, either \"v1\", \"v2c\" or \"v3\"\u0027),"},{"line_number":48,"context_line":"    cfg.IntOpt(\u0027snmp_port\u0027,"},{"line_number":49,"context_line":"               default\u003d161,"},{"line_number":50,"context_line":"               help\u003d\u0027SNMP port\u0027),"}],"source_content_type":"text/x-python","patch_set":14,"id":"7a2fa921_aaff0ca9","line":47,"in_reply_to":"7a2fa921_83aa4fd3","updated":"2015-10-07 07:31:37.000000000","message":"I\u0027ll fix that.","commit_id":"e17ccc78ece015a3329248b4201a6a20057d85b5"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"50dc1866e0356a067564158f1dd432f3771ebba7","unresolved":false,"context_lines":[{"line_number":47,"context_line":"               help\u003d\u0027SNMP protocol version, either \"v1\", \"v2c\" or \"v3\"\u0027),"},{"line_number":48,"context_line":"    cfg.IntOpt(\u0027snmp_port\u0027,"},{"line_number":49,"context_line":"               default\u003d161,"},{"line_number":50,"context_line":"               help\u003d\u0027SNMP port\u0027),"},{"line_number":51,"context_line":"    cfg.StrOpt(\u0027snmp_community\u0027,"},{"line_number":52,"context_line":"               default\u003d\u0027public\u0027,"},{"line_number":53,"context_line":"               help\u003d\u0027SNMP community. Required for versions \"v1\", \"v2c\"\u0027),"}],"source_content_type":"text/x-python","patch_set":14,"id":"7a2fa921_23b01b43","line":50,"updated":"2015-10-06 17:29:33.000000000","message":"ditto","commit_id":"e17ccc78ece015a3329248b4201a6a20057d85b5"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"1d0402239e5608eae9a8e1b617e3a8db6e145cce","unresolved":false,"context_lines":[{"line_number":47,"context_line":"               help\u003d\u0027SNMP protocol version, either \"v1\", \"v2c\" or \"v3\"\u0027),"},{"line_number":48,"context_line":"    cfg.IntOpt(\u0027snmp_port\u0027,"},{"line_number":49,"context_line":"               default\u003d161,"},{"line_number":50,"context_line":"               help\u003d\u0027SNMP port\u0027),"},{"line_number":51,"context_line":"    cfg.StrOpt(\u0027snmp_community\u0027,"},{"line_number":52,"context_line":"               default\u003d\u0027public\u0027,"},{"line_number":53,"context_line":"               help\u003d\u0027SNMP community. Required for versions \"v1\", \"v2c\"\u0027),"}],"source_content_type":"text/x-python","patch_set":14,"id":"7a2fa921_4a2d1845","line":50,"in_reply_to":"7a2fa921_23b01b43","updated":"2015-10-07 07:31:37.000000000","message":"I\u0027ll fix that.","commit_id":"e17ccc78ece015a3329248b4201a6a20057d85b5"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"50dc1866e0356a067564158f1dd432f3771ebba7","unresolved":false,"context_lines":[{"line_number":50,"context_line":"               help\u003d\u0027SNMP port\u0027),"},{"line_number":51,"context_line":"    cfg.StrOpt(\u0027snmp_community\u0027,"},{"line_number":52,"context_line":"               default\u003d\u0027public\u0027,"},{"line_number":53,"context_line":"               help\u003d\u0027SNMP community. Required for versions \"v1\", \"v2c\"\u0027),"},{"line_number":54,"context_line":"    cfg.StrOpt(\u0027snmp_security\u0027,"},{"line_number":55,"context_line":"               default\u003d\u0027\u0027,"},{"line_number":56,"context_line":"               help\u003d\u0027SNMP security name. Required for version \"v3\"\u0027),"}],"source_content_type":"text/x-python","patch_set":14,"id":"7a2fa921_03b71f3a","line":53,"updated":"2015-10-06 17:29:33.000000000","message":"ditto","commit_id":"e17ccc78ece015a3329248b4201a6a20057d85b5"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"1d0402239e5608eae9a8e1b617e3a8db6e145cce","unresolved":false,"context_lines":[{"line_number":50,"context_line":"               help\u003d\u0027SNMP port\u0027),"},{"line_number":51,"context_line":"    cfg.StrOpt(\u0027snmp_community\u0027,"},{"line_number":52,"context_line":"               default\u003d\u0027public\u0027,"},{"line_number":53,"context_line":"               help\u003d\u0027SNMP community. Required for versions \"v1\", \"v2c\"\u0027),"},{"line_number":54,"context_line":"    cfg.StrOpt(\u0027snmp_security\u0027,"},{"line_number":55,"context_line":"               default\u003d\u0027\u0027,"},{"line_number":56,"context_line":"               help\u003d\u0027SNMP security name. Required for version \"v3\"\u0027),"}],"source_content_type":"text/x-python","patch_set":14,"id":"7a2fa921_6a30149f","line":53,"in_reply_to":"7a2fa921_03b71f3a","updated":"2015-10-07 07:31:37.000000000","message":"I\u0027ll fix that.","commit_id":"e17ccc78ece015a3329248b4201a6a20057d85b5"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"50dc1866e0356a067564158f1dd432f3771ebba7","unresolved":false,"context_lines":[{"line_number":53,"context_line":"               help\u003d\u0027SNMP community. Required for versions \"v1\", \"v2c\"\u0027),"},{"line_number":54,"context_line":"    cfg.StrOpt(\u0027snmp_security\u0027,"},{"line_number":55,"context_line":"               default\u003d\u0027\u0027,"},{"line_number":56,"context_line":"               help\u003d\u0027SNMP security name. Required for version \"v3\"\u0027),"},{"line_number":57,"context_line":"]"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"CONF \u003d cfg.CONF"}],"source_content_type":"text/x-python","patch_set":14,"id":"7a2fa921_637cd372","line":56,"updated":"2015-10-06 17:29:33.000000000","message":"ditto","commit_id":"e17ccc78ece015a3329248b4201a6a20057d85b5"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"1d0402239e5608eae9a8e1b617e3a8db6e145cce","unresolved":false,"context_lines":[{"line_number":53,"context_line":"               help\u003d\u0027SNMP community. Required for versions \"v1\", \"v2c\"\u0027),"},{"line_number":54,"context_line":"    cfg.StrOpt(\u0027snmp_security\u0027,"},{"line_number":55,"context_line":"               default\u003d\u0027\u0027,"},{"line_number":56,"context_line":"               help\u003d\u0027SNMP security name. Required for version \"v3\"\u0027),"},{"line_number":57,"context_line":"]"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"CONF \u003d cfg.CONF"}],"source_content_type":"text/x-python","patch_set":14,"id":"7a2fa921_2a2a1c2d","line":56,"in_reply_to":"7a2fa921_637cd372","updated":"2015-10-07 07:31:37.000000000","message":"I\u0027ll fix that.","commit_id":"e17ccc78ece015a3329248b4201a6a20057d85b5"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"50dc1866e0356a067564158f1dd432f3771ebba7","unresolved":false,"context_lines":[{"line_number":135,"context_line":"    if d_info[\u0027irmc_snmp_version\u0027].lower() not in (\u0027v1\u0027, \u0027v2c\u0027, \u0027v3\u0027):"},{"line_number":136,"context_line":"        error_msgs.append("},{"line_number":137,"context_line":"            _(\"\u0027irmc_snmp_version\u0027 has unsupported value.\"))"},{"line_number":138,"context_line":"    if not isinstance(d_info[\u0027irmc_snmp_port\u0027], int):"},{"line_number":139,"context_line":"        error_msgs.append("},{"line_number":140,"context_line":"            _(\"\u0027irmc_snmp_port\u0027 is not integer type.\"))"},{"line_number":141,"context_line":"    if (d_info[\u0027irmc_snmp_community\u0027] and"}],"source_content_type":"text/x-python","patch_set":14,"id":"7a2fa921_235fbb42","line":138,"updated":"2015-10-06 17:29:33.000000000","message":"If user set port value as u\u0027123\u0027 for example this should not be an error, try convert value to int and append error in case of exception.","commit_id":"e17ccc78ece015a3329248b4201a6a20057d85b5"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"1d0402239e5608eae9a8e1b617e3a8db6e145cce","unresolved":false,"context_lines":[{"line_number":135,"context_line":"    if d_info[\u0027irmc_snmp_version\u0027].lower() not in (\u0027v1\u0027, \u0027v2c\u0027, \u0027v3\u0027):"},{"line_number":136,"context_line":"        error_msgs.append("},{"line_number":137,"context_line":"            _(\"\u0027irmc_snmp_version\u0027 has unsupported value.\"))"},{"line_number":138,"context_line":"    if not isinstance(d_info[\u0027irmc_snmp_port\u0027], int):"},{"line_number":139,"context_line":"        error_msgs.append("},{"line_number":140,"context_line":"            _(\"\u0027irmc_snmp_port\u0027 is not integer type.\"))"},{"line_number":141,"context_line":"    if (d_info[\u0027irmc_snmp_community\u0027] and"}],"source_content_type":"text/x-python","patch_set":14,"id":"7a2fa921_d25b1ef5","line":138,"in_reply_to":"7a2fa921_235fbb42","updated":"2015-10-07 07:31:37.000000000","message":"I understand your point. But I hesitate to do so because of the following two reasons:\n\n1. L.129 has same situation, and it is already shipped in kilo which doesn\u0027t accept u\u0027123\u0027.\n\n2. oslo_config integer value doesn\u0027t accept u\u0027123\u0027, which raises ConfigFileValueError.\n\nfor example\n\n # Maximum time (in seconds) since the last check-in of a\n # conductor. A conductor is considered inactive when this time\n # has been exceeded. (integer value)\n #heartbeat_timeout\u003d60\n heartbeat_timeout\u003du\u0027123\u0027\n \n ConfigFileValueError: Value for option heartbeat_timeout is not valid: invalid literal for int() with base 10: \"u\u0027123\u0027\"","commit_id":"e17ccc78ece015a3329248b4201a6a20057d85b5"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"50dc1866e0356a067564158f1dd432f3771ebba7","unresolved":false,"context_lines":[{"line_number":138,"context_line":"    if not isinstance(d_info[\u0027irmc_snmp_port\u0027], int):"},{"line_number":139,"context_line":"        error_msgs.append("},{"line_number":140,"context_line":"            _(\"\u0027irmc_snmp_port\u0027 is not integer type.\"))"},{"line_number":141,"context_line":"    if (d_info[\u0027irmc_snmp_community\u0027] and"},{"line_number":142,"context_line":"        not isinstance(d_info[\u0027irmc_snmp_community\u0027], six.string_types)):"},{"line_number":143,"context_line":"        error_msgs.append("},{"line_number":144,"context_line":"            _(\"\u0027irmc_snmp_community\u0027 is not string type.\"))"}],"source_content_type":"text/x-python","patch_set":14,"id":"7a2fa921_3ead94e9","line":141,"updated":"2015-10-06 17:29:33.000000000","message":"For lines 141-148 please use \u0027snmp_version\u0027 and check presence of value if it\u0027s required. Note: isinstance(\u0027\u0027, six.string_types) is True.","commit_id":"e17ccc78ece015a3329248b4201a6a20057d85b5"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"1d0402239e5608eae9a8e1b617e3a8db6e145cce","unresolved":false,"context_lines":[{"line_number":138,"context_line":"    if not isinstance(d_info[\u0027irmc_snmp_port\u0027], int):"},{"line_number":139,"context_line":"        error_msgs.append("},{"line_number":140,"context_line":"            _(\"\u0027irmc_snmp_port\u0027 is not integer type.\"))"},{"line_number":141,"context_line":"    if (d_info[\u0027irmc_snmp_community\u0027] and"},{"line_number":142,"context_line":"        not isinstance(d_info[\u0027irmc_snmp_community\u0027], six.string_types)):"},{"line_number":143,"context_line":"        error_msgs.append("},{"line_number":144,"context_line":"            _(\"\u0027irmc_snmp_community\u0027 is not string type.\"))"}],"source_content_type":"text/x-python","patch_set":14,"id":"7a2fa921_d544681c","line":141,"in_reply_to":"7a2fa921_3ead94e9","updated":"2015-10-07 07:31:37.000000000","message":"I\u0027ll add \u0027snmp_version\u0027 into the condition.\n\nIn terms of \u0027\u0027 case, I\u0027ll add a check for d_info[\u0027irmc_snmp_security\u0027], but not for d_info[\u0027irmc_snmp_community\u0027] because the default value is \"public\".","commit_id":"e17ccc78ece015a3329248b4201a6a20057d85b5"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"a9b58561c161467df1f2fb720699e73ef43131a8","unresolved":false,"context_lines":[{"line_number":43,"context_line":"               help\u003d_(\u0027Sensor data retrieval method, either \u0027"},{"line_number":44,"context_line":"                      \u0027\"ipmitool\" or \"scci\"\u0027)),"},{"line_number":45,"context_line":"    cfg.StrOpt(\u0027snmp_version\u0027,"},{"line_number":46,"context_line":"               default\u003d\u0027v2c\u0027,"},{"line_number":47,"context_line":"               help\u003d_(\u0027SNMP protocol version, either \"v1\", \"v2c\" or \"v3\"\u0027)),"},{"line_number":48,"context_line":"    cfg.IntOpt(\u0027snmp_port\u0027,"},{"line_number":49,"context_line":"               default\u003d161,"}],"source_content_type":"text/x-python","patch_set":15,"id":"7a2fa921_ef016139","line":46,"updated":"2015-10-08 01:23:21.000000000","message":"Use:  choices\u003d[\u0027v1\u0027, \u0027v2c\u0027, \u0027v3\u0027]","commit_id":"976b36f48c823452dc966fa32681dd13dda3f7a4"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"ef7251f9152d31264ddf1f500742436c1ef080b1","unresolved":false,"context_lines":[{"line_number":43,"context_line":"               help\u003d_(\u0027Sensor data retrieval method, either \u0027"},{"line_number":44,"context_line":"                      \u0027\"ipmitool\" or \"scci\"\u0027)),"},{"line_number":45,"context_line":"    cfg.StrOpt(\u0027snmp_version\u0027,"},{"line_number":46,"context_line":"               default\u003d\u0027v2c\u0027,"},{"line_number":47,"context_line":"               help\u003d_(\u0027SNMP protocol version, either \"v1\", \"v2c\" or \"v3\"\u0027)),"},{"line_number":48,"context_line":"    cfg.IntOpt(\u0027snmp_port\u0027,"},{"line_number":49,"context_line":"               default\u003d161,"}],"source_content_type":"text/x-python","patch_set":15,"id":"7a2fa921_e3c65599","line":46,"in_reply_to":"7a2fa921_ef016139","updated":"2015-10-08 08:15:00.000000000","message":"In case of fujitsu\u0027s PRIMERGY server, v2c with \u0027public\u0027 is factory  default settings.\n\nThat is based on the fact that most of people uses snmp v2c with snmp community \u0027public\u0027, and nobody uses v1, some people uses v3 in some security sensitive situation.\n\nSo I think the default \u0027v2c\u0027 with \u0027public\u0027 is reasonable.","commit_id":"976b36f48c823452dc966fa32681dd13dda3f7a4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"a9b58561c161467df1f2fb720699e73ef43131a8","unresolved":false,"context_lines":[{"line_number":131,"context_line":"    if d_info[\u0027irmc_sensor_method\u0027].lower() not in (\u0027ipmitool\u0027, \u0027scci\u0027):"},{"line_number":132,"context_line":"        error_msgs.append("},{"line_number":133,"context_line":"            _(\"\u0027irmc_sensor_method\u0027 has unsupported value.\"))"},{"line_number":134,"context_line":"    if d_info[\u0027irmc_snmp_version\u0027].lower() not in (\u0027v1\u0027, \u0027v2c\u0027, \u0027v3\u0027):"},{"line_number":135,"context_line":"        error_msgs.append("},{"line_number":136,"context_line":"            _(\"\u0027irmc_snmp_version\u0027 has unsupported value.\"))"},{"line_number":137,"context_line":"    if not isinstance(d_info[\u0027irmc_snmp_port\u0027], int):"}],"source_content_type":"text/x-python","patch_set":15,"id":"7a2fa921_2fa2f94b","line":134,"updated":"2015-10-08 01:23:21.000000000","message":"Use choices as mentioned above and don\u0027t need this.","commit_id":"976b36f48c823452dc966fa32681dd13dda3f7a4"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"ef7251f9152d31264ddf1f500742436c1ef080b1","unresolved":false,"context_lines":[{"line_number":131,"context_line":"    if d_info[\u0027irmc_sensor_method\u0027].lower() not in (\u0027ipmitool\u0027, \u0027scci\u0027):"},{"line_number":132,"context_line":"        error_msgs.append("},{"line_number":133,"context_line":"            _(\"\u0027irmc_sensor_method\u0027 has unsupported value.\"))"},{"line_number":134,"context_line":"    if d_info[\u0027irmc_snmp_version\u0027].lower() not in (\u0027v1\u0027, \u0027v2c\u0027, \u0027v3\u0027):"},{"line_number":135,"context_line":"        error_msgs.append("},{"line_number":136,"context_line":"            _(\"\u0027irmc_snmp_version\u0027 has unsupported value.\"))"},{"line_number":137,"context_line":"    if not isinstance(d_info[\u0027irmc_snmp_port\u0027], int):"}],"source_content_type":"text/x-python","patch_set":15,"id":"7a2fa921_c32a3990","line":134,"in_reply_to":"7a2fa921_2fa2f94b","updated":"2015-10-08 08:15:00.000000000","message":"Even if choice is used, this code is necessary because driver_info overwrites oslo.conf.","commit_id":"976b36f48c823452dc966fa32681dd13dda3f7a4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"a9b58561c161467df1f2fb720699e73ef43131a8","unresolved":false,"context_lines":[{"line_number":134,"context_line":"    if d_info[\u0027irmc_snmp_version\u0027].lower() not in (\u0027v1\u0027, \u0027v2c\u0027, \u0027v3\u0027):"},{"line_number":135,"context_line":"        error_msgs.append("},{"line_number":136,"context_line":"            _(\"\u0027irmc_snmp_version\u0027 has unsupported value.\"))"},{"line_number":137,"context_line":"    if not isinstance(d_info[\u0027irmc_snmp_port\u0027], int):"},{"line_number":138,"context_line":"        error_msgs.append("},{"line_number":139,"context_line":"            _(\"\u0027irmc_snmp_port\u0027 is not integer type.\"))"},{"line_number":140,"context_line":"    if (d_info[\u0027irmc_snmp_version\u0027].lower() in (\u0027v1\u0027, \u0027v2c\u0027) and"}],"source_content_type":"text/x-python","patch_set":15,"id":"7a2fa921_af8e09ce","line":137,"updated":"2015-10-08 01:23:21.000000000","message":"I don\u0027t think this is needed as using IntOpt and should not get here if not an integer.","commit_id":"976b36f48c823452dc966fa32681dd13dda3f7a4"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"ef7251f9152d31264ddf1f500742436c1ef080b1","unresolved":false,"context_lines":[{"line_number":134,"context_line":"    if d_info[\u0027irmc_snmp_version\u0027].lower() not in (\u0027v1\u0027, \u0027v2c\u0027, \u0027v3\u0027):"},{"line_number":135,"context_line":"        error_msgs.append("},{"line_number":136,"context_line":"            _(\"\u0027irmc_snmp_version\u0027 has unsupported value.\"))"},{"line_number":137,"context_line":"    if not isinstance(d_info[\u0027irmc_snmp_port\u0027], int):"},{"line_number":138,"context_line":"        error_msgs.append("},{"line_number":139,"context_line":"            _(\"\u0027irmc_snmp_port\u0027 is not integer type.\"))"},{"line_number":140,"context_line":"    if (d_info[\u0027irmc_snmp_version\u0027].lower() in (\u0027v1\u0027, \u0027v2c\u0027) and"}],"source_content_type":"text/x-python","patch_set":15,"id":"7a2fa921_c68b2767","line":137,"in_reply_to":"7a2fa921_af8e09ce","updated":"2015-10-08 08:15:00.000000000","message":"Same as above, driver_info is considered.","commit_id":"976b36f48c823452dc966fa32681dd13dda3f7a4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"a9b58561c161467df1f2fb720699e73ef43131a8","unresolved":false,"context_lines":[{"line_number":139,"context_line":"            _(\"\u0027irmc_snmp_port\u0027 is not integer type.\"))"},{"line_number":140,"context_line":"    if (d_info[\u0027irmc_snmp_version\u0027].lower() in (\u0027v1\u0027, \u0027v2c\u0027) and"},{"line_number":141,"context_line":"        d_info[\u0027irmc_snmp_community\u0027] and"},{"line_number":142,"context_line":"        not isinstance(d_info[\u0027irmc_snmp_community\u0027], six.string_types)):"},{"line_number":143,"context_line":"        error_msgs.append("},{"line_number":144,"context_line":"            _(\"\u0027irmc_snmp_community\u0027 is not string type.\"))"},{"line_number":145,"context_line":"    if d_info[\u0027irmc_snmp_version\u0027].lower() \u003d\u003d \u0027v3\u0027:"}],"source_content_type":"text/x-python","patch_set":15,"id":"7a2fa921_4f65f51b","line":142,"updated":"2015-10-08 01:23:21.000000000","message":"Unsure how it couldn\u0027t be a string_type. Could it be null?","commit_id":"976b36f48c823452dc966fa32681dd13dda3f7a4"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"ef7251f9152d31264ddf1f500742436c1ef080b1","unresolved":false,"context_lines":[{"line_number":139,"context_line":"            _(\"\u0027irmc_snmp_port\u0027 is not integer type.\"))"},{"line_number":140,"context_line":"    if (d_info[\u0027irmc_snmp_version\u0027].lower() in (\u0027v1\u0027, \u0027v2c\u0027) and"},{"line_number":141,"context_line":"        d_info[\u0027irmc_snmp_community\u0027] and"},{"line_number":142,"context_line":"        not isinstance(d_info[\u0027irmc_snmp_community\u0027], six.string_types)):"},{"line_number":143,"context_line":"        error_msgs.append("},{"line_number":144,"context_line":"            _(\"\u0027irmc_snmp_community\u0027 is not string type.\"))"},{"line_number":145,"context_line":"    if d_info[\u0027irmc_snmp_version\u0027].lower() \u003d\u003d \u0027v3\u0027:"}],"source_content_type":"text/x-python","patch_set":15,"id":"7a2fa921_41a9418f","line":142,"in_reply_to":"7a2fa921_4f65f51b","updated":"2015-10-08 08:15:00.000000000","message":"driver_info needs to be considered.\nfor example, in case that d_info[\u0027irmc_snmp_community\u0027] had integer value, \n\n \u003e\u003e\u003e bool(100)\n True\n \u003e\u003e\u003e isinstance(100, str)\n False","commit_id":"976b36f48c823452dc966fa32681dd13dda3f7a4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"a9b58561c161467df1f2fb720699e73ef43131a8","unresolved":false,"context_lines":[{"line_number":144,"context_line":"            _(\"\u0027irmc_snmp_community\u0027 is not string type.\"))"},{"line_number":145,"context_line":"    if d_info[\u0027irmc_snmp_version\u0027].lower() \u003d\u003d \u0027v3\u0027:"},{"line_number":146,"context_line":"        if d_info[\u0027irmc_snmp_security\u0027]:"},{"line_number":147,"context_line":"            if not isinstance(d_info[\u0027irmc_snmp_security\u0027], six.string_types):"},{"line_number":148,"context_line":"                error_msgs.append("},{"line_number":149,"context_line":"                    _(\"\u0027irmc_snmp_security\u0027 is not string type.\"))"},{"line_number":150,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":15,"id":"7a2fa921_6f6a31f0","line":147,"updated":"2015-10-08 01:23:21.000000000","message":"As  above. It should only be able to be a string or None, I would think.","commit_id":"976b36f48c823452dc966fa32681dd13dda3f7a4"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"ef7251f9152d31264ddf1f500742436c1ef080b1","unresolved":false,"context_lines":[{"line_number":144,"context_line":"            _(\"\u0027irmc_snmp_community\u0027 is not string type.\"))"},{"line_number":145,"context_line":"    if d_info[\u0027irmc_snmp_version\u0027].lower() \u003d\u003d \u0027v3\u0027:"},{"line_number":146,"context_line":"        if d_info[\u0027irmc_snmp_security\u0027]:"},{"line_number":147,"context_line":"            if not isinstance(d_info[\u0027irmc_snmp_security\u0027], six.string_types):"},{"line_number":148,"context_line":"                error_msgs.append("},{"line_number":149,"context_line":"                    _(\"\u0027irmc_snmp_security\u0027 is not string type.\"))"},{"line_number":150,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":15,"id":"7a2fa921_21a3e59e","line":147,"in_reply_to":"7a2fa921_6f6a31f0","updated":"2015-10-08 08:15:00.000000000","message":"Same as above, driver_info needs to be considered.","commit_id":"976b36f48c823452dc966fa32681dd13dda3f7a4"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"36e0ad1b9367cc75ee05aa912aefcbd5ece29645","unresolved":false,"context_lines":[{"line_number":50,"context_line":"               help\u003d_(\u0027SNMP port\u0027)),"},{"line_number":51,"context_line":"    cfg.StrOpt(\u0027snmp_community\u0027,"},{"line_number":52,"context_line":"               default\u003d\u0027public\u0027,"},{"line_number":53,"context_line":"               help\u003d_(\u0027SNMP community. Required for versions \"v1\", \"v2c\"\u0027)),"},{"line_number":54,"context_line":"    cfg.StrOpt(\u0027snmp_security\u0027,"},{"line_number":55,"context_line":"               help\u003d_(\u0027SNMP security name. Required for version \"v3\"\u0027)),"},{"line_number":56,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a29b11f_096672ed","line":53,"updated":"2015-10-19 14:30:30.000000000","message":"s/`\"v1\", \"v2c\" `/ `\"v1\" and \"v2c\"`","commit_id":"3cb35664dd40297ad147825b60479a9f00488128"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"d66a18120ab630124abd9636ab69f89c56ed0a02","unresolved":false,"context_lines":[{"line_number":50,"context_line":"               help\u003d_(\u0027SNMP port\u0027)),"},{"line_number":51,"context_line":"    cfg.StrOpt(\u0027snmp_community\u0027,"},{"line_number":52,"context_line":"               default\u003d\u0027public\u0027,"},{"line_number":53,"context_line":"               help\u003d_(\u0027SNMP community. Required for versions \"v1\", \"v2c\"\u0027)),"},{"line_number":54,"context_line":"    cfg.StrOpt(\u0027snmp_security\u0027,"},{"line_number":55,"context_line":"               help\u003d_(\u0027SNMP security name. Required for version \"v3\"\u0027)),"},{"line_number":56,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a29b11f_149f42b5","line":53,"in_reply_to":"3a29b11f_096672ed","updated":"2015-10-20 04:43:08.000000000","message":"I\u0027ll fix that.","commit_id":"3cb35664dd40297ad147825b60479a9f00488128"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"36e0ad1b9367cc75ee05aa912aefcbd5ece29645","unresolved":false,"context_lines":[{"line_number":80,"context_line":"    \u0027irmc_snmp_version\u0027: _(\"SNMP protocol version; either \u0027v1\u0027, \u0027v2c\u0027, or \""},{"line_number":81,"context_line":"                           \"\u0027v3\u0027. The default value is \u0027v2c\u0027. Optional.\"),"},{"line_number":82,"context_line":"    \u0027irmc_snmp_port\u0027: _(\"SNMP port. The default is 161. Optional.\"),"},{"line_number":83,"context_line":"    \u0027irmc_snmp_community\u0027: _(\"SNMP community required for versions \u0027v1\u0027 or \""},{"line_number":84,"context_line":"                             \"\u0027v2\u0027. The default value is \u0027public\u0027. Optional.\"),"},{"line_number":85,"context_line":"    \u0027irmc_snmp_security\u0027: _(\"SNMP security name required for version \u0027v3\u0027. \""},{"line_number":86,"context_line":"                            \"Optional.\"),"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a29b11f_09c2f285","line":83,"updated":"2015-10-19 14:30:30.000000000","message":"s/or/and","commit_id":"3cb35664dd40297ad147825b60479a9f00488128"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"d66a18120ab630124abd9636ab69f89c56ed0a02","unresolved":false,"context_lines":[{"line_number":80,"context_line":"    \u0027irmc_snmp_version\u0027: _(\"SNMP protocol version; either \u0027v1\u0027, \u0027v2c\u0027, or \""},{"line_number":81,"context_line":"                           \"\u0027v3\u0027. The default value is \u0027v2c\u0027. Optional.\"),"},{"line_number":82,"context_line":"    \u0027irmc_snmp_port\u0027: _(\"SNMP port. The default is 161. Optional.\"),"},{"line_number":83,"context_line":"    \u0027irmc_snmp_community\u0027: _(\"SNMP community required for versions \u0027v1\u0027 or \""},{"line_number":84,"context_line":"                             \"\u0027v2\u0027. The default value is \u0027public\u0027. Optional.\"),"},{"line_number":85,"context_line":"    \u0027irmc_snmp_security\u0027: _(\"SNMP security name required for version \u0027v3\u0027. \""},{"line_number":86,"context_line":"                            \"Optional.\"),"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a29b11f_b4a52e05","line":83,"in_reply_to":"3a29b11f_09c2f285","updated":"2015-10-20 04:43:08.000000000","message":"I\u0027ll fix that.","commit_id":"3cb35664dd40297ad147825b60479a9f00488128"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"0b3e4ee59a7cd34a1ad5206282fccf75494073df","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                      \u0027\"ipmitool\" or \"scci\"\u0027)),"},{"line_number":45,"context_line":"    cfg.StrOpt(\u0027snmp_version\u0027,"},{"line_number":46,"context_line":"               default\u003d\u0027v2c\u0027,"},{"line_number":47,"context_line":"               help\u003d_(\u0027SNMP protocol version, either \"v1\", \"v2c\" or \"v3\"\u0027)),"},{"line_number":48,"context_line":"    cfg.IntOpt(\u0027snmp_port\u0027,"},{"line_number":49,"context_line":"               default\u003d161,"},{"line_number":50,"context_line":"               help\u003d_(\u0027SNMP port\u0027)),"}],"source_content_type":"text/x-python","patch_set":18,"id":"9a8ffd7b_8e31b35c","line":47,"updated":"2015-12-02 13:11:41.000000000","message":"Please use Oslo config choices parameter for validation: choices\u003d[\u0027v1\u0027, \u0027v2c\u0027, \u0027v3\u0027]","commit_id":"33602a66a253c6e82a3e01e4c05bde30c091876c"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"631e65860f52fb88441ed36da7d7238e915172c2","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                      \u0027\"ipmitool\" or \"scci\"\u0027)),"},{"line_number":45,"context_line":"    cfg.StrOpt(\u0027snmp_version\u0027,"},{"line_number":46,"context_line":"               default\u003d\u0027v2c\u0027,"},{"line_number":47,"context_line":"               help\u003d_(\u0027SNMP protocol version, either \"v1\", \"v2c\" or \"v3\"\u0027)),"},{"line_number":48,"context_line":"    cfg.IntOpt(\u0027snmp_port\u0027,"},{"line_number":49,"context_line":"               default\u003d161,"},{"line_number":50,"context_line":"               help\u003d_(\u0027SNMP port\u0027)),"}],"source_content_type":"text/x-python","patch_set":18,"id":"9a8ffd7b_f6082382","line":47,"in_reply_to":"9a8ffd7b_8e31b35c","updated":"2015-12-03 06:33:48.000000000","message":"I\u0027ll fix that.","commit_id":"33602a66a253c6e82a3e01e4c05bde30c091876c"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"0b3e4ee59a7cd34a1ad5206282fccf75494073df","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    cfg.StrOpt(\u0027snmp_version\u0027,"},{"line_number":46,"context_line":"               default\u003d\u0027v2c\u0027,"},{"line_number":47,"context_line":"               help\u003d_(\u0027SNMP protocol version, either \"v1\", \"v2c\" or \"v3\"\u0027)),"},{"line_number":48,"context_line":"    cfg.IntOpt(\u0027snmp_port\u0027,"},{"line_number":49,"context_line":"               default\u003d161,"},{"line_number":50,"context_line":"               help\u003d_(\u0027SNMP port\u0027)),"},{"line_number":51,"context_line":"    cfg.StrOpt(\u0027snmp_community\u0027,"}],"source_content_type":"text/x-python","patch_set":18,"id":"9a8ffd7b_ae1d97bf","line":48,"updated":"2015-12-02 13:11:41.000000000","message":"PortOpt instead","commit_id":"33602a66a253c6e82a3e01e4c05bde30c091876c"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"631e65860f52fb88441ed36da7d7238e915172c2","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    cfg.StrOpt(\u0027snmp_version\u0027,"},{"line_number":46,"context_line":"               default\u003d\u0027v2c\u0027,"},{"line_number":47,"context_line":"               help\u003d_(\u0027SNMP protocol version, either \"v1\", \"v2c\" or \"v3\"\u0027)),"},{"line_number":48,"context_line":"    cfg.IntOpt(\u0027snmp_port\u0027,"},{"line_number":49,"context_line":"               default\u003d161,"},{"line_number":50,"context_line":"               help\u003d_(\u0027SNMP port\u0027)),"},{"line_number":51,"context_line":"    cfg.StrOpt(\u0027snmp_community\u0027,"}],"source_content_type":"text/x-python","patch_set":18,"id":"9a8ffd7b_474b8087","line":48,"in_reply_to":"9a8ffd7b_ae1d97bf","updated":"2015-12-03 06:33:48.000000000","message":"I\u0027ll fix that.","commit_id":"33602a66a253c6e82a3e01e4c05bde30c091876c"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"0b3e4ee59a7cd34a1ad5206282fccf75494073df","unresolved":false,"context_lines":[{"line_number":136,"context_line":"            _(\"\u0027irmc_snmp_version\u0027 has unsupported value.\"))"},{"line_number":137,"context_line":"    if not isinstance(d_info[\u0027irmc_snmp_port\u0027], int):"},{"line_number":138,"context_line":"        error_msgs.append("},{"line_number":139,"context_line":"            _(\"\u0027irmc_snmp_port\u0027 is not integer type.\"))"},{"line_number":140,"context_line":"    if (d_info[\u0027irmc_snmp_version\u0027].lower() in (\u0027v1\u0027, \u0027v2c\u0027) and"},{"line_number":141,"context_line":"        d_info[\u0027irmc_snmp_community\u0027] and"},{"line_number":142,"context_line":"        not isinstance(d_info[\u0027irmc_snmp_community\u0027], six.string_types)):"}],"source_content_type":"text/x-python","patch_set":18,"id":"9a8ffd7b_eeb15f90","line":139,"updated":"2015-12-02 13:11:41.000000000","message":"Maybe add ability to pass integer as a string and convert then with int()?","commit_id":"33602a66a253c6e82a3e01e4c05bde30c091876c"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"631e65860f52fb88441ed36da7d7238e915172c2","unresolved":false,"context_lines":[{"line_number":136,"context_line":"            _(\"\u0027irmc_snmp_version\u0027 has unsupported value.\"))"},{"line_number":137,"context_line":"    if not isinstance(d_info[\u0027irmc_snmp_port\u0027], int):"},{"line_number":138,"context_line":"        error_msgs.append("},{"line_number":139,"context_line":"            _(\"\u0027irmc_snmp_port\u0027 is not integer type.\"))"},{"line_number":140,"context_line":"    if (d_info[\u0027irmc_snmp_version\u0027].lower() in (\u0027v1\u0027, \u0027v2c\u0027) and"},{"line_number":141,"context_line":"        d_info[\u0027irmc_snmp_community\u0027] and"},{"line_number":142,"context_line":"        not isinstance(d_info[\u0027irmc_snmp_community\u0027], six.string_types)):"}],"source_content_type":"text/x-python","patch_set":18,"id":"9a8ffd7b_19b638f9","line":139,"in_reply_to":"9a8ffd7b_eeb15f90","updated":"2015-12-03 06:33:48.000000000","message":"As far as I tested such as the following cases 1) to 4), the string value 120 is already converted into \u0027int\u0027 at the line 137.\n\nIf user specified a value which is not able to be converted such as \u0027xyz\u0027, the line 137 can catch as not \u0027int\u0027. So I think int() is not necessary.\n\n* diriver_info\n\n 1)ironic node-update $NODE_UUID add driver_info/irmc_snmp_port\u003d120\n\n 2) ironic node-update $NODE_UUID add driver_info/irmc_snmp_port\u003d\"120\"\n\n* /etc/ironic/ironic.conf\n\n 3)\n  [irmc]\n snmp_port \u003d \u0027120\u0027\n\n 4)\n [irmc]\n snmp_port \u003d  120","commit_id":"33602a66a253c6e82a3e01e4c05bde30c091876c"},{"author":{"_account_id":8106,"name":"Haomeng,Wang","email":"wanghaomeng@gmail.com","username":"whaom"},"change_message_id":"7894ee0ba5657ff441be2d5cb040f8cbad8fe433","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    cfg.StrOpt(\u0027snmp_version\u0027,"},{"line_number":46,"context_line":"               default\u003d\u0027v2c\u0027,"},{"line_number":47,"context_line":"               choices\u003d[\u0027v1\u0027, \u0027v2c\u0027, \u0027v3\u0027],"},{"line_number":48,"context_line":"               help\u003d_(\u0027SNMP protocol version, either \"v1\", \"v2c\" or \"v3\"\u0027)),"},{"line_number":49,"context_line":"    cfg.PortOpt(\u0027snmp_port\u0027,"},{"line_number":50,"context_line":"                default\u003d161,"},{"line_number":51,"context_line":"                help\u003d_(\u0027SNMP port\u0027)),"}],"source_content_type":"text/x-python","patch_set":22,"id":"fa69d971_300c73ec","line":48,"range":{"start_line":48,"start_character":71,"end_line":48,"end_character":76},"updated":"2016-01-06 03:29:26.000000000","message":"nit: Can we take reference from the snmp module[1] which define these information already?\n\n[1] https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/snmp.py#L86","commit_id":"9cf3295615379d63d681e0eda523b7e95e68015d"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"4da340be3b69cf39747c36edf6238966815c8d37","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    cfg.StrOpt(\u0027snmp_version\u0027,"},{"line_number":46,"context_line":"               default\u003d\u0027v2c\u0027,"},{"line_number":47,"context_line":"               choices\u003d[\u0027v1\u0027, \u0027v2c\u0027, \u0027v3\u0027],"},{"line_number":48,"context_line":"               help\u003d_(\u0027SNMP protocol version, either \"v1\", \"v2c\" or \"v3\"\u0027)),"},{"line_number":49,"context_line":"    cfg.PortOpt(\u0027snmp_port\u0027,"},{"line_number":50,"context_line":"                default\u003d161,"},{"line_number":51,"context_line":"                help\u003d_(\u0027SNMP port\u0027)),"}],"source_content_type":"text/x-python","patch_set":22,"id":"fa69d971_2ff1426b","line":48,"range":{"start_line":48,"start_character":71,"end_line":48,"end_character":76},"in_reply_to":"fa69d971_300c73ec","updated":"2016-01-07 00:59:24.000000000","message":"Yes, we can. But do you mean just reference the help string to snmp module something like below?\n\nhelp\u003dsnmp.OPTIONAL_PROPERTIES[\u0027snmp_version\u0027]\n\nAbove code is shorter, but would get less readable without editor\u0027s tag jump.","commit_id":"9cf3295615379d63d681e0eda523b7e95e68015d"},{"author":{"_account_id":8106,"name":"Haomeng,Wang","email":"wanghaomeng@gmail.com","username":"whaom"},"change_message_id":"7894ee0ba5657ff441be2d5cb040f8cbad8fe433","unresolved":false,"context_lines":[{"line_number":47,"context_line":"               choices\u003d[\u0027v1\u0027, \u0027v2c\u0027, \u0027v3\u0027],"},{"line_number":48,"context_line":"               help\u003d_(\u0027SNMP protocol version, either \"v1\", \"v2c\" or \"v3\"\u0027)),"},{"line_number":49,"context_line":"    cfg.PortOpt(\u0027snmp_port\u0027,"},{"line_number":50,"context_line":"                default\u003d161,"},{"line_number":51,"context_line":"                help\u003d_(\u0027SNMP port\u0027)),"},{"line_number":52,"context_line":"    cfg.StrOpt(\u0027snmp_community\u0027,"},{"line_number":53,"context_line":"               default\u003d\u0027public\u0027,"}],"source_content_type":"text/x-python","patch_set":22,"id":"fa69d971_303313ad","line":50,"range":{"start_line":50,"start_character":27,"end_line":50,"end_character":28},"updated":"2016-01-06 03:29:26.000000000","message":"ditto - https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/snmp.py#L79","commit_id":"9cf3295615379d63d681e0eda523b7e95e68015d"},{"author":{"_account_id":8106,"name":"Haomeng,Wang","email":"wanghaomeng@gmail.com","username":"whaom"},"change_message_id":"7894ee0ba5657ff441be2d5cb040f8cbad8fe433","unresolved":false,"context_lines":[{"line_number":82,"context_line":"                           \"\u0027v3\u0027. The default value is \u0027v2c\u0027. Optional.\"),"},{"line_number":83,"context_line":"    \u0027irmc_snmp_port\u0027: _(\"SNMP port. The default is 161. Optional.\"),"},{"line_number":84,"context_line":"    \u0027irmc_snmp_community\u0027: _(\"SNMP community required for versions \u0027v1\u0027 and \""},{"line_number":85,"context_line":"                             \"\u0027v2\u0027. The default value is \u0027public\u0027. Optional.\"),"},{"line_number":86,"context_line":"    \u0027irmc_snmp_security\u0027: _(\"SNMP security name required for version \u0027v3\u0027. \""},{"line_number":87,"context_line":"                            \"Optional.\"),"},{"line_number":88,"context_line":"}"}],"source_content_type":"text/x-python","patch_set":22,"id":"fa69d971_1514c19d","line":85,"range":{"start_line":85,"start_character":75,"end_line":85,"end_character":79},"updated":"2016-01-06 03:29:26.000000000","message":"Should here be v2 or v2c?","commit_id":"9cf3295615379d63d681e0eda523b7e95e68015d"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"4da340be3b69cf39747c36edf6238966815c8d37","unresolved":false,"context_lines":[{"line_number":82,"context_line":"                           \"\u0027v3\u0027. The default value is \u0027v2c\u0027. Optional.\"),"},{"line_number":83,"context_line":"    \u0027irmc_snmp_port\u0027: _(\"SNMP port. The default is 161. Optional.\"),"},{"line_number":84,"context_line":"    \u0027irmc_snmp_community\u0027: _(\"SNMP community required for versions \u0027v1\u0027 and \""},{"line_number":85,"context_line":"                             \"\u0027v2\u0027. The default value is \u0027public\u0027. Optional.\"),"},{"line_number":86,"context_line":"    \u0027irmc_snmp_security\u0027: _(\"SNMP security name required for version \u0027v3\u0027. \""},{"line_number":87,"context_line":"                            \"Optional.\"),"},{"line_number":88,"context_line":"}"}],"source_content_type":"text/x-python","patch_set":22,"id":"fa69d971_f49d410a","line":85,"range":{"start_line":85,"start_character":75,"end_line":85,"end_character":79},"in_reply_to":"fa69d971_1514c19d","updated":"2016-01-07 00:59:24.000000000","message":"I\u0027ll fix that to v2c.","commit_id":"9cf3295615379d63d681e0eda523b7e95e68015d"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"84f06626cde7835a767f2e8cd4f89d665c10cc1d","unresolved":false,"context_lines":[{"line_number":135,"context_line":"            _(\"\u0027irmc_sensor_method\u0027 has unsupported value.\"))"},{"line_number":136,"context_line":"    if d_info[\u0027irmc_snmp_version\u0027].lower() not in (\u0027v1\u0027, \u0027v2c\u0027, \u0027v3\u0027):"},{"line_number":137,"context_line":"        error_msgs.append("},{"line_number":138,"context_line":"            _(\"\u0027irmc_snmp_version\u0027 has unsupported value.\"))"},{"line_number":139,"context_line":"    if not isinstance(d_info[\u0027irmc_snmp_port\u0027], int):"},{"line_number":140,"context_line":"        error_msgs.append("},{"line_number":141,"context_line":"            _(\"\u0027irmc_snmp_port\u0027 is not integer type.\"))"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a57f1b5_d52f8d9f","line":138,"updated":"2016-02-10 17:07:27.000000000","message":"nit: I know others options are the same (so you don\u0027t need to it for this patch). But just to register, it would be good to have something like the example below for these options:\n\n\"value %s is not a supported value for \"irmc_snmp_version\". Supported values are: X, Y, Z\" % d_info[\u0027irmc_snmp_version\u0027]","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"800cceda3d2ba7ac40e62a614de9044cfe819c9f","unresolved":false,"context_lines":[{"line_number":135,"context_line":"            _(\"\u0027irmc_sensor_method\u0027 has unsupported value.\"))"},{"line_number":136,"context_line":"    if d_info[\u0027irmc_snmp_version\u0027].lower() not in (\u0027v1\u0027, \u0027v2c\u0027, \u0027v3\u0027):"},{"line_number":137,"context_line":"        error_msgs.append("},{"line_number":138,"context_line":"            _(\"\u0027irmc_snmp_version\u0027 has unsupported value.\"))"},{"line_number":139,"context_line":"    if not isinstance(d_info[\u0027irmc_snmp_port\u0027], int):"},{"line_number":140,"context_line":"        error_msgs.append("},{"line_number":141,"context_line":"            _(\"\u0027irmc_snmp_port\u0027 is not integer type.\"))"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a57f1b5_cf19e7d8","line":138,"in_reply_to":"3a57f1b5_d52f8d9f","updated":"2016-02-12 02:32:41.000000000","message":"Okay, I\u0027ll update the messages consistently in the follow-up patch for not only snmp part but also the existing part,L.123-135.","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"}],"ironic/drivers/modules/irmc/inspect.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"ba20c0d8cefa0da2d673ca0364a734bd3c6b2f24","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        props \u003d task.node.properties"},{"line_number":94,"context_line":"        inspected_props \u003d _inspect_hardware(task.node)"},{"line_number":95,"context_line":"        task.node.properties \u003d dict(list(props.items()) +"},{"line_number":96,"context_line":"                                    list(inspected_props.items()))"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"        task.node.save()"},{"line_number":99,"context_line":"        LOG.info(_LI(\"Node %s inspected.\"), task.node.uuid)"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba3cc151_dbb38409","line":96,"updated":"2015-06-29 08:46:49.000000000","message":"easier:\n\n props.update(inspected_props)\n taks.node.properties \u003d props","commit_id":"48645d11dfd2d53c992118dea5c27d1bf228289f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"37f80663687465bd4d203b1a34adb5a38d70d74d","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        props \u003d task.node.properties"},{"line_number":94,"context_line":"        inspected_props \u003d _inspect_hardware(task.node)"},{"line_number":95,"context_line":"        task.node.properties \u003d dict(list(props.items()) +"},{"line_number":96,"context_line":"                                    list(inspected_props.items()))"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"        task.node.save()"},{"line_number":99,"context_line":"        LOG.info(_LI(\"Node %s inspected.\"), task.node.uuid)"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba3cc151_c1f17902","line":96,"in_reply_to":"ba3cc151_b33daec5","updated":"2015-07-03 07:57:25.000000000","message":"you\u0027re code is just inefficient and hard to read, but is not wrong. I\u0027d still prefer it rewritten a bit more pythonic, we\u0027re not in Haskell ;)","commit_id":"48645d11dfd2d53c992118dea5c27d1bf228289f"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"ee7de65d44884e763fd2cb392d5294710592f597","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        props \u003d task.node.properties"},{"line_number":94,"context_line":"        inspected_props \u003d _inspect_hardware(task.node)"},{"line_number":95,"context_line":"        task.node.properties \u003d dict(list(props.items()) +"},{"line_number":96,"context_line":"                                    list(inspected_props.items()))"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"        task.node.save()"},{"line_number":99,"context_line":"        LOG.info(_LI(\"Node %s inspected.\"), task.node.uuid)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_5403c20d","line":96,"in_reply_to":"ba3cc151_c1f17902","updated":"2015-07-24 05:16:09.000000000","message":"I\u0027ll fix as follows, it\u0027s not only pythonic but also FP :-)\n\n node.properties \u003d {k: v for k, v in\n                    props.items() + inspected_props.items()}","commit_id":"48645d11dfd2d53c992118dea5c27d1bf228289f"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"b8d8cc6a86c83cca3dc1bb4b4bf949adbdf3f715","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        props \u003d task.node.properties"},{"line_number":94,"context_line":"        inspected_props \u003d _inspect_hardware(task.node)"},{"line_number":95,"context_line":"        task.node.properties \u003d dict(list(props.items()) +"},{"line_number":96,"context_line":"                                    list(inspected_props.items()))"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"        task.node.save()"},{"line_number":99,"context_line":"        LOG.info(_LI(\"Node %s inspected.\"), task.node.uuid)"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba3cc151_b33daec5","line":96,"in_reply_to":"ba3cc151_dbb38409","updated":"2015-07-03 04:23:53.000000000","message":"From imperative programming\u0027s point of view, it\u0027s true mutation would be easier.\n\nHowever from functional programming\u0027s point of view, it\u0027s not true.\n\nAs I answered in the other review, both are okay.\nThere is no absolute answer such that one is good, the other is bad, I believe.","commit_id":"48645d11dfd2d53c992118dea5c27d1bf228289f"},{"author":{"_account_id":11278,"name":"Anusha Ramineni","email":"anusha.ramineni@india.nec.com","username":"anusha08"},"change_message_id":"469488dd854e813587f1008d8c832d433c991c53","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"ESSENTIAL_PROPERTIES_KEYS \u003d {\u0027memory_mb\u0027, \u0027local_gb\u0027, \u0027cpus\u0027, \u0027cpu_arch\u0027}"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"# SC2.mib: sc2UnitNodeClass"},{"line_number":40,"context_line":"#    unknown(1),"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a50d1a3_5ef043fd","line":37,"updated":"2015-07-28 10:54:38.000000000","message":"I guess essential properties doesn\u0027t change per driver right? Could we define these essential properties in a common place, so all the drivers could use?","commit_id":"b2abbb10631f26559c893369f01e748277cc4fea"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"4518738d903971295c541c3740b4c22dcbb2c997","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"ESSENTIAL_PROPERTIES_KEYS \u003d {\u0027memory_mb\u0027, \u0027local_gb\u0027, \u0027cpus\u0027, \u0027cpu_arch\u0027}"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"# SC2.mib: sc2UnitNodeClass"},{"line_number":40,"context_line":"#    unknown(1),"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a50d1a3_65b8f811","line":37,"in_reply_to":"3a50d1a3_5ef043fd","updated":"2015-07-28 13:13:31.000000000","message":"Yeah, that\u0027s good idea. :-)\nDo you have any idea which file should define it, base.py, inspector.py or anything else?","commit_id":"b2abbb10631f26559c893369f01e748277cc4fea"},{"author":{"_account_id":11278,"name":"Anusha Ramineni","email":"anusha.ramineni@india.nec.com","username":"anusha08"},"change_message_id":"74a59d96d03105df40221a43aa15be80432b1cef","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"ESSENTIAL_PROPERTIES_KEYS \u003d {\u0027memory_mb\u0027, \u0027local_gb\u0027, \u0027cpus\u0027, \u0027cpu_arch\u0027}"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"# SC2.mib: sc2UnitNodeClass"},{"line_number":40,"context_line":"#    unknown(1),"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a50d1a3_9767dee9","line":37,"in_reply_to":"3a50d1a3_65b8f811","updated":"2015-07-31 06:02:54.000000000","message":"base.py sounds good to me, how about defining a class variable in InspectInterface? Not sure, if it\u0027s a good idea though.","commit_id":"b2abbb10631f26559c893369f01e748277cc4fea"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"a2ef849a454304e36903b8f67a3c5d663ab179fb","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"ESSENTIAL_PROPERTIES_KEYS \u003d {\u0027memory_mb\u0027, \u0027local_gb\u0027, \u0027cpus\u0027, \u0027cpu_arch\u0027}"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"# SC2.mib: sc2UnitNodeClass"},{"line_number":40,"context_line":"#    unknown(1),"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a50d1a3_af160547","line":37,"in_reply_to":"3a50d1a3_9767dee9","updated":"2015-08-02 23:45:25.000000000","message":"Okay, I\u0027ll define the class variable in InspectInterface.","commit_id":"b2abbb10631f26559c893369f01e748277cc4fea"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"e3d5e8610075e3108c14ff2789a3f4ce94f76316","unresolved":false,"context_lines":[{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        def _port_update(port_dict):"},{"line_number":138,"context_line":"            try:"},{"line_number":139,"context_line":"                sql_dbapi.create_port(port_dict)"},{"line_number":140,"context_line":"                LOG.info(_LI(\"Port created for MAC address %(address)s \""},{"line_number":141,"context_line":"                             \"for node %(node_id)s\"), port_dict)"},{"line_number":142,"context_line":"            except exception.MACAlreadyExists:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a50d1a3_fd4038a7","line":139,"updated":"2015-07-28 01:38:38.000000000","message":"Drivers should be using objects, not the dbapi directly. Something like objects.Port.create(**port_dict)","commit_id":"b2abbb10631f26559c893369f01e748277cc4fea"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"4518738d903971295c541c3740b4c22dcbb2c997","unresolved":false,"context_lines":[{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        def _port_update(port_dict):"},{"line_number":138,"context_line":"            try:"},{"line_number":139,"context_line":"                sql_dbapi.create_port(port_dict)"},{"line_number":140,"context_line":"                LOG.info(_LI(\"Port created for MAC address %(address)s \""},{"line_number":141,"context_line":"                             \"for node %(node_id)s\"), port_dict)"},{"line_number":142,"context_line":"            except exception.MACAlreadyExists:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a50d1a3_aad9eff4","line":139,"in_reply_to":"3a50d1a3_fd4038a7","updated":"2015-07-28 13:13:31.000000000","message":"I\u0027ll fix that.","commit_id":"b2abbb10631f26559c893369f01e748277cc4fea"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"8b9a804893fd31d2643d05864f1ea0856117d852","unresolved":false,"context_lines":[{"line_number":85,"context_line":"        macs \u003d _get_mac_addresses(node)"},{"line_number":86,"context_line":"    except Exception as e:"},{"line_number":87,"context_line":"        error \u003d (_(\"Inspection failed for node %(node_id)s \""},{"line_number":88,"context_line":"                   \"with the following error: %(error)s\"),"},{"line_number":89,"context_line":"                 {\u0027node_id\u0027: node.uuid, \u0027error\u0027: e})"},{"line_number":90,"context_line":"        raise exception.HardwareInspectionFailure(error\u003derror)"},{"line_number":91,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_63e4d4ab","line":88,"updated":"2015-07-31 08:50:54.000000000","message":"\u0027%\u0027 instead of \u0027,\u0027","commit_id":"bb3eccdf9623c0c8693fcb98f66333c69cacbdd7"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"f67b13335f9fad90fed34bfae7af74f25b6b0d1b","unresolved":false,"context_lines":[{"line_number":85,"context_line":"        macs \u003d _get_mac_addresses(node)"},{"line_number":86,"context_line":"    except Exception as e:"},{"line_number":87,"context_line":"        error \u003d (_(\"Inspection failed for node %(node_id)s \""},{"line_number":88,"context_line":"                   \"with the following error: %(error)s\"),"},{"line_number":89,"context_line":"                 {\u0027node_id\u0027: node.uuid, \u0027error\u0027: e})"},{"line_number":90,"context_line":"        raise exception.HardwareInspectionFailure(error\u003derror)"},{"line_number":91,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_6c656b43","line":88,"in_reply_to":"3a50d1a3_63e4d4ab","updated":"2015-08-02 23:47:02.000000000","message":"I\u0027ll fix that.","commit_id":"bb3eccdf9623c0c8693fcb98f66333c69cacbdd7"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"8b9a804893fd31d2643d05864f1ea0856117d852","unresolved":false,"context_lines":[{"line_number":114,"context_line":"                 is missing or invalid on the node."},{"line_number":115,"context_line":"        :raises: MissingParameterValue if a required parameter is missing."},{"line_number":116,"context_line":"        \"\"\""},{"line_number":117,"context_line":"        irmc_common.parse_driver_info(task.node)"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    def inspect_hardware(self, task):"},{"line_number":120,"context_line":"        \"\"\"Inspect hardware."}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_c37128e0","line":117,"updated":"2015-07-31 08:50:54.000000000","message":"Maybe better validate also snmp* config parameters here.","commit_id":"bb3eccdf9623c0c8693fcb98f66333c69cacbdd7"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"f67b13335f9fad90fed34bfae7af74f25b6b0d1b","unresolved":false,"context_lines":[{"line_number":114,"context_line":"                 is missing or invalid on the node."},{"line_number":115,"context_line":"        :raises: MissingParameterValue if a required parameter is missing."},{"line_number":116,"context_line":"        \"\"\""},{"line_number":117,"context_line":"        irmc_common.parse_driver_info(task.node)"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    def inspect_hardware(self, task):"},{"line_number":120,"context_line":"        \"\"\"Inspect hardware."}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_ec6adb19","line":117,"in_reply_to":"3a50d1a3_c37128e0","updated":"2015-08-02 23:47:02.000000000","message":"I\u0027ll add the validation to common.py.","commit_id":"bb3eccdf9623c0c8693fcb98f66333c69cacbdd7"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"8b9a804893fd31d2643d05864f1ea0856117d852","unresolved":false,"context_lines":[{"line_number":126,"context_line":"        :raises: HardwareInspectionFailure, if unable to get essential"},{"line_number":127,"context_line":"                 hardware properties."},{"line_number":128,"context_line":"        :returns: resulting state of the inspection i.e. states.MANAGEABLE"},{"line_number":129,"context_line":"                  or None."},{"line_number":130,"context_line":"        \"\"\""},{"line_number":131,"context_line":"        node \u003d task.node"},{"line_number":132,"context_line":"        (props, macs) \u003d _inspect_hardware(node)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_0e0e578c","line":129,"updated":"2015-07-31 08:50:54.000000000","message":"Where is None returns?","commit_id":"bb3eccdf9623c0c8693fcb98f66333c69cacbdd7"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"f67b13335f9fad90fed34bfae7af74f25b6b0d1b","unresolved":false,"context_lines":[{"line_number":126,"context_line":"        :raises: HardwareInspectionFailure, if unable to get essential"},{"line_number":127,"context_line":"                 hardware properties."},{"line_number":128,"context_line":"        :returns: resulting state of the inspection i.e. states.MANAGEABLE"},{"line_number":129,"context_line":"                  or None."},{"line_number":130,"context_line":"        \"\"\""},{"line_number":131,"context_line":"        node \u003d task.node"},{"line_number":132,"context_line":"        (props, macs) \u003d _inspect_hardware(node)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_b68dffd4","line":129,"in_reply_to":"3a50d1a3_0e0e578c","updated":"2015-08-02 23:47:02.000000000","message":"I\u0027ll update the description.","commit_id":"bb3eccdf9623c0c8693fcb98f66333c69cacbdd7"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"8b9a804893fd31d2643d05864f1ea0856117d852","unresolved":false,"context_lines":[{"line_number":130,"context_line":"        \"\"\""},{"line_number":131,"context_line":"        node \u003d task.node"},{"line_number":132,"context_line":"        (props, macs) \u003d _inspect_hardware(node)"},{"line_number":133,"context_line":"        node.properties \u003d reduce(lambda x, y: dict(x, **y),"},{"line_number":134,"context_line":"                                 [node.properties, props])"},{"line_number":135,"context_line":"        node.save()"},{"line_number":136,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_aee64314","line":133,"updated":"2015-07-31 08:50:54.000000000","message":"reduce() not needed here\n node.properties \u003d dict(node.properties, **props)","commit_id":"bb3eccdf9623c0c8693fcb98f66333c69cacbdd7"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"f67b13335f9fad90fed34bfae7af74f25b6b0d1b","unresolved":false,"context_lines":[{"line_number":130,"context_line":"        \"\"\""},{"line_number":131,"context_line":"        node \u003d task.node"},{"line_number":132,"context_line":"        (props, macs) \u003d _inspect_hardware(node)"},{"line_number":133,"context_line":"        node.properties \u003d reduce(lambda x, y: dict(x, **y),"},{"line_number":134,"context_line":"                                 [node.properties, props])"},{"line_number":135,"context_line":"        node.save()"},{"line_number":136,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_d6f76b8a","line":133,"in_reply_to":"3a50d1a3_aee64314","updated":"2015-08-02 23:47:02.000000000","message":"Aha! thanks :-) I\u0027ll fix that.","commit_id":"bb3eccdf9623c0c8693fcb98f66333c69cacbdd7"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"8b9a804893fd31d2643d05864f1ea0856117d852","unresolved":false,"context_lines":[{"line_number":140,"context_line":"                new_port.create()"},{"line_number":141,"context_line":"                LOG.info(_LI(\"Port created for MAC address %(address)s \""},{"line_number":142,"context_line":"                             \"for node %(node_id)s\"), port_dict)"},{"line_number":143,"context_line":"                new_port.save()"},{"line_number":144,"context_line":"            except exception.MACAlreadyExists:"},{"line_number":145,"context_line":"                LOG.warn(_LW(\"Port already exists for MAC address %(address)s \""},{"line_number":146,"context_line":"                             \"for node %(node_id)s\"), port_dict)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_8eeca7bc","line":143,"updated":"2015-07-31 08:50:54.000000000","message":"save() not needed, create() creates port in the DB.","commit_id":"bb3eccdf9623c0c8693fcb98f66333c69cacbdd7"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"f67b13335f9fad90fed34bfae7af74f25b6b0d1b","unresolved":false,"context_lines":[{"line_number":140,"context_line":"                new_port.create()"},{"line_number":141,"context_line":"                LOG.info(_LI(\"Port created for MAC address %(address)s \""},{"line_number":142,"context_line":"                             \"for node %(node_id)s\"), port_dict)"},{"line_number":143,"context_line":"                new_port.save()"},{"line_number":144,"context_line":"            except exception.MACAlreadyExists:"},{"line_number":145,"context_line":"                LOG.warn(_LW(\"Port already exists for MAC address %(address)s \""},{"line_number":146,"context_line":"                             \"for node %(node_id)s\"), port_dict)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a50d1a3_56035b76","line":143,"in_reply_to":"3a50d1a3_8eeca7bc","updated":"2015-08-02 23:47:02.000000000","message":"I\u0027ll remove that.","commit_id":"bb3eccdf9623c0c8693fcb98f66333c69cacbdd7"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"ec5a56cae5060a11b2711fa08c2d84c3b2761c88","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        props \u003d scci.get_essential_properties("},{"line_number":81,"context_line":"            report, IRMCInspect.ESSENTIAL_PROPERTIES_KEYS)"},{"line_number":82,"context_line":"        macs \u003d _get_mac_addresses(node)"},{"line_number":83,"context_line":"    except Exception as e:"},{"line_number":84,"context_line":"        error \u003d (_(\"Inspection failed for node %(node_id)s \""},{"line_number":85,"context_line":"                   \"with the following error: %(error)s\") %"},{"line_number":86,"context_line":"                 {\u0027node_id\u0027: node.uuid, \u0027error\u0027: e})"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_69ce3185","line":83,"updated":"2015-08-17 12:26:39.000000000","message":"Not sure that generic exception catching is good here, maybe some of \"scci\" errors?","commit_id":"b0372b79e566c0d054b4a4e30619ef4ffcfdcfab"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"a77b071f5b18c19277ef777e651bee9f62766af2","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        props \u003d scci.get_essential_properties("},{"line_number":81,"context_line":"            report, IRMCInspect.ESSENTIAL_PROPERTIES_KEYS)"},{"line_number":82,"context_line":"        macs \u003d _get_mac_addresses(node)"},{"line_number":83,"context_line":"    except Exception as e:"},{"line_number":84,"context_line":"        error \u003d (_(\"Inspection failed for node %(node_id)s \""},{"line_number":85,"context_line":"                   \"with the following error: %(error)s\") %"},{"line_number":86,"context_line":"                 {\u0027node_id\u0027: node.uuid, \u0027error\u0027: e})"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_0fd86e1c","line":83,"in_reply_to":"fa1b9901_69ce3185","updated":"2015-08-19 09:59:13.000000000","message":"Okay I\u0027ll specify \"scci\" and \"snmp\".","commit_id":"b0372b79e566c0d054b4a4e30619ef4ffcfdcfab"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"ec5a56cae5060a11b2711fa08c2d84c3b2761c88","unresolved":false,"context_lines":[{"line_number":133,"context_line":"                new_port \u003d objects.Port(task.context, **port_dict)"},{"line_number":134,"context_line":"                new_port.create()"},{"line_number":135,"context_line":"                LOG.info(_LI(\"Port created for MAC address %(address)s \""},{"line_number":136,"context_line":"                             \"for node %(node_id)s\"), port_dict)"},{"line_number":137,"context_line":"            except exception.MACAlreadyExists:"},{"line_number":138,"context_line":"                LOG.warn(_LW(\"Port already exists for MAC address %(address)s \""},{"line_number":139,"context_line":"                             \"for node %(node_id)s\"), port_dict)"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_697711d5","line":136,"updated":"2015-08-17 12:26:39.000000000","message":"\"node.id\" is internal info, please use \"node.uuid\" for logging.","commit_id":"b0372b79e566c0d054b4a4e30619ef4ffcfdcfab"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"a77b071f5b18c19277ef777e651bee9f62766af2","unresolved":false,"context_lines":[{"line_number":133,"context_line":"                new_port \u003d objects.Port(task.context, **port_dict)"},{"line_number":134,"context_line":"                new_port.create()"},{"line_number":135,"context_line":"                LOG.info(_LI(\"Port created for MAC address %(address)s \""},{"line_number":136,"context_line":"                             \"for node %(node_id)s\"), port_dict)"},{"line_number":137,"context_line":"            except exception.MACAlreadyExists:"},{"line_number":138,"context_line":"                LOG.warn(_LW(\"Port already exists for MAC address %(address)s \""},{"line_number":139,"context_line":"                             \"for node %(node_id)s\"), port_dict)"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_2ffa1276","line":136,"in_reply_to":"fa1b9901_697711d5","updated":"2015-08-19 09:59:13.000000000","message":"I\u0027ll fix that.","commit_id":"b0372b79e566c0d054b4a4e30619ef4ffcfdcfab"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"ec5a56cae5060a11b2711fa08c2d84c3b2761c88","unresolved":false,"context_lines":[{"line_number":136,"context_line":"                             \"for node %(node_id)s\"), port_dict)"},{"line_number":137,"context_line":"            except exception.MACAlreadyExists:"},{"line_number":138,"context_line":"                LOG.warn(_LW(\"Port already exists for MAC address %(address)s \""},{"line_number":139,"context_line":"                             \"for node %(node_id)s\"), port_dict)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        [_add_port({\u0027address\u0027: mac, \u0027node_id\u0027: node.id}) for mac in macs]"},{"line_number":142,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_6925d1c0","line":139,"updated":"2015-08-17 12:26:39.000000000","message":"1) ditto l136. 2) are you sure that a mac exists for the same node?","commit_id":"b0372b79e566c0d054b4a4e30619ef4ffcfdcfab"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"a77b071f5b18c19277ef777e651bee9f62766af2","unresolved":false,"context_lines":[{"line_number":136,"context_line":"                             \"for node %(node_id)s\"), port_dict)"},{"line_number":137,"context_line":"            except exception.MACAlreadyExists:"},{"line_number":138,"context_line":"                LOG.warn(_LW(\"Port already exists for MAC address %(address)s \""},{"line_number":139,"context_line":"                             \"for node %(node_id)s\"), port_dict)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        [_add_port({\u0027address\u0027: mac, \u0027node_id\u0027: node.id}) for mac in macs]"},{"line_number":142,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_cfcb561d","line":139,"in_reply_to":"fa1b9901_6925d1c0","updated":"2015-08-19 09:59:13.000000000","message":"1) I\u0027ll fix that.\n\n2) Yes, there is a case user had added it by \"ironic port-create\"","commit_id":"b0372b79e566c0d054b4a4e30619ef4ffcfdcfab"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"ec5a56cae5060a11b2711fa08c2d84c3b2761c88","unresolved":false,"context_lines":[{"line_number":138,"context_line":"                LOG.warn(_LW(\"Port already exists for MAC address %(address)s \""},{"line_number":139,"context_line":"                             \"for node %(node_id)s\"), port_dict)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        [_add_port({\u0027address\u0027: mac, \u0027node_id\u0027: node.id}) for mac in macs]"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"        LOG.info(_LI(\"Node %s inspected.\"), node.uuid)"},{"line_number":144,"context_line":"        return states.MANAGEABLE"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_541ae46f","line":141,"updated":"2015-08-17 12:26:39.000000000","message":"Better to use \"for\" loop here instead of list comprehension, result list is not used.","commit_id":"b0372b79e566c0d054b4a4e30619ef4ffcfdcfab"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"0df206222645186d911cd3db8ba23473bb0d8c20","unresolved":false,"context_lines":[{"line_number":138,"context_line":"                LOG.warn(_LW(\"Port already exists for MAC address %(address)s \""},{"line_number":139,"context_line":"                             \"for node %(node_id)s\"), port_dict)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        [_add_port({\u0027address\u0027: mac, \u0027node_id\u0027: node.id}) for mac in macs]"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"        LOG.info(_LI(\"Node %s inspected.\"), node.uuid)"},{"line_number":144,"context_line":"        return states.MANAGEABLE"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_afd0c9ca","line":141,"updated":"2015-08-17 13:04:40.000000000","message":"passing of the same \"node_id\" for each call is not needed, you can use node.id and node.uuid inside inner function _add_port().","commit_id":"b0372b79e566c0d054b4a4e30619ef4ffcfdcfab"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"a77b071f5b18c19277ef777e651bee9f62766af2","unresolved":false,"context_lines":[{"line_number":138,"context_line":"                LOG.warn(_LW(\"Port already exists for MAC address %(address)s \""},{"line_number":139,"context_line":"                             \"for node %(node_id)s\"), port_dict)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        [_add_port({\u0027address\u0027: mac, \u0027node_id\u0027: node.id}) for mac in macs]"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"        LOG.info(_LI(\"Node %s inspected.\"), node.uuid)"},{"line_number":144,"context_line":"        return states.MANAGEABLE"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_8af78cf4","line":141,"in_reply_to":"fa1b9901_541ae46f","updated":"2015-08-19 09:59:13.000000000","message":"Umm, I understand your point, but not using the return value is nothing wrong, and statement returns None, right?.\n\nLet me think about how to fix with the below comment regarding closure.","commit_id":"b0372b79e566c0d054b4a4e30619ef4ffcfdcfab"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"f04f6c8634159d947e5d93e2fbc89856d0f5ad0b","unresolved":false,"context_lines":[{"line_number":138,"context_line":"                LOG.warn(_LW(\"Port already exists for MAC address %(address)s \""},{"line_number":139,"context_line":"                             \"for node %(node_id)s\"), port_dict)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        [_add_port({\u0027address\u0027: mac, \u0027node_id\u0027: node.id}) for mac in macs]"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"        LOG.info(_LI(\"Node %s inspected.\"), node.uuid)"},{"line_number":144,"context_line":"        return states.MANAGEABLE"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_af037f0c","line":141,"in_reply_to":"fa1b9901_8af78cf4","updated":"2015-08-19 10:14:19.000000000","message":"Yes, you can use list comprehension here if you want. But \"classic\" case for list comprehension is \"create a new list without side-effects\", but here it used only for side-effects producing.","commit_id":"b0372b79e566c0d054b4a4e30619ef4ffcfdcfab"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"4c02c65e8bfb31e75c66786a2cfe0ff28304e649","unresolved":false,"context_lines":[{"line_number":138,"context_line":"                LOG.warn(_LW(\"Port already exists for MAC address %(address)s \""},{"line_number":139,"context_line":"                             \"for node %(node_id)s\"), port_dict)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        [_add_port({\u0027address\u0027: mac, \u0027node_id\u0027: node.id}) for mac in macs]"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"        LOG.info(_LI(\"Node %s inspected.\"), node.uuid)"},{"line_number":144,"context_line":"        return states.MANAGEABLE"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_86a2ebfa","line":141,"in_reply_to":"fa1b9901_af037f0c","updated":"2015-08-20 09:20:19.000000000","message":"Yuriy,\n\nI\u0027ll change it to the statement considering the below comment regarding closure.\n\nI\u0027m ready to submit the new patch, but I withhold awhile until having merged https://review.openstack.org/#/c/214597/.\n\nBest regards,\nNaohiro","commit_id":"b0372b79e566c0d054b4a4e30619ef4ffcfdcfab"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"a77b071f5b18c19277ef777e651bee9f62766af2","unresolved":false,"context_lines":[{"line_number":138,"context_line":"                LOG.warn(_LW(\"Port already exists for MAC address %(address)s \""},{"line_number":139,"context_line":"                             \"for node %(node_id)s\"), port_dict)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        [_add_port({\u0027address\u0027: mac, \u0027node_id\u0027: node.id}) for mac in macs]"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"        LOG.info(_LI(\"Node %s inspected.\"), node.uuid)"},{"line_number":144,"context_line":"        return states.MANAGEABLE"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_0a529cdd","line":141,"in_reply_to":"fa1b9901_afd0c9ca","updated":"2015-08-19 09:59:13.000000000","message":"I\u0027ll fix that, let me think if list comprehension is better or not bｙ considering closure.","commit_id":"b0372b79e566c0d054b4a4e30619ef4ffcfdcfab"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"36e0ad1b9367cc75ee05aa912aefcbd5ece29645","unresolved":false,"context_lines":[{"line_number":108,"context_line":""},{"line_number":109,"context_line":"        This method validates whether the \u0027driver_info\u0027 property of the"},{"line_number":110,"context_line":"        supplied node contains the required information for this driver to"},{"line_number":111,"context_line":"        manage the power state of the node."},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"        :param task: a TaskManager instance containing the node to act on."},{"line_number":114,"context_line":"        :raises: InvalidParameterValue if required driver_info attribute"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a29b11f_091e720c","line":111,"updated":"2015-10-19 14:30:30.000000000","message":"Did you intend \u0027to perform node inspection\u0027 here?\n\u0027to manage the power state of the node\u0027","commit_id":"3cb35664dd40297ad147825b60479a9f00488128"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"d66a18120ab630124abd9636ab69f89c56ed0a02","unresolved":false,"context_lines":[{"line_number":108,"context_line":""},{"line_number":109,"context_line":"        This method validates whether the \u0027driver_info\u0027 property of the"},{"line_number":110,"context_line":"        supplied node contains the required information for this driver to"},{"line_number":111,"context_line":"        manage the power state of the node."},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"        :param task: a TaskManager instance containing the node to act on."},{"line_number":114,"context_line":"        :raises: InvalidParameterValue if required driver_info attribute"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a29b11f_14ed0225","line":111,"in_reply_to":"3a29b11f_091e720c","updated":"2015-10-20 04:43:08.000000000","message":"I\u0027ll remove the last part \"to manage the power state of the node.\"","commit_id":"3cb35664dd40297ad147825b60479a9f00488128"},{"author":{"_account_id":8106,"name":"Haomeng,Wang","email":"wanghaomeng@gmail.com","username":"whaom"},"change_message_id":"7894ee0ba5657ff441be2d5cb040f8cbad8fe433","unresolved":false,"context_lines":[{"line_number":39,"context_line":"#    management-blade(4),"},{"line_number":40,"context_line":"#    secondary-remote(5),"},{"line_number":41,"context_line":"#    secondary-remote-backup(6),"},{"line_number":42,"context_line":"#    baseboard-controller(7)"},{"line_number":43,"context_line":"NODE_CLASS_OID \u003d \u00271.3.6.1.4.1.231.2.10.2.2.10.3.1.1.8.1\u0027"},{"line_number":44,"context_line":"# SC2.mib: sc2UnitNodeMacAddress"},{"line_number":45,"context_line":"MAC_ADDRESS_OID \u003d \u00271.3.6.1.4.1.231.2.10.2.2.10.3.1.1.9.1\u0027"}],"source_content_type":"text/x-python","patch_set":22,"id":"fa69d971_307b138e","line":42,"range":{"start_line":42,"start_character":27,"end_line":42,"end_character":28},"updated":"2016-01-06 03:29:26.000000000","message":"Can we remove \"#\" and have a phtyon docstr here? Then we can generate the document for the sc2unitNodeClass snmp table fileds list.","commit_id":"9cf3295615379d63d681e0eda523b7e95e68015d"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"4da340be3b69cf39747c36edf6238966815c8d37","unresolved":false,"context_lines":[{"line_number":39,"context_line":"#    management-blade(4),"},{"line_number":40,"context_line":"#    secondary-remote(5),"},{"line_number":41,"context_line":"#    secondary-remote-backup(6),"},{"line_number":42,"context_line":"#    baseboard-controller(7)"},{"line_number":43,"context_line":"NODE_CLASS_OID \u003d \u00271.3.6.1.4.1.231.2.10.2.2.10.3.1.1.8.1\u0027"},{"line_number":44,"context_line":"# SC2.mib: sc2UnitNodeMacAddress"},{"line_number":45,"context_line":"MAC_ADDRESS_OID \u003d \u00271.3.6.1.4.1.231.2.10.2.2.10.3.1.1.9.1\u0027"}],"source_content_type":"text/x-python","patch_set":22,"id":"fa69d971_d4d91df4","line":42,"range":{"start_line":42,"start_character":27,"end_line":42,"end_character":28},"in_reply_to":"fa69d971_307b138e","updated":"2016-01-07 00:59:24.000000000","message":"I\u0027ll fix that.","commit_id":"9cf3295615379d63d681e0eda523b7e95e68015d"},{"author":{"_account_id":8106,"name":"Haomeng,Wang","email":"wanghaomeng@gmail.com","username":"whaom"},"change_message_id":"7894ee0ba5657ff441be2d5cb040f8cbad8fe433","unresolved":false,"context_lines":[{"line_number":41,"context_line":"#    secondary-remote-backup(6),"},{"line_number":42,"context_line":"#    baseboard-controller(7)"},{"line_number":43,"context_line":"NODE_CLASS_OID \u003d \u00271.3.6.1.4.1.231.2.10.2.2.10.3.1.1.8.1\u0027"},{"line_number":44,"context_line":"# SC2.mib: sc2UnitNodeMacAddress"},{"line_number":45,"context_line":"MAC_ADDRESS_OID \u003d \u00271.3.6.1.4.1.231.2.10.2.2.10.3.1.1.9.1\u0027"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"fa69d971_f0a7bb08","line":44,"range":{"start_line":44,"start_character":11,"end_line":44,"end_character":32},"updated":"2016-01-06 03:29:26.000000000","message":"ditto","commit_id":"9cf3295615379d63d681e0eda523b7e95e68015d"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"4da340be3b69cf39747c36edf6238966815c8d37","unresolved":false,"context_lines":[{"line_number":41,"context_line":"#    secondary-remote-backup(6),"},{"line_number":42,"context_line":"#    baseboard-controller(7)"},{"line_number":43,"context_line":"NODE_CLASS_OID \u003d \u00271.3.6.1.4.1.231.2.10.2.2.10.3.1.1.8.1\u0027"},{"line_number":44,"context_line":"# SC2.mib: sc2UnitNodeMacAddress"},{"line_number":45,"context_line":"MAC_ADDRESS_OID \u003d \u00271.3.6.1.4.1.231.2.10.2.2.10.3.1.1.9.1\u0027"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"fa69d971_94df25d5","line":44,"range":{"start_line":44,"start_character":11,"end_line":44,"end_character":32},"in_reply_to":"fa69d971_f0a7bb08","updated":"2016-01-07 00:59:24.000000000","message":"I\u0027ll fix that.","commit_id":"9cf3295615379d63d681e0eda523b7e95e68015d"},{"author":{"_account_id":8106,"name":"Haomeng,Wang","email":"wanghaomeng@gmail.com","username":"whaom"},"change_message_id":"7894ee0ba5657ff441be2d5cb040f8cbad8fe433","unresolved":false,"context_lines":[{"line_number":141,"context_line":"                         {\u0027address\u0027: mac, \u0027node_uuid\u0027: node.uuid})"},{"line_number":142,"context_line":"            except exception.MACAlreadyExists:"},{"line_number":143,"context_line":"                LOG.warn(_LW(\"Port already exists for MAC address %(address)s \""},{"line_number":144,"context_line":"                             \"for node %(node_uuid)s\"),"},{"line_number":145,"context_line":"                         {\u0027address\u0027: mac, \u0027node_uuid\u0027: node.uuid})"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        LOG.info(_LI(\"Node %s inspected.\"), node.uuid)"}],"source_content_type":"text/x-python","patch_set":22,"id":"fa69d971_75f73d59","line":144,"range":{"start_line":144,"start_character":52,"end_line":144,"end_character":55},"updated":"2016-01-06 03:29:26.000000000","message":"Replace deprecated LOG.warn with LOG.warning.","commit_id":"9cf3295615379d63d681e0eda523b7e95e68015d"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"4da340be3b69cf39747c36edf6238966815c8d37","unresolved":false,"context_lines":[{"line_number":141,"context_line":"                         {\u0027address\u0027: mac, \u0027node_uuid\u0027: node.uuid})"},{"line_number":142,"context_line":"            except exception.MACAlreadyExists:"},{"line_number":143,"context_line":"                LOG.warn(_LW(\"Port already exists for MAC address %(address)s \""},{"line_number":144,"context_line":"                             \"for node %(node_uuid)s\"),"},{"line_number":145,"context_line":"                         {\u0027address\u0027: mac, \u0027node_uuid\u0027: node.uuid})"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        LOG.info(_LI(\"Node %s inspected.\"), node.uuid)"}],"source_content_type":"text/x-python","patch_set":22,"id":"fa69d971_f47a2176","line":144,"range":{"start_line":144,"start_character":52,"end_line":144,"end_character":55},"in_reply_to":"fa69d971_75f73d59","updated":"2016-01-07 00:59:24.000000000","message":"I\u0027ll fix that.","commit_id":"9cf3295615379d63d681e0eda523b7e95e68015d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0dca5c42ce69744ee9cd30ff98da666fa91324cc","unresolved":false,"context_lines":[{"line_number":33,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"\"\"\""},{"line_number":36,"context_line":"SC2.mib: sc2UnitNodeClass"},{"line_number":37,"context_line":"  unknown(1),"},{"line_number":38,"context_line":"  primary(2),"},{"line_number":39,"context_line":"  secondary(3),"},{"line_number":40,"context_line":"  management-blade(4),"},{"line_number":41,"context_line":"  secondary-remote(5),"},{"line_number":42,"context_line":"  secondary-remote-backup(6),"},{"line_number":43,"context_line":"  baseboard-controller(7)"},{"line_number":44,"context_line":"\"\"\""},{"line_number":45,"context_line":"NODE_CLASS_OID \u003d \u00271.3.6.1.4.1.231.2.10.2.2.10.3.1.1.8.1\u0027"},{"line_number":46,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"3a57f1b5_7a125364","line":43,"range":{"start_line":36,"start_character":0,"end_line":43,"end_character":25},"updated":"2016-02-10 13:59:02.000000000","message":"could you please expand these docstrings? I can\u0027t even guess what is written here, sorry","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"800cceda3d2ba7ac40e62a614de9044cfe819c9f","unresolved":false,"context_lines":[{"line_number":33,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"\"\"\""},{"line_number":36,"context_line":"SC2.mib: sc2UnitNodeClass"},{"line_number":37,"context_line":"  unknown(1),"},{"line_number":38,"context_line":"  primary(2),"},{"line_number":39,"context_line":"  secondary(3),"},{"line_number":40,"context_line":"  management-blade(4),"},{"line_number":41,"context_line":"  secondary-remote(5),"},{"line_number":42,"context_line":"  secondary-remote-backup(6),"},{"line_number":43,"context_line":"  baseboard-controller(7)"},{"line_number":44,"context_line":"\"\"\""},{"line_number":45,"context_line":"NODE_CLASS_OID \u003d \u00271.3.6.1.4.1.231.2.10.2.2.10.3.1.1.8.1\u0027"},{"line_number":46,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"3a57f1b5_3aa3179f","line":43,"range":{"start_line":36,"start_character":0,"end_line":43,"end_character":25},"in_reply_to":"3a57f1b5_7a125364","updated":"2016-02-12 02:32:41.000000000","message":"I\u0027ll add the OID definition as follows:\n\nsc2UnitNodeClass OBJECT-TYPE\n    SYNTAX       INTEGER\n    {\n        unknown(1),\n        primary(2),\n        secondary(3),\n        management-blade(4),\n        secondary-remote(5),\n        secondary-remote-backup(6),\n        baseboard-controller(7)\n    }\n    ACCESS       read-only\n    STATUS       mandatory\n    DESCRIPTION  \"Management node class:\n                    primary:                 local operating system interface\n                    secondary:               local management controller LAN interface\n                    management-blade:        management blade interface (in a blade server chassis)\n                    secondary-remote:        remote management controller (in an RSB concentrator environment)\n                                      secondary-remote-backup: backup remote management controller\n                                      baseboard-controller:    local baseboard management controller (BMC)\"\n    ::\u003d { sc2ManagementNodes 8 }","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"84f06626cde7835a767f2e8cd4f89d665c10cc1d","unresolved":false,"context_lines":[{"line_number":33,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"\"\"\""},{"line_number":36,"context_line":"SC2.mib: sc2UnitNodeClass"},{"line_number":37,"context_line":"  unknown(1),"},{"line_number":38,"context_line":"  primary(2),"},{"line_number":39,"context_line":"  secondary(3),"},{"line_number":40,"context_line":"  management-blade(4),"},{"line_number":41,"context_line":"  secondary-remote(5),"},{"line_number":42,"context_line":"  secondary-remote-backup(6),"},{"line_number":43,"context_line":"  baseboard-controller(7)"},{"line_number":44,"context_line":"\"\"\""},{"line_number":45,"context_line":"NODE_CLASS_OID \u003d \u00271.3.6.1.4.1.231.2.10.2.2.10.3.1.1.8.1\u0027"},{"line_number":46,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"3a57f1b5_90b603db","line":43,"range":{"start_line":36,"start_character":0,"end_line":43,"end_character":25},"in_reply_to":"3a57f1b5_7a125364","updated":"2016-02-10 17:07:27.000000000","message":"Looks like the description of the OID (tho I don\u0027t understand it either)","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"800cceda3d2ba7ac40e62a614de9044cfe819c9f","unresolved":false,"context_lines":[{"line_number":33,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"\"\"\""},{"line_number":36,"context_line":"SC2.mib: sc2UnitNodeClass"},{"line_number":37,"context_line":"  unknown(1),"},{"line_number":38,"context_line":"  primary(2),"},{"line_number":39,"context_line":"  secondary(3),"},{"line_number":40,"context_line":"  management-blade(4),"},{"line_number":41,"context_line":"  secondary-remote(5),"},{"line_number":42,"context_line":"  secondary-remote-backup(6),"},{"line_number":43,"context_line":"  baseboard-controller(7)"},{"line_number":44,"context_line":"\"\"\""},{"line_number":45,"context_line":"NODE_CLASS_OID \u003d \u00271.3.6.1.4.1.231.2.10.2.2.10.3.1.1.8.1\u0027"},{"line_number":46,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"3a57f1b5_f546f04d","line":43,"range":{"start_line":36,"start_character":0,"end_line":43,"end_character":25},"in_reply_to":"3a57f1b5_90b603db","updated":"2016-02-12 02:32:41.000000000","message":"I\u0027ll fix that.","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0dca5c42ce69744ee9cd30ff98da666fa91324cc","unresolved":false,"context_lines":[{"line_number":45,"context_line":"NODE_CLASS_OID \u003d \u00271.3.6.1.4.1.231.2.10.2.2.10.3.1.1.8.1\u0027"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"\"\"\""},{"line_number":48,"context_line":"SC2.mib: sc2UnitNodeMacAddress"},{"line_number":49,"context_line":"\"\"\""},{"line_number":50,"context_line":"MAC_ADDRESS_OID \u003d \u00271.3.6.1.4.1.231.2.10.2.2.10.3.1.1.9.1\u0027"},{"line_number":51,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"3a57f1b5_1a047f15","line":48,"range":{"start_line":48,"start_character":0,"end_line":48,"end_character":30},"updated":"2016-02-10 13:59:02.000000000","message":"ditto","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"800cceda3d2ba7ac40e62a614de9044cfe819c9f","unresolved":false,"context_lines":[{"line_number":45,"context_line":"NODE_CLASS_OID \u003d \u00271.3.6.1.4.1.231.2.10.2.2.10.3.1.1.8.1\u0027"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"\"\"\""},{"line_number":48,"context_line":"SC2.mib: sc2UnitNodeMacAddress"},{"line_number":49,"context_line":"\"\"\""},{"line_number":50,"context_line":"MAC_ADDRESS_OID \u003d \u00271.3.6.1.4.1.231.2.10.2.2.10.3.1.1.9.1\u0027"},{"line_number":51,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"3a57f1b5_9a2ecb41","line":48,"range":{"start_line":48,"start_character":0,"end_line":48,"end_character":30},"in_reply_to":"3a57f1b5_1a047f15","updated":"2016-02-12 02:32:41.000000000","message":"I\u0027ll add the OID definition as follows:\n\nsc2UnitNodeMacAddress OBJECT-TYPE\n    SYNTAX       PhysAddress\n    ACCESS       read-only\n    STATUS       mandatory\n    DESCRIPTION  \"Management node hardware (MAC) address\"\n    ::\u003d { sc2ManagementNodes 9 }","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0dca5c42ce69744ee9cd30ff98da666fa91324cc","unresolved":false,"context_lines":[{"line_number":67,"context_line":"    node_classes \u003d snmp_client.get_next(NODE_CLASS_OID)"},{"line_number":68,"context_line":"    mac_addresses \u003d snmp_client.get_next(MAC_ADDRESS_OID)"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    return [a for c, a in zip(node_classes, mac_addresses) if c \u003d\u003d 2]"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"def _inspect_hardware(node):"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a57f1b5_bd04457e","line":70,"range":{"start_line":70,"start_character":67,"end_line":70,"end_character":68},"updated":"2016-02-10 13:59:02.000000000","message":"could you make it a named constant in the snmp module? I suspect it means \"MAC class\", right?","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"800cceda3d2ba7ac40e62a614de9044cfe819c9f","unresolved":false,"context_lines":[{"line_number":67,"context_line":"    node_classes \u003d snmp_client.get_next(NODE_CLASS_OID)"},{"line_number":68,"context_line":"    mac_addresses \u003d snmp_client.get_next(MAC_ADDRESS_OID)"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    return [a for c, a in zip(node_classes, mac_addresses) if c \u003d\u003d 2]"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"def _inspect_hardware(node):"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a57f1b5_95ebfc12","line":70,"range":{"start_line":70,"start_character":67,"end_line":70,"end_character":68},"in_reply_to":"3a57f1b5_bd04457e","updated":"2016-02-12 02:32:41.000000000","message":"Yes, I\u0027ll define the constants for each values,\n  unknown(1),\n  primary(2),\n  secondary(3),\n  management-blade(4),\n  secondary-remote(5),\n  secondary-remote-backup(6),\n  baseboard-controller(7).","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0dca5c42ce69744ee9cd30ff98da666fa91324cc","unresolved":false,"context_lines":[{"line_number":85,"context_line":"        props \u003d scci.get_essential_properties("},{"line_number":86,"context_line":"            report, IRMCInspect.ESSENTIAL_PROPERTIES)"},{"line_number":87,"context_line":"        macs \u003d _get_mac_addresses(node)"},{"line_number":88,"context_line":"    except (exception.InvalidParameterValue,"},{"line_number":89,"context_line":"            exception.MissingParameterValue,"},{"line_number":90,"context_line":"            scci.SCCIInvalidInputError,"},{"line_number":91,"context_line":"            scci.SCCIClientError,"},{"line_number":92,"context_line":"            exception.SNMPFailure) as e:"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a57f1b5_3d97f591","line":89,"range":{"start_line":88,"start_character":12,"end_line":89,"end_character":43},"updated":"2016-02-10 13:59:02.000000000","message":"I think we should not catch these 2 exceptions, as they are also pretty well recognized by ironic and users","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"84f06626cde7835a767f2e8cd4f89d665c10cc1d","unresolved":false,"context_lines":[{"line_number":85,"context_line":"        props \u003d scci.get_essential_properties("},{"line_number":86,"context_line":"            report, IRMCInspect.ESSENTIAL_PROPERTIES)"},{"line_number":87,"context_line":"        macs \u003d _get_mac_addresses(node)"},{"line_number":88,"context_line":"    except (exception.InvalidParameterValue,"},{"line_number":89,"context_line":"            exception.MissingParameterValue,"},{"line_number":90,"context_line":"            scci.SCCIInvalidInputError,"},{"line_number":91,"context_line":"            scci.SCCIClientError,"},{"line_number":92,"context_line":"            exception.SNMPFailure) as e:"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a57f1b5_eb00acac","line":89,"range":{"start_line":88,"start_character":12,"end_line":89,"end_character":43},"in_reply_to":"3a57f1b5_3d97f591","updated":"2016-02-10 17:07:27.000000000","message":"+1\n\nIs it expected to be raised? The manager.py module will call validate() prior to calling inspect_hardware() [0] with an exclusive lock. The only way I can see this being raised is due a programatic error (if the required parameters are not checked as part of validate()) and in this case we should def allow this exception to bubble up.\n\n[0] https://github.com/openstack/ironic/blob/master/ironic/conductor/manager.py#L2007","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"800cceda3d2ba7ac40e62a614de9044cfe819c9f","unresolved":false,"context_lines":[{"line_number":85,"context_line":"        props \u003d scci.get_essential_properties("},{"line_number":86,"context_line":"            report, IRMCInspect.ESSENTIAL_PROPERTIES)"},{"line_number":87,"context_line":"        macs \u003d _get_mac_addresses(node)"},{"line_number":88,"context_line":"    except (exception.InvalidParameterValue,"},{"line_number":89,"context_line":"            exception.MissingParameterValue,"},{"line_number":90,"context_line":"            scci.SCCIInvalidInputError,"},{"line_number":91,"context_line":"            scci.SCCIClientError,"},{"line_number":92,"context_line":"            exception.SNMPFailure) as e:"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a57f1b5_80eadcaa","line":89,"range":{"start_line":88,"start_character":12,"end_line":89,"end_character":43},"in_reply_to":"3a57f1b5_3d97f591","updated":"2016-02-12 02:32:41.000000000","message":"Okay, I understood. I\u0027ll fix that.","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"800cceda3d2ba7ac40e62a614de9044cfe819c9f","unresolved":false,"context_lines":[{"line_number":85,"context_line":"        props \u003d scci.get_essential_properties("},{"line_number":86,"context_line":"            report, IRMCInspect.ESSENTIAL_PROPERTIES)"},{"line_number":87,"context_line":"        macs \u003d _get_mac_addresses(node)"},{"line_number":88,"context_line":"    except (exception.InvalidParameterValue,"},{"line_number":89,"context_line":"            exception.MissingParameterValue,"},{"line_number":90,"context_line":"            scci.SCCIInvalidInputError,"},{"line_number":91,"context_line":"            scci.SCCIClientError,"},{"line_number":92,"context_line":"            exception.SNMPFailure) as e:"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a57f1b5_204208af","line":89,"range":{"start_line":88,"start_character":12,"end_line":89,"end_character":43},"in_reply_to":"3a57f1b5_eb00acac","updated":"2016-02-12 02:32:41.000000000","message":"I\u0027ll fix that. irmc_common.get_irmc_report(node) throw them, but I understood we should not catch them.","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0dca5c42ce69744ee9cd30ff98da666fa91324cc","unresolved":false,"context_lines":[{"line_number":142,"context_line":"                                        address\u003dmac, node_id\u003dnode.id)"},{"line_number":143,"context_line":"                new_port.create()"},{"line_number":144,"context_line":"                LOG.info(_LI(\"Port created for MAC address %(address)s \""},{"line_number":145,"context_line":"                             \"for node %(node_uuid)s\"),"},{"line_number":146,"context_line":"                         {\u0027address\u0027: mac, \u0027node_uuid\u0027: node.uuid})"},{"line_number":147,"context_line":"            except exception.MACAlreadyExists:"},{"line_number":148,"context_line":"                LOG.warning(_LW(\"Port already exists for MAC address \""}],"source_content_type":"text/x-python","patch_set":24,"id":"3a57f1b5_3dc5b58d","line":145,"updated":"2016-02-10 13:59:02.000000000","message":"please add \" during inspection\" so that a person reading logs knows *why* a port was added","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"800cceda3d2ba7ac40e62a614de9044cfe819c9f","unresolved":false,"context_lines":[{"line_number":142,"context_line":"                                        address\u003dmac, node_id\u003dnode.id)"},{"line_number":143,"context_line":"                new_port.create()"},{"line_number":144,"context_line":"                LOG.info(_LI(\"Port created for MAC address %(address)s \""},{"line_number":145,"context_line":"                             \"for node %(node_uuid)s\"),"},{"line_number":146,"context_line":"                         {\u0027address\u0027: mac, \u0027node_uuid\u0027: node.uuid})"},{"line_number":147,"context_line":"            except exception.MACAlreadyExists:"},{"line_number":148,"context_line":"                LOG.warning(_LW(\"Port already exists for MAC address \""}],"source_content_type":"text/x-python","patch_set":24,"id":"3a57f1b5_e04cf0c9","line":145,"in_reply_to":"3a57f1b5_3dc5b58d","updated":"2016-02-12 02:32:41.000000000","message":"I\u0027ll fix that.","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0dca5c42ce69744ee9cd30ff98da666fa91324cc","unresolved":false,"context_lines":[{"line_number":146,"context_line":"                         {\u0027address\u0027: mac, \u0027node_uuid\u0027: node.uuid})"},{"line_number":147,"context_line":"            except exception.MACAlreadyExists:"},{"line_number":148,"context_line":"                LOG.warning(_LW(\"Port already exists for MAC address \""},{"line_number":149,"context_line":"                                \"%(address)s for node %(node_uuid)s\"),"},{"line_number":150,"context_line":"                            {\u0027address\u0027: mac, \u0027node_uuid\u0027: node.uuid})"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"        LOG.info(_LI(\"Node %s inspected.\"), node.uuid)"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a57f1b5_7d41ed0a","line":149,"updated":"2016-02-10 13:59:02.000000000","message":"ditto","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"800cceda3d2ba7ac40e62a614de9044cfe819c9f","unresolved":false,"context_lines":[{"line_number":146,"context_line":"                         {\u0027address\u0027: mac, \u0027node_uuid\u0027: node.uuid})"},{"line_number":147,"context_line":"            except exception.MACAlreadyExists:"},{"line_number":148,"context_line":"                LOG.warning(_LW(\"Port already exists for MAC address \""},{"line_number":149,"context_line":"                                \"%(address)s for node %(node_uuid)s\"),"},{"line_number":150,"context_line":"                            {\u0027address\u0027: mac, \u0027node_uuid\u0027: node.uuid})"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"        LOG.info(_LI(\"Node %s inspected.\"), node.uuid)"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a57f1b5_a0c91828","line":149,"in_reply_to":"3a57f1b5_7d41ed0a","updated":"2016-02-12 02:32:41.000000000","message":"I\u0027ll fix that.","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0dca5c42ce69744ee9cd30ff98da666fa91324cc","unresolved":false,"context_lines":[{"line_number":149,"context_line":"                                \"%(address)s for node %(node_uuid)s\"),"},{"line_number":150,"context_line":"                            {\u0027address\u0027: mac, \u0027node_uuid\u0027: node.uuid})"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"        LOG.info(_LI(\"Node %s inspected.\"), node.uuid)"},{"line_number":153,"context_line":"        return states.MANAGEABLE"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a57f1b5_dd6341b0","line":152,"range":{"start_line":152,"start_character":39,"end_line":152,"end_character":40},"updated":"2016-02-10 13:59:02.000000000","message":"nit: we usually don\u0027t put a dot in the end of log messages","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"800cceda3d2ba7ac40e62a614de9044cfe819c9f","unresolved":false,"context_lines":[{"line_number":149,"context_line":"                                \"%(address)s for node %(node_uuid)s\"),"},{"line_number":150,"context_line":"                            {\u0027address\u0027: mac, \u0027node_uuid\u0027: node.uuid})"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"        LOG.info(_LI(\"Node %s inspected.\"), node.uuid)"},{"line_number":153,"context_line":"        return states.MANAGEABLE"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a57f1b5_c0ce942d","line":152,"range":{"start_line":152,"start_character":39,"end_line":152,"end_character":40},"in_reply_to":"3a57f1b5_dd6341b0","updated":"2016-02-12 02:32:41.000000000","message":"I\u0027ll fix that.","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"}],"ironic/drivers/modules/snmp.py":[{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"ec5a56cae5060a11b2711fa08c2d84c3b2761c88","unresolved":false,"context_lines":[{"line_number":182,"context_line":""},{"line_number":183,"context_line":"        error_indication, error_status, error_index, var_bind_table \u003d results"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"        if error_indication:"},{"line_number":186,"context_line":"            # SNMP engine-level error."},{"line_number":187,"context_line":"            raise exception.SNMPFailure(operation\u003d\"GET_NEXT\","},{"line_number":188,"context_line":"                                        error\u003derror_indication)"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_893705e3","line":185,"updated":"2015-08-17 12:26:39.000000000","message":"Whether a case is possible when both \"error_indication\" and \"error_status\" are True? If yes looks like we lost some info, if no this can be simpler\n\n error \u003d error_indication or error_status\n if error:\n     raise exception.SNMPFailure(operation\u003d\"GET_NEXT\", \n                                 error\u003derror)","commit_id":"b0372b79e566c0d054b4a4e30619ef4ffcfdcfab"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"a77b071f5b18c19277ef777e651bee9f62766af2","unresolved":false,"context_lines":[{"line_number":182,"context_line":""},{"line_number":183,"context_line":"        error_indication, error_status, error_index, var_bind_table \u003d results"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"        if error_indication:"},{"line_number":186,"context_line":"            # SNMP engine-level error."},{"line_number":187,"context_line":"            raise exception.SNMPFailure(operation\u003d\"GET_NEXT\","},{"line_number":188,"context_line":"                                        error\u003derror_indication)"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_0c6ab9b3","line":185,"in_reply_to":"fa1b9901_893705e3","updated":"2015-08-19 09:59:13.000000000","message":"I just followed the way the get() function does.\nPlease look at the L.155-L.164.\n\nL.155-L.164 and here both seems Okay, because of sample code of pysnmp document [1]\n\n# Check for errors and print out results\nif errorIndication:\n    print(errorIndication)\nelse:\n    if errorStatus:\n        print(\u0027%s at %s\u0027 % (\n            errorStatus.prettyPrint(),\n            errorIndex and varBinds[int(errorIndex)-1] or \u0027?\u0027\n            )\n        )\n    else:\n        for name, val in varBinds:\n            print(\u0027%s \u003d %s\u0027 % (name.prettyPrint(), val.prettyPrint()))\n\n[1] http://pysnmp.sourceforge.net/docs/current/apps/sync-command-generator.html","commit_id":"b0372b79e566c0d054b4a4e30619ef4ffcfdcfab"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"ec5a56cae5060a11b2711fa08c2d84c3b2761c88","unresolved":false,"context_lines":[{"line_number":192,"context_line":"            raise exception.SNMPFailure(operation\u003d\"GET_NEXT\","},{"line_number":193,"context_line":"                                        error\u003derror_status.prettyPrint())"},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"        # return a list of values"},{"line_number":196,"context_line":"        return [val for row in var_bind_table for name, val in row]"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    def set(self, oid, value):"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_ae344f4a","line":195,"updated":"2015-08-17 12:26:39.000000000","message":"Double of docstring returns, is not needed.","commit_id":"b0372b79e566c0d054b4a4e30619ef4ffcfdcfab"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"a77b071f5b18c19277ef777e651bee9f62766af2","unresolved":false,"context_lines":[{"line_number":192,"context_line":"            raise exception.SNMPFailure(operation\u003d\"GET_NEXT\","},{"line_number":193,"context_line":"                                        error\u003derror_status.prettyPrint())"},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"        # return a list of values"},{"line_number":196,"context_line":"        return [val for row in var_bind_table for name, val in row]"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    def set(self, oid, value):"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_4acbb472","line":195,"in_reply_to":"fa1b9901_ae344f4a","updated":"2015-08-19 09:59:13.000000000","message":"Okay, I\u0027ll remove it.","commit_id":"b0372b79e566c0d054b4a4e30619ef4ffcfdcfab"}],"ironic/tests/unit/drivers/modules/test_snmp.py":[{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"16b126f0cdc1af1f2310a4490512c2678ba252c0","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    @mock.patch.object(snmp.SNMPClient, \u0027_get_transport\u0027, autospec\u003dTrue)"},{"line_number":105,"context_line":"    @mock.patch.object(snmp.SNMPClient, \u0027_get_auth\u0027, autospec\u003dTrue)"},{"line_number":106,"context_line":"    def test_get_next(self, mock_auth, mock_transport, mock_cmdgen):"},{"line_number":107,"context_line":"        var_bind \u003d (self.oid, self.value)"},{"line_number":108,"context_line":"        mock_cmdgenerator \u003d mock_cmdgen.return_value"},{"line_number":109,"context_line":"        mock_cmdgenerator.nextCmd.return_value \u003d ("}],"source_content_type":"text/x-python","patch_set":21,"id":"7a740942_8d3c0f94","line":106,"updated":"2015-12-14 10:08:27.000000000","message":"Missing test case for error in get_next().","commit_id":"d3b85fc7576a387db628979364e1e816906c3358"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"a6ad3db4c927d10e4bd81307fd8f9ee22ab29345","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    @mock.patch.object(snmp.SNMPClient, \u0027_get_transport\u0027, autospec\u003dTrue)"},{"line_number":105,"context_line":"    @mock.patch.object(snmp.SNMPClient, \u0027_get_auth\u0027, autospec\u003dTrue)"},{"line_number":106,"context_line":"    def test_get_next(self, mock_auth, mock_transport, mock_cmdgen):"},{"line_number":107,"context_line":"        var_bind \u003d (self.oid, self.value)"},{"line_number":108,"context_line":"        mock_cmdgenerator \u003d mock_cmdgen.return_value"},{"line_number":109,"context_line":"        mock_cmdgenerator.nextCmd.return_value \u003d ("}],"source_content_type":"text/x-python","patch_set":21,"id":"5a710552_bddbf4ec","line":106,"in_reply_to":"7a740942_8d3c0f94","updated":"2015-12-15 04:35:42.000000000","message":"I\u0027ll add same error cases as get().","commit_id":"d3b85fc7576a387db628979364e1e816906c3358"}],"releasenotes/notes/irmc-oob-inspection-6d072c60f6c88ecb.yaml":[{"author":{"_account_id":8106,"name":"Haomeng,Wang","email":"wanghaomeng@gmail.com","username":"whaom"},"change_message_id":"d80b1d2d5761708c24889523d7362bd7dbbd0be1","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Adds OOB (Out Of Band) inspection support for iRMC drivers."}],"source_content_type":"text/x-yaml","patch_set":23,"id":"fa69d971_73cddd64","line":3,"range":{"start_line":3,"start_character":55,"end_line":3,"end_character":63},"updated":"2016-01-07 06:23:11.000000000","message":"nit: s/drivers/driver","commit_id":"80a3b557c005494d15374efb20b2c1d4c139fdfa"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"3a92bdfbce5f996e3b631d0b094c26df80953120","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Adds OOB (Out Of Band) inspection support for iRMC drivers."}],"source_content_type":"text/x-yaml","patch_set":23,"id":"fa69d971_5671a70a","line":3,"range":{"start_line":3,"start_character":55,"end_line":3,"end_character":63},"in_reply_to":"fa69d971_73cddd64","updated":"2016-01-07 07:01:13.000000000","message":"Haomeng, Thanks! I\u0027ll fix that.","commit_id":"80a3b557c005494d15374efb20b2c1d4c139fdfa"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0dca5c42ce69744ee9cd30ff98da666fa91324cc","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Adds OOB (Out Of Band) inspection support for iRMC driver."}],"source_content_type":"text/x-yaml","patch_set":24,"id":"3a57f1b5_7d26cd69","line":3,"range":{"start_line":3,"start_character":9,"end_line":3,"end_character":26},"updated":"2016-02-10 13:59:02.000000000","message":"nit: you can just leave \"out-of-band\" here (without shortening)","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"800cceda3d2ba7ac40e62a614de9044cfe819c9f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Adds OOB (Out Of Band) inspection support for iRMC driver."}],"source_content_type":"text/x-yaml","patch_set":24,"id":"3a57f1b5_0fe13f9a","line":3,"range":{"start_line":3,"start_character":9,"end_line":3,"end_character":26},"in_reply_to":"3a57f1b5_7d26cd69","updated":"2016-02-12 02:32:41.000000000","message":"I\u0027ll fix that.","commit_id":"99ed7d0c7701b35d6317abca546884f73928465c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"882efc5619f431bc35308a28889170cbf62c6052","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Adds out-Of-band inspection support for iRMC driver."}],"source_content_type":"text/x-yaml","patch_set":25,"id":"3a57f1b5_c7969c3d","line":3,"range":{"start_line":3,"start_character":13,"end_line":3,"end_character":15},"updated":"2016-02-12 10:11:02.000000000","message":"nit: lowercase of","commit_id":"37590a86338e94845c74e1b1f7d8d6f61003d447"}]}
