)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"cad84116ffee086945c48de1f4c95a1c2257ec54","unresolved":false,"context_lines":[{"line_number":18,"context_line":"wait for people with several NIC\u0027s, it\u0027s changed to only wait for the"},{"line_number":19,"context_line":"PXE booting NIC, which obviously must get an IP address."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"This make IP addresses in the inspection data for other NIC\u0027s somewhat"},{"line_number":22,"context_line":"unreliable. A new option inspection_dhcp_all_interfaces is introduced"},{"line_number":23,"context_line":"to allow waiting for all NIC\u0027s to get IP addresses."},{"line_number":24,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"dab17558_8c729b0f","line":21,"updated":"2016-05-10 15:54:40.000000000","message":"Nit: \"makes\"","commit_id":"572ecbefec7569bb78f9a4294f6ffe5007663c2f"}],"ironic_python_agent/cmd/agent.py":[{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"cad84116ffee086945c48de1f4c95a1c2257ec54","unresolved":false,"context_lines":[{"line_number":118,"context_line":"    cfg.IntOpt(\u0027inspection_dhcp_wait_timeout\u0027,"},{"line_number":119,"context_line":"               default\u003dAPARAMS.get(\u0027ipa-inspection-dhcp-wait-timeout\u0027,"},{"line_number":120,"context_line":"                                   inspector.DEFAULT_DHCP_WAIT_TIMEOUT),"},{"line_number":121,"context_line":"               help\u003d\u0027Maximum time (in seconds) to wait for the PXE or all \u0027"},{"line_number":122,"context_line":"                    \u0027(depending on value of inspection_dhcp_all_interfaces) \u0027"},{"line_number":123,"context_line":"                    \u0027NIC\\\u0027s to get their IP addresses via DHCP before \u0027"},{"line_number":124,"context_line":"                    \u0027inspection. Set to 0 to disable waiting completely.\u0027),"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_4c5d5346","line":121,"updated":"2016-05-10 15:54:40.000000000","message":"I\u0027d rephrase this as \"the PXE NIC (or all NICs if inspection_dhcp_all_interfaces is set)\".","commit_id":"572ecbefec7569bb78f9a4294f6ffe5007663c2f"}],"ironic_python_agent/inspector.py":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"1bbfee631d4c4630d8596d0e9c5265d6c936f16a","unresolved":false,"context_lines":[{"line_number":235,"context_line":""},{"line_number":236,"context_line":"    pxe_mac \u003d utils.get_agent_params().get(\u0027BOOTIF\u0027)"},{"line_number":237,"context_line":"    if pxe_mac:"},{"line_number":238,"context_line":"        if \u0027-\u0027 in pxe_mac:"},{"line_number":239,"context_line":"            # pxelinux format is 01-aa-bb-cc-dd-ee-ff"},{"line_number":240,"context_line":"            pxe_mac \u003d pxe_mac.split(\u0027-\u0027, 1)[1]"},{"line_number":241,"context_line":"            pxe_mac \u003d pxe_mac.replace(\u0027-\u0027, \u0027:\u0027)"},{"line_number":242,"context_line":"        pxe_mac \u003d pxe_mac.lower()"},{"line_number":243,"context_line":"    elif not CONF.inspection_dhcp_all_interfaces:"},{"line_number":244,"context_line":"        LOG.warning(\u0027No PXE boot interface known - not waiting for it \u0027"},{"line_number":245,"context_line":"                    \u0027to get the IP address\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_9938363f","line":242,"range":{"start_line":238,"start_character":8,"end_line":242,"end_character":33},"updated":"2016-05-10 08:42:51.000000000","message":"nit: not sure if used in another place, but this logic looks like a good candidate to be split into its own function that normalizes an address.","commit_id":"572ecbefec7569bb78f9a4294f6ffe5007663c2f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"6bbe5b3826663df66713186d42b8af90001ebf4b","unresolved":false,"context_lines":[{"line_number":235,"context_line":""},{"line_number":236,"context_line":"    pxe_mac \u003d utils.get_agent_params().get(\u0027BOOTIF\u0027)"},{"line_number":237,"context_line":"    if pxe_mac:"},{"line_number":238,"context_line":"        if \u0027-\u0027 in pxe_mac:"},{"line_number":239,"context_line":"            # pxelinux format is 01-aa-bb-cc-dd-ee-ff"},{"line_number":240,"context_line":"            pxe_mac \u003d pxe_mac.split(\u0027-\u0027, 1)[1]"},{"line_number":241,"context_line":"            pxe_mac \u003d pxe_mac.replace(\u0027-\u0027, \u0027:\u0027)"},{"line_number":242,"context_line":"        pxe_mac \u003d pxe_mac.lower()"},{"line_number":243,"context_line":"    elif not CONF.inspection_dhcp_all_interfaces:"},{"line_number":244,"context_line":"        LOG.warning(\u0027No PXE boot interface known - not waiting for it \u0027"},{"line_number":245,"context_line":"                    \u0027to get the IP address\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_7962b23f","line":242,"range":{"start_line":238,"start_character":8,"end_line":242,"end_character":33},"in_reply_to":"dab17558_797bd2f5","updated":"2016-05-10 08:44:22.000000000","message":"It\u0027s used in ironic-inspector, so it\u0027s a good candidate for ironic-lib. But it\u0027s a bit beyond this patch.","commit_id":"572ecbefec7569bb78f9a4294f6ffe5007663c2f"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"5f3fa4a6b9aad3e0f8ef6293a67c738730c2182d","unresolved":false,"context_lines":[{"line_number":235,"context_line":""},{"line_number":236,"context_line":"    pxe_mac \u003d utils.get_agent_params().get(\u0027BOOTIF\u0027)"},{"line_number":237,"context_line":"    if pxe_mac:"},{"line_number":238,"context_line":"        if \u0027-\u0027 in pxe_mac:"},{"line_number":239,"context_line":"            # pxelinux format is 01-aa-bb-cc-dd-ee-ff"},{"line_number":240,"context_line":"            pxe_mac \u003d pxe_mac.split(\u0027-\u0027, 1)[1]"},{"line_number":241,"context_line":"            pxe_mac \u003d pxe_mac.replace(\u0027-\u0027, \u0027:\u0027)"},{"line_number":242,"context_line":"        pxe_mac \u003d pxe_mac.lower()"},{"line_number":243,"context_line":"    elif not CONF.inspection_dhcp_all_interfaces:"},{"line_number":244,"context_line":"        LOG.warning(\u0027No PXE boot interface known - not waiting for it \u0027"},{"line_number":245,"context_line":"                    \u0027to get the IP address\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_797bd2f5","line":242,"range":{"start_line":238,"start_character":8,"end_line":242,"end_character":33},"in_reply_to":"dab17558_9938363f","updated":"2016-05-10 08:43:10.000000000","message":"if it will be used*","commit_id":"572ecbefec7569bb78f9a4294f6ffe5007663c2f"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2a6a4f556cc8e066f3aa60da06fbca9bc98d0b9d","unresolved":false,"context_lines":[{"line_number":251,"context_line":"        missing \u003d [iface.name for iface in interfaces"},{"line_number":252,"context_line":"                   if not iface.ipv4_address and"},{"line_number":253,"context_line":"                   (CONF.inspection_dhcp_all_interfaces or"},{"line_number":254,"context_line":"                    iface.mac_address.lower() \u003d\u003d pxe_mac)]"},{"line_number":255,"context_line":"        if not missing:"},{"line_number":256,"context_line":"            return True"},{"line_number":257,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_ccf4a35c","line":254,"updated":"2016-05-10 15:47:43.000000000","message":"This is getting a bit long here, wouldn\u0027t mind breaking it up.","commit_id":"572ecbefec7569bb78f9a4294f6ffe5007663c2f"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"cad84116ffee086945c48de1f4c95a1c2257ec54","unresolved":false,"context_lines":[{"line_number":251,"context_line":"        missing \u003d [iface.name for iface in interfaces"},{"line_number":252,"context_line":"                   if not iface.ipv4_address and"},{"line_number":253,"context_line":"                   (CONF.inspection_dhcp_all_interfaces or"},{"line_number":254,"context_line":"                    iface.mac_address.lower() \u003d\u003d pxe_mac)]"},{"line_number":255,"context_line":"        if not missing:"},{"line_number":256,"context_line":"            return True"},{"line_number":257,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_d72c309b","line":254,"in_reply_to":"dab17558_ccf4a35c","updated":"2016-05-10 15:54:40.000000000","message":"Yeah, maybe one pass (outside the loop) to create a list of interfaces to inspect, and then [iface.name for iface in interfaces if not iface.ipv4_address] here?","commit_id":"572ecbefec7569bb78f9a4294f6ffe5007663c2f"}],"ironic_python_agent/tests/unit/test_inspector.py":[{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"904db479ff794e836d2161460298faa933ab1157","unresolved":false,"context_lines":[{"line_number":473,"context_line":"        mocked_dispatch.side_effect \u003d ["},{"line_number":474,"context_line":"            [hardware.NetworkInterface(name\u003d\u0027em0\u0027, mac_addr\u003d\u0027abcd\u0027,"},{"line_number":475,"context_line":"                                       ipv4_address\u003dNone,"},{"line_number":476,"context_line":"                                       has_carrier\u003dFalse),"},{"line_number":477,"context_line":"             hardware.NetworkInterface(name\u003d\u0027em1\u0027, mac_addr\u003d\u0027abcd\u0027,"},{"line_number":478,"context_line":"                                       ipv4_address\u003d\u00271.2.3.4\u0027,"},{"line_number":479,"context_line":"                                       has_carrier\u003dFalse)],"}],"source_content_type":"text/x-python","patch_set":1,"id":"dab17558_dce7be3e","line":476,"updated":"2016-05-06 11:56:25.000000000","message":"Probably worth adding a comment explaining why you\u0027re checking this, it won\u0027t be obvious in a few months.","commit_id":"e48f9a719af6cc1d3bb7664052b6e1aefc7582dd"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"cad84116ffee086945c48de1f4c95a1c2257ec54","unresolved":false,"context_lines":[{"line_number":475,"context_line":"        mocked_dispatch.side_effect \u003d ["},{"line_number":476,"context_line":"            [hardware.NetworkInterface(name\u003d\u0027em0\u0027, mac_addr\u003d\u0027abcd\u0027,"},{"line_number":477,"context_line":"                                       ipv4_address\u003dNone,"},{"line_number":478,"context_line":"                                       has_carrier\u003dFalse),"},{"line_number":479,"context_line":"             hardware.NetworkInterface(name\u003d\u0027em1\u0027, mac_addr\u003d\u0027cdef\u0027,"},{"line_number":480,"context_line":"                                       ipv4_address\u003d\u00271.2.3.4\u0027,"},{"line_number":481,"context_line":"                                       has_carrier\u003dFalse)],"}],"source_content_type":"text/x-python","patch_set":2,"id":"dab17558_b7536ce1","line":478,"updated":"2016-05-10 15:54:40.000000000","message":"We\u0027re not even checking has_carrier any more, is the point of this test simply that has_carrier is full of lies? If so, please add a comment to that effect.","commit_id":"572ecbefec7569bb78f9a4294f6ffe5007663c2f"}],"releasenotes/notes/inspection-wait-for-ips-v2-146016f758d7010c.yaml":[{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"ba287f2429dbedfbfc3a0be1462dcfd9b41f5b4d","unresolved":false,"context_lines":[{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - During inspection wait only for a PXE booting NIC to get its IP by default."},{"line_number":4,"context_line":"    Introduce a new \"inspection_dhcp_all_interfaces\" option to enable waiting"},{"line_number":5,"context_line":"    for all intefaces instead."},{"line_number":6,"context_line":"  - Stop checking the \"has_carrier\" field when waiting for NIC\u0027s to get IP"},{"line_number":7,"context_line":"    addresses, as it might be set to \"False\" when the interface is being"},{"line_number":8,"context_line":"    configured."}],"source_content_type":"text/x-yaml","patch_set":2,"id":"dab17558_f4dfc966","line":5,"range":{"start_line":5,"start_character":12,"end_line":5,"end_character":21},"updated":"2016-05-10 08:51:24.000000000","message":"s/intefaces/interfaces/","commit_id":"572ecbefec7569bb78f9a4294f6ffe5007663c2f"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2a6a4f556cc8e066f3aa60da06fbca9bc98d0b9d","unresolved":false,"context_lines":[{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - During inspection wait only for a PXE booting NIC to get its IP by default."},{"line_number":4,"context_line":"    Introduce a new \"inspection_dhcp_all_interfaces\" option to enable waiting"},{"line_number":5,"context_line":"    for all intefaces instead."},{"line_number":6,"context_line":"  - Stop checking the \"has_carrier\" field when waiting for NIC\u0027s to get IP"},{"line_number":7,"context_line":"    addresses, as it might be set to \"False\" when the interface is being"},{"line_number":8,"context_line":"    configured."}],"source_content_type":"text/x-yaml","patch_set":2,"id":"dab17558_ccc2e3e8","line":5,"range":{"start_line":5,"start_character":12,"end_line":5,"end_character":21},"in_reply_to":"dab17558_f4dfc966","updated":"2016-05-10 15:47:43.000000000","message":"Can we post a follow-up patch for this, please?","commit_id":"572ecbefec7569bb78f9a4294f6ffe5007663c2f"}]}
