)]}'
{"doc/source/usage.rst":[{"author":{"_account_id":7882,"name":"Yuiko Takada Mori","email":"yuiko-mori@nec.com","username":"YuikoTakada"},"change_message_id":"ce3ed5d7b71f9c96ed4f85356932c3798d87499a","unresolved":false,"context_lines":[{"line_number":229,"context_line":"all hooks processed, introspection rules could be used, see :ref:`_rules`."},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"A simple rule to match all new nodes and enroll them in Ironic with the"},{"line_number":232,"context_line":"``agent_ipmitool`` driver will looks like::"},{"line_number":233,"context_line":""},{"line_number":234,"context_line":"    \"description\": \"Set IPMI driver_info if no credentials\","},{"line_number":235,"context_line":"    \"actions\": ["}],"source_content_type":"text/x-rst","patch_set":3,"id":"bae84128_14d38805","line":232,"range":{"start_line":232,"start_character":41,"end_line":232,"end_character":43},"updated":"2016-02-22 08:48:15.000000000","message":"Don\u0027t you use new condition is-empty?","commit_id":"a3d7c6cfb05f8ea788d2b001add85e094100768c"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"3c954895a4345ec79220b813c3fddf980775b42f","unresolved":false,"context_lines":[{"line_number":229,"context_line":"all hooks processed, introspection rules could be used, see :ref:`_rules`."},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"A simple rule to match all new nodes and enroll them in Ironic with the"},{"line_number":232,"context_line":"``agent_ipmitool`` driver will looks like::"},{"line_number":233,"context_line":""},{"line_number":234,"context_line":"    \"description\": \"Set IPMI driver_info if no credentials\","},{"line_number":235,"context_line":"    \"actions\": ["}],"source_content_type":"text/x-rst","patch_set":3,"id":"bae84128_becb92a4","line":232,"range":{"start_line":232,"start_character":41,"end_line":232,"end_character":43},"in_reply_to":"bae84128_14d38805","updated":"2016-02-22 11:34:23.000000000","message":"I didn\u0027t because it hasn\u0027t landed","commit_id":"a3d7c6cfb05f8ea788d2b001add85e094100768c"},{"author":{"_account_id":7882,"name":"Yuiko Takada Mori","email":"yuiko-mori@nec.com","username":"YuikoTakada"},"change_message_id":"ffaeed9d3fe853d5f89c2a71a98476d260f69689","unresolved":false,"context_lines":[{"line_number":229,"context_line":"all hooks processed, introspection rules could be used, see :ref:`_rules`."},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"A simple rule to match all new nodes and enroll them in Ironic with the"},{"line_number":232,"context_line":"``agent_ipmitool`` driver will looks like::"},{"line_number":233,"context_line":""},{"line_number":234,"context_line":"    \"description\": \"Set IPMI driver_info if no credentials\","},{"line_number":235,"context_line":"    \"actions\": ["}],"source_content_type":"text/x-rst","patch_set":3,"id":"bae84128_abc852a9","line":232,"range":{"start_line":232,"start_character":41,"end_line":232,"end_character":43},"in_reply_to":"bae84128_becb92a4","updated":"2016-02-23 01:48:36.000000000","message":"ok :)","commit_id":"a3d7c6cfb05f8ea788d2b001add85e094100768c"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"ed28abae702b9ed2017e3f819d5576194a51fb7a","unresolved":false,"context_lines":[{"line_number":214,"context_line":"Starting from Mitaka, **ironic-inspector** is able to register new nodes"},{"line_number":215,"context_line":"in Ironic. Nodes that don\u0027t exist in the inspector node cache may still be"},{"line_number":216,"context_line":"booted manually and return inspection information to process,"},{"line_number":217,"context_line":"``node-not-found-hook`` allows to handle that information."},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"For discovery, hook called ``enroll`` should be specified in the configuration"},{"line_number":220,"context_line":"file. It will create a node with ``fake`` driver by default(driver is"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9aed3d3a_b65e50e7","line":217,"updated":"2016-02-26 11:44:40.000000000","message":"Starting from Mitaka, **ironic-inspector** is able to register new nodes\nin Ironic.\n\nThe existing ``node-not-found-hook`` handles what happens if **ironic-inspector** receives inspection data from a node it can not identify. This can happen if a node is manually booted without registering it with Ironic first.","commit_id":"2b58d6d9e8b326edc96e49de7b152333a04fce3b"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"4df92c004732f4c51d009d387b3a628aec63f5ee","unresolved":false,"context_lines":[{"line_number":217,"context_line":"``node-not-found-hook`` allows to handle that information."},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"For discovery, hook called ``enroll`` should be specified in the configuration"},{"line_number":220,"context_line":"file. It will create a node with ``fake`` driver by default(driver is"},{"line_number":221,"context_line":"configured option, it\u0027s possible to change driver with appropriate value, set"},{"line_number":222,"context_line":"``enroll_node_driver`` in the **ironic-inspector** configuration file)"},{"line_number":223,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"9aed3d3a_01ad38e9","line":220,"updated":"2016-02-26 11:33:30.000000000","message":"nit: no space before (","commit_id":"2b58d6d9e8b326edc96e49de7b152333a04fce3b"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"ed28abae702b9ed2017e3f819d5576194a51fb7a","unresolved":false,"context_lines":[{"line_number":219,"context_line":"For discovery, hook called ``enroll`` should be specified in the configuration"},{"line_number":220,"context_line":"file. It will create a node with ``fake`` driver by default(driver is"},{"line_number":221,"context_line":"configured option, it\u0027s possible to change driver with appropriate value, set"},{"line_number":222,"context_line":"``enroll_node_driver`` in the **ironic-inspector** configuration file)"},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"Also ``node-not-found-hook`` setup ``ipmi_address`` if ramdisk post back"},{"line_number":225,"context_line":"it with discovered data, see :ref:`ramdisk_callback`."}],"source_content_type":"text/x-rst","patch_set":5,"id":"9aed3d3a_564704bb","line":222,"updated":"2016-02-26 11:44:40.000000000","message":"For discovery, the configuration file option ``node_not_found_hook`` should be set to load the hook called ``enroll``. This hook will enroll the unidentified node into Ironic using the ``fake`` driver. (This driver is a configurable option, set ``enroll_node_driver`` in the **ironic-inspector** configuration file, to the Ironic driver you want)","commit_id":"2b58d6d9e8b326edc96e49de7b152333a04fce3b"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"4df92c004732f4c51d009d387b3a628aec63f5ee","unresolved":false,"context_lines":[{"line_number":219,"context_line":"For discovery, hook called ``enroll`` should be specified in the configuration"},{"line_number":220,"context_line":"file. It will create a node with ``fake`` driver by default(driver is"},{"line_number":221,"context_line":"configured option, it\u0027s possible to change driver with appropriate value, set"},{"line_number":222,"context_line":"``enroll_node_driver`` in the **ironic-inspector** configuration file)"},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"Also ``node-not-found-hook`` setup ``ipmi_address`` if ramdisk post back"},{"line_number":225,"context_line":"it with discovered data, see :ref:`ramdisk_callback`."}],"source_content_type":"text/x-rst","patch_set":5,"id":"9aed3d3a_61ba4425","line":222,"updated":"2016-02-26 11:33:30.000000000","message":"dot is required in the end. also maybe just \n\n (the default driver can be changed via the ``enroll_node_driver`` configuration option).","commit_id":"2b58d6d9e8b326edc96e49de7b152333a04fce3b"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"4df92c004732f4c51d009d387b3a628aec63f5ee","unresolved":false,"context_lines":[{"line_number":221,"context_line":"configured option, it\u0027s possible to change driver with appropriate value, set"},{"line_number":222,"context_line":"``enroll_node_driver`` in the **ironic-inspector** configuration file)"},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"Also ``node-not-found-hook`` setup ``ipmi_address`` if ramdisk post back"},{"line_number":225,"context_line":"it with discovered data, see :ref:`ramdisk_callback`."},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"After that **ironic-inspector** process introspection data with provided"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9aed3d3a_41b74039","line":224,"updated":"2016-02-26 11:33:30.000000000","message":"\"Also this hook sets up the ``ipmi_address`` driver field on the node\"","commit_id":"2b58d6d9e8b326edc96e49de7b152333a04fce3b"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"ed28abae702b9ed2017e3f819d5576194a51fb7a","unresolved":false,"context_lines":[{"line_number":222,"context_line":"``enroll_node_driver`` in the **ironic-inspector** configuration file)"},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"Also ``node-not-found-hook`` setup ``ipmi_address`` if ramdisk post back"},{"line_number":225,"context_line":"it with discovered data, see :ref:`ramdisk_callback`."},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"After that **ironic-inspector** process introspection data with provided"},{"line_number":228,"context_line":"or defaults plugins :ref:`_plugins`. If additional actions are needed after"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9aed3d3a_f6e8d87e","line":225,"updated":"2016-02-26 11:44:40.000000000","message":"The ``enroll`` hook will also set the ``ipmi_address`` property on the new node, if its available in the introspection data we received.","commit_id":"2b58d6d9e8b326edc96e49de7b152333a04fce3b"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"ed28abae702b9ed2017e3f819d5576194a51fb7a","unresolved":false,"context_lines":[{"line_number":226,"context_line":""},{"line_number":227,"context_line":"After that **ironic-inspector** process introspection data with provided"},{"line_number":228,"context_line":"or defaults plugins :ref:`_plugins`. If additional actions are needed after"},{"line_number":229,"context_line":"all hooks processed, introspection rules could be used, see :ref:`_rules`."},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"A simple rule to match all new nodes and enroll them in Ironic with the"},{"line_number":232,"context_line":"``agent_ipmitool`` driver will looks like::"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9aed3d3a_213b1cd3","line":229,"updated":"2016-02-26 11:44:40.000000000","message":"Once the ``enroll`` hook is finished, **ironic-inspector** will process the introspection data in the same way it would for an identified node. It runs the processing plugins, and after that it runs introspection rules, which would allow for more customisable node configuration.","commit_id":"2b58d6d9e8b326edc96e49de7b152333a04fce3b"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"4df92c004732f4c51d009d387b3a628aec63f5ee","unresolved":false,"context_lines":[{"line_number":258,"context_line":"        {\u0027op\u0027: \u0027is-empty\u0027, \u0027field\u0027: \u0027node://driver_info.deploy_kernel\u0027}"},{"line_number":259,"context_line":"    ]"},{"line_number":260,"context_line":""},{"line_number":261,"context_line":"All new nodes, discovered via ``enroll`` hook, contain ``auto_discovered`` flag"},{"line_number":262,"context_line":"in the introspection data, this flag allows to distinguish enrolled manually"},{"line_number":263,"context_line":"and new auto-discovered nodes in the introspection rules::"},{"line_number":264,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"9aed3d3a_a1828c50","line":261,"updated":"2016-02-26 11:33:30.000000000","message":"nit: the ``enroll`` hook","commit_id":"2b58d6d9e8b326edc96e49de7b152333a04fce3b"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"ed28abae702b9ed2017e3f819d5576194a51fb7a","unresolved":false,"context_lines":[{"line_number":260,"context_line":""},{"line_number":261,"context_line":"All new nodes, discovered via ``enroll`` hook, contain ``auto_discovered`` flag"},{"line_number":262,"context_line":"in the introspection data, this flag allows to distinguish enrolled manually"},{"line_number":263,"context_line":"and new auto-discovered nodes in the introspection rules::"},{"line_number":264,"context_line":""},{"line_number":265,"context_line":"    \"description\": \"Enroll auto-discovered nodes with fake driver\","},{"line_number":266,"context_line":"    \"actions\": ["}],"source_content_type":"text/x-rst","patch_set":5,"id":"9aed3d3a_c187d00d","line":263,"updated":"2016-02-26 11:44:40.000000000","message":"All nodes discovered and enrolled via ``enroll`` hook, will contain an ``auto_discovered`` flag in the introspection data, this flag makes it possible to distinguish between manually enrolled nodes and auto-discovered nodes in the introspection rules::","commit_id":"2b58d6d9e8b326edc96e49de7b152333a04fce3b"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"6e515a587b18db9c13ab5092b451839979d63886","unresolved":false,"context_lines":[{"line_number":236,"context_line":"see :ref:`_rules`."},{"line_number":237,"context_line":""},{"line_number":238,"context_line":"A simple rule to match all new nodes and enroll them in Ironic with the"},{"line_number":239,"context_line":"``agent_ipmitool`` driver will looks like::"},{"line_number":240,"context_line":""},{"line_number":241,"context_line":"    \"description\": \"Set IPMI driver_info if no credentials\","},{"line_number":242,"context_line":"    \"actions\": ["}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aed3d3a_6a33ddab","line":239,"updated":"2016-02-29 12:13:18.000000000","message":"A rule to set a node\u0027s Ironic driver to the ``agent_ipmitool`` driver and populate the required driver_info for that driver would look like::","commit_id":"b54e386c9f05b47110b5e5acc6e8d2a6fd6dad07"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"6e515a587b18db9c13ab5092b451839979d63886","unresolved":false,"context_lines":[{"line_number":259,"context_line":"        {\u0027action\u0027: \u0027set-attribute\u0027, \u0027path\u0027: \u0027driver_info/deploy_ramdisk\u0027,"},{"line_number":260,"context_line":"         \u0027value\u0027: \u0027\u003cglance uuid\u003e\u0027},"},{"line_number":261,"context_line":"    ]"},{"line_number":262,"context_line":""},{"line_number":263,"context_line":"    \"conditions\": ["},{"line_number":264,"context_line":"        {\u0027op\u0027: \u0027is-empty\u0027, \u0027field\u0027: \u0027node://driver_info.deploy_ramdisk\u0027},"},{"line_number":265,"context_line":"        {\u0027op\u0027: \u0027is-empty\u0027, \u0027field\u0027: \u0027node://driver_info.deploy_kernel\u0027}"}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aed3d3a_6adabd4d","line":262,"updated":"2016-02-29 12:13:18.000000000","message":"Nit: Extra Line","commit_id":"b54e386c9f05b47110b5e5acc6e8d2a6fd6dad07"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"6e515a587b18db9c13ab5092b451839979d63886","unresolved":false,"context_lines":[{"line_number":268,"context_line":"All nodes discovered and enrolled via the ``enroll`` hook, will contain an"},{"line_number":269,"context_line":"``auto_discovered`` flag in the introspection data, this flag makes it"},{"line_number":270,"context_line":"possible to distinguish between manually enrolled nodes and auto-discovered"},{"line_number":271,"context_line":"nodes in the introspection rules::"},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"    \"description\": \"Enroll auto-discovered nodes with fake driver\","},{"line_number":274,"context_line":"    \"actions\": ["}],"source_content_type":"text/x-rst","patch_set":6,"id":"9aed3d3a_6ac11d54","line":271,"updated":"2016-02-29 12:13:18.000000000","message":"in the introspection rules using the rule condition eq::","commit_id":"b54e386c9f05b47110b5e5acc6e8d2a6fd6dad07"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c5dbc704711d934893facb603ac895b2a5c4be08","unresolved":false,"context_lines":[{"line_number":266,"context_line":"All nodes discovered and enrolled via the ``enroll`` hook, will contain an"},{"line_number":267,"context_line":"``auto_discovered`` flag in the introspection data, this flag makes it"},{"line_number":268,"context_line":"possible to distinguish between manually enrolled nodes and auto-discovered"},{"line_number":269,"context_line":"nodes in the introspection rules using the rule condition eq::"},{"line_number":270,"context_line":""},{"line_number":271,"context_line":"    \"description\": \"Enroll auto-discovered nodes with fake driver\","},{"line_number":272,"context_line":"    \"actions\": ["}],"source_content_type":"text/x-rst","patch_set":7,"id":"9aed3d3a_4b8b71c3","line":269,"updated":"2016-02-29 15:05:24.000000000","message":"nit: ``eq``","commit_id":"dcd99578fe4454b9d9b024968f66629338903c4c"}],"example.conf":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"603d346aed29809b86e751185193c557c9ca22ba","unresolved":false,"context_lines":[{"line_number":301,"context_line":"#database \u003d"},{"line_number":302,"context_line":""},{"line_number":303,"context_line":""},{"line_number":304,"context_line":"[enroll_hook]"},{"line_number":305,"context_line":""},{"line_number":306,"context_line":"#"},{"line_number":307,"context_line":"# From ironic_inspector.plugins.discovery"}],"source_content_type":"text/plain","patch_set":2,"id":"dae33548_a4194324","line":304,"updated":"2016-02-18 15:28:15.000000000","message":"as you call the Python module \"discovery\", it also makes sense to call section \"discovery\"","commit_id":"e5b63e467a88c924eaba51da66a1cc942bf783ee"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"69a893348461ef160e95ea1f92624a9c89d79109","unresolved":false,"context_lines":[{"line_number":301,"context_line":"#database \u003d"},{"line_number":302,"context_line":""},{"line_number":303,"context_line":""},{"line_number":304,"context_line":"[enroll_hook]"},{"line_number":305,"context_line":""},{"line_number":306,"context_line":"#"},{"line_number":307,"context_line":"# From ironic_inspector.plugins.discovery"}],"source_content_type":"text/plain","patch_set":2,"id":"dae33548_420b077d","line":304,"in_reply_to":"dae33548_a4194324","updated":"2016-02-18 16:21:03.000000000","message":"ok","commit_id":"e5b63e467a88c924eaba51da66a1cc942bf783ee"}],"ironic_inspector/node_cache.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"603d346aed29809b86e751185193c557c9ca22ba","unresolved":false,"context_lines":[{"line_number":579,"context_line":"    :param driver: driver for Ironic node."},{"line_number":580,"context_line":"    :param attributes: dict, node\u0027s attributes create with, allowed keys"},{"line_number":581,"context_line":"                       \u0027chassis_uuid\u0027, \u0027driver\u0027, \u0027driver_info\u0027, \u0027extra\u0027,"},{"line_number":582,"context_line":"                       \u0027uuid\u0027, \u0027properties\u0027;"},{"line_number":583,"context_line":"                        also ironic client inst may be passed under \u0027ironic\u0027."},{"line_number":584,"context_line":"    :return: NodeInfo, or None in case error happened."},{"line_number":585,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"dae33548_0428ef31","line":582,"updated":"2016-02-18 15:28:15.000000000","message":"I don\u0027t think we should list these keys, as they depend on the ironic version","commit_id":"e5b63e467a88c924eaba51da66a1cc942bf783ee"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"69a893348461ef160e95ea1f92624a9c89d79109","unresolved":false,"context_lines":[{"line_number":579,"context_line":"    :param driver: driver for Ironic node."},{"line_number":580,"context_line":"    :param attributes: dict, node\u0027s attributes create with, allowed keys"},{"line_number":581,"context_line":"                       \u0027chassis_uuid\u0027, \u0027driver\u0027, \u0027driver_info\u0027, \u0027extra\u0027,"},{"line_number":582,"context_line":"                       \u0027uuid\u0027, \u0027properties\u0027;"},{"line_number":583,"context_line":"                        also ironic client inst may be passed under \u0027ironic\u0027."},{"line_number":584,"context_line":"    :return: NodeInfo, or None in case error happened."},{"line_number":585,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"dae33548_a2df73d4","line":582,"in_reply_to":"dae33548_0428ef31","updated":"2016-02-18 16:21:03.000000000","message":"I\u0027ll cleanup, it was for me","commit_id":"e5b63e467a88c924eaba51da66a1cc942bf783ee"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"603d346aed29809b86e751185193c557c9ca22ba","unresolved":false,"context_lines":[{"line_number":580,"context_line":"    :param attributes: dict, node\u0027s attributes create with, allowed keys"},{"line_number":581,"context_line":"                       \u0027chassis_uuid\u0027, \u0027driver\u0027, \u0027driver_info\u0027, \u0027extra\u0027,"},{"line_number":582,"context_line":"                       \u0027uuid\u0027, \u0027properties\u0027;"},{"line_number":583,"context_line":"                        also ironic client inst may be passed under \u0027ironic\u0027."},{"line_number":584,"context_line":"    :return: NodeInfo, or None in case error happened."},{"line_number":585,"context_line":"    \"\"\""},{"line_number":586,"context_line":"    ironic \u003d attributes.pop(\u0027ironic\u0027, None)"}],"source_content_type":"text/x-python","patch_set":2,"id":"dae33548_6423bb56","line":583,"updated":"2016-02-18 15:28:15.000000000","message":"please don\u0027t shorten instance","commit_id":"e5b63e467a88c924eaba51da66a1cc942bf783ee"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"69a893348461ef160e95ea1f92624a9c89d79109","unresolved":false,"context_lines":[{"line_number":580,"context_line":"    :param attributes: dict, node\u0027s attributes create with, allowed keys"},{"line_number":581,"context_line":"                       \u0027chassis_uuid\u0027, \u0027driver\u0027, \u0027driver_info\u0027, \u0027extra\u0027,"},{"line_number":582,"context_line":"                       \u0027uuid\u0027, \u0027properties\u0027;"},{"line_number":583,"context_line":"                        also ironic client inst may be passed under \u0027ironic\u0027."},{"line_number":584,"context_line":"    :return: NodeInfo, or None in case error happened."},{"line_number":585,"context_line":"    \"\"\""},{"line_number":586,"context_line":"    ironic \u003d attributes.pop(\u0027ironic\u0027, None)"}],"source_content_type":"text/x-python","patch_set":2,"id":"dae33548_42e787ab","line":583,"in_reply_to":"dae33548_6423bb56","updated":"2016-02-18 16:21:03.000000000","message":"ok","commit_id":"e5b63e467a88c924eaba51da66a1cc942bf783ee"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"603d346aed29809b86e751185193c557c9ca22ba","unresolved":false,"context_lines":[{"line_number":589,"context_line":"    try:"},{"line_number":590,"context_line":"        node \u003d ironic.node.create(driver\u003ddriver, **attributes)"},{"line_number":591,"context_line":"    except exceptions.InvalidAttribute as e:"},{"line_number":592,"context_line":"        LOG.error(_LE(\u0027Failed to create new node\u0027), e)"},{"line_number":593,"context_line":"    else:"},{"line_number":594,"context_line":"        LOG.info(_LI(\u0027Node %s was created successfully\u0027), node.uuid)"},{"line_number":595,"context_line":"        return add_node(node.uuid, ironic\u003dironic)"}],"source_content_type":"text/x-python","patch_set":2,"id":"dae33548_441e770c","line":592,"updated":"2016-02-18 15:28:15.000000000","message":"there is no %s in the error message, nowhere to substitute e","commit_id":"e5b63e467a88c924eaba51da66a1cc942bf783ee"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"69a893348461ef160e95ea1f92624a9c89d79109","unresolved":false,"context_lines":[{"line_number":589,"context_line":"    try:"},{"line_number":590,"context_line":"        node \u003d ironic.node.create(driver\u003ddriver, **attributes)"},{"line_number":591,"context_line":"    except exceptions.InvalidAttribute as e:"},{"line_number":592,"context_line":"        LOG.error(_LE(\u0027Failed to create new node\u0027), e)"},{"line_number":593,"context_line":"    else:"},{"line_number":594,"context_line":"        LOG.info(_LI(\u0027Node %s was created successfully\u0027), node.uuid)"},{"line_number":595,"context_line":"        return add_node(node.uuid, ironic\u003dironic)"}],"source_content_type":"text/x-python","patch_set":2,"id":"dae33548_c2a9d725","line":592,"in_reply_to":"dae33548_441e770c","updated":"2016-02-18 16:21:03.000000000","message":"hmm, yep will fix","commit_id":"e5b63e467a88c924eaba51da66a1cc942bf783ee"},{"author":{"_account_id":7882,"name":"Yuiko Takada Mori","email":"yuiko-mori@nec.com","username":"YuikoTakada"},"change_message_id":"ffaeed9d3fe853d5f89c2a71a98476d260f69689","unresolved":false,"context_lines":[{"line_number":570,"context_line":"    return uuids"},{"line_number":571,"context_line":""},{"line_number":572,"context_line":""},{"line_number":573,"context_line":"def create_node(driver, **attributes):"},{"line_number":574,"context_line":"    \"\"\"Create ironic node and cache it."},{"line_number":575,"context_line":""},{"line_number":576,"context_line":"    * Create new node in ironic."}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_eb6ffa28","line":573,"range":{"start_line":573,"start_character":4,"end_line":573,"end_character":37},"updated":"2016-02-23 01:48:36.000000000","message":"Why don\u0027t you write like below?\n\n create_node(driver, ironic\u003dNone, **attributes)","commit_id":"a3d7c6cfb05f8ea788d2b001add85e094100768c"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"7591afe5765b5a3d1d82a9153bd247fa91a612e3","unresolved":false,"context_lines":[{"line_number":570,"context_line":"    return uuids"},{"line_number":571,"context_line":""},{"line_number":572,"context_line":""},{"line_number":573,"context_line":"def create_node(driver, **attributes):"},{"line_number":574,"context_line":"    \"\"\"Create ironic node and cache it."},{"line_number":575,"context_line":""},{"line_number":576,"context_line":"    * Create new node in ironic."}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_f5005e68","line":573,"range":{"start_line":573,"start_character":4,"end_line":573,"end_character":37},"in_reply_to":"bae84128_eb6ffa28","updated":"2016-02-23 11:56:27.000000000","message":"I was trying to keep existing style","commit_id":"a3d7c6cfb05f8ea788d2b001add85e094100768c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"4df92c004732f4c51d009d387b3a628aec63f5ee","unresolved":false,"context_lines":[{"line_number":570,"context_line":"    return uuids"},{"line_number":571,"context_line":""},{"line_number":572,"context_line":""},{"line_number":573,"context_line":"def create_node(driver, **attributes):"},{"line_number":574,"context_line":"    \"\"\"Create ironic node and cache it."},{"line_number":575,"context_line":""},{"line_number":576,"context_line":"    * Create new node in ironic."}],"source_content_type":"text/x-python","patch_set":5,"id":"9aed3d3a_01941889","line":573,"updated":"2016-02-26 11:33:30.000000000","message":"I think you can do (driver, ironic\u003dNone, **attributes)","commit_id":"2b58d6d9e8b326edc96e49de7b152333a04fce3b"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"ed28abae702b9ed2017e3f819d5576194a51fb7a","unresolved":false,"context_lines":[{"line_number":570,"context_line":"    return uuids"},{"line_number":571,"context_line":""},{"line_number":572,"context_line":""},{"line_number":573,"context_line":"def create_node(driver, **attributes):"},{"line_number":574,"context_line":"    \"\"\"Create ironic node and cache it."},{"line_number":575,"context_line":""},{"line_number":576,"context_line":"    * Create new node in ironic."}],"source_content_type":"text/x-python","patch_set":5,"id":"9aed3d3a_41c2a034","line":573,"in_reply_to":"9aed3d3a_01941889","updated":"2016-02-26 11:44:40.000000000","message":"+1","commit_id":"2b58d6d9e8b326edc96e49de7b152333a04fce3b"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"4df92c004732f4c51d009d387b3a628aec63f5ee","unresolved":false,"context_lines":[{"line_number":579,"context_line":"    :param driver: driver for Ironic node."},{"line_number":580,"context_line":"    :param attributes: dict, node\u0027s attributes create with;"},{"line_number":581,"context_line":"                       also ironic client instance may be passed"},{"line_number":582,"context_line":"                       under \u0027ironic\u0027."},{"line_number":583,"context_line":"    :return: NodeInfo, or None in case error happened."},{"line_number":584,"context_line":"    \"\"\""},{"line_number":585,"context_line":"    ironic \u003d attributes.pop(\u0027ironic\u0027, None)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9aed3d3a_6191a499","line":582,"updated":"2016-02-26 11:33:30.000000000","message":"\"additional keyword arguments to pass to the ironic client on node creation\"","commit_id":"2b58d6d9e8b326edc96e49de7b152333a04fce3b"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"4df92c004732f4c51d009d387b3a628aec63f5ee","unresolved":false,"context_lines":[{"line_number":588,"context_line":"    try:"},{"line_number":589,"context_line":"        node \u003d ironic.node.create(driver\u003ddriver, **attributes)"},{"line_number":590,"context_line":"    except exceptions.InvalidAttribute as e:"},{"line_number":591,"context_line":"        LOG.error(_LE(\u0027Failed to create new node %s\u0027), e)"},{"line_number":592,"context_line":"    else:"},{"line_number":593,"context_line":"        LOG.info(_LI(\u0027Node %s was created successfully\u0027), node.uuid)"},{"line_number":594,"context_line":"        return add_node(node.uuid, ironic\u003dironic)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9aed3d3a_418e2079","line":591,"updated":"2016-02-26 11:33:30.000000000","message":"nit: : before %s","commit_id":"2b58d6d9e8b326edc96e49de7b152333a04fce3b"}],"ironic_inspector/plugins/discovery.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"603d346aed29809b86e751185193c557c9ca22ba","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        # verify existing ports"},{"line_number":58,"context_line":"        for mac in macs:"},{"line_number":59,"context_line":"            port \u003d ironic.port.list(address\u003dmac)"},{"line_number":60,"context_line":"            if port:"},{"line_number":61,"context_line":"                raise utils.Error("},{"line_number":62,"context_line":"                    _(\u0027Port %(mac)s already exists, uuid: %(uuid)s\u0027),"},{"line_number":63,"context_line":"                    {\u0027mac\u0027: mac, \u0027uuid\u0027: port.uuid}, data\u003dintrospection_data)"}],"source_content_type":"text/x-python","patch_set":2,"id":"dae33548_a402e3b1","line":60,"updated":"2016-02-18 15:28:15.000000000","message":"nit: we could reduce indentation by\n\n if not port:\n   continue\n\nalso s/port/ports/","commit_id":"e5b63e467a88c924eaba51da66a1cc942bf783ee"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"603d346aed29809b86e751185193c557c9ca22ba","unresolved":false,"context_lines":[{"line_number":59,"context_line":"            port \u003d ironic.port.list(address\u003dmac)"},{"line_number":60,"context_line":"            if port:"},{"line_number":61,"context_line":"                raise utils.Error("},{"line_number":62,"context_line":"                    _(\u0027Port %(mac)s already exists, uuid: %(uuid)s\u0027),"},{"line_number":63,"context_line":"                    {\u0027mac\u0027: mac, \u0027uuid\u0027: port.uuid}, data\u003dintrospection_data)"},{"line_number":64,"context_line":"    else:"},{"line_number":65,"context_line":"        LOG.warning(_LW(\u0027No suitable interfaces found for discovered node. \u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"dae33548_84fd1fb3","line":62,"updated":"2016-02-18 15:28:15.000000000","message":"you need to use % here, as it\u0027s not logging (I wonder how it works in tests)","commit_id":"e5b63e467a88c924eaba51da66a1cc942bf783ee"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"69a893348461ef160e95ea1f92624a9c89d79109","unresolved":false,"context_lines":[{"line_number":59,"context_line":"            port \u003d ironic.port.list(address\u003dmac)"},{"line_number":60,"context_line":"            if port:"},{"line_number":61,"context_line":"                raise utils.Error("},{"line_number":62,"context_line":"                    _(\u0027Port %(mac)s already exists, uuid: %(uuid)s\u0027),"},{"line_number":63,"context_line":"                    {\u0027mac\u0027: mac, \u0027uuid\u0027: port.uuid}, data\u003dintrospection_data)"},{"line_number":64,"context_line":"    else:"},{"line_number":65,"context_line":"        LOG.warning(_LW(\u0027No suitable interfaces found for discovered node. \u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"dae33548_7dc7ce95","line":62,"in_reply_to":"dae33548_84fd1fb3","updated":"2016-02-18 16:21:03.000000000","message":"урр, yep I\u0027ve changed where it\u0027s not needed, I guess wrong, not filled string passed to exception, and right string to logs, maybe it would be better stop accepting kwargs to catch such errors","commit_id":"e5b63e467a88c924eaba51da66a1cc942bf783ee"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"603d346aed29809b86e751185193c557c9ca22ba","unresolved":false,"context_lines":[{"line_number":73,"context_line":"        #                  impact on performance on big clusters"},{"line_number":74,"context_line":"        nodes \u003d ironic.node.list(detail\u003dTrue, limit\u003d0)"},{"line_number":75,"context_line":"        for node in nodes:"},{"line_number":76,"context_line":"            if ipmi_address \u003d\u003d node.driver_info.get(\u0027ipmi_address\u0027):"},{"line_number":77,"context_line":"                raise utils.Error("},{"line_number":78,"context_line":"                    _(\u0027Node with ipmi address\u003d%(ipmi_address)s already \u0027"},{"line_number":79,"context_line":"                      \u0027exists, uuid: %(uuid)s\u0027),"}],"source_content_type":"text/x-python","patch_set":2,"id":"dae33548_e42eab41","line":76,"updated":"2016-02-18 15:28:15.000000000","message":"please use utils.get_ipmi_address instead to support more drivers","commit_id":"e5b63e467a88c924eaba51da66a1cc942bf783ee"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"603d346aed29809b86e751185193c557c9ca22ba","unresolved":false,"context_lines":[{"line_number":75,"context_line":"        for node in nodes:"},{"line_number":76,"context_line":"            if ipmi_address \u003d\u003d node.driver_info.get(\u0027ipmi_address\u0027):"},{"line_number":77,"context_line":"                raise utils.Error("},{"line_number":78,"context_line":"                    _(\u0027Node with ipmi address\u003d%(ipmi_address)s already \u0027"},{"line_number":79,"context_line":"                      \u0027exists, uuid: %(uuid)s\u0027),"},{"line_number":80,"context_line":"                    {\u0027ipmi_address\u0027: ipmi_address, \u0027uuid\u0027: node.uuid},"},{"line_number":81,"context_line":"                    data\u003dintrospection_data)"}],"source_content_type":"text/x-python","patch_set":2,"id":"dae33548_c431e7a3","line":78,"updated":"2016-02-18 15:28:15.000000000","message":"s/\u003d/ /","commit_id":"e5b63e467a88c924eaba51da66a1cc942bf783ee"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"603d346aed29809b86e751185193c557c9ca22ba","unresolved":false,"context_lines":[{"line_number":91,"context_line":"    node_driver \u003d CONF.enroll_hook.enroll_node_driver"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    _check_existing_nodes(introspection_data, node_driver_info, ironic)"},{"line_number":94,"context_line":"    LOG.debug(\u0027Creating discovered node with driver\u003d%(driver)s and \u0027"},{"line_number":95,"context_line":"              \u0027attributes: %(attr)s\u0027,"},{"line_number":96,"context_line":"              {\u0027driver\u0027: node_driver, \u0027attr\u0027: node_attr},"},{"line_number":97,"context_line":"              data\u003dintrospection_data)"}],"source_content_type":"text/x-python","patch_set":2,"id":"dae33548_2425335b","line":94,"updated":"2016-02-18 15:28:15.000000000","message":"s/\u003d/ /","commit_id":"e5b63e467a88c924eaba51da66a1cc942bf783ee"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"89999db3e83f94cb107e584c669ea640eb7262d2","unresolved":false,"context_lines":[{"line_number":96,"context_line":"    LOG.debug(\u0027Creating discovered node with driver %(driver)s and \u0027"},{"line_number":97,"context_line":"              \u0027attributes: %(attr)s\u0027,"},{"line_number":98,"context_line":"              {\u0027driver\u0027: node_driver, \u0027attr\u0027: node_attr},"},{"line_number":99,"context_line":"              data\u003dintrospection_data)"},{"line_number":100,"context_line":"    return node_cache.create_node(node_driver, ironic\u003dironic, **node_attr)"}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_a0836403","line":99,"updated":"2016-02-22 16:10:37.000000000","message":"at this point lets add a flag to the introspection data:\n\n introspection_data[\u0027newly_discovered\u0027] \u003d True\n\n(may be a better name). This flag will help to distinguish between existing and discovered nodes later in the introspection rules.","commit_id":"a3d7c6cfb05f8ea788d2b001add85e094100768c"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"7591afe5765b5a3d1d82a9153bd247fa91a612e3","unresolved":false,"context_lines":[{"line_number":96,"context_line":"    LOG.debug(\u0027Creating discovered node with driver %(driver)s and \u0027"},{"line_number":97,"context_line":"              \u0027attributes: %(attr)s\u0027,"},{"line_number":98,"context_line":"              {\u0027driver\u0027: node_driver, \u0027attr\u0027: node_attr},"},{"line_number":99,"context_line":"              data\u003dintrospection_data)"},{"line_number":100,"context_line":"    return node_cache.create_node(node_driver, ironic\u003dironic, **node_attr)"}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_d5ea7a0e","line":99,"in_reply_to":"bae84128_2102a1b4","updated":"2016-02-23 11:56:27.000000000","message":"In that case we need to change all process flow, because it will fail on first attempt to get info from Ironic(get node info - before processing, while plugin processing)","commit_id":"a3d7c6cfb05f8ea788d2b001add85e094100768c"},{"author":{"_account_id":7882,"name":"Yuiko Takada Mori","email":"yuiko-mori@nec.com","username":"YuikoTakada"},"change_message_id":"ffaeed9d3fe853d5f89c2a71a98476d260f69689","unresolved":false,"context_lines":[{"line_number":96,"context_line":"    LOG.debug(\u0027Creating discovered node with driver %(driver)s and \u0027"},{"line_number":97,"context_line":"              \u0027attributes: %(attr)s\u0027,"},{"line_number":98,"context_line":"              {\u0027driver\u0027: node_driver, \u0027attr\u0027: node_attr},"},{"line_number":99,"context_line":"              data\u003dintrospection_data)"},{"line_number":100,"context_line":"    return node_cache.create_node(node_driver, ironic\u003dironic, **node_attr)"}],"source_content_type":"text/x-python","patch_set":3,"id":"bae84128_2102a1b4","line":99,"in_reply_to":"bae84128_a0836403","updated":"2016-02-23 01:48:36.000000000","message":"By using this flag, we don\u0027t need to create node now, we will be able to create node later when applying rules, how do you think?","commit_id":"a3d7c6cfb05f8ea788d2b001add85e094100768c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"4df92c004732f4c51d009d387b3a628aec63f5ee","unresolved":false,"context_lines":[{"line_number":25,"context_line":"               default\u003d\u0027fake\u0027,"},{"line_number":26,"context_line":"               help\u003d\u0027The name of the Ironic driver, discovered node created \u0027"},{"line_number":27,"context_line":"                    \u0027with in enroll_node_not_found_hook. Driver could be \u0027"},{"line_number":28,"context_line":"                    \u0027redefined via introspection rules.\u0027),"},{"line_number":29,"context_line":"]"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9aed3d3a_81878860","line":28,"updated":"2016-02-26 11:33:30.000000000","message":"\"The name of the Ironic driver to use with newly discovered nodes.\"","commit_id":"2b58d6d9e8b326edc96e49de7b152333a04fce3b"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"4df92c004732f4c51d009d387b3a628aec63f5ee","unresolved":false,"context_lines":[{"line_number":64,"context_line":"                {\u0027mac\u0027: mac, \u0027uuid\u0027: ports.uuid}, data\u003dintrospection_data)"},{"line_number":65,"context_line":"    else:"},{"line_number":66,"context_line":"        LOG.warning(_LW(\u0027No suitable interfaces found for discovered node. \u0027"},{"line_number":67,"context_line":"                        \u0027Check validate_interfaces hook is listed in \u0027"},{"line_number":68,"context_line":"                        \u0027[processing]default_processing_hooks config option\u0027))"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    # verify existing node with discovered ipmi address"}],"source_content_type":"text/x-python","patch_set":5,"id":"9aed3d3a_e17c9474","line":67,"updated":"2016-02-26 11:33:30.000000000","message":"nit: \"Check that\"","commit_id":"2b58d6d9e8b326edc96e49de7b152333a04fce3b"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"4df92c004732f4c51d009d387b3a628aec63f5ee","unresolved":false,"context_lines":[{"line_number":72,"context_line":"    if ipmi_address:"},{"line_number":73,"context_line":"        # FIXME(aarefiev): it\u0027s not effective to fetch all nodes, and may"},{"line_number":74,"context_line":"        #                  impact on performance on big clusters"},{"line_number":75,"context_line":"        nodes \u003d ironic.node.list(detail\u003dTrue, limit\u003d0)"},{"line_number":76,"context_line":"        for node in nodes:"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"            if ipmi_address \u003d\u003d utils.get_ipmi_address(node):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9aed3d3a_c181904c","line":75,"updated":"2016-02-26 11:33:30.000000000","message":"as we use API 1.11, we can request as subset of fields we need via \"fields\" argument: http://docs.openstack.org/developer/python-ironicclient/api/ironicclient.v1.node.html#ironicclient.v1.node.NodeManager.list\n\nwe only need \"driver_info\" and \"uuid\", I guess","commit_id":"2b58d6d9e8b326edc96e49de7b152333a04fce3b"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"4df92c004732f4c51d009d387b3a628aec63f5ee","unresolved":false,"context_lines":[{"line_number":78,"context_line":"            if ipmi_address \u003d\u003d utils.get_ipmi_address(node):"},{"line_number":79,"context_line":"                raise utils.Error("},{"line_number":80,"context_line":"                    _(\u0027Node with ipmi address %(ipmi_address)s already \u0027"},{"line_number":81,"context_line":"                      \u0027exists, uuid: %(uuid)s\u0027) %"},{"line_number":82,"context_line":"                    {\u0027ipmi_address\u0027: ipmi_address, \u0027uuid\u0027: node.uuid},"},{"line_number":83,"context_line":"                    data\u003dintrospection_data)"},{"line_number":84,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9aed3d3a_21979c91","line":81,"updated":"2016-02-26 11:33:30.000000000","message":"maybe add some more context:\n\n \u0027Node %(uuid)s already has BMC address %(ipmi_address)s, not enrolling\"\n\nor something like that","commit_id":"2b58d6d9e8b326edc96e49de7b152333a04fce3b"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"6e515a587b18db9c13ab5092b451839979d63886","unresolved":false,"context_lines":[{"line_number":25,"context_line":"               default\u003d\u0027fake\u0027,"},{"line_number":26,"context_line":"               help\u003d\u0027The name of the Ironic driver to use with newly \u0027"},{"line_number":27,"context_line":"                    \u0027discovered nodes. Driver could be redefined via \u0027"},{"line_number":28,"context_line":"                    \u0027introspection rules.\u0027),"},{"line_number":29,"context_line":"]"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"9aed3d3a_55f5da54","line":28,"updated":"2016-02-29 12:13:18.000000000","message":"The name of the Ironic driver used by the enroll hook when creating a new node in Ironic.","commit_id":"b54e386c9f05b47110b5e5acc6e8d2a6fd6dad07"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"4e102760ab3b7b0197025b9493bcb264f90d0b72","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        #                  impact on performance on big clusters"},{"line_number":75,"context_line":"        nodes \u003d ironic.node.list(fields\u003d(\u0027uuid\u0027, \u0027driver_info\u0027), limit\u003d0)"},{"line_number":76,"context_line":"        for node in nodes:"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"            if ipmi_address \u003d\u003d utils.get_ipmi_address(node):"},{"line_number":79,"context_line":"                raise utils.Error("},{"line_number":80,"context_line":"                    _(\u0027Node %(uuid)s already has BMC address \u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"9aed3d3a_848a9a19","line":77,"updated":"2016-02-29 10:56:58.000000000","message":"nit: redundant empty line","commit_id":"b54e386c9f05b47110b5e5acc6e8d2a6fd6dad07"}],"ironic_inspector/utils.py":[{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"ed28abae702b9ed2017e3f819d5576194a51fb7a","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"GREEN_POOL \u003d None"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"# 1.11 is API version, which support \u0027enroll\u0027 state"},{"line_number":38,"context_line":"DEFAULT_IRONIC_API_VERSION \u003d \u00271.11\u0027"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9aed3d3a_c15fd070","line":37,"updated":"2016-02-26 11:44:40.000000000","message":"We need at least v1.11 to support \u0027enroll\u0027 state","commit_id":"2b58d6d9e8b326edc96e49de7b152333a04fce3b"}],"releasenotes/notes/enroll-hook-d8c32eba70848210.yaml":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"603d346aed29809b86e751185193c557c9ca22ba","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"upgrade:"},{"line_number":3,"context_line":"  - Switch required Ironic API version to \u00271.11\u0027,  which supports \u0027enroll\u0027 state."},{"line_number":4,"context_line":"features:"},{"line_number":5,"context_line":"  - Add new node_not_found hook - enroll_node_not_found_hook, which allows automatically"},{"line_number":6,"context_line":"    discover Ironic\u0027s node."}],"source_content_type":"text/x-yaml","patch_set":2,"id":"dae33548_64fc5bb8","line":3,"updated":"2016-02-18 15:28:15.000000000","message":"nit: redundant space after ,","commit_id":"e5b63e467a88c924eaba51da66a1cc942bf783ee"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"603d346aed29809b86e751185193c557c9ca22ba","unresolved":false,"context_lines":[{"line_number":2,"context_line":"upgrade:"},{"line_number":3,"context_line":"  - Switch required Ironic API version to \u00271.11\u0027,  which supports \u0027enroll\u0027 state."},{"line_number":4,"context_line":"features:"},{"line_number":5,"context_line":"  - Add new node_not_found hook - enroll_node_not_found_hook, which allows automatically"},{"line_number":6,"context_line":"    discover Ironic\u0027s node."}],"source_content_type":"text/x-yaml","patch_set":2,"id":"dae33548_44f797d2","line":5,"updated":"2016-02-18 15:28:15.000000000","message":"nit: \"a new\"\n\nalso the hook is called just \"enroll\"","commit_id":"e5b63e467a88c924eaba51da66a1cc942bf783ee"}]}
