)]}'
{"ironic/drivers/modules/agent.py":[{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"6e692c93d9fa9b103231b1ff5c5d5230284d3ffa","unresolved":false,"context_lines":[{"line_number":426,"context_line":"            # options get added for the provisioning port."},{"line_number":427,"context_line":"            manager_utils.node_power_action(task, states.POWER_OFF)"},{"line_number":428,"context_line":"            task.driver.network.add_provisioning_network(task)"},{"line_number":429,"context_line":"        if node.provision_state \u003d\u003d states.ACTIVE:"},{"line_number":430,"context_line":"            task.driver.boot.prepare_instance(task)"},{"line_number":431,"context_line":"        elif node.provision_state !\u003d states.ADOPTING:"},{"line_number":432,"context_line":"            node.instance_info \u003d deploy_utils.build_instance_info_for_deploy("}],"source_content_type":"text/x-python","patch_set":3,"id":"3a71b18c_2a4912d1","line":429,"range":{"start_line":429,"start_character":8,"end_line":429,"end_character":10},"updated":"2016-12-08 13:38:20.000000000","message":"nit: this should likely be an elif.","commit_id":"4258311bb2d0f37db868e9194e7094ca31c37995"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"b74d9c7e2ac559db610596290f463a9223a8c4f2","unresolved":false,"context_lines":[{"line_number":426,"context_line":"            # options get added for the provisioning port."},{"line_number":427,"context_line":"            manager_utils.node_power_action(task, states.POWER_OFF)"},{"line_number":428,"context_line":"            task.driver.network.add_provisioning_network(task)"},{"line_number":429,"context_line":"        if node.provision_state \u003d\u003d states.ACTIVE:"},{"line_number":430,"context_line":"            task.driver.boot.prepare_instance(task)"},{"line_number":431,"context_line":"        elif node.provision_state !\u003d states.ADOPTING:"},{"line_number":432,"context_line":"            node.instance_info \u003d deploy_utils.build_instance_info_for_deploy("}],"source_content_type":"text/x-python","patch_set":3,"id":"3a71b18c_3b46c2bf","line":429,"range":{"start_line":429,"start_character":8,"end_line":429,"end_character":10},"in_reply_to":"3a71b18c_2a4912d1","updated":"2016-12-08 14:33:38.000000000","message":"not really, as the bottom of this method (prepare_ramdisk and such) still has to be executed when node has not yet actually started to deploy. In case it has started and conductor dies right in the middle of executing the agent commands (so not in wait-callback status) the node will be redeployed anyway (POWER_OFF above).","commit_id":"4258311bb2d0f37db868e9194e7094ca31c37995"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"6e692c93d9fa9b103231b1ff5c5d5230284d3ffa","unresolved":false,"context_lines":[{"line_number":427,"context_line":"            manager_utils.node_power_action(task, states.POWER_OFF)"},{"line_number":428,"context_line":"            task.driver.network.add_provisioning_network(task)"},{"line_number":429,"context_line":"        if node.provision_state \u003d\u003d states.ACTIVE:"},{"line_number":430,"context_line":"            task.driver.boot.prepare_instance(task)"},{"line_number":431,"context_line":"        elif node.provision_state !\u003d states.ADOPTING:"},{"line_number":432,"context_line":"            node.instance_info \u003d deploy_utils.build_instance_info_for_deploy("},{"line_number":433,"context_line":"                task)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a71b18c_aad0c2ca","line":430,"range":{"start_line":430,"start_character":12,"end_line":430,"end_character":45},"updated":"2016-12-08 13:38:20.000000000","message":"Why do I have this feeling this is adding net booting support to the agent deploy driver. :)","commit_id":"4258311bb2d0f37db868e9194e7094ca31c37995"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"b74d9c7e2ac559db610596290f463a9223a8c4f2","unresolved":false,"context_lines":[{"line_number":427,"context_line":"            manager_utils.node_power_action(task, states.POWER_OFF)"},{"line_number":428,"context_line":"            task.driver.network.add_provisioning_network(task)"},{"line_number":429,"context_line":"        if node.provision_state \u003d\u003d states.ACTIVE:"},{"line_number":430,"context_line":"            task.driver.boot.prepare_instance(task)"},{"line_number":431,"context_line":"        elif node.provision_state !\u003d states.ADOPTING:"},{"line_number":432,"context_line":"            node.instance_info \u003d deploy_utils.build_instance_info_for_deploy("},{"line_number":433,"context_line":"                task)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a71b18c_dbf86ec7","line":430,"range":{"start_line":430,"start_character":12,"end_line":430,"end_character":45},"in_reply_to":"3a71b18c_aad0c2ca","updated":"2016-12-08 14:33:38.000000000","message":"AFAIK the support is already there - at least on DevStack I can perfectly fine deploy a node with agent_ipmitool driver and default cirrosXX.uec image that also has kernel and ramdisk, and I see the VM booting via PXE to those cached and prepared user kernel/ramdisk","commit_id":"4258311bb2d0f37db868e9194e7094ca31c37995"}],"ironic/drivers/modules/pxe.py":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"d1df526d948fd5a9fe0e08c589f42e99765ab4aa","unresolved":false,"context_lines":[{"line_number":134,"context_line":"    node \u003d task.node"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    if CONF.pxe.ipxe_enabled:"},{"line_number":137,"context_line":"        for label, option in ((\u0027deploy_kernel\u0027, \u0027deployment_aki_path\u0027),"},{"line_number":138,"context_line":"                              (\u0027deploy_ramdisk\u0027, \u0027deployment_ari_path\u0027)):"},{"line_number":139,"context_line":"            image_href \u003d pxe_info[label][0]"},{"line_number":140,"context_line":"            if (CONF.pxe.ipxe_use_swift and"},{"line_number":141,"context_line":"                service_utils.is_glance_image(image_href)):"}],"source_content_type":"text/x-python","patch_set":5,"id":"da4df55a_bb79ee31","line":138,"range":{"start_line":137,"start_character":8,"end_line":138,"end_character":72},"updated":"2016-12-22 17:07:24.000000000","message":"I think this should be at the top level, with if CONF.pxe.ipxe enabled inside the loop, as the label,option are the same for both cases.","commit_id":"5070c27d4cfe5dac0c1ba37e58551e6cf8d892eb"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"d1df526d948fd5a9fe0e08c589f42e99765ab4aa","unresolved":false,"context_lines":[{"line_number":164,"context_line":"        # of user image when boot_option is not local,"},{"line_number":165,"context_line":"        # as this breaks instance reboot later when temp urls have timed out."},{"line_number":166,"context_line":"        if \u0027kernel\u0027 in pxe_info:"},{"line_number":167,"context_line":"            pxe_opts[\u0027aki_path\u0027] \u003d \u0027/\u0027.join("},{"line_number":168,"context_line":"                [CONF.deploy.http_url, node.uuid, \u0027kernel\u0027])"},{"line_number":169,"context_line":"        if \u0027ramdisk\u0027 in pxe_info:"},{"line_number":170,"context_line":"            pxe_opts[\u0027ari_path\u0027] \u003d \u0027/\u0027.join("},{"line_number":171,"context_line":"                [CONF.deploy.http_url, node.uuid, \u0027ramdisk\u0027])"}],"source_content_type":"text/x-python","patch_set":5,"id":"da4df55a_bbd80ef1","line":168,"range":{"start_line":167,"start_character":12,"end_line":168,"end_character":60},"updated":"2016-12-22 17:07:24.000000000","message":"These things can be rewritten too, with a loop similar to _build_deploy_pxe_options, and inside it the following:\n\n if label in pxe_info:\n   pxe_opts[option] \u003d \u0027/\u0027.join([CONF.deploy.http_url, node.uuid, label]) if CONF.pxe.ipxe_enabled else pxe_utils.get_path_relative_to_tftp_root(pxe_info[label][1])","commit_id":"5070c27d4cfe5dac0c1ba37e58551e6cf8d892eb"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"d1df526d948fd5a9fe0e08c589f42e99765ab4aa","unresolved":false,"context_lines":[{"line_number":212,"context_line":""},{"line_number":213,"context_line":"    :param task: A TaskManager object"},{"line_number":214,"context_line":"    :param pxe_info: a dict of values to set on the configuration file"},{"line_number":215,"context_line":"    :param service: True if building service pxe config for netbooted"},{"line_number":216,"context_line":"        user instance, False if building config for other actions"},{"line_number":217,"context_line":"    :returns: A dictionary of pxe options to be used in the pxe bootfile"},{"line_number":218,"context_line":"        template."},{"line_number":219,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":5,"id":"da4df55a_5b8e4179","line":216,"range":{"start_line":215,"start_character":19,"end_line":216,"end_character":65},"updated":"2016-12-22 17:07:24.000000000","message":"Could you make it a bit more clear? From what I see in code, service\u003dTrue just skips adding deployment images to pxe_options.","commit_id":"5070c27d4cfe5dac0c1ba37e58551e6cf8d892eb"}]}
