)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"f96707c492131c0ab413ea53951404bbf64e6dce","unresolved":false,"context_lines":[{"line_number":15,"context_line":"configdrive to be provided when setting the node\u0027s provisioning state"},{"line_number":16,"context_line":"to \"rebuild\"."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Closes-bug: #1575935"},{"line_number":19,"context_line":"Change-Id: I9a5529f9fa796c75621e9f4354886bf3032cc248"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"5f2577a7_c85fa03f","line":18,"range":{"start_line":18,"start_character":0,"end_line":18,"end_character":20},"updated":"2017-09-12 07:50:06.000000000","message":"Nova ironic driver does not pass config drive to ironic in case of rebuild, I think patch in ironic side can\u0027t close this bug. Or maybe you are just fixing ironic standalone?","commit_id":"b0ea9a75912c468be3273773495ea38b633c332a"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"4f8cb208ed14d8cf8fc36fe3a34a8394a4f1757f","unresolved":false,"context_lines":[{"line_number":15,"context_line":"configdrive to be provided when setting the node\u0027s provisioning state"},{"line_number":16,"context_line":"to \"rebuild\"."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Closes-bug: #1575935"},{"line_number":19,"context_line":"Change-Id: I9a5529f9fa796c75621e9f4354886bf3032cc248"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"5f2577a7_79d197cd","line":18,"range":{"start_line":18,"start_character":0,"end_line":18,"end_character":20},"in_reply_to":"5f2577a7_c85fa03f","updated":"2017-09-12 17:16:39.000000000","message":"Yes, you are right. This will require a patch in Nova too if you are not using Ironic in standalone mode. I will update the bug accordingly and mark Nova as affected too.","commit_id":"b0ea9a75912c468be3273773495ea38b633c332a"}],"api-ref/source/baremetal-api-v1-node-management.inc":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"87f95ca617bc117ec614ee378af85d53eec67d7b","unresolved":false,"context_lines":[{"line_number":334,"context_line":"Acceptable target states depend on the Node\u0027s current provision state. More"},{"line_number":335,"context_line":"detailed documentation of the Ironic State Machine is available"},{"line_number":336,"context_line":"`in the developer docs \u003chttp://docs.openstack.org/ironic/latest/contributor/states.html\u003e`_."},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"Normal response code: 202"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"Error codes:"}],"source_content_type":"text/x-c++src","patch_set":9,"id":"5f4e5783_ff0a7a1d","line":337,"updated":"2017-10-17 09:25:31.000000000","message":"I think we should add something like (I\u0027m not sure about the exact syntax)\n\n .. versionadded:: 1.35\n     Support for providing ``configdrive`` for ``rebuild`` action.","commit_id":"d3f74d1e048482a7e197398a385313f66ea65190"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"c7b227bfab25f8f3652b2d16e6a8aa0261de0e2b","unresolved":false,"context_lines":[{"line_number":334,"context_line":"Acceptable target states depend on the Node\u0027s current provision state. More"},{"line_number":335,"context_line":"detailed documentation of the Ironic State Machine is available"},{"line_number":336,"context_line":"`in the developer docs \u003chttp://docs.openstack.org/ironic/latest/contributor/states.html\u003e`_."},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"Normal response code: 202"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"Error codes:"}],"source_content_type":"text/x-c++src","patch_set":9,"id":"5f4e5783_17a771bf","line":337,"in_reply_to":"5f4e5783_ff0a7a1d","updated":"2017-10-17 17:14:43.000000000","message":"Done","commit_id":"d3f74d1e048482a7e197398a385313f66ea65190"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b02e876feceffc7df92be8775ea17077aab53b16","unresolved":false,"context_lines":[{"line_number":353,"context_line":"    - configdrive: configdrive"},{"line_number":354,"context_line":"    - clean_steps: clean_steps"},{"line_number":355,"context_line":""},{"line_number":356,"context_line":".. versionadded:: 1.35"},{"line_number":357,"context_line":"   Support for providing ``configdrive`` for ``rebuild`` state target."},{"line_number":358,"context_line":""},{"line_number":359,"context_line":"**Example request to deploy a Node, using a configdrive served via local webserver:**"}],"source_content_type":"text/x-c++src","patch_set":10,"id":"3f4b6375_6097bd92","line":356,"updated":"2017-10-18 21:53:10.000000000","message":"I know that there was some discussion about where to add this; I think we agreed that it ought to be in the description of the API. I took a look and that seems to be what we did. So please move this to L337.","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"cffa36ede75ccbee070162f882764d33a593fc60","unresolved":false,"context_lines":[{"line_number":353,"context_line":"    - configdrive: configdrive"},{"line_number":354,"context_line":"    - clean_steps: clean_steps"},{"line_number":355,"context_line":""},{"line_number":356,"context_line":".. versionadded:: 1.35"},{"line_number":357,"context_line":"   Support for providing ``configdrive`` for ``rebuild`` state target."},{"line_number":358,"context_line":""},{"line_number":359,"context_line":"**Example request to deploy a Node, using a configdrive served via local webserver:**"}],"source_content_type":"text/x-c++src","patch_set":10,"id":"3f4b6375_a03a55e4","line":356,"in_reply_to":"3f4b6375_6097bd92","updated":"2017-10-18 22:10:02.000000000","message":"Done","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b02e876feceffc7df92be8775ea17077aab53b16","unresolved":false,"context_lines":[{"line_number":354,"context_line":"    - clean_steps: clean_steps"},{"line_number":355,"context_line":""},{"line_number":356,"context_line":".. versionadded:: 1.35"},{"line_number":357,"context_line":"   Support for providing ``configdrive`` for ``rebuild`` state target."},{"line_number":358,"context_line":""},{"line_number":359,"context_line":"**Example request to deploy a Node, using a configdrive served via local webserver:**"},{"line_number":360,"context_line":""}],"source_content_type":"text/x-c++src","patch_set":10,"id":"3f4b6375_60121d5b","line":357,"updated":"2017-10-18 21:53:10.000000000","message":"This isn\u0027t a full sentence. How about something like\n\nA ``configdrive`` can be specified (or provided?) when setting the node\u0027s provision target state to ``rebuild``.","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"cffa36ede75ccbee070162f882764d33a593fc60","unresolved":false,"context_lines":[{"line_number":354,"context_line":"    - clean_steps: clean_steps"},{"line_number":355,"context_line":""},{"line_number":356,"context_line":".. versionadded:: 1.35"},{"line_number":357,"context_line":"   Support for providing ``configdrive`` for ``rebuild`` state target."},{"line_number":358,"context_line":""},{"line_number":359,"context_line":"**Example request to deploy a Node, using a configdrive served via local webserver:**"},{"line_number":360,"context_line":""}],"source_content_type":"text/x-c++src","patch_set":10,"id":"3f4b6375_60245dc7","line":357,"in_reply_to":"3f4b6375_60121d5b","updated":"2017-10-18 22:10:02.000000000","message":"Done","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b02e876feceffc7df92be8775ea17077aab53b16","unresolved":false,"context_lines":[{"line_number":360,"context_line":""},{"line_number":361,"context_line":".. literalinclude:: samples/node-set-active-state.json"},{"line_number":362,"context_line":""},{"line_number":363,"context_line":"**Example request to rebuild a Node, using a configdrive served via local webserver:**"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":".. literalinclude:: samples/node-set-rebuild-state.json"},{"line_number":366,"context_line":""}],"source_content_type":"text/x-c++src","patch_set":10,"id":"3f4b6375_00bc8903","line":363,"updated":"2017-10-18 21:53:10.000000000","message":"I don\u0027t really think we need this example, it is very similar to the deploy one above.","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"cffa36ede75ccbee070162f882764d33a593fc60","unresolved":false,"context_lines":[{"line_number":360,"context_line":""},{"line_number":361,"context_line":".. literalinclude:: samples/node-set-active-state.json"},{"line_number":362,"context_line":""},{"line_number":363,"context_line":"**Example request to rebuild a Node, using a configdrive served via local webserver:**"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":".. literalinclude:: samples/node-set-rebuild-state.json"},{"line_number":366,"context_line":""}],"source_content_type":"text/x-c++src","patch_set":10,"id":"3f4b6375_202e65a5","line":363,"in_reply_to":"3f4b6375_00bc8903","updated":"2017-10-18 22:10:02.000000000","message":"Done","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"}],"api-ref/source/samples/node-set-active-state.json":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b02e876feceffc7df92be8775ea17077aab53b16","unresolved":false,"context_lines":[{"line_number":1,"context_line":"{"},{"line_number":2,"context_line":"    \"target\": \"active\","},{"line_number":3,"context_line":"    \"configdrive\": \"http://10.0.0.2/images/test-node-config-drive.iso.gz\""},{"line_number":4,"context_line":"}"}],"source_content_type":"application/json","patch_set":10,"id":"3f4b6375_001ec9b9","line":3,"updated":"2017-10-18 21:53:10.000000000","message":"this change should probably done in a separate patch, but whatever. (And/or mention in the commit msg that this was done. but whatever.)","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"cffa36ede75ccbee070162f882764d33a593fc60","unresolved":false,"context_lines":[{"line_number":1,"context_line":"{"},{"line_number":2,"context_line":"    \"target\": \"active\","},{"line_number":3,"context_line":"    \"configdrive\": \"http://10.0.0.2/images/test-node-config-drive.iso.gz\""},{"line_number":4,"context_line":"}"}],"source_content_type":"application/json","patch_set":10,"id":"3f4b6375_00048916","line":3,"in_reply_to":"3f4b6375_001ec9b9","updated":"2017-10-18 22:10:02.000000000","message":"Will revert that change since other sample is removed too.","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"}],"api-ref/source/samples/node-set-rebuild-state.json":[{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"f96707c492131c0ab413ea53951404bbf64e6dce","unresolved":false,"context_lines":[{"line_number":1,"context_line":"{"},{"line_number":2,"context_line":"    \"target\": \"rebuild\","},{"line_number":3,"context_line":"    \"configdrive\": \"http://127.0.0.1/images/test-node-config-drive.iso.gz\""},{"line_number":4,"context_line":"}"}],"source_content_type":"application/json","patch_set":6,"id":"5f2577a7_48f05068","line":3,"range":{"start_line":3,"start_character":20,"end_line":3,"end_character":73},"updated":"2017-09-12 07:50:06.000000000","message":"I guess it will not work, I don\u0027t see any code relates to download config drive data.","commit_id":"b0ea9a75912c468be3273773495ea38b633c332a"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"4f8cb208ed14d8cf8fc36fe3a34a8394a4f1757f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"{"},{"line_number":2,"context_line":"    \"target\": \"rebuild\","},{"line_number":3,"context_line":"    \"configdrive\": \"http://127.0.0.1/images/test-node-config-drive.iso.gz\""},{"line_number":4,"context_line":"}"}],"source_content_type":"application/json","patch_set":6,"id":"5f2577a7_59a25b4d","line":3,"range":{"start_line":3,"start_character":20,"end_line":3,"end_character":73},"in_reply_to":"5f2577a7_48f05068","updated":"2017-09-12 17:16:39.000000000","message":"This example was copied from node-set-active-state.json. Let me know if the original example was wrong so I can update it. I know that Ironic supports Swift when it comes to storing configdrive. Could the original example be aimed at showing this use case?","commit_id":"b0ea9a75912c468be3273773495ea38b633c332a"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"29dc24f7d4514a8d3922f4843e928d565c139f33","unresolved":false,"context_lines":[{"line_number":1,"context_line":"{"},{"line_number":2,"context_line":"    \"target\": \"rebuild\","},{"line_number":3,"context_line":"    \"configdrive\": \"http://127.0.0.1/images/test-node-config-drive.iso.gz\""},{"line_number":4,"context_line":"}"}],"source_content_type":"application/json","patch_set":6,"id":"5f2577a7_bc7b5abc","line":3,"range":{"start_line":3,"start_character":20,"end_line":3,"end_character":73},"in_reply_to":"5f2577a7_59a25b4d","updated":"2017-09-13 02:32:35.000000000","message":"I took a look, right, IPA does support downloading configdrive from an URL, so it\u0027s a valid usage.\nWhile it looks odd for IPA downloading configdrive from ramdisk itself, so I think it\u0027s more intuitive to use a specific IP address, like 10.0.1.2 or something alike, wdyt?","commit_id":"b0ea9a75912c468be3273773495ea38b633c332a"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"c25de5eab09e0771541ca6182e0f51c82591f8ee","unresolved":false,"context_lines":[{"line_number":1,"context_line":"{"},{"line_number":2,"context_line":"    \"target\": \"rebuild\","},{"line_number":3,"context_line":"    \"configdrive\": \"http://127.0.0.1/images/test-node-config-drive.iso.gz\""},{"line_number":4,"context_line":"}"}],"source_content_type":"application/json","patch_set":6,"id":"5f2577a7_ffd554b8","line":3,"range":{"start_line":3,"start_character":20,"end_line":3,"end_character":73},"in_reply_to":"5f2577a7_bc7b5abc","updated":"2017-09-13 03:10:14.000000000","message":"I updated both examples so it\u0027s less confusing.","commit_id":"b0ea9a75912c468be3273773495ea38b633c332a"}],"ironic/api/controllers/v1/node.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d93b1daaa0bd6666bb723b37b0a19c2559ba5a51","unresolved":false,"context_lines":[{"line_number":621,"context_line":"            raise exception.InvalidStateRequested("},{"line_number":622,"context_line":"                action\u003dtarget, node\u003drpc_node.uuid,"},{"line_number":623,"context_line":"                state\u003drpc_node.provision_state)"},{"line_number":624,"context_line":""},{"line_number":625,"context_line":"        if configdrive and target not in (ir_states.ACTIVE, ir_states.REBUILD):"},{"line_number":626,"context_line":"            msg \u003d (_(\u0027Adding a config drive is only supported when setting \u0027"},{"line_number":627,"context_line":"                     \u0027provision state to %(active)s or %(rebuild)s\u0027) % {"}],"source_content_type":"text/x-python","patch_set":3,"id":"7f287b81_88e24fd4","line":624,"updated":"2017-09-07 15:27:03.000000000","message":"we use API versioning, and this user-visible change should be associated with a version too. you need to bump the current version, and then make sure that sending a config drive on rebuild is only possible, when this new version is specified.","commit_id":"5ed97457d50f23fa90b093f8685010a9b1662523"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"a923828a5c57b0a443922927407d707b529fc3c0","unresolved":false,"context_lines":[{"line_number":621,"context_line":"            raise exception.InvalidStateRequested("},{"line_number":622,"context_line":"                action\u003dtarget, node\u003drpc_node.uuid,"},{"line_number":623,"context_line":"                state\u003drpc_node.provision_state)"},{"line_number":624,"context_line":""},{"line_number":625,"context_line":"        if configdrive and target not in (ir_states.ACTIVE, ir_states.REBUILD):"},{"line_number":626,"context_line":"            msg \u003d (_(\u0027Adding a config drive is only supported when setting \u0027"},{"line_number":627,"context_line":"                     \u0027provision state to %(active)s or %(rebuild)s\u0027) % {"}],"source_content_type":"text/x-python","patch_set":3,"id":"7f287b81_4847c778","line":624,"in_reply_to":"7f287b81_88e24fd4","updated":"2017-09-07 15:38:51.000000000","message":"Working on it, thanks for the review!","commit_id":"5ed97457d50f23fa90b093f8685010a9b1662523"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"f96707c492131c0ab413ea53951404bbf64e6dce","unresolved":false,"context_lines":[{"line_number":638,"context_line":"            pecan.request.rpcapi.do_node_deploy(pecan.request.context,"},{"line_number":639,"context_line":"                                                rpc_node.uuid, False,"},{"line_number":640,"context_line":"                                                configdrive, topic)"},{"line_number":641,"context_line":"        elif target \u003d\u003d ir_states.REBUILD:"},{"line_number":642,"context_line":"            pecan.request.rpcapi.do_node_deploy(pecan.request.context,"},{"line_number":643,"context_line":"                                                rpc_node.uuid, True,"},{"line_number":644,"context_line":"                                                configdrive, topic)"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f2577a7_4863b01b","line":641,"range":{"start_line":641,"start_character":23,"end_line":641,"end_character":41},"updated":"2017-09-12 07:50:06.000000000","message":"We can merge this case with L637 now.","commit_id":"b0ea9a75912c468be3273773495ea38b633c332a"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"29dc24f7d4514a8d3922f4843e928d565c139f33","unresolved":false,"context_lines":[{"line_number":638,"context_line":"            pecan.request.rpcapi.do_node_deploy(pecan.request.context,"},{"line_number":639,"context_line":"                                                rpc_node.uuid, False,"},{"line_number":640,"context_line":"                                                configdrive, topic)"},{"line_number":641,"context_line":"        elif target \u003d\u003d ir_states.REBUILD:"},{"line_number":642,"context_line":"            pecan.request.rpcapi.do_node_deploy(pecan.request.context,"},{"line_number":643,"context_line":"                                                rpc_node.uuid, True,"},{"line_number":644,"context_line":"                                                configdrive, topic)"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f2577a7_bc291a9c","line":641,"range":{"start_line":641,"start_character":23,"end_line":641,"end_character":41},"in_reply_to":"5f2577a7_19adf330","updated":"2017-09-13 02:32:35.000000000","message":"Oh, yes, my mistake","commit_id":"b0ea9a75912c468be3273773495ea38b633c332a"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"4f8cb208ed14d8cf8fc36fe3a34a8394a4f1757f","unresolved":false,"context_lines":[{"line_number":638,"context_line":"            pecan.request.rpcapi.do_node_deploy(pecan.request.context,"},{"line_number":639,"context_line":"                                                rpc_node.uuid, False,"},{"line_number":640,"context_line":"                                                configdrive, topic)"},{"line_number":641,"context_line":"        elif target \u003d\u003d ir_states.REBUILD:"},{"line_number":642,"context_line":"            pecan.request.rpcapi.do_node_deploy(pecan.request.context,"},{"line_number":643,"context_line":"                                                rpc_node.uuid, True,"},{"line_number":644,"context_line":"                                                configdrive, topic)"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f2577a7_19adf330","line":641,"range":{"start_line":641,"start_character":23,"end_line":641,"end_character":41},"in_reply_to":"5f2577a7_4863b01b","updated":"2017-09-12 17:16:39.000000000","message":"We cannot merge as the 3rd parameter is not the same.\nHere is its documentation:\n\n        :param rebuild: True if this is a rebuild request. A rebuild will\n                        recreate the instance on the same node, overwriting\n                        all disk. The ephemeral partition, if it exists, can\n                        optionally be preserved.","commit_id":"b0ea9a75912c468be3273773495ea38b633c332a"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b02e876feceffc7df92be8775ea17077aab53b16","unresolved":false,"context_lines":[{"line_number":623,"context_line":"                state\u003drpc_node.provision_state)"},{"line_number":624,"context_line":""},{"line_number":625,"context_line":"        if configdrive:"},{"line_number":626,"context_line":"            api_utils.check_allow_configdrive(target)"},{"line_number":627,"context_line":""},{"line_number":628,"context_line":"        if clean_steps and target !\u003d ir_states.VERBS[\u0027clean\u0027]:"},{"line_number":629,"context_line":"            msg \u003d (_(\u0027\"clean_steps\" is only valid when setting target \u0027"}],"source_content_type":"text/x-python","patch_set":10,"id":"3f4b6375_40f5e1ca","line":626,"updated":"2017-10-18 21:53:10.000000000","message":"not sure why we\u0027d add it to utils.py since only the node would need to call this code, but I see that there are other methods that were put there too. Oh well.","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"c48132ac693607cb3a681f3dff09d529b74cd644","unresolved":false,"context_lines":[{"line_number":634,"context_line":"        # Note that there is a race condition. The node state(s) could change"},{"line_number":635,"context_line":"        # by the time the RPC call is made and the TaskManager manager gets a"},{"line_number":636,"context_line":"        # lock."},{"line_number":637,"context_line":"        if target \u003d\u003d ir_states.ACTIVE:"},{"line_number":638,"context_line":"            pecan.request.rpcapi.do_node_deploy(pecan.request.context,"},{"line_number":639,"context_line":"                                                rpc_node.uuid, False,"},{"line_number":640,"context_line":"                                                configdrive, topic)"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_b6097bde","line":637,"updated":"2017-10-18 23:15:57.000000000","message":"Can we change it to something like this?\n\n if target in (ir_states.ACTIVE, ir_states.REBUILD):\n    rebuild \u003d (target \u003d\u003d ir.states.REBUILD)\n\n    pecan.request.rpcapi.do_node_deploy(context\u003dpecan.request.context,\n                                        node_id\u003drpc_node.uuid,\n                                        rebuild\u003drebuild,\n                                        configdrive\u003dconfigdrive,\n                                        topic\u003dtopic)\n\nThis will remove code duplication. Also using explicit keyword arguments will make it easier to read the code, IMHO.","commit_id":"949910225e914c714ba59c562eba659e4d15cf00"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"d9d99297992432445e54d4e5367aac68279335a9","unresolved":false,"context_lines":[{"line_number":634,"context_line":"        # Note that there is a race condition. The node state(s) could change"},{"line_number":635,"context_line":"        # by the time the RPC call is made and the TaskManager manager gets a"},{"line_number":636,"context_line":"        # lock."},{"line_number":637,"context_line":"        if target \u003d\u003d ir_states.ACTIVE:"},{"line_number":638,"context_line":"            pecan.request.rpcapi.do_node_deploy(pecan.request.context,"},{"line_number":639,"context_line":"                                                rpc_node.uuid, False,"},{"line_number":640,"context_line":"                                                configdrive, topic)"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_7612e3b3","line":637,"in_reply_to":"3f4b6375_b6097bde","updated":"2017-10-18 23:30:31.000000000","message":"Great idea! Done","commit_id":"949910225e914c714ba59c562eba659e4d15cf00"}],"ironic/api/controllers/v1/utils.py":[{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"992018d13a80646e902d7b14e7944e5e164597ea","unresolved":false,"context_lines":[{"line_number":401,"context_line":"                     \u0027rebuild\u0027: states.REBUILD})"},{"line_number":402,"context_line":"    else:"},{"line_number":403,"context_line":"        allowed_targets \u003d (states.ACTIVE,)"},{"line_number":404,"context_line":"        msg \u003d (_(\u0027Adding a config drive is only supported when setting \u0027"},{"line_number":405,"context_line":"                 \u0027provision state to %s\u0027) % states.ACTIVE)"},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"    if target not in allowed_targets:"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_566e4800","line":404,"updated":"2017-09-07 16:51:35.000000000","message":"This mostly doubles string above, what about:\n\n \" ..provision states to: %s\" % \u0027, \u0027.join(allowed_targets)","commit_id":"cb5c0ac08080bdfcba04c14f482bf73e55abbe98"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"c8488eb83f417ec93ee01d0bedf39d7e5650ccd1","unresolved":false,"context_lines":[{"line_number":401,"context_line":"                     \u0027rebuild\u0027: states.REBUILD})"},{"line_number":402,"context_line":"    else:"},{"line_number":403,"context_line":"        allowed_targets \u003d (states.ACTIVE,)"},{"line_number":404,"context_line":"        msg \u003d (_(\u0027Adding a config drive is only supported when setting \u0027"},{"line_number":405,"context_line":"                 \u0027provision state to %s\u0027) % states.ACTIVE)"},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"    if target not in allowed_targets:"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f2577a7_734b3887","line":404,"in_reply_to":"7f287b81_4539dad4","updated":"2017-09-08 15:57:08.000000000","message":"Thanks for the review. Will update as suggested.","commit_id":"cb5c0ac08080bdfcba04c14f482bf73e55abbe98"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"09ce0c87eb8d8a44001670a08390300a62eda616","unresolved":false,"context_lines":[{"line_number":401,"context_line":"                     \u0027rebuild\u0027: states.REBUILD})"},{"line_number":402,"context_line":"    else:"},{"line_number":403,"context_line":"        allowed_targets \u003d (states.ACTIVE,)"},{"line_number":404,"context_line":"        msg \u003d (_(\u0027Adding a config drive is only supported when setting \u0027"},{"line_number":405,"context_line":"                 \u0027provision state to %s\u0027) % states.ACTIVE)"},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"    if target not in allowed_targets:"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_917efae1","line":404,"in_reply_to":"7f287b81_566e4800","updated":"2017-09-07 17:13:22.000000000","message":"This string looks to be translated. I\u0027m not sure how translators will know how to translate it if you can have multiple values. Or does it matter? I\u0027m not familiar with this aspect. Please let me know and will update accordingly.","commit_id":"cb5c0ac08080bdfcba04c14f482bf73e55abbe98"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"38c80d8b91a3342237fc47e3fa3b2e374f2f67b8","unresolved":false,"context_lines":[{"line_number":401,"context_line":"                     \u0027rebuild\u0027: states.REBUILD})"},{"line_number":402,"context_line":"    else:"},{"line_number":403,"context_line":"        allowed_targets \u003d (states.ACTIVE,)"},{"line_number":404,"context_line":"        msg \u003d (_(\u0027Adding a config drive is only supported when setting \u0027"},{"line_number":405,"context_line":"                 \u0027provision state to %s\u0027) % states.ACTIVE)"},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"    if target not in allowed_targets:"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_4539dad4","line":404,"in_reply_to":"7f287b81_917efae1","updated":"2017-09-08 08:48:59.000000000","message":"Values in allowed_targets will not be translated, as states.ACTIVE, states.REBUILD now.","commit_id":"cb5c0ac08080bdfcba04c14f482bf73e55abbe98"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"f96707c492131c0ab413ea53951404bbf64e6dce","unresolved":false,"context_lines":[{"line_number":392,"context_line":"             \u0027opr\u0027: versions.MINOR_30_DYNAMIC_DRIVERS})"},{"line_number":393,"context_line":""},{"line_number":394,"context_line":""},{"line_number":395,"context_line":"def check_allow_configdrive(target):"},{"line_number":396,"context_line":"    allowed_targets \u003d [states.ACTIVE]"},{"line_number":397,"context_line":"    if allow_rebuild_with_configdrive():"},{"line_number":398,"context_line":"        allowed_targets.append(states.REBUILD)"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f2577a7_884f58bc","line":395,"range":{"start_line":395,"start_character":4,"end_line":395,"end_character":27},"updated":"2017-09-12 07:50:06.000000000","message":"I think it\u0027s more appropriate to move this check to node state controller to provide a better context.\nas you can see, basically we do version check and return boolean in this file.","commit_id":"b0ea9a75912c468be3273773495ea38b633c332a"},{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"29dc24f7d4514a8d3922f4843e928d565c139f33","unresolved":false,"context_lines":[{"line_number":392,"context_line":"             \u0027opr\u0027: versions.MINOR_30_DYNAMIC_DRIVERS})"},{"line_number":393,"context_line":""},{"line_number":394,"context_line":""},{"line_number":395,"context_line":"def check_allow_configdrive(target):"},{"line_number":396,"context_line":"    allowed_targets \u003d [states.ACTIVE]"},{"line_number":397,"context_line":"    if allow_rebuild_with_configdrive():"},{"line_number":398,"context_line":"        allowed_targets.append(states.REBUILD)"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f2577a7_7f0844d8","line":395,"range":{"start_line":395,"start_character":4,"end_line":395,"end_character":27},"in_reply_to":"5f2577a7_39254fc3","updated":"2017-09-13 02:32:35.000000000","message":"I don\u0027t have strong opinion on this, maybe it\u0027s just a personal favor, for most of them are only checking versions without raise, well, exceptions always exist :)\nlet\u0027s leave it for now, until someone else has strong suggestion on this (maybe never lol)","commit_id":"b0ea9a75912c468be3273773495ea38b633c332a"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"4f8cb208ed14d8cf8fc36fe3a34a8394a4f1757f","unresolved":false,"context_lines":[{"line_number":392,"context_line":"             \u0027opr\u0027: versions.MINOR_30_DYNAMIC_DRIVERS})"},{"line_number":393,"context_line":""},{"line_number":394,"context_line":""},{"line_number":395,"context_line":"def check_allow_configdrive(target):"},{"line_number":396,"context_line":"    allowed_targets \u003d [states.ACTIVE]"},{"line_number":397,"context_line":"    if allow_rebuild_with_configdrive():"},{"line_number":398,"context_line":"        allowed_targets.append(states.REBUILD)"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f2577a7_39254fc3","line":395,"range":{"start_line":395,"start_character":4,"end_line":395,"end_character":27},"in_reply_to":"5f2577a7_884f58bc","updated":"2017-09-12 17:16:39.000000000","message":"There are a couple of examples above doing more then comparing versions:\n* check_allowed_fields\n* check_allowed_portgroup_fields\n* check_for_invalid_state_and_allow_filter\n\nAnd not returning a boolean:\n* check_allow_specify_driver\n* check_allow_filter_driver_type\n* check_allow_driver_detail\n\nThe check_ functions raise if operation is not supported or allowed and the allow_ functions returns a boolean.\n\nShould I still update as suggested? I think having it split is more convenient and simplify unit tests.","commit_id":"b0ea9a75912c468be3273773495ea38b633c332a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"87f95ca617bc117ec614ee378af85d53eec67d7b","unresolved":false,"context_lines":[{"line_number":401,"context_line":"        msg \u003d (_(\u0027Adding a config drive is only supported when setting \u0027"},{"line_number":402,"context_line":"                 \u0027provision state to %s\u0027) % \u0027, \u0027.join(allowed_targets))"},{"line_number":403,"context_line":"        raise wsme.exc.ClientSideError("},{"line_number":404,"context_line":"            msg, status_code\u003dhttp_client.BAD_REQUEST)"},{"line_number":405,"context_line":""},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"def initial_node_provision_state():"}],"source_content_type":"text/x-python","patch_set":9,"id":"5f4e5783_1f08b625","line":404,"updated":"2017-10-17 09:25:31.000000000","message":"we should return NotAcceptable when the microversion is too low. so this should be something like\n\n if target \u003d\u003d states.REBUILD:\n     if not allow_rebuild_with_configdriver():\n         # raise NotAcceptable\n elif target !\u003d states.ACTIVE:\n     # raise BadRequest","commit_id":"d3f74d1e048482a7e197398a385313f66ea65190"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"c7b227bfab25f8f3652b2d16e6a8aa0261de0e2b","unresolved":false,"context_lines":[{"line_number":401,"context_line":"        msg \u003d (_(\u0027Adding a config drive is only supported when setting \u0027"},{"line_number":402,"context_line":"                 \u0027provision state to %s\u0027) % \u0027, \u0027.join(allowed_targets))"},{"line_number":403,"context_line":"        raise wsme.exc.ClientSideError("},{"line_number":404,"context_line":"            msg, status_code\u003dhttp_client.BAD_REQUEST)"},{"line_number":405,"context_line":""},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"def initial_node_provision_state():"}],"source_content_type":"text/x-python","patch_set":9,"id":"5f4e5783_575de912","line":404,"in_reply_to":"5f4e5783_1f08b625","updated":"2017-10-17 17:14:43.000000000","message":"Are you suggesting we change the previous error code for that one? It used to be BadRequest. This means someone using a too low microversion will get a different error than before.","commit_id":"d3f74d1e048482a7e197398a385313f66ea65190"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b02e876feceffc7df92be8775ea17077aab53b16","unresolved":false,"context_lines":[{"line_number":401,"context_line":"        msg \u003d (_(\u0027Adding a config drive is only supported when setting \u0027"},{"line_number":402,"context_line":"                 \u0027provision state to %s\u0027) % \u0027, \u0027.join(allowed_targets))"},{"line_number":403,"context_line":"        raise wsme.exc.ClientSideError("},{"line_number":404,"context_line":"            msg, status_code\u003dhttp_client.BAD_REQUEST)"},{"line_number":405,"context_line":""},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"def initial_node_provision_state():"}],"source_content_type":"text/x-python","patch_set":9,"id":"3f4b6375_807199e3","line":404,"in_reply_to":"5f4e5783_37982d1a","updated":"2017-10-18 21:53:10.000000000","message":"So Dmitry is right. If you view it as a feature. If you view it as a bug, then I\u0027m not sure. Either way, we could break someone\u0027s use case. Future users (that assume they\u0027ll get NotAcceptable if they don\u0027t specify the right version), or old users, take your pick. Presumably old users have cleaned up their act after the first error but...\n\nI am not opinionated on it.","commit_id":"d3f74d1e048482a7e197398a385313f66ea65190"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"de370fe49afe18ae7eaafa55eb34abbb8fc5bde2","unresolved":false,"context_lines":[{"line_number":401,"context_line":"        msg \u003d (_(\u0027Adding a config drive is only supported when setting \u0027"},{"line_number":402,"context_line":"                 \u0027provision state to %s\u0027) % \u0027, \u0027.join(allowed_targets))"},{"line_number":403,"context_line":"        raise wsme.exc.ClientSideError("},{"line_number":404,"context_line":"            msg, status_code\u003dhttp_client.BAD_REQUEST)"},{"line_number":405,"context_line":""},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"def initial_node_provision_state():"}],"source_content_type":"text/x-python","patch_set":9,"id":"5f4e5783_977b6126","line":404,"in_reply_to":"5f4e5783_575de912","updated":"2017-10-17 17:15:41.000000000","message":"This is how we usually do it, I think","commit_id":"d3f74d1e048482a7e197398a385313f66ea65190"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"e018517bb8a85b28bd2eabb2c6cd288d35dfc486","unresolved":false,"context_lines":[{"line_number":401,"context_line":"        msg \u003d (_(\u0027Adding a config drive is only supported when setting \u0027"},{"line_number":402,"context_line":"                 \u0027provision state to %s\u0027) % \u0027, \u0027.join(allowed_targets))"},{"line_number":403,"context_line":"        raise wsme.exc.ClientSideError("},{"line_number":404,"context_line":"            msg, status_code\u003dhttp_client.BAD_REQUEST)"},{"line_number":405,"context_line":""},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"def initial_node_provision_state():"}],"source_content_type":"text/x-python","patch_set":9,"id":"5f4e5783_37982d1a","line":404,"in_reply_to":"5f4e5783_977b6126","updated":"2017-10-17 17:27:16.000000000","message":"Gah! I think this is one of those cases where we should keep consistency in case anyone has code written, of course, with a newer microversion, it will behave differently anyway.","commit_id":"d3f74d1e048482a7e197398a385313f66ea65190"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b02e876feceffc7df92be8775ea17077aab53b16","unresolved":false,"context_lines":[{"line_number":593,"context_line":"            objects.Port.supports_physical_network())"},{"line_number":594,"context_line":""},{"line_number":595,"context_line":""},{"line_number":596,"context_line":"def allow_rebuild_with_configdrive():"},{"line_number":597,"context_line":"    \"\"\"Check if we should support rebuild with configdrive."},{"line_number":598,"context_line":""},{"line_number":599,"context_line":"    Version 1.35 of the API added support for rebuild with configdrive."}],"source_content_type":"text/x-python","patch_set":10,"id":"3f4b6375_a0dc9546","line":596,"updated":"2017-10-18 21:53:10.000000000","message":"nit, although it is rampant in this file, since it is in utils.py, not node.py, we should be more explicit here, that this is for rebuilding nodes. Although I guess we should know this...","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"43651f9c479541e726ab8dfe1a8a09ac5394f269","unresolved":false,"context_lines":[{"line_number":593,"context_line":"            objects.Port.supports_physical_network())"},{"line_number":594,"context_line":""},{"line_number":595,"context_line":""},{"line_number":596,"context_line":"def allow_rebuild_with_configdrive():"},{"line_number":597,"context_line":"    \"\"\"Check if we should support rebuild with configdrive."},{"line_number":598,"context_line":""},{"line_number":599,"context_line":"    Version 1.35 of the API added support for rebuild with configdrive."}],"source_content_type":"text/x-python","patch_set":10,"id":"3f4b6375_917d6970","line":596,"in_reply_to":"3f4b6375_36aeab2e","updated":"2017-10-19 00:10:29.000000000","message":"Done","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"cffa36ede75ccbee070162f882764d33a593fc60","unresolved":false,"context_lines":[{"line_number":593,"context_line":"            objects.Port.supports_physical_network())"},{"line_number":594,"context_line":""},{"line_number":595,"context_line":""},{"line_number":596,"context_line":"def allow_rebuild_with_configdrive():"},{"line_number":597,"context_line":"    \"\"\"Check if we should support rebuild with configdrive."},{"line_number":598,"context_line":""},{"line_number":599,"context_line":"    Version 1.35 of the API added support for rebuild with configdrive."}],"source_content_type":"text/x-python","patch_set":10,"id":"3f4b6375_b32ced99","line":596,"in_reply_to":"3f4b6375_a0dc9546","updated":"2017-10-18 22:10:02.000000000","message":"Is there anything else that can be \"rebuilt\" in Ironic? What\u0027s the suggested name? allow_node_rebuild_with_configdrive ?","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"210ca433c256b07a0fb84c51968ef38f520d8d7d","unresolved":false,"context_lines":[{"line_number":593,"context_line":"            objects.Port.supports_physical_network())"},{"line_number":594,"context_line":""},{"line_number":595,"context_line":""},{"line_number":596,"context_line":"def allow_rebuild_with_configdrive():"},{"line_number":597,"context_line":"    \"\"\"Check if we should support rebuild with configdrive."},{"line_number":598,"context_line":""},{"line_number":599,"context_line":"    Version 1.35 of the API added support for rebuild with configdrive."}],"source_content_type":"text/x-python","patch_set":10,"id":"3f4b6375_36aeab2e","line":596,"in_reply_to":"3f4b6375_b32ced99","updated":"2017-10-18 23:47:53.000000000","message":"yes, allow_node_rebuild_with_configdrive is clearer. Also, would be good to mention that below at L599.\n\nJust think of someone new getting up to speed :)\n\nAnyway, not a big deal.","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"}],"ironic/tests/unit/api/controllers/v1/test_node.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b02e876feceffc7df92be8775ea17077aab53b16","unresolved":false,"context_lines":[{"line_number":3017,"context_line":"        self.assertIsNotNone(ret.location)"},{"line_number":3018,"context_line":"        expected_location \u003d \u0027/v1/nodes/%s/states\u0027 % self.node.uuid"},{"line_number":3019,"context_line":"        self.assertEqual(urlparse.urlparse(ret.location).path,"},{"line_number":3020,"context_line":"                         expected_location)"},{"line_number":3021,"context_line":""},{"line_number":3022,"context_line":"    def test_provision_with_rebuild_unsupported_configdrive(self):"},{"line_number":3023,"context_line":"        node \u003d self.node"}],"source_content_type":"text/x-python","patch_set":10,"id":"3f4b6375_c093114f","line":3020,"updated":"2017-10-18 21:53:10.000000000","message":"sigh. copy/paste issue, it should be self.assertEqual(expected_location, urlparse...)","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"210ca433c256b07a0fb84c51968ef38f520d8d7d","unresolved":false,"context_lines":[{"line_number":3017,"context_line":"        self.assertIsNotNone(ret.location)"},{"line_number":3018,"context_line":"        expected_location \u003d \u0027/v1/nodes/%s/states\u0027 % self.node.uuid"},{"line_number":3019,"context_line":"        self.assertEqual(urlparse.urlparse(ret.location).path,"},{"line_number":3020,"context_line":"                         expected_location)"},{"line_number":3021,"context_line":""},{"line_number":3022,"context_line":"    def test_provision_with_rebuild_unsupported_configdrive(self):"},{"line_number":3023,"context_line":"        node \u003d self.node"}],"source_content_type":"text/x-python","patch_set":10,"id":"3f4b6375_16abaf1d","line":3020,"in_reply_to":"3f4b6375_134aa154","updated":"2017-10-18 23:47:53.000000000","message":"yeah, can be fixed in a separate patch.","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"cffa36ede75ccbee070162f882764d33a593fc60","unresolved":false,"context_lines":[{"line_number":3017,"context_line":"        self.assertIsNotNone(ret.location)"},{"line_number":3018,"context_line":"        expected_location \u003d \u0027/v1/nodes/%s/states\u0027 % self.node.uuid"},{"line_number":3019,"context_line":"        self.assertEqual(urlparse.urlparse(ret.location).path,"},{"line_number":3020,"context_line":"                         expected_location)"},{"line_number":3021,"context_line":""},{"line_number":3022,"context_line":"    def test_provision_with_rebuild_unsupported_configdrive(self):"},{"line_number":3023,"context_line":"        node \u003d self.node"}],"source_content_type":"text/x-python","patch_set":10,"id":"3f4b6375_134aa154","line":3020,"in_reply_to":"3f4b6375_c093114f","updated":"2017-10-18 22:10:02.000000000","message":"Unless it\u0027s fixed across the board, I think it\u0027s better to have consistency across similar tests than correctness.","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b02e876feceffc7df92be8775ea17077aab53b16","unresolved":false,"context_lines":[{"line_number":3045,"context_line":"        self.assertIsNotNone(ret.location)"},{"line_number":3046,"context_line":"        expected_location \u003d \u0027/v1/nodes/%s/states\u0027 % self.node.uuid"},{"line_number":3047,"context_line":"        self.assertEqual(urlparse.urlparse(ret.location).path,"},{"line_number":3048,"context_line":"                         expected_location)"},{"line_number":3049,"context_line":""},{"line_number":3050,"context_line":"    def test_provision_with_configdrive_not_active(self):"},{"line_number":3051,"context_line":"        ret \u003d self.put_json(\u0027/nodes/%s/states/provision\u0027 % self.node.uuid,"}],"source_content_type":"text/x-python","patch_set":10,"id":"3f4b6375_409f2150","line":3048,"updated":"2017-10-18 21:53:10.000000000","message":"ditto","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"}],"ironic/tests/unit/api/controllers/v1/test_utils.py":[{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"c48132ac693607cb3a681f3dff09d529b74cd644","unresolved":false,"context_lines":[{"line_number":455,"context_line":"    def test_check_allow_configdrive_fails(self, mock_request):"},{"line_number":456,"context_line":"        mock_request.version.minor \u003d 35"},{"line_number":457,"context_line":"        self.assertRaises(wsme.exc.ClientSideError,"},{"line_number":458,"context_line":"                          utils.check_allow_configdrive, \u0027delete\u0027)"},{"line_number":459,"context_line":"        mock_request.version.minor \u003d 34"},{"line_number":460,"context_line":"        self.assertRaises(wsme.exc.ClientSideError,"},{"line_number":461,"context_line":"                          utils.check_allow_configdrive, \u0027rebuild\u0027)"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_76bae3de","line":458,"range":{"start_line":458,"start_character":57,"end_line":458,"end_character":64},"updated":"2017-10-18 23:15:57.000000000","message":"Can we use the states defined in states.py please.\n\n utils.check_allow_configdrive, states.DELETE)","commit_id":"949910225e914c714ba59c562eba659e4d15cf00"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"d9d99297992432445e54d4e5367aac68279335a9","unresolved":false,"context_lines":[{"line_number":455,"context_line":"    def test_check_allow_configdrive_fails(self, mock_request):"},{"line_number":456,"context_line":"        mock_request.version.minor \u003d 35"},{"line_number":457,"context_line":"        self.assertRaises(wsme.exc.ClientSideError,"},{"line_number":458,"context_line":"                          utils.check_allow_configdrive, \u0027delete\u0027)"},{"line_number":459,"context_line":"        mock_request.version.minor \u003d 34"},{"line_number":460,"context_line":"        self.assertRaises(wsme.exc.ClientSideError,"},{"line_number":461,"context_line":"                          utils.check_allow_configdrive, \u0027rebuild\u0027)"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_b6661b51","line":458,"range":{"start_line":458,"start_character":57,"end_line":458,"end_character":64},"in_reply_to":"3f4b6375_76bae3de","updated":"2017-10-18 23:30:31.000000000","message":"Done","commit_id":"949910225e914c714ba59c562eba659e4d15cf00"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"c48132ac693607cb3a681f3dff09d529b74cd644","unresolved":false,"context_lines":[{"line_number":458,"context_line":"                          utils.check_allow_configdrive, \u0027delete\u0027)"},{"line_number":459,"context_line":"        mock_request.version.minor \u003d 34"},{"line_number":460,"context_line":"        self.assertRaises(wsme.exc.ClientSideError,"},{"line_number":461,"context_line":"                          utils.check_allow_configdrive, \u0027rebuild\u0027)"},{"line_number":462,"context_line":""},{"line_number":463,"context_line":"    @mock.patch.object(pecan, \u0027request\u0027, spec_set\u003d[\u0027version\u0027])"},{"line_number":464,"context_line":"    def test_check_allow_configdrive(self, mock_request):"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_16c96f77","line":461,"updated":"2017-10-18 23:15:57.000000000","message":"Can we use the states defined in states.py please.","commit_id":"949910225e914c714ba59c562eba659e4d15cf00"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"d9d99297992432445e54d4e5367aac68279335a9","unresolved":false,"context_lines":[{"line_number":458,"context_line":"                          utils.check_allow_configdrive, \u0027delete\u0027)"},{"line_number":459,"context_line":"        mock_request.version.minor \u003d 34"},{"line_number":460,"context_line":"        self.assertRaises(wsme.exc.ClientSideError,"},{"line_number":461,"context_line":"                          utils.check_allow_configdrive, \u0027rebuild\u0027)"},{"line_number":462,"context_line":""},{"line_number":463,"context_line":"    @mock.patch.object(pecan, \u0027request\u0027, spec_set\u003d[\u0027version\u0027])"},{"line_number":464,"context_line":"    def test_check_allow_configdrive(self, mock_request):"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_965b1f86","line":461,"in_reply_to":"3f4b6375_16c96f77","updated":"2017-10-18 23:30:31.000000000","message":"Done","commit_id":"949910225e914c714ba59c562eba659e4d15cf00"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"c48132ac693607cb3a681f3dff09d529b74cd644","unresolved":false,"context_lines":[{"line_number":463,"context_line":"    @mock.patch.object(pecan, \u0027request\u0027, spec_set\u003d[\u0027version\u0027])"},{"line_number":464,"context_line":"    def test_check_allow_configdrive(self, mock_request):"},{"line_number":465,"context_line":"        mock_request.version.minor \u003d 35"},{"line_number":466,"context_line":"        utils.check_allow_configdrive(\u0027active\u0027)"},{"line_number":467,"context_line":"        utils.check_allow_configdrive(\u0027rebuild\u0027)"},{"line_number":468,"context_line":"        mock_request.version.minor \u003d 34"},{"line_number":469,"context_line":"        utils.check_allow_configdrive(\u0027active\u0027)"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_f6c5b35c","line":466,"updated":"2017-10-18 23:15:57.000000000","message":"Can we use the states defined in states.py please.","commit_id":"949910225e914c714ba59c562eba659e4d15cf00"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"d9d99297992432445e54d4e5367aac68279335a9","unresolved":false,"context_lines":[{"line_number":463,"context_line":"    @mock.patch.object(pecan, \u0027request\u0027, spec_set\u003d[\u0027version\u0027])"},{"line_number":464,"context_line":"    def test_check_allow_configdrive(self, mock_request):"},{"line_number":465,"context_line":"        mock_request.version.minor \u003d 35"},{"line_number":466,"context_line":"        utils.check_allow_configdrive(\u0027active\u0027)"},{"line_number":467,"context_line":"        utils.check_allow_configdrive(\u0027rebuild\u0027)"},{"line_number":468,"context_line":"        mock_request.version.minor \u003d 34"},{"line_number":469,"context_line":"        utils.check_allow_configdrive(\u0027active\u0027)"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_5655a74f","line":466,"in_reply_to":"3f4b6375_f6c5b35c","updated":"2017-10-18 23:30:31.000000000","message":"Done","commit_id":"949910225e914c714ba59c562eba659e4d15cf00"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"c48132ac693607cb3a681f3dff09d529b74cd644","unresolved":false,"context_lines":[{"line_number":464,"context_line":"    def test_check_allow_configdrive(self, mock_request):"},{"line_number":465,"context_line":"        mock_request.version.minor \u003d 35"},{"line_number":466,"context_line":"        utils.check_allow_configdrive(\u0027active\u0027)"},{"line_number":467,"context_line":"        utils.check_allow_configdrive(\u0027rebuild\u0027)"},{"line_number":468,"context_line":"        mock_request.version.minor \u003d 34"},{"line_number":469,"context_line":"        utils.check_allow_configdrive(\u0027active\u0027)"},{"line_number":470,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_d6a077a8","line":467,"updated":"2017-10-18 23:15:57.000000000","message":"Can we use the states defined in states.py please.","commit_id":"949910225e914c714ba59c562eba659e4d15cf00"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"d9d99297992432445e54d4e5367aac68279335a9","unresolved":false,"context_lines":[{"line_number":464,"context_line":"    def test_check_allow_configdrive(self, mock_request):"},{"line_number":465,"context_line":"        mock_request.version.minor \u003d 35"},{"line_number":466,"context_line":"        utils.check_allow_configdrive(\u0027active\u0027)"},{"line_number":467,"context_line":"        utils.check_allow_configdrive(\u0027rebuild\u0027)"},{"line_number":468,"context_line":"        mock_request.version.minor \u003d 34"},{"line_number":469,"context_line":"        utils.check_allow_configdrive(\u0027active\u0027)"},{"line_number":470,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_36522b69","line":467,"in_reply_to":"3f4b6375_d6a077a8","updated":"2017-10-18 23:30:31.000000000","message":"Done","commit_id":"949910225e914c714ba59c562eba659e4d15cf00"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"c48132ac693607cb3a681f3dff09d529b74cd644","unresolved":false,"context_lines":[{"line_number":466,"context_line":"        utils.check_allow_configdrive(\u0027active\u0027)"},{"line_number":467,"context_line":"        utils.check_allow_configdrive(\u0027rebuild\u0027)"},{"line_number":468,"context_line":"        mock_request.version.minor \u003d 34"},{"line_number":469,"context_line":"        utils.check_allow_configdrive(\u0027active\u0027)"},{"line_number":470,"context_line":""},{"line_number":471,"context_line":""},{"line_number":472,"context_line":"class TestNodeIdent(base.TestCase):"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_96aaff82","line":469,"updated":"2017-10-18 23:15:57.000000000","message":"Can we use the states defined in states.py please.","commit_id":"949910225e914c714ba59c562eba659e4d15cf00"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"d9d99297992432445e54d4e5367aac68279335a9","unresolved":false,"context_lines":[{"line_number":466,"context_line":"        utils.check_allow_configdrive(\u0027active\u0027)"},{"line_number":467,"context_line":"        utils.check_allow_configdrive(\u0027rebuild\u0027)"},{"line_number":468,"context_line":"        mock_request.version.minor \u003d 34"},{"line_number":469,"context_line":"        utils.check_allow_configdrive(\u0027active\u0027)"},{"line_number":470,"context_line":""},{"line_number":471,"context_line":""},{"line_number":472,"context_line":"class TestNodeIdent(base.TestCase):"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f4b6375_164f2fbe","line":469,"in_reply_to":"3f4b6375_96aaff82","updated":"2017-10-18 23:30:31.000000000","message":"Done","commit_id":"949910225e914c714ba59c562eba659e4d15cf00"}],"releasenotes/notes/rebuild-configdrive-f52479fd55b0f5ce.yaml":[{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"e3000c4ef016090dcddfcc4d626f36e2eacf9ef4","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    It is now possible to provide a configdrive when rebuilding a node."},{"line_number":5,"context_line":"    This feature requires the API microversion 1.35."}],"source_content_type":"text/x-yaml","patch_set":7,"id":"5f2577a7_a617c145","line":5,"updated":"2017-09-13 08:32:57.000000000","message":"This change bumps microversion to 1.35","commit_id":"fb61c60ced3494a5f3665d54cd1dd338a42cabfe"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"4373b417e13637c97bf8ea96c9f9b85b4e498094","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    It is now possible to provide a configdrive when rebuilding a node."},{"line_number":5,"context_line":"    This feature requires the API microversion 1.35."}],"source_content_type":"text/x-yaml","patch_set":7,"id":"5f2577a7_4b46d851","line":5,"in_reply_to":"5f2577a7_a617c145","updated":"2017-09-13 17:13:23.000000000","message":"Done","commit_id":"fb61c60ced3494a5f3665d54cd1dd338a42cabfe"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"64b69013f4814b31f523db799e3aed3363bf4e01","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    It is now possible to provide a configdrive when rebuilding a node."},{"line_number":5,"context_line":"    This change bumps microversion to 1.35."}],"source_content_type":"text/x-yaml","patch_set":8,"id":"5f4e5783_ba9c1ec0","line":5,"range":{"start_line":5,"start_character":16,"end_line":5,"end_character":21},"updated":"2017-10-16 20:56:32.000000000","message":"Perhaps?  s/bumps/requires/    s/to/to be set to at least/","commit_id":"71659cb9667934de4ec9c11c761b41a8c3a75a0c"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"b62e64ae45b92252380580fb3586448a69a38c93","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    It is now possible to provide a configdrive when rebuilding a node."},{"line_number":5,"context_line":"    This change bumps microversion to 1.35."}],"source_content_type":"text/x-yaml","patch_set":8,"id":"5f4e5783_fa8f36ca","line":5,"range":{"start_line":5,"start_character":16,"end_line":5,"end_character":21},"in_reply_to":"5f4e5783_ba9c1ec0","updated":"2017-10-16 21:27:20.000000000","message":"Done","commit_id":"71659cb9667934de4ec9c11c761b41a8c3a75a0c"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b02e876feceffc7df92be8775ea17077aab53b16","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    It is now possible to provide a configdrive when rebuilding a node."},{"line_number":5,"context_line":"    This change requires microversion to be set to at least 1.35."}],"source_content_type":"text/x-yaml","patch_set":10,"id":"3f4b6375_40cde15b","line":2,"updated":"2017-10-18 21:53:10.000000000","message":"oh boy, is it a bug or a feature? Should we add a \u0027fixes:\u0027 section too with similar information?","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"cffa36ede75ccbee070162f882764d33a593fc60","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    It is now possible to provide a configdrive when rebuilding a node."},{"line_number":5,"context_line":"    This change requires microversion to be set to at least 1.35."}],"source_content_type":"text/x-yaml","patch_set":10,"id":"3f4b6375_d383e955","line":2,"in_reply_to":"3f4b6375_40cde15b","updated":"2017-10-18 22:10:02.000000000","message":"I don\u0027t know. Ironic and Nova don\u0027t agree on that one. Even in bug report, Ironic people mentioned \"rfe\" which afaik, isn\u0027t a bug but a feature. I don\u0027t care much about what it\u0027s gonna be as long as we have a clear answer to what it should be and I will update accordingly.\n\nIMO, it\u0027s a feature because it\u0027s something you couldn\u0027t do before. But from the POV of Nova, I think it\u0027s a \"bug\" because Ironic driver had a different behaviour than other drivers which do rebuild the config drive.\n\nBut in the end, I\u0027ll go with whatever you suggest.","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"43651f9c479541e726ab8dfe1a8a09ac5394f269","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    It is now possible to provide a configdrive when rebuilding a node."},{"line_number":5,"context_line":"    This change requires microversion to be set to at least 1.35."}],"source_content_type":"text/x-yaml","patch_set":10,"id":"3f4b6375_b1886571","line":2,"in_reply_to":"3f4b6375_5676c7da","updated":"2017-10-19 00:10:29.000000000","message":"Done","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"210ca433c256b07a0fb84c51968ef38f520d8d7d","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    It is now possible to provide a configdrive when rebuilding a node."},{"line_number":5,"context_line":"    This change requires microversion to be set to at least 1.35."}],"source_content_type":"text/x-yaml","patch_set":10,"id":"3f4b6375_5676c7da","line":2,"in_reply_to":"3f4b6375_d383e955","updated":"2017-10-18 23:47:53.000000000","message":"I think it probably won\u0027t hurt to put this in both sections. Just reword it differently for the \u0027fixes:\u0027 one. Something like \u0027Fixes the problem of an old configdrive (used for deploying the node) being used again when rebuilding the node. Starting with REST API ..., it is possible to specify a different configdrive when rebuilding a node.\n\nYou could also reference the bug, although this bug has a bunch of differing comments so maybe not :)","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b02e876feceffc7df92be8775ea17077aab53b16","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    It is now possible to provide a configdrive when rebuilding a node."},{"line_number":5,"context_line":"    This change requires microversion to be set to at least 1.35."}],"source_content_type":"text/x-yaml","patch_set":10,"id":"3f4b6375_a00db591","line":5,"updated":"2017-10-18 21:53:10.000000000","message":"how about\n\nStarting with REST API version 1.35, it is possible to provide a configdrive when rebuilding a node.","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"cffa36ede75ccbee070162f882764d33a593fc60","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    It is now possible to provide a configdrive when rebuilding a node."},{"line_number":5,"context_line":"    This change requires microversion to be set to at least 1.35."}],"source_content_type":"text/x-yaml","patch_set":10,"id":"3f4b6375_b39f4db3","line":5,"in_reply_to":"3f4b6375_a00db591","updated":"2017-10-18 22:10:02.000000000","message":"Done","commit_id":"3b90b00c88151a8abe982fe9a73ae621f0ecc08d"}]}
