)]}'
{"ironic/api/config.py":[{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"c4052f85aa9937976500df9236586f8fa2e71f55","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    \u0027acl_public_routes\u0027: ["},{"line_number":33,"context_line":"        \u0027/\u0027,"},{"line_number":34,"context_line":"        \u0027/v1\u0027,"},{"line_number":35,"context_line":"        \u0027/v1/drivers/[a-z_]*/vendor_passthru/lookup\u0027,"},{"line_number":36,"context_line":"        \u0027/v1/nodes/[a-z0-9\\-]+/vendor_passthru/heartbeat\u0027"},{"line_number":37,"context_line":"    ],"},{"line_number":38,"context_line":"}"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_9572630f","line":35,"updated":"2015-02-24 15:47:19.000000000","message":"nit: May be [a-z]+","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"8e405bf278aa06e3eabcfd513f4956c0228552cf","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    \u0027acl_public_routes\u0027: ["},{"line_number":33,"context_line":"        \u0027/\u0027,"},{"line_number":34,"context_line":"        \u0027/v1\u0027,"},{"line_number":35,"context_line":"        \u0027/v1/drivers/[a-z_]*/vendor_passthru/lookup\u0027,"},{"line_number":36,"context_line":"        \u0027/v1/nodes/[a-z0-9\\-]+/vendor_passthru/heartbeat\u0027"},{"line_number":37,"context_line":"    ],"},{"line_number":38,"context_line":"}"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_2d340b49","line":35,"in_reply_to":"ba7be1f8_9572630f","updated":"2015-02-24 17:42:39.000000000","message":"yeah that works too, thanks","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"3f921af84f7a987f513942179fc0d63affeaecac","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    \u0027acl_public_routes\u0027: ["},{"line_number":33,"context_line":"        \u0027/\u0027,"},{"line_number":34,"context_line":"        \u0027/v1\u0027,"},{"line_number":35,"context_line":"        \u0027/v1/drivers/[a-z]+/vendor_passthru/lookup\u0027,"},{"line_number":36,"context_line":"        \u0027/v1/nodes/[a-z0-9\\-]+/vendor_passthru/heartbeat\u0027"},{"line_number":37,"context_line":"    ],"},{"line_number":38,"context_line":"}"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba7be1f8_bcb720f4","line":35,"updated":"2015-02-25 14:40:58.000000000","message":"aparently this config doesn\u0027t work. I will add back the [a-z_]* like before","commit_id":"8839906606b60b0d166313c39f99f6b9b71efec1"}],"ironic/drivers/modules/elilo_efi_pxe_config.template":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"39e14604a84e5abd63cea5d84ca50ad1f2e967fc","unresolved":false,"context_lines":[{"line_number":3,"context_line":"image\u003d{{pxe_options.deployment_aki_path}}"},{"line_number":4,"context_line":"        label\u003ddeploy"},{"line_number":5,"context_line":"        initrd\u003d{{pxe_options.deployment_ari_path}}"},{"line_number":6,"context_line":"        append\u003d\"selinux\u003d0 disk\u003d{{ pxe_options.disk }} iscsi_target_iqn\u003d{{ pxe_options.iscsi_target_iqn }} deployment_id\u003d{{ pxe_options.deployment_id }} deployment_key\u003d{{ pxe_options.deployment_key }} ironic_api_url\u003d{{ pxe_options.ironic_api_url }} troubleshoot\u003d0 text {{ pxe_options.pxe_append_params|default(\"\", true) }} ip\u003d%I:{{pxe_options.tftp_server}}:%G:%M:%H::on\" {% if pxe_options.root_device %}root_device\u003d{{ pxe_options.root_device }} ipa-api-url\u003d{{ pxe_options[\u0027ipa-api-url\u0027] }} ipa-driver-name\u003d{{ pxe_options[\u0027ipa-driver-name\u0027] }}"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"image\u003d{{pxe_options.aki_path}}"},{"line_number":9,"context_line":"        label\u003dboot"}],"source_content_type":"application/octet-stream","patch_set":3,"id":"da86d52c_91e58ede","line":6,"updated":"2015-02-13 17:12:51.000000000","message":"deleted %endif% when resolving the merge conflicts, will re-add","commit_id":"c7f9a55a39555bff3bbba00e316f0d6e1500d4da"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"a642344fb9fa6a749677ab3114d57307153e65cf","unresolved":false,"context_lines":[{"line_number":4,"context_line":"        label\u003ddeploy"},{"line_number":5,"context_line":"        initrd\u003d{{pxe_options.deployment_ari_path}}"},{"line_number":6,"context_line":"        append\u003d\"selinux\u003d0 disk\u003d{{ pxe_options.disk }} iscsi_target_iqn\u003d{{ pxe_options.iscsi_target_iqn }} deployment_id\u003d{{ pxe_options.deployment_id }} deployment_key\u003d{{ pxe_options.deployment_key }} ironic_api_url\u003d{{ pxe_options.ironic_api_url }} troubleshoot\u003d0 text {{ pxe_options.pxe_append_params|default(\"\", true) }} ip\u003d%I:{{pxe_options.tftp_server}}:%G:%M:%H::on\" {% if pxe_options.root_device %}root_device\u003d{{ pxe_options.root_device }}{% endif %} ipa-api-url\u003d{{ pxe_options[\u0027ipa-api-url\u0027] }} ipa-driver-name\u003d{{ pxe_options[\u0027ipa-driver-name\u0027] }}"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"image\u003d{{pxe_options.aki_path}}"},{"line_number":10,"context_line":"        label\u003dboot"}],"source_content_type":"application/octet-stream","patch_set":16,"id":"ba7be1f8_bfcef257","line":7,"updated":"2015-02-26 19:33:48.000000000","message":"to be consistent with the use of other pxe_options here, use pxe_options.ipa-api-url and pxe_options.ipa-driver-name?","commit_id":"d87309e6f3b8956aa4211d5fe35a9bcfe9d851a7"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"08dfa0367b9c48a811da9b7af1db60e88253c57a","unresolved":false,"context_lines":[{"line_number":4,"context_line":"        label\u003ddeploy"},{"line_number":5,"context_line":"        initrd\u003d{{pxe_options.deployment_ari_path}}"},{"line_number":6,"context_line":"        append\u003d\"selinux\u003d0 disk\u003d{{ pxe_options.disk }} iscsi_target_iqn\u003d{{ pxe_options.iscsi_target_iqn }} deployment_id\u003d{{ pxe_options.deployment_id }} deployment_key\u003d{{ pxe_options.deployment_key }} ironic_api_url\u003d{{ pxe_options.ironic_api_url }} troubleshoot\u003d0 text {{ pxe_options.pxe_append_params|default(\"\", true) }} ip\u003d%I:{{pxe_options.tftp_server}}:%G:%M:%H::on\" {% if pxe_options.root_device %}root_device\u003d{{ pxe_options.root_device }}{% endif %} ipa-api-url\u003d{{ pxe_options[\u0027ipa-api-url\u0027] }} ipa-driver-name\u003d{{ pxe_options[\u0027ipa-driver-name\u0027] }}"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"image\u003d{{pxe_options.aki_path}}"},{"line_number":10,"context_line":"        label\u003dboot"}],"source_content_type":"application/octet-stream","patch_set":16,"id":"ba7be1f8_e4d513ba","line":7,"in_reply_to":"ba7be1f8_bfcef257","updated":"2015-02-27 15:11:34.000000000","message":"We can\u0027t because of the dash","commit_id":"d87309e6f3b8956aa4211d5fe35a9bcfe9d851a7"}],"ironic/drivers/modules/pxe.py":[{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"c4052f85aa9937976500df9236586f8fa2e71f55","unresolved":false,"context_lines":[{"line_number":149,"context_line":"    return info"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"def _build_pxe_config_options(task, pxe_info):"},{"line_number":153,"context_line":"    \"\"\"Build the PXE config options for a node"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"    This method builds the PXE boot options for a node,"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_2245ff16","line":152,"updated":"2015-02-24 15:47:19.000000000","message":"I think changing node to task is not requried. If it is, then docstring should be updated.","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"8e405bf278aa06e3eabcfd513f4956c0228552cf","unresolved":false,"context_lines":[{"line_number":149,"context_line":"    return info"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"def _build_pxe_config_options(task, pxe_info):"},{"line_number":153,"context_line":"    \"\"\"Build the PXE config options for a node"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"    This method builds the PXE boot options for a node,"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_0d6667c1","line":152,"in_reply_to":"ba7be1f8_2245ff16","updated":"2015-02-24 17:42:39.000000000","message":"Yeah, this is a leftover from previous patches, I will fix it. Thank you","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"c4052f85aa9937976500df9236586f8fa2e71f55","unresolved":false,"context_lines":[{"line_number":559,"context_line":"            deploy_utils.set_failed_state(task, msg)"},{"line_number":560,"context_line":""},{"line_number":561,"context_line":"    @task_manager.require_exclusive_lock"},{"line_number":562,"context_line":"    def continue_deploy(self, task, **kwargs):"},{"line_number":563,"context_line":"        \"\"\"Method invoked when deployed with the IPA ramdisk.\"\"\""},{"line_number":564,"context_line":"        try:"},{"line_number":565,"context_line":"            node \u003d task.node"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_f56c7fd2","line":562,"updated":"2015-02-24 15:47:19.000000000","message":"I see this has to be continue_deploy() because it is inherited from agent_base_vendor, but _continue_deploy() and continue_deploy() doesn\u0027t tell anything what they do.  Can we rename one of them ?","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"8b210dc17148801691252f59857c4a88304698cc","unresolved":false,"context_lines":[{"line_number":559,"context_line":"            deploy_utils.set_failed_state(task, msg)"},{"line_number":560,"context_line":""},{"line_number":561,"context_line":"    @task_manager.require_exclusive_lock"},{"line_number":562,"context_line":"    def continue_deploy(self, task, **kwargs):"},{"line_number":563,"context_line":"        \"\"\"Method invoked when deployed with the IPA ramdisk.\"\"\""},{"line_number":564,"context_line":"        try:"},{"line_number":565,"context_line":"            node \u003d task.node"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_0832c3f1","line":562,"in_reply_to":"ba7be1f8_8a887dc6","updated":"2015-02-25 01:37:58.000000000","message":"Follow up patch is fine with me :)","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"8e405bf278aa06e3eabcfd513f4956c0228552cf","unresolved":false,"context_lines":[{"line_number":559,"context_line":"            deploy_utils.set_failed_state(task, msg)"},{"line_number":560,"context_line":""},{"line_number":561,"context_line":"    @task_manager.require_exclusive_lock"},{"line_number":562,"context_line":"    def continue_deploy(self, task, **kwargs):"},{"line_number":563,"context_line":"        \"\"\"Method invoked when deployed with the IPA ramdisk.\"\"\""},{"line_number":564,"context_line":"        try:"},{"line_number":565,"context_line":"            node \u003d task.node"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_8a887dc6","line":562,"in_reply_to":"ba7be1f8_f56c7fd2","updated":"2015-02-24 17:42:39.000000000","message":"Yeah I can rename _continue_deploy() to \"pass_deploy_info\", because that\u0027s the actually name of the endpoint in the vendor passthru. I thought about it but I didn\u0027t do in this patch to keep it smaller.\n\nShould I address it here? Or are you happy in having a following patch for that? (Cause it touches tests and all that)","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"c4052f85aa9937976500df9236586f8fa2e71f55","unresolved":false,"context_lines":[{"line_number":569,"context_line":"            pxe_options \u003d _build_pxe_config_options(task, pxe_info)"},{"line_number":570,"context_line":""},{"line_number":571,"context_line":"            iqn \u003d pxe_options[\u0027iscsi_target_iqn\u0027]"},{"line_number":572,"context_line":"            result \u003d self._client.start_iscsi_target(node, iqn)"},{"line_number":573,"context_line":""},{"line_number":574,"context_line":"            task.process_event(\u0027resume\u0027)"},{"line_number":575,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_55a2ab99","line":572,"updated":"2015-02-24 15:47:19.000000000","message":"I think we shoud check if iscsi target was started successfully ?","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"8e405bf278aa06e3eabcfd513f4956c0228552cf","unresolved":false,"context_lines":[{"line_number":569,"context_line":"            pxe_options \u003d _build_pxe_config_options(task, pxe_info)"},{"line_number":570,"context_line":""},{"line_number":571,"context_line":"            iqn \u003d pxe_options[\u0027iscsi_target_iqn\u0027]"},{"line_number":572,"context_line":"            result \u003d self._client.start_iscsi_target(node, iqn)"},{"line_number":573,"context_line":""},{"line_number":574,"context_line":"            task.process_event(\u0027resume\u0027)"},{"line_number":575,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_8a5ddd49","line":572,"in_reply_to":"ba7be1f8_55a2ab99","updated":"2015-02-24 17:42:39.000000000","message":"Done","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"c4052f85aa9937976500df9236586f8fa2e71f55","unresolved":false,"context_lines":[{"line_number":571,"context_line":"            iqn \u003d pxe_options[\u0027iscsi_target_iqn\u0027]"},{"line_number":572,"context_line":"            result \u003d self._client.start_iscsi_target(node, iqn)"},{"line_number":573,"context_line":""},{"line_number":574,"context_line":"            task.process_event(\u0027resume\u0027)"},{"line_number":575,"context_line":""},{"line_number":576,"context_line":"            address \u003d urlparse.urlparse(node.driver_internal_info[\u0027agent_url\u0027])"},{"line_number":577,"context_line":"            address \u003d address.hostname"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_c207c3c8","line":574,"updated":"2015-02-24 15:47:19.000000000","message":"Shouldn\u0027t this be moved as the first statement ?","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"8e405bf278aa06e3eabcfd513f4956c0228552cf","unresolved":false,"context_lines":[{"line_number":571,"context_line":"            iqn \u003d pxe_options[\u0027iscsi_target_iqn\u0027]"},{"line_number":572,"context_line":"            result \u003d self._client.start_iscsi_target(node, iqn)"},{"line_number":573,"context_line":""},{"line_number":574,"context_line":"            task.process_event(\u0027resume\u0027)"},{"line_number":575,"context_line":""},{"line_number":576,"context_line":"            address \u003d urlparse.urlparse(node.driver_internal_info[\u0027agent_url\u0027])"},{"line_number":577,"context_line":"            address \u003d address.hostname"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_2a3a31e7","line":574,"in_reply_to":"ba7be1f8_c207c3c8","updated":"2015-02-24 17:42:39.000000000","message":"oh yeah, I will move that up","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"c4052f85aa9937976500df9236586f8fa2e71f55","unresolved":false,"context_lines":[{"line_number":585,"context_line":"            # it here."},{"line_number":586,"context_line":"            _destroy_token_file(node)"},{"line_number":587,"context_line":""},{"line_number":588,"context_line":"            root_uuid \u003d iscsi_deploy.continue_deploy(task, **iscsi_params)"},{"line_number":589,"context_line":""},{"line_number":590,"context_line":"            if not root_uuid:"},{"line_number":591,"context_line":"                msg \u003d _(\"Couldn\u0027t determine the UUID of the root partition \""}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_f50d5fe9","line":588,"updated":"2015-02-24 15:47:19.000000000","message":"Don\u0027t we need to save the root_uuid as done in _continue_deploy() ?","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"8e405bf278aa06e3eabcfd513f4956c0228552cf","unresolved":false,"context_lines":[{"line_number":585,"context_line":"            # it here."},{"line_number":586,"context_line":"            _destroy_token_file(node)"},{"line_number":587,"context_line":""},{"line_number":588,"context_line":"            root_uuid \u003d iscsi_deploy.continue_deploy(task, **iscsi_params)"},{"line_number":589,"context_line":""},{"line_number":590,"context_line":"            if not root_uuid:"},{"line_number":591,"context_line":"                msg \u003d _(\"Couldn\u0027t determine the UUID of the root partition \""}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_4d0dbf36","line":588,"in_reply_to":"ba7be1f8_f50d5fe9","updated":"2015-02-24 17:42:39.000000000","message":"When I was writting this code that bit wasn\u0027t part of the _continue_deploy() so I haven\u0027t included it in the patch. I will do thanks!","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"c4052f85aa9937976500df9236586f8fa2e71f55","unresolved":false,"context_lines":[{"line_number":592,"context_line":"                        \"when deploying node %s\") % node.uuid"},{"line_number":593,"context_line":"                raise exception.InstanceDeployFailure(msg)"},{"line_number":594,"context_line":""},{"line_number":595,"context_line":"            pxe_config_path \u003d pxe_utils.get_pxe_config_file_path(node.uuid)"},{"line_number":596,"context_line":"            deploy_utils.switch_pxe_config(pxe_config_path, root_uuid,"},{"line_number":597,"context_line":"                          driver_utils.get_node_capability(node, \u0027boot_mode\u0027))"},{"line_number":598,"context_line":"            task.process_event(\u0027done\u0027)"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_75d96f21","line":595,"updated":"2015-02-24 15:47:19.000000000","message":"Shouldn\u0027t we consider boot_option \u003d\u003d \"local\" here ?","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"8e405bf278aa06e3eabcfd513f4956c0228552cf","unresolved":false,"context_lines":[{"line_number":592,"context_line":"                        \"when deploying node %s\") % node.uuid"},{"line_number":593,"context_line":"                raise exception.InstanceDeployFailure(msg)"},{"line_number":594,"context_line":""},{"line_number":595,"context_line":"            pxe_config_path \u003d pxe_utils.get_pxe_config_file_path(node.uuid)"},{"line_number":596,"context_line":"            deploy_utils.switch_pxe_config(pxe_config_path, root_uuid,"},{"line_number":597,"context_line":"                          driver_utils.get_node_capability(node, \u0027boot_mode\u0027))"},{"line_number":598,"context_line":"            task.process_event(\u0027done\u0027)"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_ed4f5369","line":595,"in_reply_to":"ba7be1f8_75d96f21","updated":"2015-02-24 17:42:39.000000000","message":"I\u0027m doing it on the next patch of this series, adding local boot support for IPA: https://review.openstack.org/#/c/157723/\n\nI prefer doing small patches but very specific, otherwise it get\u0027s mad to maintain and hard to review.","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"8b210dc17148801691252f59857c4a88304698cc","unresolved":false,"context_lines":[{"line_number":592,"context_line":"                        \"when deploying node %s\") % node.uuid"},{"line_number":593,"context_line":"                raise exception.InstanceDeployFailure(msg)"},{"line_number":594,"context_line":""},{"line_number":595,"context_line":"            pxe_config_path \u003d pxe_utils.get_pxe_config_file_path(node.uuid)"},{"line_number":596,"context_line":"            deploy_utils.switch_pxe_config(pxe_config_path, root_uuid,"},{"line_number":597,"context_line":"                          driver_utils.get_node_capability(node, \u0027boot_mode\u0027))"},{"line_number":598,"context_line":"            task.process_event(\u0027done\u0027)"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_8855d3fb","line":595,"in_reply_to":"ba7be1f8_ed4f5369","updated":"2015-02-25 01:37:58.000000000","message":"Oh, I missed the dependent patch, thanks.","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"c4052f85aa9937976500df9236586f8fa2e71f55","unresolved":false,"context_lines":[{"line_number":595,"context_line":"            pxe_config_path \u003d pxe_utils.get_pxe_config_file_path(node.uuid)"},{"line_number":596,"context_line":"            deploy_utils.switch_pxe_config(pxe_config_path, root_uuid,"},{"line_number":597,"context_line":"                          driver_utils.get_node_capability(node, \u0027boot_mode\u0027))"},{"line_number":598,"context_line":"            task.process_event(\u0027done\u0027)"},{"line_number":599,"context_line":"            LOG.info(_LI(\u0027Deployment to node %s done\u0027), node.uuid)"},{"line_number":600,"context_line":""},{"line_number":601,"context_line":"        except Exception as e:"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_75f08f91","line":598,"updated":"2015-02-24 15:47:19.000000000","message":"I think we should do a process_event(\u0027done\u0027) only after successfully doing/signalling the node to reboot.","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"8e405bf278aa06e3eabcfd513f4956c0228552cf","unresolved":false,"context_lines":[{"line_number":595,"context_line":"            pxe_config_path \u003d pxe_utils.get_pxe_config_file_path(node.uuid)"},{"line_number":596,"context_line":"            deploy_utils.switch_pxe_config(pxe_config_path, root_uuid,"},{"line_number":597,"context_line":"                          driver_utils.get_node_capability(node, \u0027boot_mode\u0027))"},{"line_number":598,"context_line":"            task.process_event(\u0027done\u0027)"},{"line_number":599,"context_line":"            LOG.info(_LI(\u0027Deployment to node %s done\u0027), node.uuid)"},{"line_number":600,"context_line":""},{"line_number":601,"context_line":"        except Exception as e:"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_cdb44f37","line":598,"in_reply_to":"ba7be1f8_75f08f91","updated":"2015-02-24 17:42:39.000000000","message":"Right, I did it here because I didn\u0027t want to mark the deployment as FAILED if the node fails to reboot.\n\nI could move the reboot code up, I will take a look, thanks","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"c4052f85aa9937976500df9236586f8fa2e71f55","unresolved":false,"context_lines":[{"line_number":607,"context_line":"            raise exception.InstanceDeployFailure(msg)"},{"line_number":608,"context_line":""},{"line_number":609,"context_line":"        try:"},{"line_number":610,"context_line":"            manager_utils.node_power_action(task, states.REBOOT)"},{"line_number":611,"context_line":"        except Exception as e:"},{"line_number":612,"context_line":"            LOG.error(_LE(\u0027Error rebooting node %(node)s after the \u0027"},{"line_number":613,"context_line":"                          \u0027deployment. Error: %(error)s\u0027), {\u0027node\u0027: node.uuid,"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_42b11346","line":610,"updated":"2015-02-24 15:47:19.000000000","message":"I see we do a hard reboot the system here.  Are we sure this wouldn\u0027t affect the kernel from flushing all its buffer cache back to the disk ?  I know DIB ramdisk used to reboot the system from inside, so that was taken care.","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"8e405bf278aa06e3eabcfd513f4956c0228552cf","unresolved":false,"context_lines":[{"line_number":607,"context_line":"            raise exception.InstanceDeployFailure(msg)"},{"line_number":608,"context_line":""},{"line_number":609,"context_line":"        try:"},{"line_number":610,"context_line":"            manager_utils.node_power_action(task, states.REBOOT)"},{"line_number":611,"context_line":"        except Exception as e:"},{"line_number":612,"context_line":"            LOG.error(_LE(\u0027Error rebooting node %(node)s after the \u0027"},{"line_number":613,"context_line":"                          \u0027deployment. Error: %(error)s\u0027), {\u0027node\u0027: node.uuid,"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba7be1f8_8ddc1775","line":610,"in_reply_to":"ba7be1f8_42b11346","updated":"2015-02-24 17:42:39.000000000","message":"We close the iSCSI connection before this bit, so the data should be fine.","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"98eae11ef81838b1afcf9c8a426e666daa525149","unresolved":false,"context_lines":[{"line_number":562,"context_line":"    @task_manager.require_exclusive_lock"},{"line_number":563,"context_line":"    def continue_deploy(self, task, **kwargs):"},{"line_number":564,"context_line":"        \"\"\"Method invoked when deployed with the IPA ramdisk.\"\"\""},{"line_number":565,"context_line":"        try:"},{"line_number":566,"context_line":"            node \u003d task.node"},{"line_number":567,"context_line":"            LOG.debug(\u0027Continuing the deployment on node %s\u0027, node.uuid)"},{"line_number":568,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"ba7be1f8_db478175","line":565,"updated":"2015-02-25 13:04:29.000000000","message":"Why don\u0027t we just wrap around only the code that we expect to throw exception.  I think most of the code here can\u0027t throw an expected exception.","commit_id":"8839906606b60b0d166313c39f99f6b9b71efec1"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"3f921af84f7a987f513942179fc0d63affeaecac","unresolved":false,"context_lines":[{"line_number":562,"context_line":"    @task_manager.require_exclusive_lock"},{"line_number":563,"context_line":"    def continue_deploy(self, task, **kwargs):"},{"line_number":564,"context_line":"        \"\"\"Method invoked when deployed with the IPA ramdisk.\"\"\""},{"line_number":565,"context_line":"        try:"},{"line_number":566,"context_line":"            node \u003d task.node"},{"line_number":567,"context_line":"            LOG.debug(\u0027Continuing the deployment on node %s\u0027, node.uuid)"},{"line_number":568,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"ba7be1f8_fc935858","line":565,"in_reply_to":"ba7be1f8_db478175","updated":"2015-02-25 14:40:58.000000000","message":"The idea was to have a global wrapper so we make sure that we are capturing all the exceptions and logging something meanful","commit_id":"8839906606b60b0d166313c39f99f6b9b71efec1"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"98eae11ef81838b1afcf9c8a426e666daa525149","unresolved":false,"context_lines":[{"line_number":579,"context_line":"                         {\u0027node\u0027: node.uuid, \u0027error\u0027: result[\u0027command_error\u0027]})"},{"line_number":580,"context_line":"                LOG.error(msg)"},{"line_number":581,"context_line":"                deploy_utils.set_failed_state(task, msg)"},{"line_number":582,"context_line":"                raise exception.InstanceDeployFailure(msg)"},{"line_number":583,"context_line":""},{"line_number":584,"context_line":"            address \u003d urlparse.urlparse(node.driver_internal_info[\u0027agent_url\u0027])"},{"line_number":585,"context_line":"            address \u003d address.hostname"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba7be1f8_3b7fbdac","line":582,"updated":"2015-02-25 13:04:29.000000000","message":"Again this would be double repetition as per comment on L625.","commit_id":"8839906606b60b0d166313c39f99f6b9b71efec1"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"3f921af84f7a987f513942179fc0d63affeaecac","unresolved":false,"context_lines":[{"line_number":579,"context_line":"                         {\u0027node\u0027: node.uuid, \u0027error\u0027: result[\u0027command_error\u0027]})"},{"line_number":580,"context_line":"                LOG.error(msg)"},{"line_number":581,"context_line":"                deploy_utils.set_failed_state(task, msg)"},{"line_number":582,"context_line":"                raise exception.InstanceDeployFailure(msg)"},{"line_number":583,"context_line":""},{"line_number":584,"context_line":"            address \u003d urlparse.urlparse(node.driver_internal_info[\u0027agent_url\u0027])"},{"line_number":585,"context_line":"            address \u003d address.hostname"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba7be1f8_3c9a506e","line":582,"in_reply_to":"ba7be1f8_3b7fbdac","updated":"2015-02-25 14:40:58.000000000","message":"Done","commit_id":"8839906606b60b0d166313c39f99f6b9b71efec1"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"98eae11ef81838b1afcf9c8a426e666daa525149","unresolved":false,"context_lines":[{"line_number":614,"context_line":"            try:"},{"line_number":615,"context_line":"                manager_utils.node_power_action(task, states.REBOOT)"},{"line_number":616,"context_line":"            except Exception as e:"},{"line_number":617,"context_line":"                LOG.error(_LE(\u0027Error rebooting node %(node)s after the \u0027"},{"line_number":618,"context_line":"                              \u0027deployment. Error: %(error)s\u0027),"},{"line_number":619,"context_line":"                          {\u0027node\u0027: node.uuid, \u0027error\u0027: e})"},{"line_number":620,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"ba7be1f8_9b1989d9","line":617,"updated":"2015-02-25 13:04:29.000000000","message":"We know that we couldn\u0027t reboot the machine for some reason, I think we should rather error out and set deploy as failed rather than recording deploy is complete.  If the user requests the bare metal from nova and if it fails to reboot, the user might never be able to ssh to the system.  Since it is handle down, may be not catch this exception at all.","commit_id":"8839906606b60b0d166313c39f99f6b9b71efec1"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"3f921af84f7a987f513942179fc0d63affeaecac","unresolved":false,"context_lines":[{"line_number":614,"context_line":"            try:"},{"line_number":615,"context_line":"                manager_utils.node_power_action(task, states.REBOOT)"},{"line_number":616,"context_line":"            except Exception as e:"},{"line_number":617,"context_line":"                LOG.error(_LE(\u0027Error rebooting node %(node)s after the \u0027"},{"line_number":618,"context_line":"                              \u0027deployment. Error: %(error)s\u0027),"},{"line_number":619,"context_line":"                          {\u0027node\u0027: node.uuid, \u0027error\u0027: e})"},{"line_number":620,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"ba7be1f8_7c1928d6","line":617,"in_reply_to":"ba7be1f8_9b1989d9","updated":"2015-02-25 14:40:58.000000000","message":"fair enough, I thought about only logging it. But I see you point from the nova perspective. I agree with it so I will make it fail in case the machine can\u0027t reboot.","commit_id":"8839906606b60b0d166313c39f99f6b9b71efec1"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"98eae11ef81838b1afcf9c8a426e666daa525149","unresolved":false,"context_lines":[{"line_number":622,"context_line":"            LOG.info(_LI(\u0027Deployment to node %s done\u0027), node.uuid)"},{"line_number":623,"context_line":""},{"line_number":624,"context_line":"        except Exception as e:"},{"line_number":625,"context_line":"            msg \u003d (_(\u0027Deploy failed for instance %(instance)s on node \u0027"},{"line_number":626,"context_line":"                    \u0027%(node)s. Error: %(error)s\u0027) % {\u0027node\u0027: node.uuid,"},{"line_number":627,"context_line":"                    \u0027instance\u0027: node.instance_uuid, \u0027error\u0027: e})"},{"line_number":628,"context_line":"            LOG.error(msg)"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba7be1f8_bb6badef","line":625,"updated":"2015-02-25 13:04:29.000000000","message":"I think the text will be repetitive in the final exception.  Anything raised would be wrapped around message of InstanceDeployFailure which would look like:\n\n\"Failed to deploy instance: Deploy failed for instance \u003cinstance\u003e on node \u003cnode\u003e. Error: \u003cactual error\u003e\"","commit_id":"8839906606b60b0d166313c39f99f6b9b71efec1"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"3f921af84f7a987f513942179fc0d63affeaecac","unresolved":false,"context_lines":[{"line_number":622,"context_line":"            LOG.info(_LI(\u0027Deployment to node %s done\u0027), node.uuid)"},{"line_number":623,"context_line":""},{"line_number":624,"context_line":"        except Exception as e:"},{"line_number":625,"context_line":"            msg \u003d (_(\u0027Deploy failed for instance %(instance)s on node \u0027"},{"line_number":626,"context_line":"                    \u0027%(node)s. Error: %(error)s\u0027) % {\u0027node\u0027: node.uuid,"},{"line_number":627,"context_line":"                    \u0027instance\u0027: node.instance_uuid, \u0027error\u0027: e})"},{"line_number":628,"context_line":"            LOG.error(msg)"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba7be1f8_fc6b581b","line":625,"in_reply_to":"ba7be1f8_bb6badef","updated":"2015-02-25 14:40:58.000000000","message":"Done","commit_id":"8839906606b60b0d166313c39f99f6b9b71efec1"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"98eae11ef81838b1afcf9c8a426e666daa525149","unresolved":false,"context_lines":[{"line_number":627,"context_line":"                    \u0027instance\u0027: node.instance_uuid, \u0027error\u0027: e})"},{"line_number":628,"context_line":"            LOG.error(msg)"},{"line_number":629,"context_line":"            deploy_utils.set_failed_state(task, msg)"},{"line_number":630,"context_line":"            raise exception.InstanceDeployFailure(msg)"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba7be1f8_dbb9417a","line":630,"updated":"2015-02-25 13:04:29.000000000","message":"InstanceDeployFailure(reason\u003dmsg)","commit_id":"8839906606b60b0d166313c39f99f6b9b71efec1"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"3f921af84f7a987f513942179fc0d63affeaecac","unresolved":false,"context_lines":[{"line_number":627,"context_line":"                    \u0027instance\u0027: node.instance_uuid, \u0027error\u0027: e})"},{"line_number":628,"context_line":"            LOG.error(msg)"},{"line_number":629,"context_line":"            deploy_utils.set_failed_state(task, msg)"},{"line_number":630,"context_line":"            raise exception.InstanceDeployFailure(msg)"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba7be1f8_1c758cf9","line":630,"in_reply_to":"ba7be1f8_dbb9417a","updated":"2015-02-25 14:40:58.000000000","message":"Done","commit_id":"8839906606b60b0d166313c39f99f6b9b71efec1"},{"author":{"_account_id":5805,"name":"Chris Krelle","email":"nobodycam@gmail.com","username":"nobodycam"},"change_message_id":"5bbd10cccaaee6fc130b7d2817a823518ce2eecb","unresolved":false,"context_lines":[{"line_number":505,"context_line":"        \"\"\""},{"line_number":506,"context_line":"        if method \u003d\u003d \u0027pass_deploy_info\u0027:"},{"line_number":507,"context_line":"            driver_utils.validate_boot_option_capability(task.node)"},{"line_number":508,"context_line":"            iscsi_deploy.get_deploy_info(task.node, **kwargs)"},{"line_number":509,"context_line":""},{"line_number":510,"context_line":"    @base.passthru([\u0027POST\u0027], method\u003d\u0027pass_deploy_info\u0027)"},{"line_number":511,"context_line":"    @task_manager.require_exclusive_lock"}],"source_content_type":"text/x-python","patch_set":15,"id":"ba7be1f8_1b157d48","line":508,"updated":"2015-02-25 22:48:46.000000000","message":"maybe a else: with a log method not pass_deploy_info, Also may be worth updating the doc string for the method as this change seems to change the way validate will act.","commit_id":"3d4c8f29ff5bbd47cab247c1f75677bd91ba611c"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"1622d67a6d9d6fcc8c96e00b9c4914d6057bc16f","unresolved":false,"context_lines":[{"line_number":505,"context_line":"        \"\"\""},{"line_number":506,"context_line":"        if method \u003d\u003d \u0027pass_deploy_info\u0027:"},{"line_number":507,"context_line":"            driver_utils.validate_boot_option_capability(task.node)"},{"line_number":508,"context_line":"            iscsi_deploy.get_deploy_info(task.node, **kwargs)"},{"line_number":509,"context_line":""},{"line_number":510,"context_line":"    @base.passthru([\u0027POST\u0027], method\u003d\u0027pass_deploy_info\u0027)"},{"line_number":511,"context_line":"    @task_manager.require_exclusive_lock"}],"source_content_type":"text/x-python","patch_set":15,"id":"ba7be1f8_2b52e166","line":508,"in_reply_to":"ba7be1f8_1b157d48","updated":"2015-02-26 09:46:10.000000000","message":"hmm I don\u0027t know if necessary. Because we have only 1 validate() method for all vendor methods, so we need to do a conditional per method. Other drivers does the same[1][2]. The agent specifically doesn\u0027t have anything to validate in the heartbeat() method (which is the vendor_passthru method for it, see agent_base_vendor.py)\n\n [1] https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/ipmitool.py#L904-L910\n\n [2] https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/fake.py#L93-L97","commit_id":"3d4c8f29ff5bbd47cab247c1f75677bd91ba611c"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"80d4ade817841c597eeb238fb2c1ddad0ac445f4","unresolved":false,"context_lines":[{"line_number":586,"context_line":""},{"line_number":587,"context_line":"        address \u003d urlparse.urlparse(node.driver_internal_info[\u0027agent_url\u0027])"},{"line_number":588,"context_line":"        address \u003d address.hostname"},{"line_number":589,"context_line":"        iscsi_params \u003d {\u0027error\u0027: result[\u0027command_error\u0027],"},{"line_number":590,"context_line":"                        \u0027iqn\u0027: iqn,"},{"line_number":591,"context_line":"                        \u0027key\u0027: pxe_options[\u0027deployment_key\u0027],"},{"line_number":592,"context_line":"                        \u0027address\u0027: address}"}],"source_content_type":"text/x-python","patch_set":15,"id":"ba7be1f8_92b8672b","line":589,"updated":"2015-02-26 02:51:17.000000000","message":"nit: i don\u0027t think if it\u0027s really required. the dib ramdisk had no way for telling a failure, that\u0027s why it posted an error string on a vendor-passthru.  for ipa ramdisk, we are checking command_status above and should be enough. more over, if command succeeded and something was set in result[\u0027command_error\u0027], iscsi_deploy.continue_deploy() would stop execution (which i think we might not want).","commit_id":"3d4c8f29ff5bbd47cab247c1f75677bd91ba611c"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"1622d67a6d9d6fcc8c96e00b9c4914d6057bc16f","unresolved":false,"context_lines":[{"line_number":586,"context_line":""},{"line_number":587,"context_line":"        address \u003d urlparse.urlparse(node.driver_internal_info[\u0027agent_url\u0027])"},{"line_number":588,"context_line":"        address \u003d address.hostname"},{"line_number":589,"context_line":"        iscsi_params \u003d {\u0027error\u0027: result[\u0027command_error\u0027],"},{"line_number":590,"context_line":"                        \u0027iqn\u0027: iqn,"},{"line_number":591,"context_line":"                        \u0027key\u0027: pxe_options[\u0027deployment_key\u0027],"},{"line_number":592,"context_line":"                        \u0027address\u0027: address}"}],"source_content_type":"text/x-python","patch_set":15,"id":"ba7be1f8_eb436910","line":589,"in_reply_to":"ba7be1f8_92b8672b","updated":"2015-02-26 09:46:10.000000000","message":"It\u0027s required by the iscsi_deploy.continue_deploy() to have a \u0027error\u0027 in the kwargs.\n\nI\u0027m intentionally fooling this function because this patch is just a forklift, it\u0027s not intended to fix all the inconsistency. It\u0027s the first patch of a series, so this make it works, one driver 2 ramdisks. Future patches will polish things up.\n\nIf I add all fix to one patch we won\u0027t see it merged until M starts :) (I\u0027m exaggerating, but bigger patches are more problematic to maintain, merge conflicts and hard to review. I\u0027m more about the hack it to make it work and polish it later)","commit_id":"3d4c8f29ff5bbd47cab247c1f75677bd91ba611c"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"1adc9bd2983285eb76a89c6b8adf321e3b611b18","unresolved":false,"context_lines":[{"line_number":586,"context_line":""},{"line_number":587,"context_line":"        address \u003d urlparse.urlparse(node.driver_internal_info[\u0027agent_url\u0027])"},{"line_number":588,"context_line":"        address \u003d address.hostname"},{"line_number":589,"context_line":"        iscsi_params \u003d {\u0027error\u0027: result[\u0027command_error\u0027],"},{"line_number":590,"context_line":"                        \u0027iqn\u0027: iqn,"},{"line_number":591,"context_line":"                        \u0027key\u0027: pxe_options[\u0027deployment_key\u0027],"},{"line_number":592,"context_line":"                        \u0027address\u0027: address}"}],"source_content_type":"text/x-python","patch_set":15,"id":"ba7be1f8_cb3a25e6","line":589,"in_reply_to":"ba7be1f8_eb436910","updated":"2015-02-26 09:49:18.000000000","message":"Agreed :)","commit_id":"3d4c8f29ff5bbd47cab247c1f75677bd91ba611c"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"80d4ade817841c597eeb238fb2c1ddad0ac445f4","unresolved":false,"context_lines":[{"line_number":588,"context_line":"        address \u003d address.hostname"},{"line_number":589,"context_line":"        iscsi_params \u003d {\u0027error\u0027: result[\u0027command_error\u0027],"},{"line_number":590,"context_line":"                        \u0027iqn\u0027: iqn,"},{"line_number":591,"context_line":"                        \u0027key\u0027: pxe_options[\u0027deployment_key\u0027],"},{"line_number":592,"context_line":"                        \u0027address\u0027: address}"},{"line_number":593,"context_line":""},{"line_number":594,"context_line":"        # NOTE(lucasagomes): We don\u0027t use the token file with the agent,"}],"source_content_type":"text/x-python","patch_set":15,"id":"ba7be1f8_d2d65f27","line":591,"updated":"2015-02-26 02:51:17.000000000","message":"i think we are just cheating the system by generating a deployment_key, storing it in instance_info (in _build_pxe_config_options) and then checking the deploy key again reading from instance_info and trying to match it (in iscsi_deploy.get_deploy_info()).\n\nmay be worth adding a todo that ipa ramdisk should post this key passed in kernel-cmdline in the first heartbeat. since vendor-passthru is not protected, may be worth changing now itself. not sure. :)","commit_id":"3d4c8f29ff5bbd47cab247c1f75677bd91ba611c"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"1adc9bd2983285eb76a89c6b8adf321e3b611b18","unresolved":false,"context_lines":[{"line_number":588,"context_line":"        address \u003d address.hostname"},{"line_number":589,"context_line":"        iscsi_params \u003d {\u0027error\u0027: result[\u0027command_error\u0027],"},{"line_number":590,"context_line":"                        \u0027iqn\u0027: iqn,"},{"line_number":591,"context_line":"                        \u0027key\u0027: pxe_options[\u0027deployment_key\u0027],"},{"line_number":592,"context_line":"                        \u0027address\u0027: address}"},{"line_number":593,"context_line":""},{"line_number":594,"context_line":"        # NOTE(lucasagomes): We don\u0027t use the token file with the agent,"}],"source_content_type":"text/x-python","patch_set":15,"id":"ba7be1f8_eb3d29de","line":591,"in_reply_to":"ba7be1f8_0bd19d22","updated":"2015-02-26 09:49:18.000000000","message":"Okay","commit_id":"3d4c8f29ff5bbd47cab247c1f75677bd91ba611c"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"1622d67a6d9d6fcc8c96e00b9c4914d6057bc16f","unresolved":false,"context_lines":[{"line_number":588,"context_line":"        address \u003d address.hostname"},{"line_number":589,"context_line":"        iscsi_params \u003d {\u0027error\u0027: result[\u0027command_error\u0027],"},{"line_number":590,"context_line":"                        \u0027iqn\u0027: iqn,"},{"line_number":591,"context_line":"                        \u0027key\u0027: pxe_options[\u0027deployment_key\u0027],"},{"line_number":592,"context_line":"                        \u0027address\u0027: address}"},{"line_number":593,"context_line":""},{"line_number":594,"context_line":"        # NOTE(lucasagomes): We don\u0027t use the token file with the agent,"}],"source_content_type":"text/x-python","patch_set":15,"id":"ba7be1f8_0bd19d22","line":591,"in_reply_to":"ba7be1f8_d2d65f27","updated":"2015-02-26 09:46:10.000000000","message":"I can add a TODO, but same comment as above, I\u0027m intentionally fooling it because it\u0027s required for iscsi_deploy.continue_deploy(), and changing that would require changes in the function to work with the bash ramdisk and also iLO + plus tests.","commit_id":"3d4c8f29ff5bbd47cab247c1f75677bd91ba611c"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"a642344fb9fa6a749677ab3114d57307153e65cf","unresolved":false,"context_lines":[{"line_number":501,"context_line":""},{"line_number":502,"context_line":"        :param task: a TaskManager instance containing the node to act on."},{"line_number":503,"context_line":"        :param method: method to be validated."},{"line_number":504,"context_line":"        :param kwargs: kwargs containins the method\u0027s parameters."},{"line_number":505,"context_line":"        :raises: InvalidParameterValue if any parameters is invalid."},{"line_number":506,"context_line":"        \"\"\""},{"line_number":507,"context_line":"        if method \u003d\u003d \u0027pass_deploy_info\u0027:"}],"source_content_type":"text/x-python","patch_set":16,"id":"ba7be1f8_bf7432cf","line":504,"updated":"2015-02-26 19:33:48.000000000","message":"nit: s/containins/containing/\n\nI know, it was there already.","commit_id":"d87309e6f3b8956aa4211d5fe35a9bcfe9d851a7"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"08dfa0367b9c48a811da9b7af1db60e88253c57a","unresolved":false,"context_lines":[{"line_number":501,"context_line":""},{"line_number":502,"context_line":"        :param task: a TaskManager instance containing the node to act on."},{"line_number":503,"context_line":"        :param method: method to be validated."},{"line_number":504,"context_line":"        :param kwargs: kwargs containins the method\u0027s parameters."},{"line_number":505,"context_line":"        :raises: InvalidParameterValue if any parameters is invalid."},{"line_number":506,"context_line":"        \"\"\""},{"line_number":507,"context_line":"        if method \u003d\u003d \u0027pass_deploy_info\u0027:"}],"source_content_type":"text/x-python","patch_set":16,"id":"ba7be1f8_e4ec3392","line":504,"in_reply_to":"ba7be1f8_bf7432cf","updated":"2015-02-27 15:11:34.000000000","message":"Right I have a bunch of TODO\u0027s on the modules already I fix it up once I start tackling those","commit_id":"d87309e6f3b8956aa4211d5fe35a9bcfe9d851a7"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"a642344fb9fa6a749677ab3114d57307153e65cf","unresolved":false,"context_lines":[{"line_number":601,"context_line":"        # NOTE(lucasagomes): We don\u0027t use the token file with the agent,"},{"line_number":602,"context_line":"        # but as it\u0027s created as part of deploy() we are going to remove"},{"line_number":603,"context_line":"        # it here."},{"line_number":604,"context_line":"        _destroy_token_file(node)"},{"line_number":605,"context_line":""},{"line_number":606,"context_line":"        root_uuid \u003d iscsi_deploy.continue_deploy(task, **iscsi_params)"},{"line_number":607,"context_line":"        if not root_uuid:"}],"source_content_type":"text/x-python","patch_set":16,"id":"ba7be1f8_08cfc7b4","line":604,"updated":"2015-02-26 19:33:48.000000000","message":"just wondering if this should be done before any possible error (eg above call to _client.start_iscsi_target())","commit_id":"d87309e6f3b8956aa4211d5fe35a9bcfe9d851a7"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"08dfa0367b9c48a811da9b7af1db60e88253c57a","unresolved":false,"context_lines":[{"line_number":601,"context_line":"        # NOTE(lucasagomes): We don\u0027t use the token file with the agent,"},{"line_number":602,"context_line":"        # but as it\u0027s created as part of deploy() we are going to remove"},{"line_number":603,"context_line":"        # it here."},{"line_number":604,"context_line":"        _destroy_token_file(node)"},{"line_number":605,"context_line":""},{"line_number":606,"context_line":"        root_uuid \u003d iscsi_deploy.continue_deploy(task, **iscsi_params)"},{"line_number":607,"context_line":"        if not root_uuid:"}],"source_content_type":"text/x-python","patch_set":16,"id":"ba7be1f8_84bb7774","line":604,"in_reply_to":"ba7be1f8_08cfc7b4","updated":"2015-02-27 15:11:34.000000000","message":"Right, yeah we could remove it at the beginning of the method, I have a bunch of TODO\u0027s here, I will fix it when I\u0027m tackling those.","commit_id":"d87309e6f3b8956aa4211d5fe35a9bcfe9d851a7"}],"ironic/drivers/modules/pxe_config.template":[{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"c4052f85aa9937976500df9236586f8fa2e71f55","unresolved":false,"context_lines":[{"line_number":2,"context_line":""},{"line_number":3,"context_line":"label deploy"},{"line_number":4,"context_line":"kernel {{ pxe_options.deployment_aki_path }}"},{"line_number":5,"context_line":"append initrd\u003d{{ pxe_options.deployment_ari_path }} selinux\u003d0 disk\u003d{{ pxe_options.disk }} iscsi_target_iqn\u003d{{ pxe_options.iscsi_target_iqn }} deployment_id\u003d{{ pxe_options.deployment_id }} deployment_key\u003d{{ pxe_options.deployment_key }} ironic_api_url\u003d{{ pxe_options.ironic_api_url }} troubleshoot\u003d0 text {{ pxe_options.pxe_append_params|default(\"\", true) }} boot_option\u003d{{ pxe_options.boot_option }} {% if pxe_options.root_device %}root_device\u003d{{ pxe_options.root_device }}{% endif %} ipa-api-url\u003d{{ pxe_options[\u0027ipa-api-url\u0027] }} ipa-driver-name\u003d{{ pxe_options[\u0027ipa-driver-name\u0027] }}"},{"line_number":6,"context_line":"ipappend 3"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":12,"id":"ba7be1f8_02c9dbab","line":5,"updated":"2015-02-24 15:47:19.000000000","message":"This is same as pxe_options.ironic_api_url ? Do we need another option ?","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"8e405bf278aa06e3eabcfd513f4956c0228552cf","unresolved":false,"context_lines":[{"line_number":2,"context_line":""},{"line_number":3,"context_line":"label deploy"},{"line_number":4,"context_line":"kernel {{ pxe_options.deployment_aki_path }}"},{"line_number":5,"context_line":"append initrd\u003d{{ pxe_options.deployment_ari_path }} selinux\u003d0 disk\u003d{{ pxe_options.disk }} iscsi_target_iqn\u003d{{ pxe_options.iscsi_target_iqn }} deployment_id\u003d{{ pxe_options.deployment_id }} deployment_key\u003d{{ pxe_options.deployment_key }} ironic_api_url\u003d{{ pxe_options.ironic_api_url }} troubleshoot\u003d0 text {{ pxe_options.pxe_append_params|default(\"\", true) }} boot_option\u003d{{ pxe_options.boot_option }} {% if pxe_options.root_device %}root_device\u003d{{ pxe_options.root_device }}{% endif %} ipa-api-url\u003d{{ pxe_options[\u0027ipa-api-url\u0027] }} ipa-driver-name\u003d{{ pxe_options[\u0027ipa-driver-name\u0027] }}"},{"line_number":6,"context_line":"ipappend 3"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":12,"id":"ba7be1f8_cdc36f55","line":5,"in_reply_to":"ba7be1f8_02c9dbab","updated":"2015-02-24 17:42:39.000000000","message":"Yeah, it\u0027s the same, but the bash ramdisk looks at \"ironic_api_url\" and IPA at \"ipa-api-url\". Since I want to make this PXE config file to work with both ramdisks I have to maintain both options specified here.\n\nWe could make the kernel parameter more consistent across the ramdisks, but it\u0027s outside the scope of this patch.","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"627b7d1335d1f62b33b39431eebd74000ed3fa13","unresolved":false,"context_lines":[{"line_number":2,"context_line":""},{"line_number":3,"context_line":"label deploy"},{"line_number":4,"context_line":"kernel {{ pxe_options.deployment_aki_path }}"},{"line_number":5,"context_line":"append initrd\u003d{{ pxe_options.deployment_ari_path }} selinux\u003d0 disk\u003d{{ pxe_options.disk }} iscsi_target_iqn\u003d{{ pxe_options.iscsi_target_iqn }} deployment_id\u003d{{ pxe_options.deployment_id }} deployment_key\u003d{{ pxe_options.deployment_key }} ironic_api_url\u003d{{ pxe_options.ironic_api_url }} troubleshoot\u003d0 text {{ pxe_options.pxe_append_params|default(\"\", true) }} boot_option\u003d{{ pxe_options.boot_option }} {% if pxe_options.root_device %}root_device\u003d{{ pxe_options.root_device }}{% endif %} ipa-api-url\u003d{{ pxe_options[\u0027ipa-api-url\u0027] }} ipa-driver-name\u003d{{ pxe_options[\u0027ipa-driver-name\u0027] }}"},{"line_number":6,"context_line":"ipappend 3"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":12,"id":"ba7be1f8_86bcd8dd","line":5,"in_reply_to":"ba7be1f8_48767ba5","updated":"2015-02-25 10:00:27.000000000","message":"ack :)","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"8b210dc17148801691252f59857c4a88304698cc","unresolved":false,"context_lines":[{"line_number":2,"context_line":""},{"line_number":3,"context_line":"label deploy"},{"line_number":4,"context_line":"kernel {{ pxe_options.deployment_aki_path }}"},{"line_number":5,"context_line":"append initrd\u003d{{ pxe_options.deployment_ari_path }} selinux\u003d0 disk\u003d{{ pxe_options.disk }} iscsi_target_iqn\u003d{{ pxe_options.iscsi_target_iqn }} deployment_id\u003d{{ pxe_options.deployment_id }} deployment_key\u003d{{ pxe_options.deployment_key }} ironic_api_url\u003d{{ pxe_options.ironic_api_url }} troubleshoot\u003d0 text {{ pxe_options.pxe_append_params|default(\"\", true) }} boot_option\u003d{{ pxe_options.boot_option }} {% if pxe_options.root_device %}root_device\u003d{{ pxe_options.root_device }}{% endif %} ipa-api-url\u003d{{ pxe_options[\u0027ipa-api-url\u0027] }} ipa-driver-name\u003d{{ pxe_options[\u0027ipa-driver-name\u0027] }}"},{"line_number":6,"context_line":"ipappend 3"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":12,"id":"ba7be1f8_48767ba5","line":5,"in_reply_to":"ba7be1f8_cdc36f55","updated":"2015-02-25 01:37:58.000000000","message":"I actually meant \n\n  ipa-api-url\u003d{{ pxe_options.ironic_api_url }}\n\nBut when I look at the code, ipa-api-url is built for free from the agent method.  Yeah, this can be let off.","commit_id":"a1c0bc7c8e93db625aa6bd8a3ee6d800a4d00966"}],"ironic/tests/drivers/test_pxe.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9ecedd052455376176e9ff46e5feacb63f577579","unresolved":false,"context_lines":[{"line_number":934,"context_line":"        self.task.shared \u003d False"},{"line_number":935,"context_line":"        self.task.node \u003d self.node"},{"line_number":936,"context_line":"        self.task.driver \u003d self.driver"},{"line_number":937,"context_line":"        self.task.context \u003d self.context"},{"line_number":938,"context_line":""},{"line_number":939,"context_line":"    @mock.patch.object(deploy_utils, \u0027switch_pxe_config\u0027)"},{"line_number":940,"context_line":"    @mock.patch.object(manager_utils, \u0027node_power_action\u0027)"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba7be1f8_77d00554","line":937,"updated":"2015-02-20 14:04:37.000000000","message":"nit: could be one-liner:\n\n self.task \u003d mock.Mock(spec\u003dtask_manager.TaskManager,\n                       shared\u003dFalse,\n\n...","commit_id":"00243e60da9e55245ece523ea41186d17f65dd44"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"75791f46084b85989973b3db6b529f5a8975e898","unresolved":false,"context_lines":[{"line_number":1058,"context_line":"        mock_cont_deploy.return_value \u003d None"},{"line_number":1059,"context_line":"        mock_cont_deploy.side_effect \u003d processutils.ProcessExecutionError()"},{"line_number":1060,"context_line":"        self.assertRaises(exception.InstanceDeployFailure,"},{"line_number":1061,"context_line":"                          self.driver.vendor.continue_deploy, self.task)"},{"line_number":1062,"context_line":"        mock_image_info.assert_called_once_with(self.node, self.context)"},{"line_number":1063,"context_line":"        mock_pxe_opts.assert_called_once_with(self.task, mock.ANY)"},{"line_number":1064,"context_line":"        mock_start_iscsi.assert_called_once_with(self.node, \u0027fake-iqn\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba7be1f8_86a84d8e","line":1061,"updated":"2015-02-25 14:02:14.000000000","message":"I see two fail cases where an exception is raised.  I think it would be good to test for both.\n\nMaybe get the result of the message from the exception being raised and make sure it is the one that is expected?\n\nOr maybe mock the LOG object and check what has been written to it?","commit_id":"8839906606b60b0d166313c39f99f6b9b71efec1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"a642344fb9fa6a749677ab3114d57307153e65cf","unresolved":false,"context_lines":[{"line_number":1011,"context_line":"        result \u003d self.assertRaises(exception.InstanceDeployFailure,"},{"line_number":1012,"context_line":"                          self.driver.vendor.continue_deploy, self.task)"},{"line_number":1013,"context_line":"        self.assertIn(\"Error rebooting node %s\" % self.node.uuid,"},{"line_number":1014,"context_line":"                      result.format_message())"},{"line_number":1015,"context_line":"        mock_image_info.assert_called_once_with(self.node, self.context)"},{"line_number":1016,"context_line":"        mock_pxe_opts.assert_called_once_with(self.task.node, mock.ANY,"},{"line_number":1017,"context_line":"                                              self.task.context)"}],"source_content_type":"text/x-python","patch_set":16,"id":"ba7be1f8_ebb42d37","line":1014,"updated":"2015-02-26 19:33:48.000000000","message":"I can\u0027t recall now why, but I thought we shouldn\u0027t be checking strings showing up in messages","commit_id":"d87309e6f3b8956aa4211d5fe35a9bcfe9d851a7"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"225da644de2634bbba7bc62eef37380b891b058d","unresolved":false,"context_lines":[{"line_number":1011,"context_line":"        result \u003d self.assertRaises(exception.InstanceDeployFailure,"},{"line_number":1012,"context_line":"                          self.driver.vendor.continue_deploy, self.task)"},{"line_number":1013,"context_line":"        self.assertIn(\"Error rebooting node %s\" % self.node.uuid,"},{"line_number":1014,"context_line":"                      result.format_message())"},{"line_number":1015,"context_line":"        mock_image_info.assert_called_once_with(self.node, self.context)"},{"line_number":1016,"context_line":"        mock_pxe_opts.assert_called_once_with(self.task.node, mock.ANY,"},{"line_number":1017,"context_line":"                                              self.task.context)"}],"source_content_type":"text/x-python","patch_set":16,"id":"ba7be1f8_ffebdcad","line":1014,"in_reply_to":"ba7be1f8_a44ebb94","updated":"2015-02-27 15:25:44.000000000","message":"I tend to think this is fine, ensuring good error messages is a good thing :)","commit_id":"d87309e6f3b8956aa4211d5fe35a9bcfe9d851a7"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"08dfa0367b9c48a811da9b7af1db60e88253c57a","unresolved":false,"context_lines":[{"line_number":1011,"context_line":"        result \u003d self.assertRaises(exception.InstanceDeployFailure,"},{"line_number":1012,"context_line":"                          self.driver.vendor.continue_deploy, self.task)"},{"line_number":1013,"context_line":"        self.assertIn(\"Error rebooting node %s\" % self.node.uuid,"},{"line_number":1014,"context_line":"                      result.format_message())"},{"line_number":1015,"context_line":"        mock_image_info.assert_called_once_with(self.node, self.context)"},{"line_number":1016,"context_line":"        mock_pxe_opts.assert_called_once_with(self.task.node, mock.ANY,"},{"line_number":1017,"context_line":"                                              self.task.context)"}],"source_content_type":"text/x-python","patch_set":16,"id":"ba7be1f8_a44ebb94","line":1014,"in_reply_to":"ba7be1f8_ebb42d37","updated":"2015-02-27 15:11:34.000000000","message":"Hmm, not sure either. I think it\u0027s a good thing because we make sure that the error returned is correct, or if the exception message is included in the error message etc...","commit_id":"d87309e6f3b8956aa4211d5fe35a9bcfe9d851a7"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"8135fc31c82ac777a3edcba3ab27130078922397","unresolved":false,"context_lines":[{"line_number":1011,"context_line":"        result \u003d self.assertRaises(exception.InstanceDeployFailure,"},{"line_number":1012,"context_line":"                          self.driver.vendor.continue_deploy, self.task)"},{"line_number":1013,"context_line":"        self.assertIn(\"Error rebooting node %s\" % self.node.uuid,"},{"line_number":1014,"context_line":"                      result.format_message())"},{"line_number":1015,"context_line":"        mock_image_info.assert_called_once_with(self.node, self.context)"},{"line_number":1016,"context_line":"        mock_pxe_opts.assert_called_once_with(self.task.node, mock.ANY,"},{"line_number":1017,"context_line":"                                              self.task.context)"}],"source_content_type":"text/x-python","patch_set":16,"id":"ba7be1f8_d8b17d02","line":1014,"in_reply_to":"ba7be1f8_ffebdcad","updated":"2015-03-02 19:32:55.000000000","message":"I just asked deva on irc [1] and he thinks unit tests that rely on LOCALE setting are unreliable, and he thought at some point in time (so maybe even now), translated strings were being used.\n\n[1] starting at 2015-03-02T19:23:45, http://eavesdrop.openstack.org/irclogs/%23openstack-ironic/%23openstack-ironic.2015-03-02.log","commit_id":"d87309e6f3b8956aa4211d5fe35a9bcfe9d851a7"}]}
