)]}'
{"ironic/drivers/modules/agent.py":[{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"35946bac6981dd67c0af3b93d46088938a3327cb","unresolved":false,"context_lines":[{"line_number":336,"context_line":"            value."},{"line_number":337,"context_line":"        \"\"\""},{"line_number":338,"context_line":"        if CONF.agent.manage_agent_boot:"},{"line_number":339,"context_line":"            task.driver.boot.validate(task)"},{"line_number":340,"context_line":""},{"line_number":341,"context_line":"        node \u003d task.node"},{"line_number":342,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9ff52f3f_93afb593","line":339,"updated":"2017-04-13 15:19:24.000000000","message":"PXEBoot.validate also requires image_source[1]. We need to skip this validation.\n\n[1] https://github.com/openstack/ironic/blob/2be449f03a3eb43e12cb47a96c5f484c701388bf/ironic/drivers/modules/pxe.py#L358","commit_id":"6a5341184a48ee938a87bd5e6c782c4608d50f49"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"2b54b574091fc883b20e2c51690c4fa99f64fdbb","unresolved":false,"context_lines":[{"line_number":336,"context_line":"            value."},{"line_number":337,"context_line":"        \"\"\""},{"line_number":338,"context_line":"        if CONF.agent.manage_agent_boot:"},{"line_number":339,"context_line":"            task.driver.boot.validate(task)"},{"line_number":340,"context_line":""},{"line_number":341,"context_line":"        node \u003d task.node"},{"line_number":342,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"ff0f0b1f_2e55f4c6","line":339,"in_reply_to":"9ff52f3f_93afb593","updated":"2017-05-19 11:51:22.000000000","message":"Done","commit_id":"6a5341184a48ee938a87bd5e6c782c4608d50f49"},{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"6082b88edf44da92e7f0792036bc6978ee381070","unresolved":false,"context_lines":[{"line_number":398,"context_line":"            task.driver.network.configure_tenant_networks(task)"},{"line_number":399,"context_line":"            manager_utils.node_power_action(task, states.POWER_ON)"},{"line_number":400,"context_line":"            task.process_event(\u0027done\u0027)"},{"line_number":401,"context_line":"            LOG.info(_LI(\u0027Deployment to node %s done\u0027), task.node.uuid)"},{"line_number":402,"context_line":"            return states.DEPLOYDONE"},{"line_number":403,"context_line":""},{"line_number":404,"context_line":"    @METRICS.timer(\u0027AgentDeploy.tear_down\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff0f0b1f_5f1c0e77","line":401,"range":{"start_line":401,"start_character":21,"end_line":401,"end_character":24},"updated":"2017-05-23 00:07:52.000000000","message":"nit: Should remove translation calls for logging.","commit_id":"6a5341184a48ee938a87bd5e6c782c4608d50f49"},{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"35946bac6981dd67c0af3b93d46088938a3327cb","unresolved":false,"context_lines":[{"line_number":454,"context_line":"        if node.provision_state \u003d\u003d states.ACTIVE:"},{"line_number":455,"context_line":"            task.driver.boot.prepare_instance(task)"},{"line_number":456,"context_line":"        elif node.provision_state !\u003d states.ADOPTING:"},{"line_number":457,"context_line":"            node.instance_info \u003d deploy_utils.build_instance_info_for_deploy("},{"line_number":458,"context_line":"                task)"},{"line_number":459,"context_line":"            node.save()"},{"line_number":460,"context_line":"            if CONF.agent.manage_agent_boot:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9ff52f3f_3d2e78a5","line":457,"updated":"2017-04-13 15:19:24.000000000","message":"We need to skip this method, which builds instance_info for an image.","commit_id":"6a5341184a48ee938a87bd5e6c782c4608d50f49"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"2b54b574091fc883b20e2c51690c4fa99f64fdbb","unresolved":false,"context_lines":[{"line_number":454,"context_line":"        if node.provision_state \u003d\u003d states.ACTIVE:"},{"line_number":455,"context_line":"            task.driver.boot.prepare_instance(task)"},{"line_number":456,"context_line":"        elif node.provision_state !\u003d states.ADOPTING:"},{"line_number":457,"context_line":"            node.instance_info \u003d deploy_utils.build_instance_info_for_deploy("},{"line_number":458,"context_line":"                task)"},{"line_number":459,"context_line":"            node.save()"},{"line_number":460,"context_line":"            if CONF.agent.manage_agent_boot:"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff0f0b1f_4ee26803","line":457,"in_reply_to":"9ff52f3f_3d2e78a5","updated":"2017-05-19 11:51:22.000000000","message":"I think we can just skip the rest of this at the prior conditional... I think. I\u0027m at least exploring that direction at this time.","commit_id":"6a5341184a48ee938a87bd5e6c782c4608d50f49"},{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"35946bac6981dd67c0af3b93d46088938a3327cb","unresolved":false,"context_lines":[{"line_number":459,"context_line":"            node.save()"},{"line_number":460,"context_line":"            if CONF.agent.manage_agent_boot:"},{"line_number":461,"context_line":"                deploy_opts \u003d deploy_utils.build_agent_options(node)"},{"line_number":462,"context_line":"                task.driver.boot.prepare_ramdisk(task, deploy_opts)"},{"line_number":463,"context_line":""},{"line_number":464,"context_line":"    @METRICS.timer(\u0027AgentDeploy.clean_up\u0027)"},{"line_number":465,"context_line":"    @task_manager.require_exclusive_lock"}],"source_content_type":"text/x-python","patch_set":1,"id":"9ff52f3f_9039eb42","line":462,"updated":"2017-04-13 15:19:24.000000000","message":"We don\u0027t need to prepare ramdisk, but need to configure iPXE boot. Though the iPXE configuration is done in this method. it would be better to skip ramdisk related process or to call a new method configuring only iPXE for iSCSI boot.","commit_id":"6a5341184a48ee938a87bd5e6c782c4608d50f49"},{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"391dfc6669d1f60d51624516cc3c0354800defc8","unresolved":false,"context_lines":[{"line_number":391,"context_line":"            manager_utils.node_power_action(task, states.POWER_OFF)"},{"line_number":392,"context_line":"            task.driver.network.remove_provisioning_network(task)"},{"line_number":393,"context_line":"            task.driver.network.configure_tenant_networks(task)"},{"line_number":394,"context_line":"            manager_utils.node_power_action(task, states.POWER_ON)"},{"line_number":395,"context_line":"            task.process_event(\u0027done\u0027)"},{"line_number":396,"context_line":"            LOG.info(\u0027Deployment to node %s done\u0027, task.node.uuid)"},{"line_number":397,"context_line":"            return states.DEPLOYDONE"}],"source_content_type":"text/x-python","patch_set":3,"id":"df140735_6b9f3b5f","line":394,"updated":"2017-06-01 09:56:52.000000000","message":"We need to setup iPXE for iSCSI boot before turning on a node.","commit_id":"bf7cf0854dbf2899443c31f1b5a317968e9d437f"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"189a2458510583bd3c5367c06ea0a0d9198fa264","unresolved":false,"context_lines":[{"line_number":391,"context_line":"            manager_utils.node_power_action(task, states.POWER_OFF)"},{"line_number":392,"context_line":"            task.driver.network.remove_provisioning_network(task)"},{"line_number":393,"context_line":"            task.driver.network.configure_tenant_networks(task)"},{"line_number":394,"context_line":"            manager_utils.node_power_action(task, states.POWER_ON)"},{"line_number":395,"context_line":"            task.process_event(\u0027done\u0027)"},{"line_number":396,"context_line":"            LOG.info(\u0027Deployment to node %s done\u0027, task.node.uuid)"},{"line_number":397,"context_line":"            return states.DEPLOYDONE"}],"source_content_type":"text/x-python","patch_set":3,"id":"bf091321_20ac158b","line":394,"in_reply_to":"df140735_6b9f3b5f","updated":"2017-06-08 12:49:41.000000000","message":"The power action, in this case, is not what is triggering attachment, they would already be attached actually.  It would be the call to task.driver.deploy.prepare() from the conductor that calls task.driver.boot.prepare_instance(), which according to the wire-in patch, should do both.","commit_id":"bf7cf0854dbf2899443c31f1b5a317968e9d437f"},{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"837098e586feaa3e3f68ed3ede33856d618b1152","unresolved":false,"context_lines":[{"line_number":392,"context_line":"            task.driver.network.remove_provisioning_network(task)"},{"line_number":393,"context_line":"            task.driver.network.configure_tenant_networks(task)"},{"line_number":394,"context_line":"            manager_utils.node_power_action(task, states.POWER_ON)"},{"line_number":395,"context_line":"            task.process_event(\u0027done\u0027)"},{"line_number":396,"context_line":"            LOG.info(\u0027Deployment to node %s done\u0027, task.node.uuid)"},{"line_number":397,"context_line":"            return states.DEPLOYDONE"},{"line_number":398,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"df140735_2d5f0e0f","line":395,"updated":"2017-06-01 15:22:30.000000000","message":"This line is unnecessary. This transition is called by conductor after DEPLOYDONE is returned[1].\n\n[1] https://github.com/openstack/ironic/blob/b53fa02740df36addf23329028176ec44e07b1ab/ironic/conductor/manager.py#L2783","commit_id":"bf7cf0854dbf2899443c31f1b5a317968e9d437f"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"189a2458510583bd3c5367c06ea0a0d9198fa264","unresolved":false,"context_lines":[{"line_number":392,"context_line":"            task.driver.network.remove_provisioning_network(task)"},{"line_number":393,"context_line":"            task.driver.network.configure_tenant_networks(task)"},{"line_number":394,"context_line":"            manager_utils.node_power_action(task, states.POWER_ON)"},{"line_number":395,"context_line":"            task.process_event(\u0027done\u0027)"},{"line_number":396,"context_line":"            LOG.info(\u0027Deployment to node %s done\u0027, task.node.uuid)"},{"line_number":397,"context_line":"            return states.DEPLOYDONE"},{"line_number":398,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"bf091321_e0b73dd8","line":395,"in_reply_to":"df140735_2d5f0e0f","updated":"2017-06-08 12:49:41.000000000","message":"Agreed, will remove.","commit_id":"bf7cf0854dbf2899443c31f1b5a317968e9d437f"},{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"cc5c3e5981fbfaa6132614872bc7bcbd7df6ffdd","unresolved":false,"context_lines":[{"line_number":444,"context_line":"                # NOTE(vdrok): in case of rebuild, we have tenant network"},{"line_number":445,"context_line":"                # already configured, unbind tenant ports if present"},{"line_number":446,"context_line":"                task.driver.network.unconfigure_tenant_networks(task)"},{"line_number":447,"context_line":"                task.driver.network.add_provisioning_network(task)"},{"line_number":448,"context_line":"            # Signal to storage driver to attach volumes"},{"line_number":449,"context_line":"            task.driver.storage.attach_volumes(task)"},{"line_number":450,"context_line":"        if node.provision_state \u003d\u003d states.ACTIVE:"}],"source_content_type":"text/x-python","patch_set":3,"id":"df140735_37e08196","line":447,"range":{"start_line":447,"start_character":16,"end_line":447,"end_character":66},"updated":"2017-06-01 14:59:37.000000000","message":"Flat network interface binds VIFs in this method. It might be necessary to call it even if an image is not written.","commit_id":"bf7cf0854dbf2899443c31f1b5a317968e9d437f"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"189a2458510583bd3c5367c06ea0a0d9198fa264","unresolved":false,"context_lines":[{"line_number":444,"context_line":"                # NOTE(vdrok): in case of rebuild, we have tenant network"},{"line_number":445,"context_line":"                # already configured, unbind tenant ports if present"},{"line_number":446,"context_line":"                task.driver.network.unconfigure_tenant_networks(task)"},{"line_number":447,"context_line":"                task.driver.network.add_provisioning_network(task)"},{"line_number":448,"context_line":"            # Signal to storage driver to attach volumes"},{"line_number":449,"context_line":"            task.driver.storage.attach_volumes(task)"},{"line_number":450,"context_line":"        if node.provision_state \u003d\u003d states.ACTIVE:"}],"source_content_type":"text/x-python","patch_set":3,"id":"bf091321_00c23134","line":447,"range":{"start_line":447,"start_character":16,"end_line":447,"end_character":66},"in_reply_to":"df140735_37e08196","updated":"2017-06-08 12:49:41.000000000","message":"I don\u0027t understand your thinking here, could you elaborate on your thought as to why?","commit_id":"bf7cf0854dbf2899443c31f1b5a317968e9d437f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"82fa689bd02af9b9fcbfda0e8c91604d7d7105bd","unresolved":false,"context_lines":[{"line_number":344,"context_line":"        image_source \u003d node.instance_info.get(\u0027image_source\u0027)"},{"line_number":345,"context_line":"        params[\u0027instance_info.image_source\u0027] \u003d image_source"},{"line_number":346,"context_line":"        error_msg \u003d _(\u0027Node %s failed to validate deploy image info. \u0027"},{"line_number":347,"context_line":"                      \u0027Some parameters were missing\u0027) % node.uuid"},{"line_number":348,"context_line":""},{"line_number":349,"context_line":"        deploy_utils.check_for_missing_params(params, error_msg)"},{"line_number":350,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"9f0e0f27_c6aa2c18","line":347,"updated":"2017-06-09 10:19:41.000000000","message":"nit: unrelated change","commit_id":"4433e5c1813b673ee977ec74d5bdf8ded3127e69"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"f3fc29f655a041c419811c23aa37d78bfa79f6e5","unresolved":false,"context_lines":[{"line_number":337,"context_line":"            # in a boot from volume case. As such, return to the caller."},{"line_number":338,"context_line":"            return"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"        # Validate node capabilities"},{"line_number":341,"context_line":"        deploy_utils.validate_capabilities(node)"},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"        params \u003d {}"},{"line_number":344,"context_line":"        image_source \u003d node.instance_info.get(\u0027image_source\u0027)"}],"source_content_type":"text/x-python","patch_set":10,"id":"9f0e0f27_747d416d","line":341,"range":{"start_line":340,"start_character":8,"end_line":341,"end_character":48},"updated":"2017-06-09 16:15:04.000000000","message":"I think this check should be moved above @ L333 as some of the capabilities like \u0027iscsi_boot\u0027 are applicable to BFV as well.\nAlso should there be a explicit check to ensure \u0027boot_mode\u0027 being requested is \u0027bios\u0027 only? As ipxe base iscsi boot is supported in bios boot mode only.","commit_id":"bac210ed36a112a766a30ab4f1857e6d5c44d19d"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"8597af431d2783bcc58eac83cfcbc79240ce7271","unresolved":false,"context_lines":[{"line_number":337,"context_line":"            # in a boot from volume case. As such, return to the caller."},{"line_number":338,"context_line":"            return"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"        # Validate node capabilities"},{"line_number":341,"context_line":"        deploy_utils.validate_capabilities(node)"},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"        params \u003d {}"},{"line_number":344,"context_line":"        image_source \u003d node.instance_info.get(\u0027image_source\u0027)"}],"source_content_type":"text/x-python","patch_set":10,"id":"7f231b9d_f3bfd9f8","line":341,"range":{"start_line":340,"start_character":8,"end_line":341,"end_character":48},"in_reply_to":"7f231b9d_9a82264f","updated":"2017-06-13 13:16:28.000000000","message":"Done","commit_id":"bac210ed36a112a766a30ab4f1857e6d5c44d19d"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"8dc6c85b2fc39058f978262842c5346d2404cd5c","unresolved":false,"context_lines":[{"line_number":337,"context_line":"            # in a boot from volume case. As such, return to the caller."},{"line_number":338,"context_line":"            return"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"        # Validate node capabilities"},{"line_number":341,"context_line":"        deploy_utils.validate_capabilities(node)"},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"        params \u003d {}"},{"line_number":344,"context_line":"        image_source \u003d node.instance_info.get(\u0027image_source\u0027)"}],"source_content_type":"text/x-python","patch_set":10,"id":"7f231b9d_9a82264f","line":341,"range":{"start_line":340,"start_character":8,"end_line":341,"end_character":48},"in_reply_to":"9f0e0f27_747d416d","updated":"2017-06-12 12:27:43.000000000","message":"I\u0027ll need to dig into the code again to validate moving above L333, but it would make sense I think.\n\nAlso bios mode, I don\u0027t think boot mode explicitly matters right here, especially in the case of hardware HBAs and that this is the agent validate interface, since they will be mapped and should just have the required boot information and would boot as normal once attachments have taken place.  If boot validate should go anywhere, it should be boot.validate() that triggers it since drivers can have different boot interfaces, but the agent interface should be widely re-used.\n\nAlso, skimming the ipxe code. it looks like ipxe has EFI loading capabilities for sanbooted interfaces, since it is just a block device.","commit_id":"bac210ed36a112a766a30ab4f1857e6d5c44d19d"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"9dde7095b13951ca5d8ba7f21233346d5a6e361f","unresolved":false,"context_lines":[{"line_number":389,"context_line":"            # This is not being done now as it is expected to be"},{"line_number":390,"context_line":"            # refactored in the near future."},{"line_number":391,"context_line":"            manager_utils.node_power_action(task, states.POWER_OFF)"},{"line_number":392,"context_line":"            task.driver.network.remove_provisioning_network(task)"},{"line_number":393,"context_line":"            task.driver.network.configure_tenant_networks(task)"},{"line_number":394,"context_line":"            task.driver.boot.prepare_instance(task)"},{"line_number":395,"context_line":"            manager_utils.node_power_action(task, states.POWER_ON)"}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_bc58a587","line":392,"range":{"start_line":392,"start_character":12,"end_line":392,"end_character":65},"updated":"2017-06-27 13:57:31.000000000","message":"Probably worth doing this to be safe, but it really shouldn\u0027t be required right?, because if we don\u0027t need to write the image then we shouldn\u0027t ever need to be connected to the provisioning network if I understand things correctly","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"01472b184b51ffe5579bcfae6873002f246fea22","unresolved":false,"context_lines":[{"line_number":393,"context_line":"            task.driver.network.configure_tenant_networks(task)"},{"line_number":394,"context_line":"            task.driver.boot.prepare_instance(task)"},{"line_number":395,"context_line":"            manager_utils.node_power_action(task, states.POWER_ON)"},{"line_number":396,"context_line":"            LOG.info(\u0027Deployment to node %s done\u0027, task.node.uuid)"},{"line_number":397,"context_line":"            return states.DEPLOYDONE"},{"line_number":398,"context_line":""},{"line_number":399,"context_line":"    @METRICS.timer(\u0027AgentDeploy.tear_down\u0027)"}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_05ecd58c","line":396,"updated":"2017-06-27 17:09:40.000000000","message":"Are we really \"deploying\"?","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"01472b184b51ffe5579bcfae6873002f246fea22","unresolved":false,"context_lines":[{"line_number":445,"context_line":"            if task.driver.storage.should_write_image(task):"},{"line_number":446,"context_line":"                # NOTE(vdrok): in case of rebuild, we have tenant network"},{"line_number":447,"context_line":"                # already configured, unbind tenant ports if present"},{"line_number":448,"context_line":"                task.driver.network.unconfigure_tenant_networks(task)"},{"line_number":449,"context_line":"                task.driver.network.add_provisioning_network(task)"},{"line_number":450,"context_line":"            # Signal to storage driver to attach volumes"},{"line_number":451,"context_line":"            task.driver.storage.attach_volumes(task)"}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_e579d9c7","line":448,"updated":"2017-06-27 17:09:40.000000000","message":"Any unit tests for this?","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"01472b184b51ffe5579bcfae6873002f246fea22","unresolved":false,"context_lines":[{"line_number":452,"context_line":"        if node.provision_state \u003d\u003d states.ACTIVE:"},{"line_number":453,"context_line":"            # Call is due to conductor takeover"},{"line_number":454,"context_line":"            task.driver.boot.prepare_instance(task)"},{"line_number":455,"context_line":"        elif not task.driver.storage.should_write_image(task):"},{"line_number":456,"context_line":"            # We have nothing else to do as this is handled in the"},{"line_number":457,"context_line":"            # backend storage system."},{"line_number":458,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_e562f909","line":455,"updated":"2017-06-27 17:09:40.000000000","message":"I\u0027m not sure how to unit test this, unless a debug log message was added.","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"},{"author":{"_account_id":1926,"name":"Derek Higgins","email":"derekh@redhat.com","username":"derekh"},"change_message_id":"cafeda97b1ac14cde297e1cf66d3181cf26e0519","unresolved":false,"context_lines":[{"line_number":455,"context_line":"        elif not task.driver.storage.should_write_image(task):"},{"line_number":456,"context_line":"            # We have nothing else to do as this is handled in the"},{"line_number":457,"context_line":"            # backend storage system."},{"line_number":458,"context_line":"            return"},{"line_number":459,"context_line":"        elif node.provision_state !\u003d states.ADOPTING:"},{"line_number":460,"context_line":"            node.instance_info \u003d deploy_utils.build_instance_info_for_deploy("},{"line_number":461,"context_line":"                task)"}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_a3c69499","line":458,"updated":"2017-06-23 16:04:00.000000000","message":"task.driver.boot.prepare_ramdisk (below), creates boot.ipxe if needed. If this is the first node that ironic-conductor is booting then it still needs to be called somewhere.","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"00239206e11c93ca9282fb31ee74656d54edd6d1","unresolved":false,"context_lines":[{"line_number":455,"context_line":"        elif not task.driver.storage.should_write_image(task):"},{"line_number":456,"context_line":"            # We have nothing else to do as this is handled in the"},{"line_number":457,"context_line":"            # backend storage system."},{"line_number":458,"context_line":"            return"},{"line_number":459,"context_line":"        elif node.provision_state !\u003d states.ADOPTING:"},{"line_number":460,"context_line":"            node.instance_info \u003d deploy_utils.build_instance_info_for_deploy("},{"line_number":461,"context_line":"                task)"}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_7e65b3e0","line":458,"in_reply_to":"5f201791_a3c69499","updated":"2017-06-23 16:29:42.000000000","message":"Under normal circumstances, sending a node through cleaning would result in the agent being booted which would place boot.ipxe.  I really feel like we should just go ahead and create boot.ipxe on startup.","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"}],"ironic/drivers/modules/iscsi_deploy.py":[{"author":{"_account_id":11929,"name":"Michael Turek","email":"mjturek@linux.vnet.ibm.com","username":"mjturek"},"change_message_id":"6082b88edf44da92e7f0792036bc6978ee381070","unresolved":false,"context_lines":[{"line_number":445,"context_line":"        \"\"\""},{"line_number":446,"context_line":"        node \u003d task.node"},{"line_number":447,"context_line":"        if task.driver.storage.should_write_image(task):"},{"line_number":448,"context_line":"            node \u003d task.node"},{"line_number":449,"context_line":"            cache_instance_image(task.context, node)"},{"line_number":450,"context_line":"            check_image_size(task)"},{"line_number":451,"context_line":"            manager_utils.node_power_action(task, states.REBOOT)"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff0f0b1f_e2146546","line":448,"range":{"start_line":448,"start_character":12,"end_line":448,"end_character":28},"updated":"2017-05-23 00:07:52.000000000","message":"nit: node is set above the if block already, we can remove this","commit_id":"6a5341184a48ee938a87bd5e6c782c4608d50f49"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e5a382f8f7b982f4bee820863c4621b11e33db8c","unresolved":false,"context_lines":[{"line_number":452,"context_line":""},{"line_number":453,"context_line":"            return states.DEPLOYWAIT"},{"line_number":454,"context_line":"        else:"},{"line_number":455,"context_line":"            manager_utils.node_power_action(task, states.POWER_OFF)"},{"line_number":456,"context_line":"            task.driver.network.remove_provisioning_network(task)"},{"line_number":457,"context_line":"            task.driver.network.configure_tenant_networks(task)"},{"line_number":458,"context_line":"            manager_utils.node_power_action(task, states.POWER_ON)"},{"line_number":459,"context_line":"            task.process_event(\u0027done\u0027)"},{"line_number":460,"context_line":"            LOG.info(\u0027Deployment to node %s done\u0027, node.uuid)"},{"line_number":461,"context_line":"            return states.DEPLOYDONE"},{"line_number":462,"context_line":""},{"line_number":463,"context_line":"    @METRICS.timer(\u0027ISCSIDeploy.tear_down\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"bff0334d_ee4a7a7e","line":460,"range":{"start_line":455,"start_character":0,"end_line":460,"end_character":61},"updated":"2017-04-06 16:11:48.000000000","message":"I wonder if we can share this code with other places, I suspect it\u0027s the same for regular deploy, just in a different place.","commit_id":"6a5341184a48ee938a87bd5e6c782c4608d50f49"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"0360fe0f9abfb60e1116c411495760eb1d79b412","unresolved":false,"context_lines":[{"line_number":452,"context_line":""},{"line_number":453,"context_line":"            return states.DEPLOYWAIT"},{"line_number":454,"context_line":"        else:"},{"line_number":455,"context_line":"            manager_utils.node_power_action(task, states.POWER_OFF)"},{"line_number":456,"context_line":"            task.driver.network.remove_provisioning_network(task)"},{"line_number":457,"context_line":"            task.driver.network.configure_tenant_networks(task)"},{"line_number":458,"context_line":"            manager_utils.node_power_action(task, states.POWER_ON)"},{"line_number":459,"context_line":"            task.process_event(\u0027done\u0027)"},{"line_number":460,"context_line":"            LOG.info(\u0027Deployment to node %s done\u0027, node.uuid)"},{"line_number":461,"context_line":"            return states.DEPLOYDONE"},{"line_number":462,"context_line":""},{"line_number":463,"context_line":"    @METRICS.timer(\u0027ISCSIDeploy.tear_down\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff0f0b1f_13737b4f","line":460,"range":{"start_line":455,"start_character":0,"end_line":460,"end_character":61},"in_reply_to":"bff0334d_ee4a7a7e","updated":"2017-05-19 11:32:48.000000000","message":"I agree, although I know there is an RFC in someplace for refactoring the networking, and if we do that, we would need to do the same for storage. I kind of feel in two places is acceptable tech debt for now to allow that to move forward. I think vsaienk0 was wanting to move in that direction.  I\u0027ll put a note that we should look at de-duping the logic, that way we don\u0027t loose track, at least for now.","commit_id":"6a5341184a48ee938a87bd5e6c782c4608d50f49"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"f3fc29f655a041c419811c23aa37d78bfa79f6e5","unresolved":false,"context_lines":[{"line_number":427,"context_line":"        # TODO(rameshg87): iscsi_ilo driver uses this method. Remove"},{"line_number":428,"context_line":"        # and copy-paste it\u0027s contents here once iscsi_ilo deploy driver"},{"line_number":429,"context_line":"        # broken down into separate boot and deploy implementations."},{"line_number":430,"context_line":"        validate(task)"},{"line_number":431,"context_line":""},{"line_number":432,"context_line":"    @METRICS.timer(\u0027ISCSIDeploy.deploy\u0027)"},{"line_number":433,"context_line":"    @task_manager.require_exclusive_lock"}],"source_content_type":"text/x-python","patch_set":10,"id":"9f0e0f27_f4903198","line":430,"range":{"start_line":430,"start_character":8,"end_line":430,"end_character":22},"updated":"2017-06-09 16:15:04.000000000","message":"Need to add below check here as we test root hints in validate() method:\nif not task.driver.storage.should_write_image(task):\n    return","commit_id":"bac210ed36a112a766a30ab4f1857e6d5c44d19d"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"8597af431d2783bcc58eac83cfcbc79240ce7271","unresolved":false,"context_lines":[{"line_number":427,"context_line":"        # TODO(rameshg87): iscsi_ilo driver uses this method. Remove"},{"line_number":428,"context_line":"        # and copy-paste it\u0027s contents here once iscsi_ilo deploy driver"},{"line_number":429,"context_line":"        # broken down into separate boot and deploy implementations."},{"line_number":430,"context_line":"        validate(task)"},{"line_number":431,"context_line":""},{"line_number":432,"context_line":"    @METRICS.timer(\u0027ISCSIDeploy.deploy\u0027)"},{"line_number":433,"context_line":"    @task_manager.require_exclusive_lock"}],"source_content_type":"text/x-python","patch_set":10,"id":"7f231b9d_8105eec4","line":430,"range":{"start_line":430,"start_character":8,"end_line":430,"end_character":22},"in_reply_to":"9f0e0f27_f4903198","updated":"2017-06-13 13:16:28.000000000","message":"Done","commit_id":"bac210ed36a112a766a30ab4f1857e6d5c44d19d"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"01472b184b51ffe5579bcfae6873002f246fea22","unresolved":false,"context_lines":[{"line_number":426,"context_line":""},{"line_number":427,"context_line":"        # Edit early if we are not writing a volume as the validate"},{"line_number":428,"context_line":"        # tasks evaluate root device hints."},{"line_number":429,"context_line":"        if not task.driver.storage.should_write_image(task):"},{"line_number":430,"context_line":"            return"},{"line_number":431,"context_line":""},{"line_number":432,"context_line":"        # TODO(rameshg87): iscsi_ilo driver uses this method. Remove"}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_c15151db","line":429,"updated":"2017-06-27 17:09:40.000000000","message":"I wonder if there should be a debug log message for this. Or any of these where we skip writing the image.","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"7c71e793442dbb2bda3e2d916d40c437560b2db8","unresolved":false,"context_lines":[{"line_number":426,"context_line":""},{"line_number":427,"context_line":"        # Edit early if we are not writing a volume as the validate"},{"line_number":428,"context_line":"        # tasks evaluate root device hints."},{"line_number":429,"context_line":"        if not task.driver.storage.should_write_image(task):"},{"line_number":430,"context_line":"            return"},{"line_number":431,"context_line":""},{"line_number":432,"context_line":"        # TODO(rameshg87): iscsi_ilo driver uses this method. Remove"}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_5b650e45","line":429,"in_reply_to":"5f201791_c15151db","updated":"2017-06-27 19:24:30.000000000","message":"Likely, Would be a good follow-up.","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"}],"ironic/drivers/modules/pxe.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"82fa689bd02af9b9fcbfda0e8c91604d7d7105bd","unresolved":false,"context_lines":[{"line_number":546,"context_line":"                task.node.uuid)"},{"line_number":547,"context_line":"            print(\u0027debug!\\n\u0027)"},{"line_number":548,"context_line":"            print(pxe_config_path)"},{"line_number":549,"context_line":"            print(task.node)"},{"line_number":550,"context_line":"            if not os.path.isfile(pxe_config_path):"},{"line_number":551,"context_line":"                pxe_options \u003d _build_pxe_config_options(task, {})"},{"line_number":552,"context_line":"                pxe_config_template \u003d ("}],"source_content_type":"text/x-python","patch_set":9,"id":"9f0e0f27_06b14490","line":549,"updated":"2017-06-09 10:19:41.000000000","message":"time to remove this :)","commit_id":"4433e5c1813b673ee977ec74d5bdf8ded3127e69"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"06d0e89f3d70942e9eeafabfe9ee8bf6f5c14c2a","unresolved":false,"context_lines":[{"line_number":546,"context_line":"                task.node.uuid)"},{"line_number":547,"context_line":"            print(\u0027debug!\\n\u0027)"},{"line_number":548,"context_line":"            print(pxe_config_path)"},{"line_number":549,"context_line":"            print(task.node)"},{"line_number":550,"context_line":"            if not os.path.isfile(pxe_config_path):"},{"line_number":551,"context_line":"                pxe_options \u003d _build_pxe_config_options(task, {})"},{"line_number":552,"context_line":"                pxe_config_template \u003d ("}],"source_content_type":"text/x-python","patch_set":9,"id":"9f0e0f27_ac69578c","line":549,"in_reply_to":"9f0e0f27_06b14490","updated":"2017-06-09 11:24:56.000000000","message":"GAH!  I thought I did! :(","commit_id":"4433e5c1813b673ee977ec74d5bdf8ded3127e69"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"82fa689bd02af9b9fcbfda0e8c91604d7d7105bd","unresolved":false,"context_lines":[{"line_number":579,"context_line":"                    \u0027root_uuid_or_disk_id\u0027"},{"line_number":580,"context_line":"                ]"},{"line_number":581,"context_line":"            except KeyError:"},{"line_number":582,"context_line":"                if not task.driver.storage.should_write_image(task):"},{"line_number":583,"context_line":"                    pass"},{"line_number":584,"context_line":"                elif not iwdi:"},{"line_number":585,"context_line":"                    LOG.warning(\"The UUID for the root partition can\u0027t be \""}],"source_content_type":"text/x-python","patch_set":9,"id":"9f0e0f27_e6ad3032","line":582,"updated":"2017-06-09 10:19:41.000000000","message":"maybe move this check before the try..except block?","commit_id":"4433e5c1813b673ee977ec74d5bdf8ded3127e69"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"06d0e89f3d70942e9eeafabfe9ee8bf6f5c14c2a","unresolved":false,"context_lines":[{"line_number":579,"context_line":"                    \u0027root_uuid_or_disk_id\u0027"},{"line_number":580,"context_line":"                ]"},{"line_number":581,"context_line":"            except KeyError:"},{"line_number":582,"context_line":"                if not task.driver.storage.should_write_image(task):"},{"line_number":583,"context_line":"                    pass"},{"line_number":584,"context_line":"                elif not iwdi:"},{"line_number":585,"context_line":"                    LOG.warning(\"The UUID for the root partition can\u0027t be \""}],"source_content_type":"text/x-python","patch_set":9,"id":"9f0e0f27_ac9a776b","line":582,"in_reply_to":"9f0e0f27_e6ad3032","updated":"2017-06-09 11:24:56.000000000","message":"I\u0027m kind of conflicted on that, because the alternative means the whole try block gets moved shifted code wise for a conditional.  As is just seems kind of cleaner and less intrusive.","commit_id":"4433e5c1813b673ee977ec74d5bdf8ded3127e69"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"9dde7095b13951ca5d8ba7f21233346d5a6e361f","unresolved":false,"context_lines":[{"line_number":576,"context_line":"                ]"},{"line_number":577,"context_line":"            except KeyError:"},{"line_number":578,"context_line":"                if not task.driver.storage.should_write_image(task):"},{"line_number":579,"context_line":"                    pass"},{"line_number":580,"context_line":"                elif not iwdi:"},{"line_number":581,"context_line":"                    LOG.warning(\"The UUID for the root partition can\u0027t be \""},{"line_number":582,"context_line":"                                \"found, unable to switch the pxe config from \""}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_87c47241","line":579,"range":{"start_line":579,"start_character":20,"end_line":579,"end_character":24},"updated":"2017-06-27 13:57:31.000000000","message":"I wonder if a log might help people understand whats going on here better, something like: Can not determine root partition UUID because we\u0027re booting from a pre-populated volume, unable to switch the pxe config to service (boot) mode for node....\n\n\nIf I\u0027ve understood the use case correctly I wonder if we could just do, \n\n    elif boot_option !\u003d \"local\" and task.driver.storage.should_write_image(task):\n\nand not even attempt to do net boot when we know we can\u0027t?\n\n\nAdditionally part of me wonders what happens if you BFV a non-iscsi volume and you have boot_option\u003dlocal, will it actually do anything? If someone isn\u0027t running cleaning, do we run into the possibility that we just boot from HDD into what ever was there before?","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"7c71e793442dbb2bda3e2d916d40c437560b2db8","unresolved":false,"context_lines":[{"line_number":576,"context_line":"                ]"},{"line_number":577,"context_line":"            except KeyError:"},{"line_number":578,"context_line":"                if not task.driver.storage.should_write_image(task):"},{"line_number":579,"context_line":"                    pass"},{"line_number":580,"context_line":"                elif not iwdi:"},{"line_number":581,"context_line":"                    LOG.warning(\"The UUID for the root partition can\u0027t be \""},{"line_number":582,"context_line":"                                \"found, unable to switch the pxe config from \""}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_814d743f","line":579,"range":{"start_line":579,"start_character":20,"end_line":579,"end_character":24},"in_reply_to":"5f201791_87c47241","updated":"2017-06-27 19:24:30.000000000","message":"I\u0027m not sure another log message would really matter here.  We know we need to skip if there is a key error in this place.\n\nDo you mean up at 558, or do you mean here?  I\u0027m not sure why we would entirely skip network booting since the initial BFV use case is via ipxe and we still effectively netbook.\n\nPresently for non-iscsi, if we have sufficient FC information (this will need to be validated, but we should practically be there, to just skip booting and hopefully boot from the remote volume, of course that would require hardware HBAs and all.  Without cleaning, that is a possibility today regardless of BFV.","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"}],"ironic/drivers/modules/storage/cinder.py":[{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"f3fc29f655a041c419811c23aa37d78bfa79f6e5","unresolved":false,"context_lines":[{"line_number":362,"context_line":"        # image_source, then we should expect to write it out."},{"line_number":363,"context_line":"        instance_info \u003d task.node.instance_info"},{"line_number":364,"context_line":"        if \u0027image_source\u0027 not in instance_info:"},{"line_number":365,"context_line":"            for volume in task.volume_targets:"},{"line_number":366,"context_line":"                if volume[\u0027boot_index\u0027] \u003d\u003d 0:"},{"line_number":367,"context_line":"                    return False"},{"line_number":368,"context_line":"        return True"},{"line_number":369,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"7f231b9d_f926f316","line":366,"range":{"start_line":365,"start_character":12,"end_line":366,"end_character":45},"updated":"2017-06-09 16:15:04.000000000","message":"Why do we have this check here? \nIn case there are volumes, but none are root volumes. How would a volume be selected to writing the image given in \u0027image_source\u0027? Also driver would need to set the \u0027boot_index\u0027 to \u00270\u0027 for that volume upon writting the image.","commit_id":"bac210ed36a112a766a30ab4f1857e6d5c44d19d"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"8dc6c85b2fc39058f978262842c5346d2404cd5c","unresolved":false,"context_lines":[{"line_number":362,"context_line":"        # image_source, then we should expect to write it out."},{"line_number":363,"context_line":"        instance_info \u003d task.node.instance_info"},{"line_number":364,"context_line":"        if \u0027image_source\u0027 not in instance_info:"},{"line_number":365,"context_line":"            for volume in task.volume_targets:"},{"line_number":366,"context_line":"                if volume[\u0027boot_index\u0027] \u003d\u003d 0:"},{"line_number":367,"context_line":"                    return False"},{"line_number":368,"context_line":"        return True"},{"line_number":369,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"7f231b9d_5a3b6e37","line":366,"range":{"start_line":365,"start_character":12,"end_line":366,"end_character":45},"in_reply_to":"7f231b9d_f926f316","updated":"2017-06-12 12:27:43.000000000","message":"We have it here as the driver code is a common location of code, that may vary or be replaced by additional drivers down the road. In a sense, the running driver would/should always know best.\n\nThe information standard that comes out of nova is 0 is always the boot volume that is handed to the node. tl;dr, eventually we should expect the agent to boot and deploy an image in HBA uses cases and write an image out to the node if nova does not tell us there is a boot volume.\n\nWriting an image, choosing where to write it, etc... is completely out of a cinder interface\u0027s scope at present.","commit_id":"bac210ed36a112a766a30ab4f1857e6d5c44d19d"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"0355d8c681fe72e0ab08b3eb3c007ed1aca5fb75","unresolved":false,"context_lines":[{"line_number":363,"context_line":"        instance_info \u003d task.node.instance_info"},{"line_number":364,"context_line":"        if \u0027image_source\u0027 not in instance_info:"},{"line_number":365,"context_line":"            for volume in task.volume_targets:"},{"line_number":366,"context_line":"                if volume[\u0027boot_index\u0027] \u003d\u003d 0:"},{"line_number":367,"context_line":"                    return False"},{"line_number":368,"context_line":"        return True"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"    def _generate_connector(self, task):"}],"source_content_type":"text/x-python","patch_set":15,"id":"7f231b9d_a4bba0c2","line":367,"range":{"start_line":366,"start_character":16,"end_line":367,"end_character":32},"updated":"2017-06-20 06:28:21.000000000","message":"Need to add a testcase for this path.","commit_id":"6e99e167e8dd0d4aa1b8586e1cf25bf0d23515d0"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"015927c85fa83a0322fe817b42351ead2e08774e","unresolved":false,"context_lines":[{"line_number":363,"context_line":"        instance_info \u003d task.node.instance_info"},{"line_number":364,"context_line":"        if \u0027image_source\u0027 not in instance_info:"},{"line_number":365,"context_line":"            for volume in task.volume_targets:"},{"line_number":366,"context_line":"                if volume[\u0027boot_index\u0027] \u003d\u003d 0:"},{"line_number":367,"context_line":"                    return False"},{"line_number":368,"context_line":"        return True"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"    def _generate_connector(self, task):"}],"source_content_type":"text/x-python","patch_set":15,"id":"5f201791_e240580a","line":367,"range":{"start_line":366,"start_character":16,"end_line":367,"end_character":32},"in_reply_to":"7f231b9d_a4bba0c2","updated":"2017-06-21 12:13:16.000000000","message":"Tested at https://review.openstack.org/#/c/454243/15/ironic/tests/unit/drivers/modules/storage/test_cinder.py","commit_id":"6e99e167e8dd0d4aa1b8586e1cf25bf0d23515d0"}],"ironic/tests/unit/drivers/modules/test_pxe.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8afd775f2f3795acec17670f5a2e389e944e96ae","unresolved":false,"context_lines":[{"line_number":995,"context_line":"            self.assertFalse(switch_pxe_config_mock.called)"},{"line_number":996,"context_line":"            self.assertFalse(set_boot_device_mock.called)"},{"line_number":997,"context_line":""},{"line_number":998,"context_line":"    @mock.patch(\u0027os.path.isfile\u0027, return_value\u003dFalse)"},{"line_number":999,"context_line":"    @mock.patch.object(pxe_utils, \u0027create_pxe_config\u0027, autospec\u003dTrue)"},{"line_number":1000,"context_line":"    @mock.patch.object(deploy_utils, \u0027is_iscsi_boot\u0027, autospec\u003dTrue)"},{"line_number":1001,"context_line":"    @mock.patch.object(noop_storage.NoopStorage, \u0027should_write_image\u0027,"}],"source_content_type":"text/x-python","patch_set":10,"id":"7f231b9d_762790b8","line":998,"updated":"2017-06-09 14:57:18.000000000","message":"nit: autospec\u003dTrue","commit_id":"bac210ed36a112a766a30ab4f1857e6d5c44d19d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"4a9fcf7f357db9b71c3653a8333b87081b3169b6","unresolved":false,"context_lines":[{"line_number":995,"context_line":"            self.assertFalse(switch_pxe_config_mock.called)"},{"line_number":996,"context_line":"            self.assertFalse(set_boot_device_mock.called)"},{"line_number":997,"context_line":""},{"line_number":998,"context_line":"    @mock.patch(\u0027os.path.isfile\u0027, return_value\u003dFalse)"},{"line_number":999,"context_line":"    @mock.patch.object(pxe_utils, \u0027create_pxe_config\u0027, autospec\u003dTrue)"},{"line_number":1000,"context_line":"    @mock.patch.object(deploy_utils, \u0027is_iscsi_boot\u0027, autospec\u003dTrue)"},{"line_number":1001,"context_line":"    @mock.patch.object(noop_storage.NoopStorage, \u0027should_write_image\u0027,"}],"source_content_type":"text/x-python","patch_set":10,"id":"9f0e0f27_3904627b","line":998,"updated":"2017-06-09 14:06:01.000000000","message":"nit: autospec\u003dTrue","commit_id":"bac210ed36a112a766a30ab4f1857e6d5c44d19d"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"8597af431d2783bcc58eac83cfcbc79240ce7271","unresolved":false,"context_lines":[{"line_number":995,"context_line":"            self.assertFalse(switch_pxe_config_mock.called)"},{"line_number":996,"context_line":"            self.assertFalse(set_boot_device_mock.called)"},{"line_number":997,"context_line":""},{"line_number":998,"context_line":"    @mock.patch(\u0027os.path.isfile\u0027, return_value\u003dFalse)"},{"line_number":999,"context_line":"    @mock.patch.object(pxe_utils, \u0027create_pxe_config\u0027, autospec\u003dTrue)"},{"line_number":1000,"context_line":"    @mock.patch.object(deploy_utils, \u0027is_iscsi_boot\u0027, autospec\u003dTrue)"},{"line_number":1001,"context_line":"    @mock.patch.object(noop_storage.NoopStorage, \u0027should_write_image\u0027,"}],"source_content_type":"text/x-python","patch_set":10,"id":"7f231b9d_7d56192c","line":998,"in_reply_to":"7f231b9d_762790b8","updated":"2017-06-13 13:16:28.000000000","message":"Done","commit_id":"bac210ed36a112a766a30ab4f1857e6d5c44d19d"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"8dc6c85b2fc39058f978262842c5346d2404cd5c","unresolved":false,"context_lines":[{"line_number":995,"context_line":"            self.assertFalse(switch_pxe_config_mock.called)"},{"line_number":996,"context_line":"            self.assertFalse(set_boot_device_mock.called)"},{"line_number":997,"context_line":""},{"line_number":998,"context_line":"    @mock.patch(\u0027os.path.isfile\u0027, return_value\u003dFalse)"},{"line_number":999,"context_line":"    @mock.patch.object(pxe_utils, \u0027create_pxe_config\u0027, autospec\u003dTrue)"},{"line_number":1000,"context_line":"    @mock.patch.object(deploy_utils, \u0027is_iscsi_boot\u0027, autospec\u003dTrue)"},{"line_number":1001,"context_line":"    @mock.patch.object(noop_storage.NoopStorage, \u0027should_write_image\u0027,"}],"source_content_type":"text/x-python","patch_set":10,"id":"7f231b9d_9a1226b1","line":998,"in_reply_to":"7f231b9d_762790b8","updated":"2017-06-12 12:27:43.000000000","message":"nice, double nits! :)","commit_id":"bac210ed36a112a766a30ab4f1857e6d5c44d19d"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"01472b184b51ffe5579bcfae6873002f246fea22","unresolved":false,"context_lines":[{"line_number":698,"context_line":"            task.node.driver_internal_info[\u0027is_whole_disk_image\u0027] \u003d True"},{"line_number":699,"context_line":"            task.driver.boot.validate(task)"},{"line_number":700,"context_line":""},{"line_number":701,"context_line":"    @mock.patch.object(base_image_service.BaseImageService, \u0027_show\u0027,"},{"line_number":702,"context_line":"                       autospec\u003dTrue)"},{"line_number":703,"context_line":"    @mock.patch.object(noop_storage.NoopStorage, \u0027should_write_image\u0027,"},{"line_number":704,"context_line":"                       autospec\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_c50b7d27","line":701,"updated":"2017-06-27 17:09:40.000000000","message":"I don\u0027t understand why this is the function to check that it isn\u0027t called.\n\nWhy not: deploy_utils.get_image_instance_info()","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"0275d492302299805c65109b2105ea7ed728c3b0","unresolved":false,"context_lines":[{"line_number":698,"context_line":"            task.node.driver_internal_info[\u0027is_whole_disk_image\u0027] \u003d True"},{"line_number":699,"context_line":"            task.driver.boot.validate(task)"},{"line_number":700,"context_line":""},{"line_number":701,"context_line":"    @mock.patch.object(base_image_service.BaseImageService, \u0027_show\u0027,"},{"line_number":702,"context_line":"                       autospec\u003dTrue)"},{"line_number":703,"context_line":"    @mock.patch.object(noop_storage.NoopStorage, \u0027should_write_image\u0027,"},{"line_number":704,"context_line":"                       autospec\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_8a2349a7","line":701,"in_reply_to":"5f201791_010844d7","updated":"2017-06-27 20:39:48.000000000","message":"I guess I was confused because I don\u0027t see that function ( _show() ) being called in validate.\n\nWhile I do see deploy_utils.get_image_instance_info() being called on the very next line after the return.","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"7c71e793442dbb2bda3e2d916d40c437560b2db8","unresolved":false,"context_lines":[{"line_number":698,"context_line":"            task.node.driver_internal_info[\u0027is_whole_disk_image\u0027] \u003d True"},{"line_number":699,"context_line":"            task.driver.boot.validate(task)"},{"line_number":700,"context_line":""},{"line_number":701,"context_line":"    @mock.patch.object(base_image_service.BaseImageService, \u0027_show\u0027,"},{"line_number":702,"context_line":"                       autospec\u003dTrue)"},{"line_number":703,"context_line":"    @mock.patch.object(noop_storage.NoopStorage, \u0027should_write_image\u0027,"},{"line_number":704,"context_line":"                       autospec\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_010844d7","line":701,"in_reply_to":"5f201791_c50b7d27","updated":"2017-06-27 19:24:30.000000000","message":"To consume the attempt to access glance?","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"01472b184b51ffe5579bcfae6873002f246fea22","unresolved":false,"context_lines":[{"line_number":703,"context_line":"    @mock.patch.object(noop_storage.NoopStorage, \u0027should_write_image\u0027,"},{"line_number":704,"context_line":"                       autospec\u003dTrue)"},{"line_number":705,"context_line":"    def test_validate_skip_check_write_image_false(self, mock_write,"},{"line_number":706,"context_line":"                                                   mock_glance):"},{"line_number":707,"context_line":"        mock_write.return_value \u003d False"},{"line_number":708,"context_line":"        with task_manager.acquire(self.context, self.node.uuid,"},{"line_number":709,"context_line":"                                  shared\u003dTrue) as task:"}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_a01bcf70","line":706,"range":{"start_line":706,"start_character":51,"end_line":706,"end_character":62},"updated":"2017-06-27 17:09:40.000000000","message":"Why is it called glance?","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"7c71e793442dbb2bda3e2d916d40c437560b2db8","unresolved":false,"context_lines":[{"line_number":703,"context_line":"    @mock.patch.object(noop_storage.NoopStorage, \u0027should_write_image\u0027,"},{"line_number":704,"context_line":"                       autospec\u003dTrue)"},{"line_number":705,"context_line":"    def test_validate_skip_check_write_image_false(self, mock_write,"},{"line_number":706,"context_line":"                                                   mock_glance):"},{"line_number":707,"context_line":"        mock_write.return_value \u003d False"},{"line_number":708,"context_line":"        with task_manager.acquire(self.context, self.node.uuid,"},{"line_number":709,"context_line":"                                  shared\u003dTrue) as task:"}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_a1107001","line":706,"range":{"start_line":706,"start_character":51,"end_line":706,"end_character":62},"in_reply_to":"5f201791_a01bcf70","updated":"2017-06-27 19:24:30.000000000","message":"Well, it is glance...","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"01472b184b51ffe5579bcfae6873002f246fea22","unresolved":false,"context_lines":[{"line_number":1090,"context_line":"            self.assertFalse(switch_pxe_config_mock.called)"},{"line_number":1091,"context_line":"            self.assertFalse(set_boot_device_mock.called)"},{"line_number":1092,"context_line":""},{"line_number":1093,"context_line":"    @mock.patch(\u0027os.path.isfile\u0027, return_value\u003dFalse, autospec\u003dTrue)"},{"line_number":1094,"context_line":"    @mock.patch.object(pxe_utils, \u0027create_pxe_config\u0027, autospec\u003dTrue)"},{"line_number":1095,"context_line":"    @mock.patch.object(deploy_utils, \u0027is_iscsi_boot\u0027, autospec\u003dTrue)"},{"line_number":1096,"context_line":"    @mock.patch.object(noop_storage.NoopStorage, \u0027should_write_image\u0027,"}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_6050170c","line":1093,"range":{"start_line":1093,"start_character":34,"end_line":1093,"end_character":52},"updated":"2017-06-27 17:09:40.000000000","message":"lambda filename: False\n\nThen don\u0027t need to have \u0027isfile_mock\u0027 in the argument list.\n\n @mock.patch(\u0027os.path.isfile\u0027, lambda filename: False, autospec\u003dTrue)","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"7c71e793442dbb2bda3e2d916d40c437560b2db8","unresolved":false,"context_lines":[{"line_number":1090,"context_line":"            self.assertFalse(switch_pxe_config_mock.called)"},{"line_number":1091,"context_line":"            self.assertFalse(set_boot_device_mock.called)"},{"line_number":1092,"context_line":""},{"line_number":1093,"context_line":"    @mock.patch(\u0027os.path.isfile\u0027, return_value\u003dFalse, autospec\u003dTrue)"},{"line_number":1094,"context_line":"    @mock.patch.object(pxe_utils, \u0027create_pxe_config\u0027, autospec\u003dTrue)"},{"line_number":1095,"context_line":"    @mock.patch.object(deploy_utils, \u0027is_iscsi_boot\u0027, autospec\u003dTrue)"},{"line_number":1096,"context_line":"    @mock.patch.object(noop_storage.NoopStorage, \u0027should_write_image\u0027,"}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_01d60429","line":1093,"range":{"start_line":1093,"start_character":34,"end_line":1093,"end_character":52},"in_reply_to":"5f201791_6050170c","updated":"2017-06-27 19:24:30.000000000","message":"Makes sense, would be a good follow-up since we\u0027re not actively testing against it.","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"01472b184b51ffe5579bcfae6873002f246fea22","unresolved":false,"context_lines":[{"line_number":1092,"context_line":""},{"line_number":1093,"context_line":"    @mock.patch(\u0027os.path.isfile\u0027, return_value\u003dFalse, autospec\u003dTrue)"},{"line_number":1094,"context_line":"    @mock.patch.object(pxe_utils, \u0027create_pxe_config\u0027, autospec\u003dTrue)"},{"line_number":1095,"context_line":"    @mock.patch.object(deploy_utils, \u0027is_iscsi_boot\u0027, autospec\u003dTrue)"},{"line_number":1096,"context_line":"    @mock.patch.object(noop_storage.NoopStorage, \u0027should_write_image\u0027,"},{"line_number":1097,"context_line":"                       autospec\u003dTrue)"},{"line_number":1098,"context_line":"    @mock.patch.object(deploy_utils, \u0027try_set_boot_device\u0027, autospec\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_c0ac8bee","line":1095,"updated":"2017-06-27 17:09:40.000000000","message":"Could also use lambda here","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"7c71e793442dbb2bda3e2d916d40c437560b2db8","unresolved":false,"context_lines":[{"line_number":1092,"context_line":""},{"line_number":1093,"context_line":"    @mock.patch(\u0027os.path.isfile\u0027, return_value\u003dFalse, autospec\u003dTrue)"},{"line_number":1094,"context_line":"    @mock.patch.object(pxe_utils, \u0027create_pxe_config\u0027, autospec\u003dTrue)"},{"line_number":1095,"context_line":"    @mock.patch.object(deploy_utils, \u0027is_iscsi_boot\u0027, autospec\u003dTrue)"},{"line_number":1096,"context_line":"    @mock.patch.object(noop_storage.NoopStorage, \u0027should_write_image\u0027,"},{"line_number":1097,"context_line":"                       autospec\u003dTrue)"},{"line_number":1098,"context_line":"    @mock.patch.object(deploy_utils, \u0027try_set_boot_device\u0027, autospec\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_61e4980d","line":1095,"in_reply_to":"5f201791_c0ac8bee","updated":"2017-06-27 19:24:30.000000000","message":"Would be a good follow-up.","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"01472b184b51ffe5579bcfae6873002f246fea22","unresolved":false,"context_lines":[{"line_number":1093,"context_line":"    @mock.patch(\u0027os.path.isfile\u0027, return_value\u003dFalse, autospec\u003dTrue)"},{"line_number":1094,"context_line":"    @mock.patch.object(pxe_utils, \u0027create_pxe_config\u0027, autospec\u003dTrue)"},{"line_number":1095,"context_line":"    @mock.patch.object(deploy_utils, \u0027is_iscsi_boot\u0027, autospec\u003dTrue)"},{"line_number":1096,"context_line":"    @mock.patch.object(noop_storage.NoopStorage, \u0027should_write_image\u0027,"},{"line_number":1097,"context_line":"                       autospec\u003dTrue)"},{"line_number":1098,"context_line":"    @mock.patch.object(deploy_utils, \u0027try_set_boot_device\u0027, autospec\u003dTrue)"},{"line_number":1099,"context_line":"    @mock.patch.object(deploy_utils, \u0027switch_pxe_config\u0027, autospec\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_00804345","line":1096,"updated":"2017-06-27 17:09:40.000000000","message":"Could also use lambda here","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"7c71e793442dbb2bda3e2d916d40c437560b2db8","unresolved":false,"context_lines":[{"line_number":1093,"context_line":"    @mock.patch(\u0027os.path.isfile\u0027, return_value\u003dFalse, autospec\u003dTrue)"},{"line_number":1094,"context_line":"    @mock.patch.object(pxe_utils, \u0027create_pxe_config\u0027, autospec\u003dTrue)"},{"line_number":1095,"context_line":"    @mock.patch.object(deploy_utils, \u0027is_iscsi_boot\u0027, autospec\u003dTrue)"},{"line_number":1096,"context_line":"    @mock.patch.object(noop_storage.NoopStorage, \u0027should_write_image\u0027,"},{"line_number":1097,"context_line":"                       autospec\u003dTrue)"},{"line_number":1098,"context_line":"    @mock.patch.object(deploy_utils, \u0027try_set_boot_device\u0027, autospec\u003dTrue)"},{"line_number":1099,"context_line":"    @mock.patch.object(deploy_utils, \u0027switch_pxe_config\u0027, autospec\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":17,"id":"5f201791_41ef5ce8","line":1096,"in_reply_to":"5f201791_00804345","updated":"2017-06-27 19:24:30.000000000","message":"ditto.","commit_id":"152a3654ce0b03c70a489919611eeaec343cc8ea"}]}
