)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"910e3a95667e4b976355793caf2236a6138c6bd4","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Force persistent options in node_set_boot_device"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When ipmi_force_boot_device is set and node boot order is set to pxe,"},{"line_number":10,"context_line":"after 2 reboots settings disappear from driver."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"I believe the root cause is in line:"},{"line_number":13,"context_line":"https://github.com/openstack/ironic/blob/1c339b6806580719d20b303d4506c754b9c59e96/ironic/drivers/utils.py#L205."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5a8bc5a2_da956d33","line":10,"range":{"start_line":10,"start_character":6,"end_line":10,"end_character":15},"updated":"2016-09-26 11:47:15.000000000","message":"That\u0027s strange, you get the same behavior on all your nodes ?","commit_id":"fb222c5aeffd4ae5fc233e079a892baf296991f4"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"910e3a95667e4b976355793caf2236a6138c6bd4","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"I believe the root cause is in line:"},{"line_number":13,"context_line":"https://github.com/openstack/ironic/blob/1c339b6806580719d20b303d4506c754b9c59e96/ironic/drivers/utils.py#L205."},{"line_number":14,"context_line":"utils.set_boot_device should be called with \u0027persistent\u003dtrue\u0027 parameter."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: I79efed519b2bacf178f078b338394ca0c4e87d4f"},{"line_number":17,"context_line":"Partial-Bug: #1626453"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5a8bc5a2_9aecc5f4","line":14,"updated":"2016-09-26 11:47:15.000000000","message":"Please describe *why* you are making the change and not *what* you are changing here.","commit_id":"fb222c5aeffd4ae5fc233e079a892baf296991f4"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"e8c07fb44e8e853e8f88eff23b742621f28a1345","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Fix setting persistent boot device does not work"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Old vaulue of \"driver_internal_info[\u0027is_next_boot_persistent\u0027] \u003d False\" is still there."},{"line_number":10,"context_line":"This mistake will lead to get_boot_device work wrong in response boot information."},{"line_number":11,"context_line":"https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/ipmitool.py#L975"},{"line_number":12,"context_line":"Thus we have to pop \"is_next_boot_persistent\" to fix the problem."},{"line_number":13,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"fa6399be_478c3f35","line":10,"updated":"2016-10-13 07:58:28.000000000","message":"The good commit message should contain lines with 72 chars maximum\nhttps://wiki.openstack.org/wiki/GitCommitMessages#Summary_of_Git_commit_message_structure","commit_id":"82d2d66b1e2a8690e3371c4fda6342cc627f4bdf"},{"author":{"_account_id":22255,"name":"Tuan","email":"tuanla@vn.fujitsu.com","username":"Tuan"},"change_message_id":"9cf2e57c8cecf7171123408c2e094d61a421fc35","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Fix setting persistent boot device does not work"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Old vaulue of \"driver_internal_info[\u0027is_next_boot_persistent\u0027] \u003d False\" is still there."},{"line_number":10,"context_line":"This mistake will lead to get_boot_device work wrong in response boot information."},{"line_number":11,"context_line":"https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/ipmitool.py#L975"},{"line_number":12,"context_line":"Thus we have to pop \"is_next_boot_persistent\" to fix the problem."},{"line_number":13,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"fa6399be_2a19cfd7","line":10,"in_reply_to":"fa6399be_478c3f35","updated":"2016-10-19 03:24:16.000000000","message":"Done","commit_id":"82d2d66b1e2a8690e3371c4fda6342cc627f4bdf"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"e8c07fb44e8e853e8f88eff23b742621f28a1345","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Old vaulue of \"driver_internal_info[\u0027is_next_boot_persistent\u0027] \u003d False\" is still there."},{"line_number":10,"context_line":"This mistake will lead to get_boot_device work wrong in response boot information."},{"line_number":11,"context_line":"https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/ipmitool.py#L975"},{"line_number":12,"context_line":"Thus we have to pop \"is_next_boot_persistent\" to fix the problem."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Co-Authored-By: Dmitry Tantsur \u003cdivius.inside@gmail.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"fa6399be_07c5e759","line":11,"updated":"2016-10-13 07:58:28.000000000","message":"Please use link to direct commit, otherwise link may changed with time https://github.com/openstack/ironic/blob/70b992/ironic/drivers/modules/ipmitool.py#L975","commit_id":"82d2d66b1e2a8690e3371c4fda6342cc627f4bdf"},{"author":{"_account_id":22255,"name":"Tuan","email":"tuanla@vn.fujitsu.com","username":"Tuan"},"change_message_id":"9cf2e57c8cecf7171123408c2e094d61a421fc35","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Old vaulue of \"driver_internal_info[\u0027is_next_boot_persistent\u0027] \u003d False\" is still there."},{"line_number":10,"context_line":"This mistake will lead to get_boot_device work wrong in response boot information."},{"line_number":11,"context_line":"https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/ipmitool.py#L975"},{"line_number":12,"context_line":"Thus we have to pop \"is_next_boot_persistent\" to fix the problem."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Co-Authored-By: Dmitry Tantsur \u003cdivius.inside@gmail.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"fa6399be_6a0f4788","line":11,"in_reply_to":"fa6399be_07c5e759","updated":"2016-10-19 03:24:16.000000000","message":"Done","commit_id":"82d2d66b1e2a8690e3371c4fda6342cc627f4bdf"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"bc01ce068cbfd31467e688e9fe6278bc1dcf46d4","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix setting persistent boot device does not work"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"- The old vaulue \u0027is_next_boot_persistent\u0027\u003dFalse of \"driver_internal_info\""},{"line_number":10,"context_line":"is still in database, Because when persistent set is True we didn\u0027t set"},{"line_number":11,"context_line":"\u0027is_next_boot_persistent\u0027\u003dTrue. This will lead to get_boot_device work"},{"line_number":12,"context_line":"wrong in response boot information."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"fa6399be_73b66d8b","line":9,"range":{"start_line":9,"start_character":10,"end_line":9,"end_character":16},"updated":"2016-10-19 22:07:25.000000000","message":"nit: s/vaulue/value","commit_id":"803719150572a39dab2b82069d8b30405ba60d66"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"3831a01e86dac8d21cf4f5b69bd5617cdbb3db01","unresolved":false,"context_lines":[{"line_number":18,"context_line":"Thus we have to pop \"is_next_boot_persistent\" to fix the problem."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"- We also fix in this case driver_info/ipmi_force_boot_device\u003dTrue."},{"line_number":21,"context_line":"Forget set persistent in node_set_boot_device functions (default persistent\u003dFalse) in ensure_next_boot_device:"},{"line_number":22,"context_line":"https://github.com/openstack/ironic/blob/d0b2985/ironic/drivers/utils.py#L187"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Co-Authored-By: Dmitry Tantsur \u003cdivius.inside@gmail.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":16,"id":"ba5da102_de672ae7","line":21,"updated":"2016-11-01 16:25:46.000000000","message":"it is on purpose, see below","commit_id":"a048bd1e961142fb24cceee0b9a4f701a1829fa8"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"34874be157c50e6b3d2aefa9604dee772cd46e19","unresolved":false,"context_lines":[{"line_number":11,"context_line":"\u0027is_next_boot_persistent\u0027\u003dTrue. This will lead to get_boot_device work"},{"line_number":12,"context_line":"wrong in response boot information."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"https://github.com/openstack/ironic/blob/70b992c/ironic/drivers/modules/ipmitool.py#L975"},{"line_number":15,"context_line":"or"},{"line_number":16,"context_line":"https://github.com/openstack/ironic/blob/70b992c/ironic/drivers/modules/ipminative.py#L501"},{"line_number":17,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":19,"id":"ba5da102_455070d4","line":14,"updated":"2016-11-02 22:39:24.000000000","message":"I don\u0027t think it\u0027s needed to link this code here, but if you must, please use a git.openstack.org link rather than GitHub.","commit_id":"8a9ea010dad22c1e7e3c73df0869699b3baedaa8"}],"ironic/drivers/utils.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2f58c28693b2128d8f9b425e1a744e549193128c","unresolved":false,"context_lines":[{"line_number":220,"context_line":"    node \u003d task.node"},{"line_number":221,"context_line":"    driver_internal_info \u003d node.driver_internal_info"},{"line_number":222,"context_line":"    if persistent:"},{"line_number":223,"context_line":"        driver_internal_info[\u0027persistent_boot_device\u0027] \u003d device"},{"line_number":224,"context_line":"    else:"},{"line_number":225,"context_line":"        driver_internal_info[\u0027is_next_boot_persistent\u0027] \u003d False"},{"line_number":226,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"5a8bc5a2_e9a25cfb","line":223,"updated":"2016-09-26 14:04:24.000000000","message":"on this branch, old value of is_next_boot_persistent can e still there. I think it\u0027s enough to just add\n\n  driver_internal_info.pop(\u0027is_next_boot_persistent\u0027, None)\n\nhere to fix the problem","commit_id":"fb222c5aeffd4ae5fc233e079a892baf296991f4"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"e8c07fb44e8e853e8f88eff23b742621f28a1345","unresolved":false,"context_lines":[{"line_number":220,"context_line":"    node \u003d task.node"},{"line_number":221,"context_line":"    driver_internal_info \u003d node.driver_internal_info"},{"line_number":222,"context_line":"    if persistent:"},{"line_number":223,"context_line":"        driver_internal_info.pop(\u0027is_next_boot_persistent\u0027, None)"},{"line_number":224,"context_line":"        driver_internal_info[\u0027persistent_boot_device\u0027] \u003d device"},{"line_number":225,"context_line":"    else:"},{"line_number":226,"context_line":"        driver_internal_info[\u0027is_next_boot_persistent\u0027] \u003d False"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa6399be_e7c5533c","line":223,"updated":"2016-10-13 07:58:28.000000000","message":"nit: The default value of is_next_boot_persistent is True, it is ok to not set it here but it may confuse, might be set True explicitly? \n\nhttps://github.com/openstack/ironic/blob/70b992ca57122c00ba8003fb6426d31fa177093d/ironic/drivers/modules/ipminative.py#L501","commit_id":"82d2d66b1e2a8690e3371c4fda6342cc627f4bdf"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"d3f7d2fcbaf4b9fac8aaa7212bcd4a2bc9f6b451","unresolved":false,"context_lines":[{"line_number":209,"context_line":"    \"\"\"Set persistent boot device to driver_internal_info"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"    If persistent is True set \u0027persistent_boot_device\u0027 field to the"},{"line_number":212,"context_line":"    boot device and reset persistent to False, else set"},{"line_number":213,"context_line":"    \u0027is_next_boot_persistent\u0027 to False."},{"line_number":214,"context_line":""},{"line_number":215,"context_line":"    :param task: Task object."}],"source_content_type":"text/x-python","patch_set":6,"id":"fa6399be_54cea12e","line":212,"range":{"start_line":212,"start_character":16,"end_line":212,"end_character":45},"updated":"2016-10-13 11:58:59.000000000","message":"This sentence looks strange.","commit_id":"5a1eca2fbf876b2d2ab403b7c1a7d65d5f009e5a"},{"author":{"_account_id":22255,"name":"Tuan","email":"tuanla@vn.fujitsu.com","username":"Tuan"},"change_message_id":"ae66f55697fe8a4dd16243fb33bccea44a077e15","unresolved":false,"context_lines":[{"line_number":209,"context_line":"    \"\"\"Set persistent boot device to driver_internal_info"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"    If persistent is True set \u0027persistent_boot_device\u0027 field to the"},{"line_number":212,"context_line":"    boot device and reset persistent to False, else set"},{"line_number":213,"context_line":"    \u0027is_next_boot_persistent\u0027 to False."},{"line_number":214,"context_line":""},{"line_number":215,"context_line":"    :param task: Task object."}],"source_content_type":"text/x-python","patch_set":6,"id":"fa6399be_4c449873","line":212,"range":{"start_line":212,"start_character":16,"end_line":212,"end_character":45},"in_reply_to":"fa6399be_54cea12e","updated":"2016-10-19 03:23:08.000000000","message":"I will get back to you as soon as I have further information.","commit_id":"5a1eca2fbf876b2d2ab403b7c1a7d65d5f009e5a"},{"author":{"_account_id":7900,"name":"Tomasz Paszkowski","email":"ss7pro@gmail.com","username":"tpaszkowski"},"change_message_id":"4559c27585ba32488ff5bf8bbc75dcdb9d329732","unresolved":false,"context_lines":[{"line_number":220,"context_line":"    node \u003d task.node"},{"line_number":221,"context_line":"    driver_internal_info \u003d node.driver_internal_info"},{"line_number":222,"context_line":"    if persistent:"},{"line_number":223,"context_line":"        driver_internal_info.pop(\u0027is_next_boot_persistent\u0027, None)"},{"line_number":224,"context_line":"        driver_internal_info[\u0027persistent_boot_device\u0027] \u003d device"},{"line_number":225,"context_line":"    else:"},{"line_number":226,"context_line":"        driver_internal_info[\u0027is_next_boot_persistent\u0027] \u003d False"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa6399be_2b82f100","line":223,"updated":"2016-10-18 21:24:02.000000000","message":"Folks, t","commit_id":"5a1eca2fbf876b2d2ab403b7c1a7d65d5f009e5a"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"a64a34cdcdc21035ba3bcb8f33b0fd6e3209cfa8","unresolved":false,"context_lines":[{"line_number":201,"context_line":"            task.node.save()"},{"line_number":202,"context_line":"        else:"},{"line_number":203,"context_line":"            boot_device \u003d driver_internal_info.get(\u0027persistent_boot_device\u0027)"},{"line_number":204,"context_line":"            if boot_device: utils.node_set_boot_device(task, boot_device, persistent\u003dTrue)"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":""},{"line_number":207,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"fa6399be_791d9565","line":204,"range":{"start_line":204,"start_character":28,"end_line":204,"end_character":90},"updated":"2016-10-19 07:52:35.000000000","message":"nit: pep8 complaining, please, move it to the next line","commit_id":"530fec6988ce8d2f1e7806b86c47a712891f4749"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"da2cc8d39e5dddc43d3e43aeea3e6c40cf6ae4d9","unresolved":false,"context_lines":[{"line_number":220,"context_line":"    node \u003d task.node"},{"line_number":221,"context_line":"    driver_internal_info \u003d node.driver_internal_info"},{"line_number":222,"context_line":"    if persistent:"},{"line_number":223,"context_line":"        driver_internal_info.pop(\u0027is_next_boot_persistent\u0027, None)"},{"line_number":224,"context_line":"        driver_internal_info[\u0027persistent_boot_device\u0027] \u003d device"},{"line_number":225,"context_line":"    else:"},{"line_number":226,"context_line":"        driver_internal_info[\u0027is_next_boot_persistent\u0027] \u003d False"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa6399be_cab784f3","line":223,"updated":"2016-10-19 18:57:56.000000000","message":"I think that explicitly setting to True would be more self-explanatory","commit_id":"803719150572a39dab2b82069d8b30405ba60d66"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"c3b4989f3999538ad15bc791f7db61c81bfec1c8","unresolved":false,"context_lines":[{"line_number":220,"context_line":"    node \u003d task.node"},{"line_number":221,"context_line":"    driver_internal_info \u003d node.driver_internal_info"},{"line_number":222,"context_line":"    if persistent:"},{"line_number":223,"context_line":"        driver_internal_info.pop(\u0027is_next_boot_persistent\u0027, None)"},{"line_number":224,"context_line":"        driver_internal_info[\u0027persistent_boot_device\u0027] \u003d device"},{"line_number":225,"context_line":"    else:"},{"line_number":226,"context_line":"        driver_internal_info[\u0027is_next_boot_persistent\u0027] \u003d False"}],"source_content_type":"text/x-python","patch_set":10,"id":"da6895a0_76cb2973","line":223,"in_reply_to":"da6895a0_d82fc4f4","updated":"2016-10-21 01:39:17.000000000","message":"1) The way it looks right now, has strong dependency on default value\n2) It is not clear for somebody who reads the code - if it was set to True, it is obvious, that \"It is true that next boot is persistent\". In that case, that someone has to go through the code in other files to see why the key got deleted (and after digging he\u0027ll find out that it\u0027s because of default value). Clear code can be characterized by lack of need of unnecessary digging :)","commit_id":"803719150572a39dab2b82069d8b30405ba60d66"},{"author":{"_account_id":22255,"name":"Tuan","email":"tuanla@vn.fujitsu.com","username":"Tuan"},"change_message_id":"41b5b865924402593395eb6d89f1e48921e1281f","unresolved":false,"context_lines":[{"line_number":220,"context_line":"    node \u003d task.node"},{"line_number":221,"context_line":"    driver_internal_info \u003d node.driver_internal_info"},{"line_number":222,"context_line":"    if persistent:"},{"line_number":223,"context_line":"        driver_internal_info.pop(\u0027is_next_boot_persistent\u0027, None)"},{"line_number":224,"context_line":"        driver_internal_info[\u0027persistent_boot_device\u0027] \u003d device"},{"line_number":225,"context_line":"    else:"},{"line_number":226,"context_line":"        driver_internal_info[\u0027is_next_boot_persistent\u0027] \u003d False"}],"source_content_type":"text/x-python","patch_set":10,"id":"da6895a0_78587857","line":223,"in_reply_to":"fa6399be_13f8d148","updated":"2016-10-21 01:32:21.000000000","message":"But it not wrong, Can your explain why we have to change to True.","commit_id":"803719150572a39dab2b82069d8b30405ba60d66"},{"author":{"_account_id":22255,"name":"Tuan","email":"tuanla@vn.fujitsu.com","username":"Tuan"},"change_message_id":"41b5b865924402593395eb6d89f1e48921e1281f","unresolved":false,"context_lines":[{"line_number":220,"context_line":"    node \u003d task.node"},{"line_number":221,"context_line":"    driver_internal_info \u003d node.driver_internal_info"},{"line_number":222,"context_line":"    if persistent:"},{"line_number":223,"context_line":"        driver_internal_info.pop(\u0027is_next_boot_persistent\u0027, None)"},{"line_number":224,"context_line":"        driver_internal_info[\u0027persistent_boot_device\u0027] \u003d device"},{"line_number":225,"context_line":"    else:"},{"line_number":226,"context_line":"        driver_internal_info[\u0027is_next_boot_persistent\u0027] \u003d False"}],"source_content_type":"text/x-python","patch_set":10,"id":"da6895a0_d82fc4f4","line":223,"in_reply_to":"fa6399be_cab784f3","updated":"2016-10-21 01:32:21.000000000","message":"But it not wrong, Sorry, I have to take times to understand why we have is_next_boot_persistent and thinks about do that or not. Now I just make sure that what is did don\u0027t break comment mention about the code.  Can you explain why we have to change to True.","commit_id":"803719150572a39dab2b82069d8b30405ba60d66"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"bc01ce068cbfd31467e688e9fe6278bc1dcf46d4","unresolved":false,"context_lines":[{"line_number":220,"context_line":"    node \u003d task.node"},{"line_number":221,"context_line":"    driver_internal_info \u003d node.driver_internal_info"},{"line_number":222,"context_line":"    if persistent:"},{"line_number":223,"context_line":"        driver_internal_info.pop(\u0027is_next_boot_persistent\u0027, None)"},{"line_number":224,"context_line":"        driver_internal_info[\u0027persistent_boot_device\u0027] \u003d device"},{"line_number":225,"context_line":"    else:"},{"line_number":226,"context_line":"        driver_internal_info[\u0027is_next_boot_persistent\u0027] \u003d False"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa6399be_13f8d148","line":223,"in_reply_to":"fa6399be_cab784f3","updated":"2016-10-19 22:07:25.000000000","message":"I agree, it took me way too long to figure out what this is supposed to do. I think this part of the codebase needs a little refactoring perhaps, but let\u0027s at least keep this part of the change simple.","commit_id":"803719150572a39dab2b82069d8b30405ba60d66"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"4a0593ff38934d09fc155e67127274f5106eb464","unresolved":false,"context_lines":[{"line_number":220,"context_line":"    node \u003d task.node"},{"line_number":221,"context_line":"    driver_internal_info \u003d node.driver_internal_info"},{"line_number":222,"context_line":"    if persistent:"},{"line_number":223,"context_line":"        driver_internal_info.pop(\u0027is_next_boot_persistent\u0027, None)"},{"line_number":224,"context_line":"        driver_internal_info[\u0027persistent_boot_device\u0027] \u003d device"},{"line_number":225,"context_line":"    else:"},{"line_number":226,"context_line":"        driver_internal_info[\u0027is_next_boot_persistent\u0027] \u003d False"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba5da102_63513e0e","line":223,"range":{"start_line":223,"start_character":58,"end_line":223,"end_character":64},"updated":"2016-11-01 05:26:20.000000000","message":"I read through all of discussions about the second argument.\n\nMy opinion is that we don\u0027t need the second argument. \nBecause we didn\u0027t set the return value to a variable such that:\n\n result \u003d driver_internal_info.pop(\u0027is_next_boot_persistent\u0027, None)\n\nTherefor the line should be:\n\n driver_internal_info.pop(\u0027is_next_boot_persistent\u0027)","commit_id":"739b93a6b9e4e0980c4771c7e80ba3cd9c9ed4d7"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"8cc0f295fbebc520a3440e336a3b4edc5f36f0d0","unresolved":false,"context_lines":[{"line_number":220,"context_line":"    node \u003d task.node"},{"line_number":221,"context_line":"    driver_internal_info \u003d node.driver_internal_info"},{"line_number":222,"context_line":"    if persistent:"},{"line_number":223,"context_line":"        driver_internal_info.pop(\u0027is_next_boot_persistent\u0027)"},{"line_number":224,"context_line":"        driver_internal_info[\u0027persistent_boot_device\u0027] \u003d device"},{"line_number":225,"context_line":"    else:"},{"line_number":226,"context_line":"        driver_internal_info[\u0027is_next_boot_persistent\u0027] \u003d False"}],"source_content_type":"text/x-python","patch_set":15,"id":"ba5da102_63621eaf","line":223,"range":{"start_line":223,"start_character":8,"end_line":223,"end_character":59},"updated":"2016-11-01 05:50:57.000000000","message":"There is a case that the second argument is necessary.\nIf there is NOT the key \u0027is_next_boot_persistent\u0027 in the dict, this line throws KeyError.\n\nIf there is the possibility, we need the the second argument.\nNone is find for me, because it doesn\u0027t matter what value it is.","commit_id":"f4c4067c7d6dfedc3d3d5becc551a22f19a5b980"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"3831a01e86dac8d21cf4f5b69bd5617cdbb3db01","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        else:"},{"line_number":203,"context_line":"            boot_device \u003d driver_internal_info.get(\u0027persistent_boot_device\u0027)"},{"line_number":204,"context_line":"            if boot_device:"},{"line_number":205,"context_line":"                utils.node_set_boot_device(task, boot_device, persistent\u003dTrue)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"def force_persistent_boot(task, device, persistent):"}],"source_content_type":"text/x-python","patch_set":16,"id":"ba5da102_be6a76b1","line":205,"updated":"2016-11-01 16:25:46.000000000","message":"please remove this change, it\u0027s incorrect (this method us used when persistent boot device does not work for any reason)","commit_id":"a048bd1e961142fb24cceee0b9a4f701a1829fa8"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"55f7b8b1d127b9d489c122ed75792187db15cf47","unresolved":false,"context_lines":[{"line_number":193,"context_line":"    :param driver_info: Node driver_info."},{"line_number":194,"context_line":"    \"\"\""},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"    if driver_info.get(\u0027force_boot_device\u0027, False):"},{"line_number":197,"context_line":"        driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":198,"context_line":"        if driver_internal_info.get(\u0027is_next_boot_persistent\u0027) is False:"},{"line_number":199,"context_line":"            driver_internal_info.pop(\u0027is_next_boot_persistent\u0027, None)"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba5da102_49779c9f","line":196,"updated":"2016-11-03 11:09:13.000000000","message":"We use \u0027ipmi_force_boot_device\u0027 parameter name in ipmi drivers https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/ipmitool.py#L908","commit_id":"8a9ea010dad22c1e7e3c73df0869699b3baedaa8"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"888b1dadc7d0072b4340e1afa5c7d507027c45ca","unresolved":false,"context_lines":[{"line_number":193,"context_line":"    :param driver_info: Node driver_info."},{"line_number":194,"context_line":"    \"\"\""},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"    if driver_info.get(\u0027force_boot_device\u0027, False):"},{"line_number":197,"context_line":"        driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":198,"context_line":"        if driver_internal_info.get(\u0027is_next_boot_persistent\u0027) is False:"},{"line_number":199,"context_line":"            driver_internal_info.pop(\u0027is_next_boot_persistent\u0027, None)"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba5da102_e2ade5e9","line":196,"in_reply_to":"ba5da102_49779c9f","updated":"2016-11-03 11:28:41.000000000","message":"It\u0027s OK we use parsed parameter.","commit_id":"8a9ea010dad22c1e7e3c73df0869699b3baedaa8"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"55f7b8b1d127b9d489c122ed75792187db15cf47","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        else:"},{"line_number":203,"context_line":"            boot_device \u003d driver_internal_info.get(\u0027persistent_boot_device\u0027)"},{"line_number":204,"context_line":"            if boot_device:"},{"line_number":205,"context_line":"                utils.node_set_boot_device(task, boot_device)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"def force_persistent_boot(task, device, persistent):"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba5da102_2c2a7690","line":205,"updated":"2016-11-03 11:09:13.000000000","message":"Let\u0027s consider the following situation:\n\n1) Operator set \u0027force_boot_device\u0027 to True.\n2) Operator set boot device with persistent\u003dTrue via API.\n3) Node rebooted via API. This utils function called with default persistent\u003dFalse, driver sets \u0027is_next_boot_persistent\u0027 \u003d False (l226) and we do not set boot device on the next reboot.","commit_id":"8a9ea010dad22c1e7e3c73df0869699b3baedaa8"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"93f45c2582385e9c4c18bd4d74400a31fcfdd1e5","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        else:"},{"line_number":203,"context_line":"            boot_device \u003d driver_internal_info.get(\u0027persistent_boot_device\u0027)"},{"line_number":204,"context_line":"            if boot_device:"},{"line_number":205,"context_line":"                utils.node_set_boot_device(task, boot_device, persistent\u003dTrue)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"def force_persistent_boot(task, device, persistent):"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba5da102_78c79664","line":205,"updated":"2016-11-04 11:51:18.000000000","message":"I\u0027ll reiterate: this should not be done, it defeats the very purpose of \"force_boot_device\" option.","commit_id":"1e7184433f929efb1c4e8955b39dcad3913c82a3"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"cef2b8e0263b86124138b95644244cf42c82717c","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        else:"},{"line_number":203,"context_line":"            boot_device \u003d driver_internal_info.get(\u0027persistent_boot_device\u0027)"},{"line_number":204,"context_line":"            if boot_device:"},{"line_number":205,"context_line":"                utils.node_set_boot_device(task, boot_device, persistent\u003dTrue)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"def force_persistent_boot(task, device, persistent):"}],"source_content_type":"text/x-python","patch_set":22,"id":"7a77a97e_90ad1334","line":205,"in_reply_to":"7a77a97e_30419f0c","updated":"2016-11-15 10:13:47.000000000","message":"Agree better do refactoring for all of this code.","commit_id":"1e7184433f929efb1c4e8955b39dcad3913c82a3"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"052b4d98aa5920f405df7360b0857f2d8a0aed16","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        else:"},{"line_number":203,"context_line":"            boot_device \u003d driver_internal_info.get(\u0027persistent_boot_device\u0027)"},{"line_number":204,"context_line":"            if boot_device:"},{"line_number":205,"context_line":"                utils.node_set_boot_device(task, boot_device, persistent\u003dTrue)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"def force_persistent_boot(task, device, persistent):"}],"source_content_type":"text/x-python","patch_set":22,"id":"7a77a97e_30419f0c","line":205,"in_reply_to":"7a77a97e_56aab41a","updated":"2016-11-15 10:06:58.000000000","message":"@Vladyslav, please look at the code again: https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/ipmitool.py#L912-L914 We do not set persistent on the hardware if \"ipmi_force_boot_device\" is set. Currently only ipmitool and ipminative use common utility functions in-tree. Because currently this feature does not work at all out-of-tree drivers developers should implement the same behavior.","commit_id":"1e7184433f929efb1c4e8955b39dcad3913c82a3"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"0898ca1bde5c787d34397d2b1f4811b71174b28a","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        else:"},{"line_number":203,"context_line":"            boot_device \u003d driver_internal_info.get(\u0027persistent_boot_device\u0027)"},{"line_number":204,"context_line":"            if boot_device:"},{"line_number":205,"context_line":"                utils.node_set_boot_device(task, boot_device, persistent\u003dTrue)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"def force_persistent_boot(task, device, persistent):"}],"source_content_type":"text/x-python","patch_set":22,"id":"7a77a97e_56aab41a","line":205,"in_reply_to":"9a629dbe_0b5d6de9","updated":"2016-11-14 18:45:44.000000000","message":"All the code here is very convoluted. I agree that it is logically incorrect to put persistent\u003dTrue here, as this method is intended to be used for one-time setting of boot device, as the logic in the set_power_state/reboot methods shows. It seems that we need to refactor this code, and not just insert more hacks to fix the bug.\n\n@Yuriy, yes, you\u0027re right, with the current approach it seems we need to set persistent\u003dTrue for this code to work, but consider another situation:\n\n1. user sets one-time boot device through client, ipmi_force_boot_device is set, but one-time boot is requested;\n2. reboots the node;\n3. boot device changed persistently.\n\nWhat\u0027s the intended behaviour in this ^^ case? Also I have not found a single word in our docs about ipmi_force_boot_device parameter...","commit_id":"1e7184433f929efb1c4e8955b39dcad3913c82a3"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"708de713551758625d9d7dbd1dd15f492909ef3b","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        else:"},{"line_number":203,"context_line":"            boot_device \u003d driver_internal_info.get(\u0027persistent_boot_device\u0027)"},{"line_number":204,"context_line":"            if boot_device:"},{"line_number":205,"context_line":"                utils.node_set_boot_device(task, boot_device, persistent\u003dTrue)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"def force_persistent_boot(task, device, persistent):"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba5da102_89489ece","line":205,"in_reply_to":"ba5da102_09980e6a","updated":"2016-11-04 13:17:55.000000000","message":"How does this command work when e.g. you don\u0027t have access rights to set persistent boot (which is one of motivations behind this feature)?","commit_id":"1e7184433f929efb1c4e8955b39dcad3913c82a3"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"e51d55253fb94d519849f3b93dd306f899ee4919","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        else:"},{"line_number":203,"context_line":"            boot_device \u003d driver_internal_info.get(\u0027persistent_boot_device\u0027)"},{"line_number":204,"context_line":"            if boot_device:"},{"line_number":205,"context_line":"                utils.node_set_boot_device(task, boot_device, persistent\u003dTrue)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"def force_persistent_boot(task, device, persistent):"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba5da102_4e6ccc36","line":205,"in_reply_to":"ba5da102_2ef798f6","updated":"2016-11-04 12:47:35.000000000","message":"Currently it does not work correctly even for ipmi drivers, developer should do the same (previous comment) for own drivers.","commit_id":"1e7184433f929efb1c4e8955b39dcad3913c82a3"},{"author":{"_account_id":7900,"name":"Tomasz Paszkowski","email":"ss7pro@gmail.com","username":"tpaszkowski"},"change_message_id":"5a21fa79b1738c004311253f518328745c680638","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        else:"},{"line_number":203,"context_line":"            boot_device \u003d driver_internal_info.get(\u0027persistent_boot_device\u0027)"},{"line_number":204,"context_line":"            if boot_device:"},{"line_number":205,"context_line":"                utils.node_set_boot_device(task, boot_device, persistent\u003dTrue)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"def force_persistent_boot(task, device, persistent):"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba5da102_495d8deb","line":205,"in_reply_to":"ba5da102_4a72f5ae","updated":"2016-11-05 13:36:11.000000000","message":"@Dimitry where this exception is raised ? In my production enviroment I\u0027ve patched just this single line to make this feature work.","commit_id":"1e7184433f929efb1c4e8955b39dcad3913c82a3"},{"author":{"_account_id":7900,"name":"Tomasz Paszkowski","email":"ss7pro@gmail.com","username":"tpaszkowski"},"change_message_id":"6a605db0b4098382a350f583ff9cd91dde736e09","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        else:"},{"line_number":203,"context_line":"            boot_device \u003d driver_internal_info.get(\u0027persistent_boot_device\u0027)"},{"line_number":204,"context_line":"            if boot_device:"},{"line_number":205,"context_line":"                utils.node_set_boot_device(task, boot_device, persistent\u003dTrue)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"def force_persistent_boot(task, device, persistent):"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba5da102_c980d64c","line":205,"in_reply_to":"ba5da102_4e6ccc36","updated":"2016-11-04 13:01:38.000000000","message":"Guys, this works. Look at the whole section and note that this node_set_boot_device is only executed when is_next_boot_persistent is set. In my setup I just added this flag to this method and it fixed this feature in my enviroment (agent_ipmitool).","commit_id":"1e7184433f929efb1c4e8955b39dcad3913c82a3"},{"author":{"_account_id":7900,"name":"Tomasz Paszkowski","email":"ss7pro@gmail.com","username":"tpaszkowski"},"change_message_id":"2635dc7b7175c3280ec275d30b012c7af10d118a","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        else:"},{"line_number":203,"context_line":"            boot_device \u003d driver_internal_info.get(\u0027persistent_boot_device\u0027)"},{"line_number":204,"context_line":"            if boot_device:"},{"line_number":205,"context_line":"                utils.node_set_boot_device(task, boot_device, persistent\u003dTrue)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"def force_persistent_boot(task, device, persistent):"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba5da102_09980e6a","line":205,"in_reply_to":"ba5da102_78c79664","updated":"2016-11-04 13:13:47.000000000","message":"Please note is_next_boot_persistent section few lines above (#198).","commit_id":"1e7184433f929efb1c4e8955b39dcad3913c82a3"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"4614a251b2010fa049fbfced8cbe93f97d2e29e8","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        else:"},{"line_number":203,"context_line":"            boot_device \u003d driver_internal_info.get(\u0027persistent_boot_device\u0027)"},{"line_number":204,"context_line":"            if boot_device:"},{"line_number":205,"context_line":"                utils.node_set_boot_device(task, boot_device, persistent\u003dTrue)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"def force_persistent_boot(task, device, persistent):"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba5da102_2ef798f6","line":205,"in_reply_to":"ba5da102_78c79664","updated":"2016-11-04 12:36:48.000000000","message":"We do not try to set persistent on the hardware in this case https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/ipmitool.py#L912-L914","commit_id":"1e7184433f929efb1c4e8955b39dcad3913c82a3"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"f654f96b664d07f96dd286dec99fa03cfde6f518","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        else:"},{"line_number":203,"context_line":"            boot_device \u003d driver_internal_info.get(\u0027persistent_boot_device\u0027)"},{"line_number":204,"context_line":"            if boot_device:"},{"line_number":205,"context_line":"                utils.node_set_boot_device(task, boot_device, persistent\u003dTrue)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"def force_persistent_boot(task, device, persistent):"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba5da102_c410bbae","line":205,"in_reply_to":"ba5da102_89489ece","updated":"2016-11-04 13:46:25.000000000","message":"@Dmitry ^^ my first comment.","commit_id":"1e7184433f929efb1c4e8955b39dcad3913c82a3"},{"author":{"_account_id":7900,"name":"Tomasz Paszkowski","email":"ss7pro@gmail.com","username":"tpaszkowski"},"change_message_id":"46192ad3e5df1315a1f9a4b50630de2e947df744","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        else:"},{"line_number":203,"context_line":"            boot_device \u003d driver_internal_info.get(\u0027persistent_boot_device\u0027)"},{"line_number":204,"context_line":"            if boot_device:"},{"line_number":205,"context_line":"                utils.node_set_boot_device(task, boot_device, persistent\u003dTrue)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"def force_persistent_boot(task, device, persistent):"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba5da102_e9f581cb","line":205,"in_reply_to":"ba5da102_89489ece","updated":"2016-11-05 13:44:28.000000000","message":"sorry in my case is: utils.node_set_boot_device(task, boot_device, True)","commit_id":"1e7184433f929efb1c4e8955b39dcad3913c82a3"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d3b7328a769b4bc2cd1e411f34b67667346d4b7f","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        else:"},{"line_number":203,"context_line":"            boot_device \u003d driver_internal_info.get(\u0027persistent_boot_device\u0027)"},{"line_number":204,"context_line":"            if boot_device:"},{"line_number":205,"context_line":"                utils.node_set_boot_device(task, boot_device, persistent\u003dTrue)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"def force_persistent_boot(task, device, persistent):"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba5da102_4a72f5ae","line":205,"in_reply_to":"ba5da102_c410bbae","updated":"2016-11-04 13:58:30.000000000","message":"I don\u0027t see what it answers. Please elaborate, assuming that passing persistent\u003dTrue raises an exception here.","commit_id":"1e7184433f929efb1c4e8955b39dcad3913c82a3"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"31ce186ecf279fef850871feed4bc0340d9af2e9","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        else:"},{"line_number":203,"context_line":"            boot_device \u003d driver_internal_info.get(\u0027persistent_boot_device\u0027)"},{"line_number":204,"context_line":"            if boot_device:"},{"line_number":205,"context_line":"                utils.node_set_boot_device(task, boot_device, persistent\u003dTrue)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"def force_persistent_boot(task, device, persistent):"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a629dbe_0b5d6de9","line":205,"in_reply_to":"ba5da102_e9f581cb","updated":"2016-11-07 10:20:27.000000000","message":"\u003e In my production enviroment I\u0027ve patched just this single line to make this feature work.\n\nIf setting boot device with persistent\u003dTrue works for you, you should not use this feature.","commit_id":"1e7184433f929efb1c4e8955b39dcad3913c82a3"}],"ironic/tests/unit/drivers/test_utils.py":[{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"da2cc8d39e5dddc43d3e43aeea3e6c40cf6ae4d9","unresolved":false,"context_lines":[{"line_number":159,"context_line":"            ret \u003d driver_utils.force_persistent_boot(task, \u0027pxe\u0027, True)"},{"line_number":160,"context_line":"            self.assertIsNone(ret)"},{"line_number":161,"context_line":"            task.node.refresh()"},{"line_number":162,"context_line":"            self.assertIn(\u0027persistent_boot_device\u0027,"},{"line_number":163,"context_line":"                          task.node.driver_internal_info)"},{"line_number":164,"context_line":"            self.assertNotIn(\u0027is_next_boot_persistent\u0027,"},{"line_number":165,"context_line":"                             task.node.driver_internal_info)"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa6399be_95820cff","line":162,"updated":"2016-10-19 18:57:56.000000000","message":"It may be a good idea to compare the value for this key with the one passed as parameter (\u0027pxe\u0027). I know its a legacy, so not forcing on it. \nEasiest way would to be use: \nself.assertIn(\u0027persistent_boot_devide\u0027, \u0027pxe\u0027), task.node.driver_internal_info.items())","commit_id":"803719150572a39dab2b82069d8b30405ba60d66"}]}
