)]}'
{"ironic/drivers/modules/agent.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"dcb96cf0578df3555dc38c002bb71d458501928f","unresolved":false,"context_lines":[{"line_number":775,"context_line":"            has an invalid value when \u0027neutron\u0027 network is used."},{"line_number":776,"context_line":"        :raises: MissingParameterValue if node is missing one or more required"},{"line_number":777,"context_line":"            parameters"},{"line_number":778,"context_line":"        :raises: IncompatibleInterface if \u0027prepare_ramdisk\u0027 and"},{"line_number":779,"context_line":"            \u0027clean_up_ramdisk\u0027 of node\u0027s boot interface do not support \u0027mode\u0027"},{"line_number":780,"context_line":"            argument."},{"line_number":781,"context_line":"        \"\"\""},{"line_number":782,"context_line":"        node \u003d task.node"},{"line_number":783,"context_line":"        missing_params \u003d []"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_bc6e6ffd","line":780,"range":{"start_line":778,"start_character":0,"end_line":780,"end_character":21},"updated":"2018-02-01 14:36:06.000000000","message":"lets delete this","commit_id":"fadaff250e7949926f77f04128067b7cc376912f"}],"ironic/drivers/modules/deploy_utils.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"d6ada38e8a10e4f4841ff0c0e800524feb61b7f7","unresolved":false,"context_lines":[{"line_number":126,"context_line":""},{"line_number":127,"context_line":"def rescue_or_deploy_mode(node):"},{"line_number":128,"context_line":"    return (\u0027rescue\u0027 if node.provision_state in RESCUE_LIKE_STATES"},{"line_number":129,"context_line":"            else \u0027deploy\u0027)"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"def discovery(portal_address, portal_port):"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f93b717_68481d2c","line":129,"updated":"2018-02-01 16:33:43.000000000","message":"strictly speaking this is wrong, it is just that we\u0027re using it in the context where it is either rescue or deploy. \n\nIf you push up another revision, would be good to add a note or comment about it. Someone can add DEPLOY_LIKE_STATES later I guess, or just leave this as is.\n\nThe file is called deploy_utils.py so I\u0027m good with assuming it is either deploy or rescue, would just be good to document it :)","commit_id":"954a23482082f3dcfb57cfbb71e5d61f05c7fbce"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"9bfbc82635d9fb2f0c83cd48e3ba963a8e95ba1f","unresolved":false,"context_lines":[{"line_number":126,"context_line":""},{"line_number":127,"context_line":"def rescue_or_deploy_mode(node):"},{"line_number":128,"context_line":"    return (\u0027rescue\u0027 if node.provision_state in RESCUE_LIKE_STATES"},{"line_number":129,"context_line":"            else \u0027deploy\u0027)"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"def discovery(portal_address, portal_port):"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f93b717_9f3e00b6","line":129,"in_reply_to":"5f93b717_5cbf26a9","updated":"2018-02-01 17:23:32.000000000","message":"Oh, I was just thinking of something like \u0027The assumption here is that this is being called when the node is either in rescue or deploy mode.\u0027\n\nBut having this conversation in the patch is good enough if someone wants to track down why this method was put here etc.","commit_id":"954a23482082f3dcfb57cfbb71e5d61f05c7fbce"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"b19d0e6da27bc6eebc918a7a9af3f564267933f2","unresolved":false,"context_lines":[{"line_number":126,"context_line":""},{"line_number":127,"context_line":"def rescue_or_deploy_mode(node):"},{"line_number":128,"context_line":"    return (\u0027rescue\u0027 if node.provision_state in RESCUE_LIKE_STATES"},{"line_number":129,"context_line":"            else \u0027deploy\u0027)"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"def discovery(portal_address, portal_port):"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f93b717_5cbf26a9","line":129,"in_reply_to":"5f93b717_68481d2c","updated":"2018-02-01 17:06:14.000000000","message":"Yeah, I\u0027m unopinionated here, I think it\u0027s fine. It\u0027s easier to read the code here than a docstring :P","commit_id":"954a23482082f3dcfb57cfbb71e5d61f05c7fbce"}],"ironic/drivers/modules/pxe.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"7f4782503b8bd709d5c59597119b58477d89a9d9","unresolved":false,"context_lines":[{"line_number":218,"context_line":""},{"line_number":219,"context_line":"def _rescue_or_deploy_mode(node):"},{"line_number":220,"context_line":"    return (\u0027rescue\u0027 if node.provision_state in deploy_utils.RESCUE_LIKE_STATES"},{"line_number":221,"context_line":"            else \u0027deploy\u0027)"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"def _build_pxe_config_options(task, pxe_info, service\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_876ebcc6","line":221,"updated":"2018-02-01 14:40:54.000000000","message":"nit, can be done later, but I suspect that if other BootInterfaces need to do this, we should move it to eg deploy_utils, where RESCUE_LIKE_STATES is defined.","commit_id":"fadaff250e7949926f77f04128067b7cc376912f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"a878bd7ce81510c0ce70082f4fa865dc27c6dab3","unresolved":false,"context_lines":[{"line_number":218,"context_line":""},{"line_number":219,"context_line":"def _rescue_or_deploy_mode(node):"},{"line_number":220,"context_line":"    return (\u0027rescue\u0027 if node.provision_state in deploy_utils.RESCUE_LIKE_STATES"},{"line_number":221,"context_line":"            else \u0027deploy\u0027)"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"def _build_pxe_config_options(task, pxe_info, service\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_c7084493","line":221,"in_reply_to":"5f93b717_47df5468","updated":"2018-02-01 14:56:03.000000000","message":"I\u0027d move it now, or people start copy-pasting..","commit_id":"fadaff250e7949926f77f04128067b7cc376912f"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"6a1a89fbd343595e4be3af126981a30d04d80148","unresolved":false,"context_lines":[{"line_number":218,"context_line":""},{"line_number":219,"context_line":"def _rescue_or_deploy_mode(node):"},{"line_number":220,"context_line":"    return (\u0027rescue\u0027 if node.provision_state in deploy_utils.RESCUE_LIKE_STATES"},{"line_number":221,"context_line":"            else \u0027deploy\u0027)"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"def _build_pxe_config_options(task, pxe_info, service\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_47df5468","line":221,"in_reply_to":"5f93b717_876ebcc6","updated":"2018-02-01 14:44:11.000000000","message":"Yeah, I\u0027ll let someone else move it when they need it. :)","commit_id":"fadaff250e7949926f77f04128067b7cc376912f"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"27c8a2d1a49c3a7923d00fc080ae0b3527629caf","unresolved":false,"context_lines":[{"line_number":218,"context_line":""},{"line_number":219,"context_line":"def _rescue_or_deploy_mode(node):"},{"line_number":220,"context_line":"    return (\u0027rescue\u0027 if node.provision_state in deploy_utils.RESCUE_LIKE_STATES"},{"line_number":221,"context_line":"            else \u0027deploy\u0027)"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"def _build_pxe_config_options(task, pxe_info, service\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_87e8fc7b","line":221,"in_reply_to":"5f93b717_c7084493","updated":"2018-02-01 15:00:57.000000000","message":"okay, okay...","commit_id":"fadaff250e7949926f77f04128067b7cc376912f"}],"ironic/tests/unit/drivers/modules/test_pxe.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"d6ada38e8a10e4f4841ff0c0e800524feb61b7f7","unresolved":false,"context_lines":[{"line_number":916,"context_line":"            mock_deploy_img_info.return_value \u003d {"},{"line_number":917,"context_line":"                \u0027rescue_kernel\u0027: \u0027a\u0027,"},{"line_number":918,"context_line":"                \u0027rescue_ramdisk\u0027: \u0027r\u0027}"},{"line_number":919,"context_line":"            self.node.provision_state \u003d states.RESCUING"},{"line_number":920,"context_line":"        self.node.save()"},{"line_number":921,"context_line":"        with task_manager.acquire(self.context, self.node.uuid) as task:"},{"line_number":922,"context_line":"            dhcp_opts \u003d pxe_utils.dhcp_options_for_instance(task)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f93b717_c8be11d4","side":"PARENT","line":919,"updated":"2018-02-01 16:33:43.000000000","message":"Why did you remove this? Doesn\u0027t it make sense that the provision state be one of the RESCU* states?","commit_id":"d4e35611c4be8aba07907e57e684c10219af7f9c"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"9bfbc82635d9fb2f0c83cd48e3ba963a8e95ba1f","unresolved":false,"context_lines":[{"line_number":916,"context_line":"            mock_deploy_img_info.return_value \u003d {"},{"line_number":917,"context_line":"                \u0027rescue_kernel\u0027: \u0027a\u0027,"},{"line_number":918,"context_line":"                \u0027rescue_ramdisk\u0027: \u0027r\u0027}"},{"line_number":919,"context_line":"            self.node.provision_state \u003d states.RESCUING"},{"line_number":920,"context_line":"        self.node.save()"},{"line_number":921,"context_line":"        with task_manager.acquire(self.context, self.node.uuid) as task:"},{"line_number":922,"context_line":"            dhcp_opts \u003d pxe_utils.dhcp_options_for_instance(task)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f93b717_fcc95225","side":"PARENT","line":919,"in_reply_to":"5f93b717_bccaea9d","updated":"2018-02-01 17:23:32.000000000","message":"okay, it was too far down to scroll for me :)","commit_id":"d4e35611c4be8aba07907e57e684c10219af7f9c"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"b19d0e6da27bc6eebc918a7a9af3f564267933f2","unresolved":false,"context_lines":[{"line_number":916,"context_line":"            mock_deploy_img_info.return_value \u003d {"},{"line_number":917,"context_line":"                \u0027rescue_kernel\u0027: \u0027a\u0027,"},{"line_number":918,"context_line":"                \u0027rescue_ramdisk\u0027: \u0027r\u0027}"},{"line_number":919,"context_line":"            self.node.provision_state \u003d states.RESCUING"},{"line_number":920,"context_line":"        self.node.save()"},{"line_number":921,"context_line":"        with task_manager.acquire(self.context, self.node.uuid) as task:"},{"line_number":922,"context_line":"            dhcp_opts \u003d pxe_utils.dhcp_options_for_instance(task)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f93b717_bccaea9d","side":"PARENT","line":919,"in_reply_to":"5f93b717_c8be11d4","updated":"2018-02-01 17:06:14.000000000","message":"Oops, I meant to leave a comment in gerrit here. If you look at the callers below, they already set provision_state, so this isn\u0027t needed.","commit_id":"d4e35611c4be8aba07907e57e684c10219af7f9c"}]}
