)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8106,"name":"Haomeng,Wang","email":"wanghaomeng@gmail.com","username":"whaom"},"change_message_id":"533ed91f684635631bd3b760546d4b5c1ec539ab","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"fix bug virtualbox baremetal machine cannot boot from local disk"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Because virtualbox do not support changing VMs  boot sequence when is running, so I power it off before changing its boot sequence."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: Ice489ba642bf093fe7015aa97e6a92717f676118"},{"line_number":12,"context_line":"Close-Bug: #1554908"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5aef4532_2dc89ea7","line":9,"updated":"2016-03-10 02:59:13.000000000","message":"This line is too long, should be wrapped at 72 chars, please follow the commit message format guide - https://wiki.openstack.org/wiki/GitCommitMessages\n\nAnd it is better that we have clear description here to focus on  the changes/solution involved by this patch.","commit_id":"ab8e216434b99fc4db28fb17202270d5e78fdc4c"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"de396150fd4d69e628001ac107ce4b71b17ed451","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"fix bug virtualbox baremetal machine cannot boot from local disk"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Because virtualbox do not support changing VMs  boot sequence when is running, so I power it off before changing its boot sequence."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: Ice489ba642bf093fe7015aa97e6a92717f676118"},{"line_number":12,"context_line":"Close-Bug: #1554908"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5aef4532_6ac36c38","line":9,"in_reply_to":"5aef4532_2dc89ea7","updated":"2016-03-11 02:56:57.000000000","message":"Done. Thank you for your great help :)","commit_id":"ab8e216434b99fc4db28fb17202270d5e78fdc4c"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"11006db2881a06340cb81250ef0229d2ff86cb77","unresolved":false,"context_lines":[{"line_number":7,"context_line":"fix bug virtualbox baremetal machine cannot boot from local disk"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Because virtualbox do not support changing VMs  boot sequence when is running, so I power it off before changing its boot sequence."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: Ice489ba642bf093fe7015aa97e6a92717f676118"},{"line_number":12,"context_line":"Close-Bug: #1554908"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5aef4532_45bce2ba","line":10,"updated":"2016-03-10 03:39:38.000000000","message":"I have another question about the change of agent thing, you didn\u0027t mention it in your commit message at all. I would suggest you to separate it into two patches because they are independent.","commit_id":"ab8e216434b99fc4db28fb17202270d5e78fdc4c"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"de396150fd4d69e628001ac107ce4b71b17ed451","unresolved":false,"context_lines":[{"line_number":7,"context_line":"fix bug virtualbox baremetal machine cannot boot from local disk"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Because virtualbox do not support changing VMs  boot sequence when is running, so I power it off before changing its boot sequence."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: Ice489ba642bf093fe7015aa97e6a92717f676118"},{"line_number":12,"context_line":"Close-Bug: #1554908"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5aef4532_4eefdf1d","line":10,"in_reply_to":"5aef4532_45bce2ba","updated":"2016-03-11 02:56:57.000000000","message":"Done. Thank you for your great help. \nBecause drivers like virtualbox will power of the node before agent calling soft power off. So I check the node power status before calling soft power off.","commit_id":"ab8e216434b99fc4db28fb17202270d5e78fdc4c"},{"author":{"_account_id":8106,"name":"Haomeng,Wang","email":"wanghaomeng@gmail.com","username":"whaom"},"change_message_id":"533ed91f684635631bd3b760546d4b5c1ec539ab","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Because virtualbox do not support changing VMs  boot sequence when is running, so I power it off before changing its boot sequence."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: Ice489ba642bf093fe7015aa97e6a92717f676118"},{"line_number":12,"context_line":"Close-Bug: #1554908"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5aef4532_4dc36a89","line":12,"range":{"start_line":12,"start_character":0,"end_line":12,"end_character":19},"updated":"2016-03-10 02:59:13.000000000","message":"s/Close-bug/Closes-Bug","commit_id":"ab8e216434b99fc4db28fb17202270d5e78fdc4c"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"de396150fd4d69e628001ac107ce4b71b17ed451","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Because virtualbox do not support changing VMs  boot sequence when is running, so I power it off before changing its boot sequence."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: Ice489ba642bf093fe7015aa97e6a92717f676118"},{"line_number":12,"context_line":"Close-Bug: #1554908"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5aef4532_ae7b037a","line":12,"range":{"start_line":12,"start_character":0,"end_line":12,"end_character":19},"in_reply_to":"5aef4532_4dc36a89","updated":"2016-03-11 02:56:57.000000000","message":"Done, Thank you for your help!","commit_id":"ab8e216434b99fc4db28fb17202270d5e78fdc4c"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"87ed0bfae563071e2f9398b97a2b00ca9f205081","unresolved":false,"context_lines":[{"line_number":16,"context_line":"boot devices, and agent will call soft_power_off to shut down the"},{"line_number":17,"context_line":"machine. However, for the drivers like virtualbox which shut down"},{"line_number":18,"context_line":"the machine before calling agent to reboot_and_finish_deploy will case"},{"line_number":19,"context_line":"agent soft shut down a powered off machine. Timeout mechanism wil"},{"line_number":20,"context_line":"ensure the success of deployment but an excepthon will be thrown out."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"So modification in virtualbox drivers to ensure setting boot device on"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5aef4532_6a76cc06","line":19,"range":{"start_line":19,"start_character":62,"end_line":19,"end_character":65},"updated":"2016-03-11 03:24:26.000000000","message":"nit: s/wil/will/","commit_id":"f710028559c9f49dd7df1bee67e31c4f4c1832e9"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"a6b86eb8d6b76387779ced4a5f9435cc23b4d666","unresolved":false,"context_lines":[{"line_number":16,"context_line":"boot devices, and agent will call soft_power_off to shut down the"},{"line_number":17,"context_line":"machine. However, for the drivers like virtualbox which shut down"},{"line_number":18,"context_line":"the machine before calling agent to reboot_and_finish_deploy will case"},{"line_number":19,"context_line":"agent soft shut down a powered off machine. Timeout mechanism wil"},{"line_number":20,"context_line":"ensure the success of deployment but an excepthon will be thrown out."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"So modification in virtualbox drivers to ensure setting boot device on"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5aef4532_057a9b23","line":19,"range":{"start_line":19,"start_character":62,"end_line":19,"end_character":65},"in_reply_to":"5aef4532_6a76cc06","updated":"2016-03-11 08:46:17.000000000","message":"Done.","commit_id":"f710028559c9f49dd7df1bee67e31c4f4c1832e9"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"9b59f7bbdf28433ea29872e7c32d5b2399bb5b79","unresolved":false,"context_lines":[{"line_number":17,"context_line":"machine. However, for the drivers like virtualbox which shut down"},{"line_number":18,"context_line":"the machine before calling agent to reboot_and_finish_deploy will case"},{"line_number":19,"context_line":"agent soft shut down a powered off machine. Timeout mechanism will"},{"line_number":20,"context_line":"ensure the success of deployment but an excepthon will be thrown out."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"So modification in virtualbox drivers to ensure setting boot device on"},{"line_number":23,"context_line":"an power off machine. Modification in agent ensures agent can handle"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"5aef4532_ac1bcb7f","line":20,"range":{"start_line":20,"start_character":40,"end_line":20,"end_character":49},"updated":"2016-03-11 09:04:31.000000000","message":"nit: s/excepthon/exception","commit_id":"bb63d50016b95d53cc5ab4d5bcdaace9bbfa0eaf"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"f767fe67771dc570a07305c5fe42f63978d5915f","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Solution: when the VMs is powered on, we store the target boot"},{"line_number":15,"context_line":"device in driver_internal_info, and set the target boot device"},{"line_number":16,"context_line":"before netxt starting up. For the  get_boot_device call, if"},{"line_number":17,"context_line":"the VMs is powered off, we call remotebox lib to get its boot"},{"line_number":18,"context_line":"device, otherwise, we return the target boot device from"},{"line_number":19,"context_line":"driver_internal_info. Returning target boot device when VMs"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"1af94dfe_d1f56bed","line":16,"range":{"start_line":16,"start_character":34,"end_line":16,"end_character":35},"updated":"2016-03-18 01:39:31.000000000","message":"nit: extra space","commit_id":"f0719bca5e24ac360801477313bd3f8e1c51b9fc"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"f767fe67771dc570a07305c5fe42f63978d5915f","unresolved":false,"context_lines":[{"line_number":14,"context_line":"Solution: when the VMs is powered on, we store the target boot"},{"line_number":15,"context_line":"device in driver_internal_info, and set the target boot device"},{"line_number":16,"context_line":"before netxt starting up. For the  get_boot_device call, if"},{"line_number":17,"context_line":"the VMs is powered off, we call remotebox lib to get its boot"},{"line_number":18,"context_line":"device, otherwise, we return the target boot device from"},{"line_number":19,"context_line":"driver_internal_info. Returning target boot device when VMs"},{"line_number":20,"context_line":"is powered on will avoid the problem that even users set the"},{"line_number":21,"context_line":"target boot device while return the last boot device."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Change-Id: Ice489ba642bf093fe7015aa97e6a92717f676118"},{"line_number":24,"context_line":"Closes-Bug: #1554908"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"1af94dfe_b1389fa1","line":21,"range":{"start_line":17,"start_character":0,"end_line":21,"end_character":53},"updated":"2016-03-18 01:39:31.000000000","message":"you might need to change the commit message as well.","commit_id":"f0719bca5e24ac360801477313bd3f8e1c51b9fc"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"97d59a5c4c2cc0bf3f6636a3504deb58d423e336","unresolved":false,"context_lines":[{"line_number":14,"context_line":"Solution: when the VMs is powered on, we store the target boot"},{"line_number":15,"context_line":"device in driver_internal_info, and set the target boot device"},{"line_number":16,"context_line":"before netxt starting up. For the  get_boot_device call, if"},{"line_number":17,"context_line":"the VMs is powered off, we call remotebox lib to get its boot"},{"line_number":18,"context_line":"device, otherwise, we return the target boot device from"},{"line_number":19,"context_line":"driver_internal_info. Returning target boot device when VMs"},{"line_number":20,"context_line":"is powered on will avoid the problem that even users set the"},{"line_number":21,"context_line":"target boot device while return the last boot device."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Change-Id: Ice489ba642bf093fe7015aa97e6a92717f676118"},{"line_number":24,"context_line":"Closes-Bug: #1554908"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"1af94dfe_276731ea","line":21,"range":{"start_line":17,"start_character":0,"end_line":21,"end_character":53},"in_reply_to":"1af94dfe_b1389fa1","updated":"2016-03-18 03:09:13.000000000","message":"Done","commit_id":"f0719bca5e24ac360801477313bd3f8e1c51b9fc"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"82ddd293cb1b54724f2bf9425706f6c23fe5451e","unresolved":false,"context_lines":[{"line_number":12,"context_line":"boot devices correctly."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Solution: We get boot device from set_boot_deivce and store the"},{"line_number":15,"context_line":"target boot device in driver_internal_info. Before netxt starting up"},{"line_number":16,"context_line":"we set the boot device and clean target_boot_device information,"},{"line_number":17,"context_line":"if the tar_boot_device is None, we just skip setting boot device."},{"line_number":18,"context_line":"For the get_boot_device call, if the VMs is powered off, we call"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"fa0719c6_143369f7","line":15,"range":{"start_line":15,"start_character":44,"end_line":15,"end_character":68},"updated":"2016-03-23 09:29:38.000000000","message":"s/netxt/next/\n\nBefore next starting up and after shut off,","commit_id":"b698af34666ddc471a7191bdc93a93eaebcf803f"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"f55b8f8d46a0de361c57cdacf2c767fe4e89a5ee","unresolved":false,"context_lines":[{"line_number":12,"context_line":"boot devices correctly."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Solution: We get boot device from set_boot_deivce and store the"},{"line_number":15,"context_line":"target boot device in driver_internal_info. Before netxt starting up"},{"line_number":16,"context_line":"we set the boot device and clean target_boot_device information,"},{"line_number":17,"context_line":"if the tar_boot_device is None, we just skip setting boot device."},{"line_number":18,"context_line":"For the get_boot_device call, if the VMs is powered off, we call"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"fa0719c6_589cef0e","line":15,"range":{"start_line":15,"start_character":44,"end_line":15,"end_character":68},"in_reply_to":"fa0719c6_143369f7","updated":"2016-03-23 11:22:38.000000000","message":"Done","commit_id":"b698af34666ddc471a7191bdc93a93eaebcf803f"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"82ddd293cb1b54724f2bf9425706f6c23fe5451e","unresolved":false,"context_lines":[{"line_number":14,"context_line":"Solution: We get boot device from set_boot_deivce and store the"},{"line_number":15,"context_line":"target boot device in driver_internal_info. Before netxt starting up"},{"line_number":16,"context_line":"we set the boot device and clean target_boot_device information,"},{"line_number":17,"context_line":"if the tar_boot_device is None, we just skip setting boot device."},{"line_number":18,"context_line":"For the get_boot_device call, if the VMs is powered off, we call"},{"line_number":19,"context_line":"remotebox to get current boot device. otherwise, we return the target"},{"line_number":20,"context_line":"boot device from driver_internal_info(if target_boot_device"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"fa0719c6_f1e08798","line":17,"range":{"start_line":17,"start_character":7,"end_line":17,"end_character":22},"updated":"2016-03-23 09:29:38.000000000","message":"s/tar_boot_device/target_boot_device or use VirtualBox_target_device directly.","commit_id":"b698af34666ddc471a7191bdc93a93eaebcf803f"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"f55b8f8d46a0de361c57cdacf2c767fe4e89a5ee","unresolved":false,"context_lines":[{"line_number":14,"context_line":"Solution: We get boot device from set_boot_deivce and store the"},{"line_number":15,"context_line":"target boot device in driver_internal_info. Before netxt starting up"},{"line_number":16,"context_line":"we set the boot device and clean target_boot_device information,"},{"line_number":17,"context_line":"if the tar_boot_device is None, we just skip setting boot device."},{"line_number":18,"context_line":"For the get_boot_device call, if the VMs is powered off, we call"},{"line_number":19,"context_line":"remotebox to get current boot device. otherwise, we return the target"},{"line_number":20,"context_line":"boot device from driver_internal_info(if target_boot_device"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"fa0719c6_b89d4b0c","line":17,"range":{"start_line":17,"start_character":7,"end_line":17,"end_character":22},"in_reply_to":"fa0719c6_f1e08798","updated":"2016-03-23 11:22:38.000000000","message":"Done","commit_id":"b698af34666ddc471a7191bdc93a93eaebcf803f"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"82ddd293cb1b54724f2bf9425706f6c23fe5451e","unresolved":false,"context_lines":[{"line_number":18,"context_line":"For the get_boot_device call, if the VMs is powered off, we call"},{"line_number":19,"context_line":"remotebox to get current boot device. otherwise, we return the target"},{"line_number":20,"context_line":"boot device from driver_internal_info(if target_boot_device"},{"line_number":21,"context_line":"is not None) or we call remotebox  to return the current bootdevice."},{"line_number":22,"context_line":"Returning target boot device when VMs is powered on will avoidthe"},{"line_number":23,"context_line":"problem that even users set the target boot device while returning"},{"line_number":24,"context_line":"the last boot device."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"fa0719c6_f1536737","line":21,"range":{"start_line":21,"start_character":57,"end_line":21,"end_character":67},"updated":"2016-03-23 09:29:38.000000000","message":"s/bootdevice/boot device","commit_id":"b698af34666ddc471a7191bdc93a93eaebcf803f"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"f55b8f8d46a0de361c57cdacf2c767fe4e89a5ee","unresolved":false,"context_lines":[{"line_number":18,"context_line":"For the get_boot_device call, if the VMs is powered off, we call"},{"line_number":19,"context_line":"remotebox to get current boot device. otherwise, we return the target"},{"line_number":20,"context_line":"boot device from driver_internal_info(if target_boot_device"},{"line_number":21,"context_line":"is not None) or we call remotebox  to return the current bootdevice."},{"line_number":22,"context_line":"Returning target boot device when VMs is powered on will avoidthe"},{"line_number":23,"context_line":"problem that even users set the target boot device while returning"},{"line_number":24,"context_line":"the last boot device."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"fa0719c6_98a2074a","line":21,"range":{"start_line":21,"start_character":57,"end_line":21,"end_character":67},"in_reply_to":"fa0719c6_f1536737","updated":"2016-03-23 11:22:38.000000000","message":"Done","commit_id":"b698af34666ddc471a7191bdc93a93eaebcf803f"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"82ddd293cb1b54724f2bf9425706f6c23fe5451e","unresolved":false,"context_lines":[{"line_number":19,"context_line":"remotebox to get current boot device. otherwise, we return the target"},{"line_number":20,"context_line":"boot device from driver_internal_info(if target_boot_device"},{"line_number":21,"context_line":"is not None) or we call remotebox  to return the current bootdevice."},{"line_number":22,"context_line":"Returning target boot device when VMs is powered on will avoidthe"},{"line_number":23,"context_line":"problem that even users set the target boot device while returning"},{"line_number":24,"context_line":"the last boot device."},{"line_number":25,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"fa0719c6_51c97325","line":22,"range":{"start_line":22,"start_character":57,"end_line":22,"end_character":65},"updated":"2016-03-23 09:29:38.000000000","message":"s/avoidthe/avoid the/","commit_id":"b698af34666ddc471a7191bdc93a93eaebcf803f"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"f55b8f8d46a0de361c57cdacf2c767fe4e89a5ee","unresolved":false,"context_lines":[{"line_number":19,"context_line":"remotebox to get current boot device. otherwise, we return the target"},{"line_number":20,"context_line":"boot device from driver_internal_info(if target_boot_device"},{"line_number":21,"context_line":"is not None) or we call remotebox  to return the current bootdevice."},{"line_number":22,"context_line":"Returning target boot device when VMs is powered on will avoidthe"},{"line_number":23,"context_line":"problem that even users set the target boot device while returning"},{"line_number":24,"context_line":"the last boot device."},{"line_number":25,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"fa0719c6_f88b43c1","line":22,"range":{"start_line":22,"start_character":57,"end_line":22,"end_character":65},"in_reply_to":"fa0719c6_51c97325","updated":"2016-03-23 11:22:38.000000000","message":"Done","commit_id":"b698af34666ddc471a7191bdc93a93eaebcf803f"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"5da73decde57ab3fc360a9cec5a705fa62640081","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When the VirtualBox VMs is powered on, ironic cannot set the boot"},{"line_number":10,"context_line":"device. As a result, VirtualBox driver cannot finish deploying"},{"line_number":11,"context_line":"local hardisk boot VMs and also set and get Virtualbox VMs\u0027s"},{"line_number":12,"context_line":"boot devices correctly."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Solution: We get boot device from set_boot_deivce and store the"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":14,"id":"1a122d0e_93ee5320","line":11,"range":{"start_line":11,"start_character":6,"end_line":11,"end_character":13},"updated":"2016-04-27 11:43:50.000000000","message":"s/hardisk/harddisk/","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"52249565b33e897458506edbcadca0cefe58e480","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When the VirtualBox VMs is powered on, ironic cannot set the boot"},{"line_number":10,"context_line":"device. As a result, VirtualBox driver cannot finish deploying"},{"line_number":11,"context_line":"local hardisk boot VMs and also set and get Virtualbox VMs\u0027s"},{"line_number":12,"context_line":"boot devices correctly."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Solution: We get boot device from set_boot_deivce and store the"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":14,"id":"1a122d0e_cb6f5d90","line":11,"range":{"start_line":11,"start_character":6,"end_line":11,"end_character":13},"in_reply_to":"1a122d0e_93ee5320","updated":"2016-04-28 05:04:30.000000000","message":"Done","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"5da73decde57ab3fc360a9cec5a705fa62640081","unresolved":false,"context_lines":[{"line_number":11,"context_line":"local hardisk boot VMs and also set and get Virtualbox VMs\u0027s"},{"line_number":12,"context_line":"boot devices correctly."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Solution: We get boot device from set_boot_deivce and store the"},{"line_number":15,"context_line":"target boot device in driver_internal_info. Before next starting up"},{"line_number":16,"context_line":"we set the boot device and clean target_boot_device information,"},{"line_number":17,"context_line":"if the target_boot_device is None, we just skip setting boot device."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":14,"id":"1a122d0e_13db637d","line":14,"range":{"start_line":14,"start_character":34,"end_line":14,"end_character":49},"updated":"2016-04-27 11:43:50.000000000","message":"s/set_boot_deivce/set_boot_device/","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"f945a8e2ad9dd0d95bbe908c4159897529e965e2","unresolved":false,"context_lines":[{"line_number":11,"context_line":"local hardisk boot VMs and also set and get Virtualbox VMs\u0027s"},{"line_number":12,"context_line":"boot devices correctly."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Solution: We get boot device from set_boot_deivce and store the"},{"line_number":15,"context_line":"target boot device in driver_internal_info. Before next starting up"},{"line_number":16,"context_line":"we set the boot device and clean target_boot_device information,"},{"line_number":17,"context_line":"if the target_boot_device is None, we just skip setting boot device."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":14,"id":"1a122d0e_16da364b","line":14,"updated":"2016-04-27 08:59:01.000000000","message":"typo: set_boot_device","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"52249565b33e897458506edbcadca0cefe58e480","unresolved":false,"context_lines":[{"line_number":11,"context_line":"local hardisk boot VMs and also set and get Virtualbox VMs\u0027s"},{"line_number":12,"context_line":"boot devices correctly."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Solution: We get boot device from set_boot_deivce and store the"},{"line_number":15,"context_line":"target boot device in driver_internal_info. Before next starting up"},{"line_number":16,"context_line":"we set the boot device and clean target_boot_device information,"},{"line_number":17,"context_line":"if the target_boot_device is None, we just skip setting boot device."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":14,"id":"1a122d0e_aeae6f7e","line":14,"range":{"start_line":14,"start_character":34,"end_line":14,"end_character":49},"in_reply_to":"1a122d0e_13db637d","updated":"2016-04-28 05:04:30.000000000","message":"Done","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"52249565b33e897458506edbcadca0cefe58e480","unresolved":false,"context_lines":[{"line_number":11,"context_line":"local hardisk boot VMs and also set and get Virtualbox VMs\u0027s"},{"line_number":12,"context_line":"boot devices correctly."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Solution: We get boot device from set_boot_deivce and store the"},{"line_number":15,"context_line":"target boot device in driver_internal_info. Before next starting up"},{"line_number":16,"context_line":"we set the boot device and clean target_boot_device information,"},{"line_number":17,"context_line":"if the target_boot_device is None, we just skip setting boot device."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":14,"id":"1a122d0e_4ebb5bc4","line":14,"in_reply_to":"1a122d0e_16da364b","updated":"2016-04-28 05:04:30.000000000","message":"Done","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"}],"ironic/drivers/modules/agent_base_vendor.py":[{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"87ed0bfae563071e2f9398b97a2b00ca9f205081","unresolved":false,"context_lines":[{"line_number":698,"context_line":"                    LOG.warning("},{"line_number":699,"context_line":"                        _LW(\u0027Failed to soft power off node %(node_uuid)s \u0027"},{"line_number":700,"context_line":"                            \u0027in at least %(timeout)d seconds.\u0027"},{"line_number":701,"context_line":"                            \u0027 Error: %(error)s\u0027),"},{"line_number":702,"context_line":"                        {\u0027node_uuid\u0027: node.uuid,"},{"line_number":703,"context_line":"                         \u0027timeout\u0027: (wait * (attempts - 1)) / 1000,"},{"line_number":704,"context_line":"                         \u0027error\u0027: e})"}],"source_content_type":"text/x-python","patch_set":2,"id":"5aef4532_ea6bfcee","line":701,"range":{"start_line":701,"start_character":29,"end_line":701,"end_character":30},"updated":"2016-03-11 03:24:26.000000000","message":"nit: in general, we have the extra space at end of the above line.","commit_id":"f710028559c9f49dd7df1bee67e31c4f4c1832e9"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"a6b86eb8d6b76387779ced4a5f9435cc23b4d666","unresolved":false,"context_lines":[{"line_number":698,"context_line":"                    LOG.warning("},{"line_number":699,"context_line":"                        _LW(\u0027Failed to soft power off node %(node_uuid)s \u0027"},{"line_number":700,"context_line":"                            \u0027in at least %(timeout)d seconds.\u0027"},{"line_number":701,"context_line":"                            \u0027 Error: %(error)s\u0027),"},{"line_number":702,"context_line":"                        {\u0027node_uuid\u0027: node.uuid,"},{"line_number":703,"context_line":"                         \u0027timeout\u0027: (wait * (attempts - 1)) / 1000,"},{"line_number":704,"context_line":"                         \u0027error\u0027: e})"}],"source_content_type":"text/x-python","patch_set":2,"id":"5aef4532_8c4d2fc7","line":701,"range":{"start_line":701,"start_character":29,"end_line":701,"end_character":30},"in_reply_to":"5aef4532_ea6bfcee","updated":"2016-03-11 08:46:17.000000000","message":"Done.","commit_id":"f710028559c9f49dd7df1bee67e31c4f4c1832e9"}],"ironic/drivers/modules/virtualbox.py":[{"author":{"_account_id":8106,"name":"Haomeng,Wang","email":"wanghaomeng@gmail.com","username":"whaom"},"change_message_id":"533ed91f684635631bd3b760546d4b5c1ec539ab","unresolved":false,"context_lines":[{"line_number":338,"context_line":"            raise exception.InvalidParameterValue("},{"line_number":339,"context_line":"                _(\"Invalid boot device %s specified.\") % device)"},{"line_number":340,"context_line":""},{"line_number":341,"context_line":"        manager_utils.node_power_action(task, states.POWER_OFF)"},{"line_number":342,"context_line":"        try:"},{"line_number":343,"context_line":"            _run_virtualbox_method(task.node, \u0027set_boot_device\u0027,"},{"line_number":344,"context_line":"                                   \u0027set_boot_device\u0027, boot_dev)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5aef4532_4de6ca15","line":341,"range":{"start_line":341,"start_character":8,"end_line":341,"end_character":63},"updated":"2016-03-10 02:59:13.000000000","message":"Should we add logic to check if current power status is power on then do power off operation here?","commit_id":"ab8e216434b99fc4db28fb17202270d5e78fdc4c"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"11006db2881a06340cb81250ef0229d2ff86cb77","unresolved":false,"context_lines":[{"line_number":338,"context_line":"            raise exception.InvalidParameterValue("},{"line_number":339,"context_line":"                _(\"Invalid boot device %s specified.\") % device)"},{"line_number":340,"context_line":""},{"line_number":341,"context_line":"        manager_utils.node_power_action(task, states.POWER_OFF)"},{"line_number":342,"context_line":"        try:"},{"line_number":343,"context_line":"            _run_virtualbox_method(task.node, \u0027set_boot_device\u0027,"},{"line_number":344,"context_line":"                                   \u0027set_boot_device\u0027, boot_dev)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5aef4532_a58166fd","line":341,"range":{"start_line":341,"start_character":8,"end_line":341,"end_character":63},"in_reply_to":"5aef4532_4de6ca15","updated":"2016-03-10 03:39:38.000000000","message":"I think this is fine because node_power_action() already has the logic for this:\nhttps://github.com/openstack/ironic/blob/master/ironic/conductor/utils.py#L89","commit_id":"ab8e216434b99fc4db28fb17202270d5e78fdc4c"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"de396150fd4d69e628001ac107ce4b71b17ed451","unresolved":false,"context_lines":[{"line_number":338,"context_line":"            raise exception.InvalidParameterValue("},{"line_number":339,"context_line":"                _(\"Invalid boot device %s specified.\") % device)"},{"line_number":340,"context_line":""},{"line_number":341,"context_line":"        manager_utils.node_power_action(task, states.POWER_OFF)"},{"line_number":342,"context_line":"        try:"},{"line_number":343,"context_line":"            _run_virtualbox_method(task.node, \u0027set_boot_device\u0027,"},{"line_number":344,"context_line":"                                   \u0027set_boot_device\u0027, boot_dev)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5aef4532_eaae5c7f","line":341,"range":{"start_line":341,"start_character":8,"end_line":341,"end_character":63},"in_reply_to":"5aef4532_a58166fd","updated":"2016-03-11 02:56:57.000000000","message":"Yes, the node_power_action will take care of the node status and check node status before calling power on/off. This is also the reason why I call this function rather than calling power off functions offered by virtualbox drivers.","commit_id":"ab8e216434b99fc4db28fb17202270d5e78fdc4c"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"87ed0bfae563071e2f9398b97a2b00ca9f205081","unresolved":false,"context_lines":[{"line_number":342,"context_line":"        try:"},{"line_number":343,"context_line":"            _run_virtualbox_method(task.node, \u0027set_boot_device\u0027,"},{"line_number":344,"context_line":"                                   \u0027set_boot_device\u0027, boot_dev)"},{"line_number":345,"context_line":"        except virtualbox_exc.VmInWrongPowerState as exc:"},{"line_number":346,"context_line":"            # NOTE(rameshg87): We cannot change the boot device when the vm"},{"line_number":347,"context_line":"            # is powered on. This is a VirtualBox limitation. We just log"},{"line_number":348,"context_line":"            # the error silently and return because throwing error will cause"},{"line_number":349,"context_line":"            # deploys to fail (pxe and agent deploy mechanisms change the boot"},{"line_number":350,"context_line":"            # device after completing the deployment, when node is powered on)."},{"line_number":351,"context_line":"            # Since this is driver that is meant only for developers, this"},{"line_number":352,"context_line":"            # should be okay. Developers will need to set the boot device"},{"line_number":353,"context_line":"            # manually after powering off the vm when deployment is complete."},{"line_number":354,"context_line":"            # This will be documented."},{"line_number":355,"context_line":"            LOG.error(_LE(\"\u0027set_boot_device\u0027 failed for node %(node_id)s \""},{"line_number":356,"context_line":"                          \"with error: %(error)s\"),"},{"line_number":357,"context_line":"                      {\u0027node_id\u0027: task.node.uuid, \u0027error\u0027: exc})"},{"line_number":358,"context_line":""},{"line_number":359,"context_line":"    def get_sensors_data(self, task):"},{"line_number":360,"context_line":"        \"\"\"Get sensors data."}],"source_content_type":"text/x-python","patch_set":2,"id":"5aef4532_c57d536e","line":357,"range":{"start_line":345,"start_character":0,"end_line":357,"end_character":64},"updated":"2016-03-11 03:24:26.000000000","message":"you should remove or correct this since you change the behavior.","commit_id":"f710028559c9f49dd7df1bee67e31c4f4c1832e9"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"a6b86eb8d6b76387779ced4a5f9435cc23b4d666","unresolved":false,"context_lines":[{"line_number":342,"context_line":"        try:"},{"line_number":343,"context_line":"            _run_virtualbox_method(task.node, \u0027set_boot_device\u0027,"},{"line_number":344,"context_line":"                                   \u0027set_boot_device\u0027, boot_dev)"},{"line_number":345,"context_line":"        except virtualbox_exc.VmInWrongPowerState as exc:"},{"line_number":346,"context_line":"            # NOTE(rameshg87): We cannot change the boot device when the vm"},{"line_number":347,"context_line":"            # is powered on. This is a VirtualBox limitation. We just log"},{"line_number":348,"context_line":"            # the error silently and return because throwing error will cause"},{"line_number":349,"context_line":"            # deploys to fail (pxe and agent deploy mechanisms change the boot"},{"line_number":350,"context_line":"            # device after completing the deployment, when node is powered on)."},{"line_number":351,"context_line":"            # Since this is driver that is meant only for developers, this"},{"line_number":352,"context_line":"            # should be okay. Developers will need to set the boot device"},{"line_number":353,"context_line":"            # manually after powering off the vm when deployment is complete."},{"line_number":354,"context_line":"            # This will be documented."},{"line_number":355,"context_line":"            LOG.error(_LE(\"\u0027set_boot_device\u0027 failed for node %(node_id)s \""},{"line_number":356,"context_line":"                          \"with error: %(error)s\"),"},{"line_number":357,"context_line":"                      {\u0027node_id\u0027: task.node.uuid, \u0027error\u0027: exc})"},{"line_number":358,"context_line":""},{"line_number":359,"context_line":"    def get_sensors_data(self, task):"},{"line_number":360,"context_line":"        \"\"\"Get sensors data."}],"source_content_type":"text/x-python","patch_set":2,"id":"5aef4532_0cd0ffc8","line":357,"range":{"start_line":345,"start_character":0,"end_line":357,"end_character":64},"in_reply_to":"5aef4532_c57d536e","updated":"2016-03-11 08:46:17.000000000","message":"Done. I should revise this note as I change this section. I left this exception as setting device may be failed even the VM is powered off.","commit_id":"f710028559c9f49dd7df1bee67e31c4f4c1832e9"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"9a3817170ee65df870a81e0ee7b8ee9c319fb7b2","unresolved":false,"context_lines":[{"line_number":341,"context_line":"        manager_utils.node_power_action(task, states.POWER_OFF)"},{"line_number":342,"context_line":"        # NOTE:As we cannot change the boot device when the vm"},{"line_number":343,"context_line":"        # is powered on, we power it off before setting boot device."},{"line_number":344,"context_line":"        # This is a VirtualBox limitation."},{"line_number":345,"context_line":"        try:"},{"line_number":346,"context_line":"            _run_virtualbox_method(task.node, \u0027set_boot_device\u0027,"},{"line_number":347,"context_line":"                                   \u0027set_boot_device\u0027, boot_dev)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5aef4532_52af422b","line":344,"updated":"2016-03-11 09:35:28.000000000","message":"I\u0027m not convinced we should actually power off the node like that, changing boot device is a method exposed in the API as well.\n\nImage one tries to use a different boot device and suddenly his machine goes off. \n\nPerhaps we should have a validation? And raise an error here in case the node is powered on saying \"Can\u0027t change the boot device while the node is on\"\n\nOr, if you want something more complete, perhaps we can store the last chosen boot device in the node\u0027s driver_internal_info field and apply that to the node when it\u0027s turned off next time? (And log saying the changes will be applied on the next reboot or something)","commit_id":"bb63d50016b95d53cc5ab4d5bcdaace9bbfa0eaf"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"531b1524b5a515ec451971d5e85ff028e225977c","unresolved":false,"context_lines":[{"line_number":341,"context_line":"        manager_utils.node_power_action(task, states.POWER_OFF)"},{"line_number":342,"context_line":"        # NOTE:As we cannot change the boot device when the vm"},{"line_number":343,"context_line":"        # is powered on, we power it off before setting boot device."},{"line_number":344,"context_line":"        # This is a VirtualBox limitation."},{"line_number":345,"context_line":"        try:"},{"line_number":346,"context_line":"            _run_virtualbox_method(task.node, \u0027set_boot_device\u0027,"},{"line_number":347,"context_line":"                                   \u0027set_boot_device\u0027, boot_dev)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afc51ec_f72c424c","line":344,"in_reply_to":"3afc51ec_7c032e10","updated":"2016-03-14 02:59:08.000000000","message":"This looks a promising way, we already have similar thing. \nhttps://github.com/openstack/ironic/blob/master/ironic/drivers/utils.py#L177","commit_id":"bb63d50016b95d53cc5ab4d5bcdaace9bbfa0eaf"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"9aa24ee55da0743a9eb8b94b6f0872c18f063a8b","unresolved":false,"context_lines":[{"line_number":341,"context_line":"        manager_utils.node_power_action(task, states.POWER_OFF)"},{"line_number":342,"context_line":"        # NOTE:As we cannot change the boot device when the vm"},{"line_number":343,"context_line":"        # is powered on, we power it off before setting boot device."},{"line_number":344,"context_line":"        # This is a VirtualBox limitation."},{"line_number":345,"context_line":"        try:"},{"line_number":346,"context_line":"            _run_virtualbox_method(task.node, \u0027set_boot_device\u0027,"},{"line_number":347,"context_line":"                                   \u0027set_boot_device\u0027, boot_dev)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afc51ec_5b470d4b","line":344,"in_reply_to":"3afc51ec_f72c424c","updated":"2016-03-14 13:08:47.000000000","message":"Yes, this way seems ok to me too, with one remark - you don\u0027t need to check if a node is in deploying provision state or not in case of API call. If a node is being deployed and set-boot-device is called via API, NodeLocked exception will be thrown and no action will be taken.","commit_id":"bb63d50016b95d53cc5ab4d5bcdaace9bbfa0eaf"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"a29fb66feec73e51e3813d1881d5682c2a21c1e9","unresolved":false,"context_lines":[{"line_number":341,"context_line":"        manager_utils.node_power_action(task, states.POWER_OFF)"},{"line_number":342,"context_line":"        # NOTE:As we cannot change the boot device when the vm"},{"line_number":343,"context_line":"        # is powered on, we power it off before setting boot device."},{"line_number":344,"context_line":"        # This is a VirtualBox limitation."},{"line_number":345,"context_line":"        try:"},{"line_number":346,"context_line":"            _run_virtualbox_method(task.node, \u0027set_boot_device\u0027,"},{"line_number":347,"context_line":"                                   \u0027set_boot_device\u0027, boot_dev)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afc51ec_7c032e10","line":344,"in_reply_to":"5aef4532_52af422b","updated":"2016-03-11 14:23:15.000000000","message":"Thank you for your comments.\n\nChanging virtualbox VMs\u0027 boot device from API should be a problem in my scenario.\n\nI think this method will not bring trouble in deploy stage as ironic will take control of whole node.(changing boot device from API while ironic is deploying should be rejected)\n\nIn VirtualBox drivers, if we could accept the operation of shutting down the VMs and change it boot device in DEPLOY STAGE, I am wondering whether I could check the node provision status. If set_boot_device is called during DEPLOY STAGE, I could shut it down and set boot devices. If set_boot_device happens in ACTIVE STAGE, I will do the following as you suggested:\n\n1.store the target boot device.\n2.set the boot device before calling power_on_node.(I users will not notice we delay set device operations, if we could make it done before next start up).\n\nCould you give me some suggestions on my idea？ Thank you!","commit_id":"bb63d50016b95d53cc5ab4d5bcdaace9bbfa0eaf"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"9b59f7bbdf28433ea29872e7c32d5b2399bb5b79","unresolved":false,"context_lines":[{"line_number":345,"context_line":"        try:"},{"line_number":346,"context_line":"            _run_virtualbox_method(task.node, \u0027set_boot_device\u0027,"},{"line_number":347,"context_line":"                                   \u0027set_boot_device\u0027, boot_dev)"},{"line_number":348,"context_line":"        except virtualbox_exc.VmInWrongPowerState as exc:"},{"line_number":349,"context_line":"            LOG.error(_LE(\"\u0027set_boot_device\u0027 failed for node %(node_id)s \""},{"line_number":350,"context_line":"                          \"with error: %(error)s\"),"},{"line_number":351,"context_line":"                      {\u0027node_id\u0027: task.node.uuid, \u0027error\u0027: exc})"}],"source_content_type":"text/x-python","patch_set":3,"id":"5aef4532_17e76cad","line":348,"range":{"start_line":348,"start_character":30,"end_line":348,"end_character":49},"updated":"2016-03-11 09:04:31.000000000","message":"seems you don\u0027t need to catch this exception anymore, as you already powered off the node before issuing \u0027set boot device\u0027 request, but not sure the node is actually powered off after L341, it takes time, right? or maybe you need to add some logic like wait_until_powered_off.","commit_id":"bb63d50016b95d53cc5ab4d5bcdaace9bbfa0eaf"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"0c69efd5ae56483348ad4c55b814b366d3acee80","unresolved":false,"context_lines":[{"line_number":323,"context_line":"                persistent \u003d None"},{"line_number":324,"context_line":"                msg \u003d _LE(\"VirtualBox returned unknown boot \""},{"line_number":325,"context_line":"                          \"device \u0027%(device)s\u0027 for node %(node)s\")"},{"line_number":326,"context_line":"                LOG.error(msg, {\u0027device\u0027: ironic_boot_dev,"},{"line_number":327,"context_line":"                                \u0027node\u0027: task.node.uuid})"},{"line_number":328,"context_line":"        else:"},{"line_number":329,"context_line":"            ironic_boot_dev \u003d task.node.\\"}],"source_content_type":"text/x-python","patch_set":5,"id":"1af94dfe_c545e570","line":326,"range":{"start_line":326,"start_character":42,"end_line":326,"end_character":57},"updated":"2016-03-17 03:14:24.000000000","message":"this should be boot_dev, because ironic_boot_dev is None here","commit_id":"6e87b7d93425cd330e8074abd7e5e1f6f12f1c29"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"41b5b251bb304931683ba4ac4fadee18f0d9c953","unresolved":false,"context_lines":[{"line_number":323,"context_line":"                persistent \u003d None"},{"line_number":324,"context_line":"                msg \u003d _LE(\"VirtualBox returned unknown boot \""},{"line_number":325,"context_line":"                          \"device \u0027%(device)s\u0027 for node %(node)s\")"},{"line_number":326,"context_line":"                LOG.error(msg, {\u0027device\u0027: ironic_boot_dev,"},{"line_number":327,"context_line":"                                \u0027node\u0027: task.node.uuid})"},{"line_number":328,"context_line":"        else:"},{"line_number":329,"context_line":"            ironic_boot_dev \u003d task.node.\\"}],"source_content_type":"text/x-python","patch_set":5,"id":"1af94dfe_d93c8eca","line":326,"range":{"start_line":326,"start_character":42,"end_line":326,"end_character":57},"in_reply_to":"1af94dfe_c545e570","updated":"2016-03-17 15:31:12.000000000","message":"Done. Thank you!","commit_id":"6e87b7d93425cd330e8074abd7e5e1f6f12f1c29"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"0c69efd5ae56483348ad4c55b814b366d3acee80","unresolved":false,"context_lines":[{"line_number":336,"context_line":"                persistent \u003d True"},{"line_number":337,"context_line":"            else:"},{"line_number":338,"context_line":"                persistent \u003d None"},{"line_number":339,"context_line":"                LOG.error(_LE(\u0027target device is not set but trying\u0027"},{"line_number":340,"context_line":"                              \u0027 to get boot device when VM is powered on\u0027))"},{"line_number":341,"context_line":""},{"line_number":342,"context_line":"        return {\u0027boot_device\u0027: ironic_boot_dev, \u0027persistent\u0027: persistent}"},{"line_number":343,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"1af94dfe_296463e2","line":340,"range":{"start_line":339,"start_character":1,"end_line":340,"end_character":75},"updated":"2016-03-17 03:14:24.000000000","message":"why not return the current boot device, I think virtualBox has only persistent boot device","commit_id":"6e87b7d93425cd330e8074abd7e5e1f6f12f1c29"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"41b5b251bb304931683ba4ac4fadee18f0d9c953","unresolved":false,"context_lines":[{"line_number":336,"context_line":"                persistent \u003d True"},{"line_number":337,"context_line":"            else:"},{"line_number":338,"context_line":"                persistent \u003d None"},{"line_number":339,"context_line":"                LOG.error(_LE(\u0027target device is not set but trying\u0027"},{"line_number":340,"context_line":"                              \u0027 to get boot device when VM is powered on\u0027))"},{"line_number":341,"context_line":""},{"line_number":342,"context_line":"        return {\u0027boot_device\u0027: ironic_boot_dev, \u0027persistent\u0027: persistent}"},{"line_number":343,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"1af94dfe_f946aa4d","line":340,"range":{"start_line":339,"start_character":1,"end_line":340,"end_character":75},"in_reply_to":"1af94dfe_296463e2","updated":"2016-03-17 15:31:12.000000000","message":"Done. I have change my approach. Now I check the power status:\nit is powered off: I will call the original get_get_boot_device.\n\nit is powered on: if virtualbox_target_boot is set, return it. or call the original get_boot_device.","commit_id":"6e87b7d93425cd330e8074abd7e5e1f6f12f1c29"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"0c69efd5ae56483348ad4c55b814b366d3acee80","unresolved":false,"context_lines":[{"line_number":375,"context_line":""},{"line_number":376,"context_line":"        \"\"\""},{"line_number":377,"context_line":"        we should use DB to store target_device in case the instance is"},{"line_number":378,"context_line":"        powered off and target device information will be lost."},{"line_number":379,"context_line":""},{"line_number":380,"context_line":"        setting boot_device_now before calling"},{"line_number":381,"context_line":"        _run_virtualbox_methd set can avoid the scenario that"}],"source_content_type":"text/x-python","patch_set":5,"id":"1af94dfe_257489fb","line":378,"updated":"2016-03-17 03:14:24.000000000","message":"the instance? you mean conductor service I guess.","commit_id":"6e87b7d93425cd330e8074abd7e5e1f6f12f1c29"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"41b5b251bb304931683ba4ac4fadee18f0d9c953","unresolved":false,"context_lines":[{"line_number":375,"context_line":""},{"line_number":376,"context_line":"        \"\"\""},{"line_number":377,"context_line":"        we should use DB to store target_device in case the instance is"},{"line_number":378,"context_line":"        powered off and target device information will be lost."},{"line_number":379,"context_line":""},{"line_number":380,"context_line":"        setting boot_device_now before calling"},{"line_number":381,"context_line":"        _run_virtualbox_methd set can avoid the scenario that"}],"source_content_type":"text/x-python","patch_set":5,"id":"1af94dfe_390c92ec","line":378,"in_reply_to":"1af94dfe_257489fb","updated":"2016-03-17 15:31:12.000000000","message":"Done. I mean end user shutoff the baremetal machine from horizon or nova APIs.\nI found if user shutdown the instance from horizon, the node information which is not stored in DB will get lost.","commit_id":"6e87b7d93425cd330e8074abd7e5e1f6f12f1c29"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"0c69efd5ae56483348ad4c55b814b366d3acee80","unresolved":false,"context_lines":[{"line_number":374,"context_line":"                            \u0027booting from %s when reboot next time. \u0027), device)"},{"line_number":375,"context_line":""},{"line_number":376,"context_line":"        \"\"\""},{"line_number":377,"context_line":"        we should use DB to store target_device in case the instance is"},{"line_number":378,"context_line":"        powered off and target device information will be lost."},{"line_number":379,"context_line":""},{"line_number":380,"context_line":"        setting boot_device_now before calling"},{"line_number":381,"context_line":"        _run_virtualbox_methd set can avoid the scenario that"},{"line_number":382,"context_line":"        after setting the new boot device while last boot device stored"},{"line_number":383,"context_line":"        in driver_internal_info."},{"line_number":384,"context_line":"        \"\"\""},{"line_number":385,"context_line":"        if device !\u003d boot_device_now:"},{"line_number":386,"context_line":"            driver_internal_info \u003d task.node.driver_internal_info"}],"source_content_type":"text/x-python","patch_set":5,"id":"1af94dfe_05fa2d75","line":383,"range":{"start_line":377,"start_character":0,"end_line":383,"end_character":32},"updated":"2016-03-17 03:14:24.000000000","message":"hmmm, this comment is not easy to understand.","commit_id":"6e87b7d93425cd330e8074abd7e5e1f6f12f1c29"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"41b5b251bb304931683ba4ac4fadee18f0d9c953","unresolved":false,"context_lines":[{"line_number":374,"context_line":"                            \u0027booting from %s when reboot next time. \u0027), device)"},{"line_number":375,"context_line":""},{"line_number":376,"context_line":"        \"\"\""},{"line_number":377,"context_line":"        we should use DB to store target_device in case the instance is"},{"line_number":378,"context_line":"        powered off and target device information will be lost."},{"line_number":379,"context_line":""},{"line_number":380,"context_line":"        setting boot_device_now before calling"},{"line_number":381,"context_line":"        _run_virtualbox_methd set can avoid the scenario that"},{"line_number":382,"context_line":"        after setting the new boot device while last boot device stored"},{"line_number":383,"context_line":"        in driver_internal_info."},{"line_number":384,"context_line":"        \"\"\""},{"line_number":385,"context_line":"        if device !\u003d boot_device_now:"},{"line_number":386,"context_line":"            driver_internal_info \u003d task.node.driver_internal_info"}],"source_content_type":"text/x-python","patch_set":5,"id":"1af94dfe_b9cd4287","line":383,"range":{"start_line":377,"start_character":0,"end_line":383,"end_character":32},"in_reply_to":"1af94dfe_05fa2d75","updated":"2016-03-17 15:31:12.000000000","message":"Done. This problem does not exist in my new codes.","commit_id":"6e87b7d93425cd330e8074abd7e5e1f6f12f1c29"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"0c69efd5ae56483348ad4c55b814b366d3acee80","unresolved":false,"context_lines":[{"line_number":384,"context_line":"        \"\"\""},{"line_number":385,"context_line":"        if device !\u003d boot_device_now:"},{"line_number":386,"context_line":"            driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":387,"context_line":"            driver_internal_info[\u0027target_device\u0027] \u003d device"},{"line_number":388,"context_line":"            task.node.driver_internal_info \u003d driver_internal_info"},{"line_number":389,"context_line":"            task.node.save()"},{"line_number":390,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"1af94dfe_456ef595","line":387,"updated":"2016-03-17 03:14:24.000000000","message":"you should add prefix for vendor specific variable like virtualbox_target_device, see http://docs.openstack.org/developer/ironic/dev/code-contribution-guide.html#driver-internal-info","commit_id":"6e87b7d93425cd330e8074abd7e5e1f6f12f1c29"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"41b5b251bb304931683ba4ac4fadee18f0d9c953","unresolved":false,"context_lines":[{"line_number":384,"context_line":"        \"\"\""},{"line_number":385,"context_line":"        if device !\u003d boot_device_now:"},{"line_number":386,"context_line":"            driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":387,"context_line":"            driver_internal_info[\u0027target_device\u0027] \u003d device"},{"line_number":388,"context_line":"            task.node.driver_internal_info \u003d driver_internal_info"},{"line_number":389,"context_line":"            task.node.save()"},{"line_number":390,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"1af94dfe_d97e4e18","line":387,"in_reply_to":"1af94dfe_456ef595","updated":"2016-03-17 15:31:12.000000000","message":"Done. Thank you for sharing me this document:)","commit_id":"6e87b7d93425cd330e8074abd7e5e1f6f12f1c29"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"0c69efd5ae56483348ad4c55b814b366d3acee80","unresolved":false,"context_lines":[{"line_number":382,"context_line":"        after setting the new boot device while last boot device stored"},{"line_number":383,"context_line":"        in driver_internal_info."},{"line_number":384,"context_line":"        \"\"\""},{"line_number":385,"context_line":"        if device !\u003d boot_device_now:"},{"line_number":386,"context_line":"            driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":387,"context_line":"            driver_internal_info[\u0027target_device\u0027] \u003d device"},{"line_number":388,"context_line":"            task.node.driver_internal_info \u003d driver_internal_info"},{"line_number":389,"context_line":"            task.node.save()"},{"line_number":390,"context_line":""},{"line_number":391,"context_line":"    def get_sensors_data(self, task):"},{"line_number":392,"context_line":"        \"\"\"Get sensors data."}],"source_content_type":"text/x-python","patch_set":5,"id":"1af94dfe_a5aff992","line":389,"range":{"start_line":385,"start_character":8,"end_line":389,"end_character":28},"updated":"2016-03-17 03:14:24.000000000","message":"1. this should only happen if power_state is POWER_ON? Because you already change the boot device if it is power_off, why do you have to save the target_device again? \n2. You should clear the target_device in somewhere after you set the boot deice successfully, otherwise you will set device every time during power on.","commit_id":"6e87b7d93425cd330e8074abd7e5e1f6f12f1c29"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"41b5b251bb304931683ba4ac4fadee18f0d9c953","unresolved":false,"context_lines":[{"line_number":382,"context_line":"        after setting the new boot device while last boot device stored"},{"line_number":383,"context_line":"        in driver_internal_info."},{"line_number":384,"context_line":"        \"\"\""},{"line_number":385,"context_line":"        if device !\u003d boot_device_now:"},{"line_number":386,"context_line":"            driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":387,"context_line":"            driver_internal_info[\u0027target_device\u0027] \u003d device"},{"line_number":388,"context_line":"            task.node.driver_internal_info \u003d driver_internal_info"},{"line_number":389,"context_line":"            task.node.save()"},{"line_number":390,"context_line":""},{"line_number":391,"context_line":"    def get_sensors_data(self, task):"},{"line_number":392,"context_line":"        \"\"\"Get sensors data."}],"source_content_type":"text/x-python","patch_set":5,"id":"1af94dfe_79a29a4c","line":389,"range":{"start_line":385,"start_character":8,"end_line":389,"end_character":28},"in_reply_to":"1af94dfe_a5aff992","updated":"2016-03-17 15:31:12.000000000","message":"in my last approach, target_boot_device indicates boot device, and will be applied every time before starting.\nEven we set the new boot device in POWER OFF, when we start the machine, it will read the last boot device from driver_internal_information. So I need to update it every time regardless of the power status.","commit_id":"6e87b7d93425cd330e8074abd7e5e1f6f12f1c29"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"f767fe67771dc570a07305c5fe42f63978d5915f","unresolved":false,"context_lines":[{"line_number":238,"context_line":"            _run_virtualbox_method(task.node, \u0027set_power_state\u0027, \u0027stop\u0027)"},{"line_number":239,"context_line":"        elif target_state \u003d\u003d states.POWER_ON:"},{"line_number":240,"context_line":"            driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":241,"context_line":"            device \u003d driver_internal_info.get(\u0027VirtualBox_target_device\u0027)"},{"line_number":242,"context_line":"            if device is not None:"},{"line_number":243,"context_line":"                driver_internal_info.pop(\u0027VirtualBox_target_device\u0027)"},{"line_number":244,"context_line":"                task.driver.management.set_boot_device(task, device)"},{"line_number":245,"context_line":"                task.node.driver_internal_info \u003d driver_internal_info"},{"line_number":246,"context_line":"                task.node.save()"}],"source_content_type":"text/x-python","patch_set":7,"id":"1af94dfe_31748f66","line":243,"range":{"start_line":241,"start_character":0,"end_line":243,"end_character":68},"updated":"2016-03-18 01:39:31.000000000","message":"You can use one line to do this:\ndevice \u003d driver_internal_info.pop(\u0027VirtualBox_target_device\u0027, None)\nif device is not None:","commit_id":"f0719bca5e24ac360801477313bd3f8e1c51b9fc"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"97d59a5c4c2cc0bf3f6636a3504deb58d423e336","unresolved":false,"context_lines":[{"line_number":238,"context_line":"            _run_virtualbox_method(task.node, \u0027set_power_state\u0027, \u0027stop\u0027)"},{"line_number":239,"context_line":"        elif target_state \u003d\u003d states.POWER_ON:"},{"line_number":240,"context_line":"            driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":241,"context_line":"            device \u003d driver_internal_info.get(\u0027VirtualBox_target_device\u0027)"},{"line_number":242,"context_line":"            if device is not None:"},{"line_number":243,"context_line":"                driver_internal_info.pop(\u0027VirtualBox_target_device\u0027)"},{"line_number":244,"context_line":"                task.driver.management.set_boot_device(task, device)"},{"line_number":245,"context_line":"                task.node.driver_internal_info \u003d driver_internal_info"},{"line_number":246,"context_line":"                task.node.save()"}],"source_content_type":"text/x-python","patch_set":7,"id":"1af94dfe_31276fcb","line":243,"range":{"start_line":241,"start_character":0,"end_line":243,"end_character":68},"in_reply_to":"1af94dfe_31748f66","updated":"2016-03-18 03:09:13.000000000","message":"Done. Thanks","commit_id":"f0719bca5e24ac360801477313bd3f8e1c51b9fc"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"f767fe67771dc570a07305c5fe42f63978d5915f","unresolved":false,"context_lines":[{"line_number":267,"context_line":"        \"\"\""},{"line_number":268,"context_line":"        _run_virtualbox_method(task.node, \u0027reboot\u0027, \u0027stop\u0027)"},{"line_number":269,"context_line":"        driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":270,"context_line":"        device \u003d driver_internal_info.get(\u0027VirtualBox_target_device\u0027)"},{"line_number":271,"context_line":"        if device is not None:"},{"line_number":272,"context_line":"            driver_internal_info.pop(\u0027VirtualBox_target_device\u0027)"},{"line_number":273,"context_line":"            task.driver.management.set_boot_device(task, device)"}],"source_content_type":"text/x-python","patch_set":7,"id":"1af94dfe_51679bb6","line":270,"updated":"2016-03-18 01:39:31.000000000","message":"ditto","commit_id":"f0719bca5e24ac360801477313bd3f8e1c51b9fc"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"f767fe67771dc570a07305c5fe42f63978d5915f","unresolved":false,"context_lines":[{"line_number":314,"context_line":"        if not ironic_boot_dev:"},{"line_number":315,"context_line":"            persistent \u003d None"},{"line_number":316,"context_line":"            msg \u003d _LE(\"VirtualBox returned unknown boot\""},{"line_number":317,"context_line":"                      \" device \u0027%(device)s\u0027 for node %(node)s\")"},{"line_number":318,"context_line":"            LOG.error(msg, {\u0027device\u0027: boot_dev,"},{"line_number":319,"context_line":"                            \u0027node\u0027: task.node.uuid})"},{"line_number":320,"context_line":"        return (ironic_boot_dev, persistent)"}],"source_content_type":"text/x-python","patch_set":7,"id":"1af94dfe_b189bf28","line":317,"range":{"start_line":317,"start_character":23,"end_line":317,"end_character":24},"updated":"2016-03-18 01:39:31.000000000","message":"nit: we usually have the extra space at end of the first line","commit_id":"f0719bca5e24ac360801477313bd3f8e1c51b9fc"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"97d59a5c4c2cc0bf3f6636a3504deb58d423e336","unresolved":false,"context_lines":[{"line_number":314,"context_line":"        if not ironic_boot_dev:"},{"line_number":315,"context_line":"            persistent \u003d None"},{"line_number":316,"context_line":"            msg \u003d _LE(\"VirtualBox returned unknown boot\""},{"line_number":317,"context_line":"                      \" device \u0027%(device)s\u0027 for node %(node)s\")"},{"line_number":318,"context_line":"            LOG.error(msg, {\u0027device\u0027: boot_dev,"},{"line_number":319,"context_line":"                            \u0027node\u0027: task.node.uuid})"},{"line_number":320,"context_line":"        return (ironic_boot_dev, persistent)"}],"source_content_type":"text/x-python","patch_set":7,"id":"1af94dfe_110b532b","line":317,"range":{"start_line":317,"start_character":23,"end_line":317,"end_character":24},"in_reply_to":"1af94dfe_b189bf28","updated":"2016-03-18 03:09:13.000000000","message":"Done","commit_id":"f0719bca5e24ac360801477313bd3f8e1c51b9fc"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"98d7ced09b8aca74a1468f0c22fec0202cc83778","unresolved":false,"context_lines":[{"line_number":303,"context_line":"        \"\"\""},{"line_number":304,"context_line":"        return list(IRONIC_TO_VIRTUALBOX_DEVICE_MAPPING.keys())"},{"line_number":305,"context_line":""},{"line_number":306,"context_line":"    def _get_boot_device_from_hardware(self, task):"},{"line_number":307,"context_line":"        boot_dev \u003d _run_virtualbox_method(task.node,"},{"line_number":308,"context_line":"                                          \u0027get_boot_device\u0027, \u0027get_boot_device\u0027)"},{"line_number":309,"context_line":"        ironic_boot_dev \u003d VIRTUALBOX_TO_IRONIC_DEVICE_MAPPING.get(boot_dev,"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa0719c6_299656f0","line":306,"range":{"start_line":306,"start_character":30,"end_line":306,"end_character":38},"updated":"2016-03-22 08:39:53.000000000","message":"\u0027hardware\u0027 seems not proper here, it\u0027s a virtualbox vm instead of hardware.","commit_id":"a15896ceb53a0f762e8683328731b028711c30b7"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"4a53571d27d5c64c2817b7fa7c455097e6764b53","unresolved":false,"context_lines":[{"line_number":303,"context_line":"        \"\"\""},{"line_number":304,"context_line":"        return list(IRONIC_TO_VIRTUALBOX_DEVICE_MAPPING.keys())"},{"line_number":305,"context_line":""},{"line_number":306,"context_line":"    def _get_boot_device_from_hardware(self, task):"},{"line_number":307,"context_line":"        boot_dev \u003d _run_virtualbox_method(task.node,"},{"line_number":308,"context_line":"                                          \u0027get_boot_device\u0027, \u0027get_boot_device\u0027)"},{"line_number":309,"context_line":"        ironic_boot_dev \u003d VIRTUALBOX_TO_IRONIC_DEVICE_MAPPING.get(boot_dev,"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa0719c6_87de373d","line":306,"range":{"start_line":306,"start_character":30,"end_line":306,"end_character":38},"in_reply_to":"fa0719c6_299656f0","updated":"2016-03-23 02:57:37.000000000","message":"Though virtualbox offers VMs, but in the view of ironic, virtualbox just offers baremetal machines as other drivers do.\n\nVirtualbox is just a software offers VMs, we get boot device form the VMs that regarded as pysical machines by ironic.","commit_id":"a15896ceb53a0f762e8683328731b028711c30b7"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"98d7ced09b8aca74a1468f0c22fec0202cc83778","unresolved":false,"context_lines":[{"line_number":331,"context_line":"        :raises: VirtualBoxOperationFailed, if error encountered from"},{"line_number":332,"context_line":"            VirtualBox operation."},{"line_number":333,"context_line":"        \"\"\""},{"line_number":334,"context_line":"        if task.driver.power.get_power_state(task) \\"},{"line_number":335,"context_line":"                \u003d\u003d states.POWER_OFF:"},{"line_number":336,"context_line":"            ironic_boot_dev, persistent \u003d\\"},{"line_number":337,"context_line":"                self._get_boot_device_from_hardware(task)"},{"line_number":338,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa0719c6_c98cfa81","line":335,"range":{"start_line":334,"start_character":8,"end_line":335,"end_character":36},"updated":"2016-03-22 08:39:53.000000000","message":"If I understand correctly, the following steps may not work as you expected:\n\n  1. you set boot device when the node power on\n  2. you save the boot device to driver_internal_info, expected to set it again when the node start up. \n  3. you power off the node\n  4. get the boot device from the powered off node\n\nas the logic here, you will get the current boot device instead of the device saved in driver_internal_info.","commit_id":"a15896ceb53a0f762e8683328731b028711c30b7"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"4a53571d27d5c64c2817b7fa7c455097e6764b53","unresolved":false,"context_lines":[{"line_number":331,"context_line":"        :raises: VirtualBoxOperationFailed, if error encountered from"},{"line_number":332,"context_line":"            VirtualBox operation."},{"line_number":333,"context_line":"        \"\"\""},{"line_number":334,"context_line":"        if task.driver.power.get_power_state(task) \\"},{"line_number":335,"context_line":"                \u003d\u003d states.POWER_OFF:"},{"line_number":336,"context_line":"            ironic_boot_dev, persistent \u003d\\"},{"line_number":337,"context_line":"                self._get_boot_device_from_hardware(task)"},{"line_number":338,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa0719c6_87a0f744","line":335,"range":{"start_line":334,"start_character":8,"end_line":335,"end_character":36},"in_reply_to":"fa0719c6_c98cfa81","updated":"2016-03-23 02:57:37.000000000","message":"Thanks, I will apply the boot device stored in driver_internal_info every time after shut down the machine.","commit_id":"a15896ceb53a0f762e8683328731b028711c30b7"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"98d7ced09b8aca74a1468f0c22fec0202cc83778","unresolved":false,"context_lines":[{"line_number":345,"context_line":"                                \" during next starts up.\"))"},{"line_number":346,"context_line":"                persistent \u003d True"},{"line_number":347,"context_line":"            else:"},{"line_number":348,"context_line":"                # Maybe the Virtualbox_target_devic is cleaned"},{"line_number":349,"context_line":"                ironic_boot_dev, persistent \u003d\\"},{"line_number":350,"context_line":"                    self._get_boot_device_from_hardware(task)"},{"line_number":351,"context_line":"        return {\u0027boot_device\u0027: ironic_boot_dev, \u0027persistent\u0027: persistent}"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa0719c6_895a024f","line":348,"range":{"start_line":348,"start_character":46,"end_line":348,"end_character":51},"updated":"2016-03-22 08:39:53.000000000","message":"nit: s/devic/device","commit_id":"a15896ceb53a0f762e8683328731b028711c30b7"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"4a53571d27d5c64c2817b7fa7c455097e6764b53","unresolved":false,"context_lines":[{"line_number":345,"context_line":"                                \" during next starts up.\"))"},{"line_number":346,"context_line":"                persistent \u003d True"},{"line_number":347,"context_line":"            else:"},{"line_number":348,"context_line":"                # Maybe the Virtualbox_target_devic is cleaned"},{"line_number":349,"context_line":"                ironic_boot_dev, persistent \u003d\\"},{"line_number":350,"context_line":"                    self._get_boot_device_from_hardware(task)"},{"line_number":351,"context_line":"        return {\u0027boot_device\u0027: ironic_boot_dev, \u0027persistent\u0027: persistent}"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa0719c6_ace36204","line":348,"range":{"start_line":348,"start_character":46,"end_line":348,"end_character":51},"in_reply_to":"fa0719c6_895a024f","updated":"2016-03-23 02:57:37.000000000","message":"Done","commit_id":"a15896ceb53a0f762e8683328731b028711c30b7"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"98d7ced09b8aca74a1468f0c22fec0202cc83778","unresolved":false,"context_lines":[{"line_number":372,"context_line":"            raise exception.InvalidParameterValue("},{"line_number":373,"context_line":"                _(\"Invalid boot device %s specified.\") % device)"},{"line_number":374,"context_line":""},{"line_number":375,"context_line":"        if task.driver.power.get_power_state(task)\\"},{"line_number":376,"context_line":"                \u003d\u003d states.POWER_OFF:"},{"line_number":377,"context_line":""},{"line_number":378,"context_line":"            _run_virtualbox_method(task.node, \u0027set_boot_device\u0027,"},{"line_number":379,"context_line":"                                   \u0027set_boot_device\u0027, boot_dev)"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa0719c6_e9ba9e22","line":376,"range":{"start_line":375,"start_character":7,"end_line":376,"end_character":36},"updated":"2016-03-22 08:39:53.000000000","message":"fits into one line.","commit_id":"a15896ceb53a0f762e8683328731b028711c30b7"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"4a53571d27d5c64c2817b7fa7c455097e6764b53","unresolved":false,"context_lines":[{"line_number":372,"context_line":"            raise exception.InvalidParameterValue("},{"line_number":373,"context_line":"                _(\"Invalid boot device %s specified.\") % device)"},{"line_number":374,"context_line":""},{"line_number":375,"context_line":"        if task.driver.power.get_power_state(task)\\"},{"line_number":376,"context_line":"                \u003d\u003d states.POWER_OFF:"},{"line_number":377,"context_line":""},{"line_number":378,"context_line":"            _run_virtualbox_method(task.node, \u0027set_boot_device\u0027,"},{"line_number":379,"context_line":"                                   \u0027set_boot_device\u0027, boot_dev)"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa0719c6_6c866a14","line":376,"range":{"start_line":375,"start_character":7,"end_line":376,"end_character":36},"in_reply_to":"fa0719c6_e9ba9e22","updated":"2016-03-23 02:57:37.000000000","message":"Done","commit_id":"a15896ceb53a0f762e8683328731b028711c30b7"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"98d7ced09b8aca74a1468f0c22fec0202cc83778","unresolved":false,"context_lines":[{"line_number":378,"context_line":"            _run_virtualbox_method(task.node, \u0027set_boot_device\u0027,"},{"line_number":379,"context_line":"                                   \u0027set_boot_device\u0027, boot_dev)"},{"line_number":380,"context_line":"        else:"},{"line_number":381,"context_line":"            LOG.warning(_LW(\u0027As VMs is powered on, we will set \u0027"},{"line_number":382,"context_line":"                            \u0027booting from %s when reboot next time. \u0027), device)"},{"line_number":383,"context_line":"            # We should store target_device in case the"},{"line_number":384,"context_line":"            # end user shutoff the baremetal machine from NOVA API."}],"source_content_type":"text/x-python","patch_set":9,"id":"fa0719c6_09bef2d3","line":381,"range":{"start_line":381,"start_character":32,"end_line":381,"end_character":36},"updated":"2016-03-22 08:39:53.000000000","message":"should explicitly state it\u0027s the VirtualBox limitation, and the log should contain some node information like uuid.","commit_id":"a15896ceb53a0f762e8683328731b028711c30b7"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"98d7ced09b8aca74a1468f0c22fec0202cc83778","unresolved":false,"context_lines":[{"line_number":383,"context_line":"            # We should store target_device in case the"},{"line_number":384,"context_line":"            # end user shutoff the baremetal machine from NOVA API."},{"line_number":385,"context_line":"            boot_device_now \u003d self.get_boot_device(task)[\u0027boot_device\u0027]"},{"line_number":386,"context_line":"            if device !\u003d boot_device_now:"},{"line_number":387,"context_line":"                driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":388,"context_line":"                driver_internal_info[\u0027VirtualBox_target_device\u0027] \u003d device"},{"line_number":389,"context_line":"                task.node.driver_internal_info \u003d driver_internal_info"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa0719c6_69ffae67","line":386,"range":{"start_line":386,"start_character":12,"end_line":386,"end_character":41},"updated":"2016-03-22 08:39:53.000000000","message":"why not do this check at the beginning of this method?","commit_id":"a15896ceb53a0f762e8683328731b028711c30b7"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"4a53571d27d5c64c2817b7fa7c455097e6764b53","unresolved":false,"context_lines":[{"line_number":383,"context_line":"            # We should store target_device in case the"},{"line_number":384,"context_line":"            # end user shutoff the baremetal machine from NOVA API."},{"line_number":385,"context_line":"            boot_device_now \u003d self.get_boot_device(task)[\u0027boot_device\u0027]"},{"line_number":386,"context_line":"            if device !\u003d boot_device_now:"},{"line_number":387,"context_line":"                driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":388,"context_line":"                driver_internal_info[\u0027VirtualBox_target_device\u0027] \u003d device"},{"line_number":389,"context_line":"                task.node.driver_internal_info \u003d driver_internal_info"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa0719c6_a76edb93","line":386,"range":{"start_line":386,"start_character":12,"end_line":386,"end_character":41},"in_reply_to":"fa0719c6_69ffae67","updated":"2016-03-23 02:57:37.000000000","message":"in my code,\n\nif virtualbox VM is powered off, we just set boot device or we store the boot device. \n\nif the machine is powered off, we just set the boot device as all the drivers do and we do not need to run this check.","commit_id":"a15896ceb53a0f762e8683328731b028711c30b7"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"82ddd293cb1b54724f2bf9425706f6c23fe5451e","unresolved":false,"context_lines":[{"line_number":246,"context_line":"            _run_virtualbox_method(task.node, \u0027set_power_state\u0027, \u0027stop\u0027)"},{"line_number":247,"context_line":"            self._apply_boot_device(task)"},{"line_number":248,"context_line":"        elif target_state \u003d\u003d states.POWER_ON:"},{"line_number":249,"context_line":"            self._apply_boot_device(task)"},{"line_number":250,"context_line":"            _run_virtualbox_method(task.node, \u0027set_power_state\u0027, \u0027start\u0027)"},{"line_number":251,"context_line":"        elif target_state \u003d\u003d states.REBOOT:"},{"line_number":252,"context_line":"            self.reboot(task)"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa0719c6_749c655d","line":249,"range":{"start_line":249,"start_character":12,"end_line":249,"end_character":41},"updated":"2016-03-23 09:29:38.000000000","message":"This seems redundancy at first glance if you already apply boot device after shut off, it is only useful for a corner case where  admin set boot device when instance is power on but then the instance is power off without Ironic. Am I correct? Anyway, I think a note will be helpful.","commit_id":"b698af34666ddc471a7191bdc93a93eaebcf803f"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"f55b8f8d46a0de361c57cdacf2c767fe4e89a5ee","unresolved":false,"context_lines":[{"line_number":246,"context_line":"            _run_virtualbox_method(task.node, \u0027set_power_state\u0027, \u0027stop\u0027)"},{"line_number":247,"context_line":"            self._apply_boot_device(task)"},{"line_number":248,"context_line":"        elif target_state \u003d\u003d states.POWER_ON:"},{"line_number":249,"context_line":"            self._apply_boot_device(task)"},{"line_number":250,"context_line":"            _run_virtualbox_method(task.node, \u0027set_power_state\u0027, \u0027start\u0027)"},{"line_number":251,"context_line":"        elif target_state \u003d\u003d states.REBOOT:"},{"line_number":252,"context_line":"            self.reboot(task)"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa0719c6_d6d0d121","line":249,"range":{"start_line":249,"start_character":12,"end_line":249,"end_character":41},"in_reply_to":"fa0719c6_749c655d","updated":"2016-03-23 11:22:38.000000000","message":"yes! users may shut down the machine without calling power_off method here. Image users may shutdown the machine from OS command like \"halt\"\n\nset_boot_device after power off: avoid the problem mentioned by zhenguo niu.\n\nset_boot_device when power on: avoid the problem after users setting the target boot device, however shutdown the VM without calling the power off method here (maybe soft shutdown from OS).","commit_id":"b698af34666ddc471a7191bdc93a93eaebcf803f"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"82ddd293cb1b54724f2bf9425706f6c23fe5451e","unresolved":false,"context_lines":[{"line_number":374,"context_line":"                                   \u0027set_boot_device\u0027, boot_dev)"},{"line_number":375,"context_line":"        else:"},{"line_number":376,"context_line":"            LOG.warning(_LW(\u0027Node %(node_uuid)s: As VirtualBox do not support \u0027"},{"line_number":377,"context_line":"                            \u0027setting boot device when Vm is powered on, we \u0027"},{"line_number":378,"context_line":"                            \u0027will set booting from %(device)s when reboot \u0027"},{"line_number":379,"context_line":"                            \u0027next time.\u0027),"},{"line_number":380,"context_line":"                        {\u0027node_uuid\u0027: task.node.uuid, \u0027device\u0027: device})"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa0719c6_bf7edb16","line":377,"range":{"start_line":377,"start_character":54,"end_line":377,"end_character":56},"updated":"2016-03-23 09:29:38.000000000","message":"nit: s/Vm/VM/","commit_id":"b698af34666ddc471a7191bdc93a93eaebcf803f"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"06cbc4b3665a628e862c5832dbf716457df55463","unresolved":false,"context_lines":[{"line_number":199,"context_line":""},{"line_number":200,"context_line":"    def _apply_boot_device(self, task):"},{"line_number":201,"context_line":"        driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":202,"context_line":"        device \u003d driver_internal_info.pop(\u0027VirtualBox_target_device\u0027, None)"},{"line_number":203,"context_line":"        if device is not None:"},{"line_number":204,"context_line":"            task.driver.management.set_boot_device(task, device)"},{"line_number":205,"context_line":"            task.node.driver_internal_info \u003d driver_internal_info"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a122d0e_e311c353","line":202,"range":{"start_line":202,"start_character":43,"end_line":202,"end_character":67},"updated":"2016-04-26 23:47:12.000000000","message":"We have all parameters in smallcase. s/\u0027VirtualBox_target_device\u0027/ \u0027virtualbox_target_device\u0027","commit_id":"b92c7a550843b49c548d60d895e6e4e09f4257d2"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"1aeee9429a59375182ed6e3e21974983602e72f6","unresolved":false,"context_lines":[{"line_number":199,"context_line":""},{"line_number":200,"context_line":"    def _apply_boot_device(self, task):"},{"line_number":201,"context_line":"        driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":202,"context_line":"        device \u003d driver_internal_info.pop(\u0027VirtualBox_target_device\u0027, None)"},{"line_number":203,"context_line":"        if device is not None:"},{"line_number":204,"context_line":"            task.driver.management.set_boot_device(task, device)"},{"line_number":205,"context_line":"            task.node.driver_internal_info \u003d driver_internal_info"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a122d0e_e7a6ee0d","line":202,"range":{"start_line":202,"start_character":43,"end_line":202,"end_character":67},"in_reply_to":"1a122d0e_e311c353","updated":"2016-04-27 06:50:40.000000000","message":"Done","commit_id":"b92c7a550843b49c548d60d895e6e4e09f4257d2"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"06cbc4b3665a628e862c5832dbf716457df55463","unresolved":false,"context_lines":[{"line_number":243,"context_line":"            VirtualBox operation."},{"line_number":244,"context_line":"        \"\"\""},{"line_number":245,"context_line":"        # We set boot device before power on to"},{"line_number":246,"context_line":"        # avoid the case that users shut down"},{"line_number":247,"context_line":"        # the machine without calling power off"},{"line_number":248,"context_line":"        # method here. For instance, soft power"},{"line_number":249,"context_line":"        # off the machine from OS."}],"source_content_type":"text/x-python","patch_set":11,"id":"1a122d0e_83272fb5","line":246,"range":{"start_line":246,"start_character":25,"end_line":246,"end_character":45},"updated":"2016-04-26 23:47:12.000000000","message":"nit: wherein user shuts down","commit_id":"b92c7a550843b49c548d60d895e6e4e09f4257d2"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"1aeee9429a59375182ed6e3e21974983602e72f6","unresolved":false,"context_lines":[{"line_number":243,"context_line":"            VirtualBox operation."},{"line_number":244,"context_line":"        \"\"\""},{"line_number":245,"context_line":"        # We set boot device before power on to"},{"line_number":246,"context_line":"        # avoid the case that users shut down"},{"line_number":247,"context_line":"        # the machine without calling power off"},{"line_number":248,"context_line":"        # method here. For instance, soft power"},{"line_number":249,"context_line":"        # off the machine from OS."}],"source_content_type":"text/x-python","patch_set":11,"id":"1a122d0e_47b08243","line":246,"range":{"start_line":246,"start_character":25,"end_line":246,"end_character":45},"in_reply_to":"1a122d0e_83272fb5","updated":"2016-04-27 06:50:40.000000000","message":"Done","commit_id":"b92c7a550843b49c548d60d895e6e4e09f4257d2"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"06cbc4b3665a628e862c5832dbf716457df55463","unresolved":false,"context_lines":[{"line_number":315,"context_line":"            persistent \u003d None"},{"line_number":316,"context_line":"            msg \u003d _LE(\"VirtualBox returned unknown boot \""},{"line_number":317,"context_line":"                      \"device \u0027%(device)s\u0027 for node %(node)s\")"},{"line_number":318,"context_line":"            LOG.error(msg, {\u0027device\u0027: boot_dev,"},{"line_number":319,"context_line":"                            \u0027node\u0027: task.node.uuid})"},{"line_number":320,"context_line":"        return (ironic_boot_dev, persistent)"},{"line_number":321,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"1a122d0e_a3ccebbb","line":318,"range":{"start_line":318,"start_character":12,"end_line":318,"end_character":47},"updated":"2016-04-26 23:47:12.000000000","message":"Shouldn\u0027t we throw exception here instead of returning (None, None) in this error path.","commit_id":"b92c7a550843b49c548d60d895e6e4e09f4257d2"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"1aeee9429a59375182ed6e3e21974983602e72f6","unresolved":false,"context_lines":[{"line_number":315,"context_line":"            persistent \u003d None"},{"line_number":316,"context_line":"            msg \u003d _LE(\"VirtualBox returned unknown boot \""},{"line_number":317,"context_line":"                      \"device \u0027%(device)s\u0027 for node %(node)s\")"},{"line_number":318,"context_line":"            LOG.error(msg, {\u0027device\u0027: boot_dev,"},{"line_number":319,"context_line":"                            \u0027node\u0027: task.node.uuid})"},{"line_number":320,"context_line":"        return (ironic_boot_dev, persistent)"},{"line_number":321,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"1a122d0e_e77d4e6e","line":318,"range":{"start_line":318,"start_character":12,"end_line":318,"end_character":47},"in_reply_to":"1a122d0e_a3ccebbb","updated":"2016-04-27 06:50:40.000000000","message":"I think returning the error log here is enough to inform the user that the boot device is not exist. I just borrow this piece of code from the original get_boot_device.","commit_id":"b92c7a550843b49c548d60d895e6e4e09f4257d2"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"06cbc4b3665a628e862c5832dbf716457df55463","unresolved":false,"context_lines":[{"line_number":338,"context_line":"                self._get_boot_device_from_hardware(task)"},{"line_number":339,"context_line":"        else:"},{"line_number":340,"context_line":"            ironic_boot_dev \u003d task.node.\\"},{"line_number":341,"context_line":"                driver_internal_info.get(\u0027VirtualBox_target_device\u0027)"},{"line_number":342,"context_line":"            if ironic_boot_dev is not None:"},{"line_number":343,"context_line":"                LOG.warning(_LW(\"As ironic node is powered on,\""},{"line_number":344,"context_line":"                                \" we return the target boot device\""}],"source_content_type":"text/x-python","patch_set":11,"id":"1a122d0e_c3792784","line":341,"range":{"start_line":341,"start_character":42,"end_line":341,"end_character":66},"updated":"2016-04-26 23:47:12.000000000","message":"s/\u0027VirtualBox_target_device\u0027/ \u0027virtualbox_target_device\u0027","commit_id":"b92c7a550843b49c548d60d895e6e4e09f4257d2"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"06cbc4b3665a628e862c5832dbf716457df55463","unresolved":false,"context_lines":[{"line_number":340,"context_line":"            ironic_boot_dev \u003d task.node.\\"},{"line_number":341,"context_line":"                driver_internal_info.get(\u0027VirtualBox_target_device\u0027)"},{"line_number":342,"context_line":"            if ironic_boot_dev is not None:"},{"line_number":343,"context_line":"                LOG.warning(_LW(\"As ironic node is powered on,\""},{"line_number":344,"context_line":"                                \" we return the target boot device\""},{"line_number":345,"context_line":"                                \" and will set target boot device\""},{"line_number":346,"context_line":"                                \" during next starts up.\"))"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a122d0e_438eb779","line":343,"range":{"start_line":343,"start_character":16,"end_line":343,"end_character":27},"updated":"2016-04-26 23:47:12.000000000","message":"Add node id and boot device information in the message.\nAlso rephrase message to assert that \u0027ironic_boot_dev\u0027 device would be used to boot when virtual box is powered on.","commit_id":"b92c7a550843b49c548d60d895e6e4e09f4257d2"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"5da73decde57ab3fc360a9cec5a705fa62640081","unresolved":false,"context_lines":[{"line_number":197,"context_line":"        \"\"\""},{"line_number":198,"context_line":"        _parse_driver_info(task.node)"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"    def _apply_boot_device(self, task):"},{"line_number":201,"context_line":"        driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":202,"context_line":"        device \u003d driver_internal_info.pop(\u0027virtualBox_target_device\u0027, None)"},{"line_number":203,"context_line":"        if device is not None:"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a122d0e_930ad3d0","line":200,"updated":"2016-04-27 11:43:50.000000000","message":"Please cover this method by unittests and add docstring.","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"52249565b33e897458506edbcadca0cefe58e480","unresolved":false,"context_lines":[{"line_number":197,"context_line":"        \"\"\""},{"line_number":198,"context_line":"        _parse_driver_info(task.node)"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"    def _apply_boot_device(self, task):"},{"line_number":201,"context_line":"        driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":202,"context_line":"        device \u003d driver_internal_info.pop(\u0027virtualBox_target_device\u0027, None)"},{"line_number":203,"context_line":"        if device is not None:"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a122d0e_0becb5b9","line":200,"in_reply_to":"1a122d0e_930ad3d0","updated":"2016-04-28 05:04:30.000000000","message":"I think the test cases like \"test_set_power_state_on/off\" have already cover this test case.","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"5da73decde57ab3fc360a9cec5a705fa62640081","unresolved":false,"context_lines":[{"line_number":199,"context_line":""},{"line_number":200,"context_line":"    def _apply_boot_device(self, task):"},{"line_number":201,"context_line":"        driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":202,"context_line":"        device \u003d driver_internal_info.pop(\u0027virtualBox_target_device\u0027, None)"},{"line_number":203,"context_line":"        if device is not None:"},{"line_number":204,"context_line":"            task.driver.management.set_boot_device(task, device)"},{"line_number":205,"context_line":"            task.node.driver_internal_info \u003d driver_internal_info"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a122d0e_b35eefe6","line":202,"range":{"start_line":202,"start_character":43,"end_line":202,"end_character":67},"updated":"2016-04-27 11:43:50.000000000","message":"might be use vbox_target_boot_device use here","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"52249565b33e897458506edbcadca0cefe58e480","unresolved":false,"context_lines":[{"line_number":199,"context_line":""},{"line_number":200,"context_line":"    def _apply_boot_device(self, task):"},{"line_number":201,"context_line":"        driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":202,"context_line":"        device \u003d driver_internal_info.pop(\u0027virtualBox_target_device\u0027, None)"},{"line_number":203,"context_line":"        if device is not None:"},{"line_number":204,"context_line":"            task.driver.management.set_boot_device(task, device)"},{"line_number":205,"context_line":"            task.node.driver_internal_info \u003d driver_internal_info"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a122d0e_e72b6fe9","line":202,"range":{"start_line":202,"start_character":43,"end_line":202,"end_character":67},"in_reply_to":"1a122d0e_b35eefe6","updated":"2016-04-28 05:04:30.000000000","message":"Done","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"5da73decde57ab3fc360a9cec5a705fa62640081","unresolved":false,"context_lines":[{"line_number":242,"context_line":"        :raises: VirtualBoxOperationFailed, if error encountered from"},{"line_number":243,"context_line":"            VirtualBox operation."},{"line_number":244,"context_line":"        \"\"\""},{"line_number":245,"context_line":"        # We set boot device before power on to"},{"line_number":246,"context_line":"        # avoid the case that  user shuts down"},{"line_number":247,"context_line":"        # the machine without calling power off"},{"line_number":248,"context_line":"        # method here. For instance, soft power"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a122d0e_3373ff81","line":245,"range":{"start_line":245,"start_character":8,"end_line":245,"end_character":47},"updated":"2016-04-27 11:43:50.000000000","message":"it is allowed to use 80 characters per line.","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"52249565b33e897458506edbcadca0cefe58e480","unresolved":false,"context_lines":[{"line_number":242,"context_line":"        :raises: VirtualBoxOperationFailed, if error encountered from"},{"line_number":243,"context_line":"            VirtualBox operation."},{"line_number":244,"context_line":"        \"\"\""},{"line_number":245,"context_line":"        # We set boot device before power on to"},{"line_number":246,"context_line":"        # avoid the case that  user shuts down"},{"line_number":247,"context_line":"        # the machine without calling power off"},{"line_number":248,"context_line":"        # method here. For instance, soft power"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a122d0e_e731af0c","line":245,"range":{"start_line":245,"start_character":8,"end_line":245,"end_character":47},"in_reply_to":"1a122d0e_3373ff81","updated":"2016-04-28 05:04:30.000000000","message":"Done","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"5da73decde57ab3fc360a9cec5a705fa62640081","unresolved":false,"context_lines":[{"line_number":243,"context_line":"            VirtualBox operation."},{"line_number":244,"context_line":"        \"\"\""},{"line_number":245,"context_line":"        # We set boot device before power on to"},{"line_number":246,"context_line":"        # avoid the case that  user shuts down"},{"line_number":247,"context_line":"        # the machine without calling power off"},{"line_number":248,"context_line":"        # method here. For instance, soft power"},{"line_number":249,"context_line":"        # off the machine from OS."}],"source_content_type":"text/x-python","patch_set":14,"id":"1a122d0e_f0405d61","line":246,"updated":"2016-04-27 11:43:50.000000000","message":"extra space","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"52249565b33e897458506edbcadca0cefe58e480","unresolved":false,"context_lines":[{"line_number":243,"context_line":"            VirtualBox operation."},{"line_number":244,"context_line":"        \"\"\""},{"line_number":245,"context_line":"        # We set boot device before power on to"},{"line_number":246,"context_line":"        # avoid the case that  user shuts down"},{"line_number":247,"context_line":"        # the machine without calling power off"},{"line_number":248,"context_line":"        # method here. For instance, soft power"},{"line_number":249,"context_line":"        # off the machine from OS."}],"source_content_type":"text/x-python","patch_set":14,"id":"1a122d0e_87527b33","line":246,"in_reply_to":"1a122d0e_f0405d61","updated":"2016-04-28 05:04:30.000000000","message":"Done","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"f945a8e2ad9dd0d95bbe908c4159897529e965e2","unresolved":false,"context_lines":[{"line_number":309,"context_line":"        boot_dev \u003d _run_virtualbox_method(task.node,"},{"line_number":310,"context_line":"                                          \u0027get_boot_device\u0027, \u0027get_boot_device\u0027)"},{"line_number":311,"context_line":"        ironic_boot_dev \u003d VIRTUALBOX_TO_IRONIC_DEVICE_MAPPING.get(boot_dev,"},{"line_number":312,"context_line":"                                                                  None)"},{"line_number":313,"context_line":"        persistent \u003d True"},{"line_number":314,"context_line":"        if not ironic_boot_dev:"},{"line_number":315,"context_line":"            persistent \u003d None"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a122d0e_163eb68a","line":312,"updated":"2016-04-27 08:59:01.000000000","message":"nit: None is not needed","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"52249565b33e897458506edbcadca0cefe58e480","unresolved":false,"context_lines":[{"line_number":309,"context_line":"        boot_dev \u003d _run_virtualbox_method(task.node,"},{"line_number":310,"context_line":"                                          \u0027get_boot_device\u0027, \u0027get_boot_device\u0027)"},{"line_number":311,"context_line":"        ironic_boot_dev \u003d VIRTUALBOX_TO_IRONIC_DEVICE_MAPPING.get(boot_dev,"},{"line_number":312,"context_line":"                                                                  None)"},{"line_number":313,"context_line":"        persistent \u003d True"},{"line_number":314,"context_line":"        if not ironic_boot_dev:"},{"line_number":315,"context_line":"            persistent \u003d None"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a122d0e_6b01e904","line":312,"in_reply_to":"1a122d0e_163eb68a","updated":"2016-04-28 05:04:30.000000000","message":"Done","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"f945a8e2ad9dd0d95bbe908c4159897529e965e2","unresolved":false,"context_lines":[{"line_number":315,"context_line":"            persistent \u003d None"},{"line_number":316,"context_line":"            msg \u003d _LE(\"VirtualBox returned unknown boot \""},{"line_number":317,"context_line":"                      \"device \u0027%(device)s\u0027 for node %(node)s\")"},{"line_number":318,"context_line":"            LOG.error(msg, {\u0027device\u0027: boot_dev,"},{"line_number":319,"context_line":"                            \u0027node\u0027: task.node.uuid})"},{"line_number":320,"context_line":"        return (ironic_boot_dev, persistent)"},{"line_number":321,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"1a122d0e_1654f6fb","line":318,"updated":"2016-04-27 08:59:01.000000000","message":"Maybe warning log level? http://specs.openstack.org/openstack/openstack-specs/specs/log-guidelines.html This behavior is documented https://github.com/openstack/ironic/blob/master/ironic/drivers/base.py#L823","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"52249565b33e897458506edbcadca0cefe58e480","unresolved":false,"context_lines":[{"line_number":315,"context_line":"            persistent \u003d None"},{"line_number":316,"context_line":"            msg \u003d _LE(\"VirtualBox returned unknown boot \""},{"line_number":317,"context_line":"                      \"device \u0027%(device)s\u0027 for node %(node)s\")"},{"line_number":318,"context_line":"            LOG.error(msg, {\u0027device\u0027: boot_dev,"},{"line_number":319,"context_line":"                            \u0027node\u0027: task.node.uuid})"},{"line_number":320,"context_line":"        return (ironic_boot_dev, persistent)"},{"line_number":321,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"1a122d0e_2b4a5155","line":318,"in_reply_to":"1a122d0e_1654f6fb","updated":"2016-04-28 05:04:30.000000000","message":"I agree，Thanks for sharing me the document","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"f945a8e2ad9dd0d95bbe908c4159897529e965e2","unresolved":false,"context_lines":[{"line_number":340,"context_line":"            ironic_boot_dev \u003d task.node.\\"},{"line_number":341,"context_line":"                driver_internal_info.get(\u0027virtualBox_target_device\u0027)"},{"line_number":342,"context_line":"            if ironic_boot_dev is not None:"},{"line_number":343,"context_line":"                msg \u003d _LE(\"As ironic node %(node)s is\""},{"line_number":344,"context_line":"                          \" powered on, we will set to boot\""},{"line_number":345,"context_line":"                          \" from %(device)s before next boot.\")"},{"line_number":346,"context_line":"                LOG.warning(msg, {\u0027node\u0027: task.node.uuid,"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a122d0e_fb6e83fe","line":343,"updated":"2016-04-27 08:59:01.000000000","message":"_LW should be here","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"52249565b33e897458506edbcadca0cefe58e480","unresolved":false,"context_lines":[{"line_number":340,"context_line":"            ironic_boot_dev \u003d task.node.\\"},{"line_number":341,"context_line":"                driver_internal_info.get(\u0027virtualBox_target_device\u0027)"},{"line_number":342,"context_line":"            if ironic_boot_dev is not None:"},{"line_number":343,"context_line":"                msg \u003d _LE(\"As ironic node %(node)s is\""},{"line_number":344,"context_line":"                          \" powered on, we will set to boot\""},{"line_number":345,"context_line":"                          \" from %(device)s before next boot.\")"},{"line_number":346,"context_line":"                LOG.warning(msg, {\u0027node\u0027: task.node.uuid,"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a122d0e_c7659345","line":343,"in_reply_to":"1a122d0e_fb6e83fe","updated":"2016-04-28 05:04:30.000000000","message":"Done","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"311f0471f6c1b0f9d6bf0568e1c2d45ad5a7419c","unresolved":false,"context_lines":[{"line_number":196,"context_line":"        _parse_driver_info(task.node)"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    def _apply_boot_device(self, task):"},{"line_number":199,"context_line":"        \"\"\"Check if node.driver_info contains the required credentials."},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"        :param task: a TaskManager instance."},{"line_number":202,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":15,"id":"1a122d0e_ba0d05ea","line":199,"range":{"start_line":199,"start_character":11,"end_line":199,"end_character":70},"updated":"2016-04-28 09:13:41.000000000","message":"seems this is just copied from above, please update it accordingly.","commit_id":"13b7ba483700130fb695520fb29a715f8123b0af"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"8aa5040e1a885b85e9302322d3d00982772644b5","unresolved":false,"context_lines":[{"line_number":196,"context_line":"        _parse_driver_info(task.node)"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    def _apply_boot_device(self, task):"},{"line_number":199,"context_line":"        \"\"\"Check if node.driver_info contains the required credentials."},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"        :param task: a TaskManager instance."},{"line_number":202,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":15,"id":"1a122d0e_128a061b","line":199,"range":{"start_line":199,"start_character":11,"end_line":199,"end_character":70},"in_reply_to":"1a122d0e_8dbc50dd","updated":"2016-04-29 00:59:53.000000000","message":"Done","commit_id":"13b7ba483700130fb695520fb29a715f8123b0af"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"32cdcfc0a2afb01c3bd800e5bf6eaabbdd0797aa","unresolved":false,"context_lines":[{"line_number":196,"context_line":"        _parse_driver_info(task.node)"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    def _apply_boot_device(self, task):"},{"line_number":199,"context_line":"        \"\"\"Check if node.driver_info contains the required credentials."},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"        :param task: a TaskManager instance."},{"line_number":202,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":15,"id":"1a122d0e_8dbc50dd","line":199,"range":{"start_line":199,"start_character":11,"end_line":199,"end_character":70},"in_reply_to":"1a122d0e_ba0d05ea","updated":"2016-04-28 12:45:54.000000000","message":"+1","commit_id":"13b7ba483700130fb695520fb29a715f8123b0af"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"8aa5040e1a885b85e9302322d3d00982772644b5","unresolved":false,"context_lines":[{"line_number":196,"context_line":"        _parse_driver_info(task.node)"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    def _apply_boot_device(self, task):"},{"line_number":199,"context_line":"        \"\"\"Check if node.driver_info contains the required credentials."},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"        :param task: a TaskManager instance."},{"line_number":202,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":15,"id":"1a122d0e_b2987276","line":199,"range":{"start_line":199,"start_character":11,"end_line":199,"end_character":70},"in_reply_to":"1a122d0e_ba0d05ea","updated":"2016-04-29 00:59:53.000000000","message":"Done","commit_id":"13b7ba483700130fb695520fb29a715f8123b0af"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"32cdcfc0a2afb01c3bd800e5bf6eaabbdd0797aa","unresolved":false,"context_lines":[{"line_number":338,"context_line":"            ironic_boot_dev \u003d task.node. \\"},{"line_number":339,"context_line":"                driver_internal_info.get(\u0027vbox_target_boot_device\u0027)"},{"line_number":340,"context_line":"            if ironic_boot_dev is not None:"},{"line_number":341,"context_line":"                msg \u003d _LW(\"As ironic node %(node)s is\""},{"line_number":342,"context_line":"                          \" powered on, we will set to boot\""},{"line_number":343,"context_line":"                          \" from %(device)s before next boot.\")"},{"line_number":344,"context_line":"                LOG.warning(msg, {\u0027node\u0027: task.node.uuid,"},{"line_number":345,"context_line":"                                  \u0027device\u0027: ironic_boot_dev})"},{"line_number":346,"context_line":"                persistent \u003d True"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a122d0e_4d4d18c3","line":343,"range":{"start_line":341,"start_character":17,"end_line":343,"end_character":63},"updated":"2016-04-28 12:45:54.000000000","message":"May be this message could be simplified. Ex:\n\"Node %(node)s will attempt to boot from  %(device) at next boot.\"","commit_id":"13b7ba483700130fb695520fb29a715f8123b0af"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"8aa5040e1a885b85e9302322d3d00982772644b5","unresolved":false,"context_lines":[{"line_number":338,"context_line":"            ironic_boot_dev \u003d task.node. \\"},{"line_number":339,"context_line":"                driver_internal_info.get(\u0027vbox_target_boot_device\u0027)"},{"line_number":340,"context_line":"            if ironic_boot_dev is not None:"},{"line_number":341,"context_line":"                msg \u003d _LW(\"As ironic node %(node)s is\""},{"line_number":342,"context_line":"                          \" powered on, we will set to boot\""},{"line_number":343,"context_line":"                          \" from %(device)s before next boot.\")"},{"line_number":344,"context_line":"                LOG.warning(msg, {\u0027node\u0027: task.node.uuid,"},{"line_number":345,"context_line":"                                  \u0027device\u0027: ironic_boot_dev})"},{"line_number":346,"context_line":"                persistent \u003d True"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a122d0e_d2ab6e73","line":343,"range":{"start_line":341,"start_character":17,"end_line":343,"end_character":63},"in_reply_to":"1a122d0e_4d4d18c3","updated":"2016-04-29 00:59:53.000000000","message":"I think give the more detailed information is better for end users to understand what is happening here, as this problem is rare and cased by the Virtualbox. Just to explain this problem more explicitly.","commit_id":"13b7ba483700130fb695520fb29a715f8123b0af"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"32cdcfc0a2afb01c3bd800e5bf6eaabbdd0797aa","unresolved":false,"context_lines":[{"line_number":345,"context_line":"                                  \u0027device\u0027: ironic_boot_dev})"},{"line_number":346,"context_line":"                persistent \u003d True"},{"line_number":347,"context_line":"            else:"},{"line_number":348,"context_line":"                # Maybe the Virtualbox_target_device is cleaned"},{"line_number":349,"context_line":"                ironic_boot_dev, persistent \u003d \\"},{"line_number":350,"context_line":"                    self._get_boot_device_from_hardware(task)"},{"line_number":351,"context_line":"        return {\u0027boot_device\u0027: ironic_boot_dev, \u0027persistent\u0027: persistent}"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a122d0e_2ddffcd6","line":348,"range":{"start_line":348,"start_character":28,"end_line":348,"end_character":52},"updated":"2016-04-28 12:45:54.000000000","message":"s/ \u0027Virtualbox_target_device\u0027/ \u0027vbox_target_boot_device\u0027/","commit_id":"13b7ba483700130fb695520fb29a715f8123b0af"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"8aa5040e1a885b85e9302322d3d00982772644b5","unresolved":false,"context_lines":[{"line_number":345,"context_line":"                                  \u0027device\u0027: ironic_boot_dev})"},{"line_number":346,"context_line":"                persistent \u003d True"},{"line_number":347,"context_line":"            else:"},{"line_number":348,"context_line":"                # Maybe the Virtualbox_target_device is cleaned"},{"line_number":349,"context_line":"                ironic_boot_dev, persistent \u003d \\"},{"line_number":350,"context_line":"                    self._get_boot_device_from_hardware(task)"},{"line_number":351,"context_line":"        return {\u0027boot_device\u0027: ironic_boot_dev, \u0027persistent\u0027: persistent}"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a122d0e_f2e14ad1","line":348,"range":{"start_line":348,"start_character":28,"end_line":348,"end_character":52},"in_reply_to":"1a122d0e_2ddffcd6","updated":"2016-04-29 00:59:53.000000000","message":"Done","commit_id":"13b7ba483700130fb695520fb29a715f8123b0af"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"32cdcfc0a2afb01c3bd800e5bf6eaabbdd0797aa","unresolved":false,"context_lines":[{"line_number":382,"context_line":"                            \u0027will set booting from %(device)s when reboot \u0027"},{"line_number":383,"context_line":"                            \u0027next time.\u0027),"},{"line_number":384,"context_line":"                        {\u0027node_uuid\u0027: task.node.uuid, \u0027device\u0027: device})"},{"line_number":385,"context_line":"            # We should store target_device in case the"},{"line_number":386,"context_line":"            # end user shutoff the baremetal machine from NOVA API."},{"line_number":387,"context_line":"            boot_device_now \u003d self.get_boot_device(task)[\u0027boot_device\u0027]"},{"line_number":388,"context_line":"            if device !\u003d boot_device_now:"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a122d0e_e87a1276","line":385,"range":{"start_line":385,"start_character":30,"end_line":385,"end_character":43},"updated":"2016-04-28 12:45:54.000000000","message":"What is target_device?","commit_id":"13b7ba483700130fb695520fb29a715f8123b0af"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"8aa5040e1a885b85e9302322d3d00982772644b5","unresolved":false,"context_lines":[{"line_number":382,"context_line":"                            \u0027will set booting from %(device)s when reboot \u0027"},{"line_number":383,"context_line":"                            \u0027next time.\u0027),"},{"line_number":384,"context_line":"                        {\u0027node_uuid\u0027: task.node.uuid, \u0027device\u0027: device})"},{"line_number":385,"context_line":"            # We should store target_device in case the"},{"line_number":386,"context_line":"            # end user shutoff the baremetal machine from NOVA API."},{"line_number":387,"context_line":"            boot_device_now \u003d self.get_boot_device(task)[\u0027boot_device\u0027]"},{"line_number":388,"context_line":"            if device !\u003d boot_device_now:"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a122d0e_d29d2e67","line":385,"range":{"start_line":385,"start_character":30,"end_line":385,"end_character":43},"in_reply_to":"1a122d0e_e87a1276","updated":"2016-04-29 00:59:53.000000000","message":"Done. change to target boot device","commit_id":"13b7ba483700130fb695520fb29a715f8123b0af"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"32cdcfc0a2afb01c3bd800e5bf6eaabbdd0797aa","unresolved":false,"context_lines":[{"line_number":384,"context_line":"                        {\u0027node_uuid\u0027: task.node.uuid, \u0027device\u0027: device})"},{"line_number":385,"context_line":"            # We should store target_device in case the"},{"line_number":386,"context_line":"            # end user shutoff the baremetal machine from NOVA API."},{"line_number":387,"context_line":"            boot_device_now \u003d self.get_boot_device(task)[\u0027boot_device\u0027]"},{"line_number":388,"context_line":"            if device !\u003d boot_device_now:"},{"line_number":389,"context_line":"                driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":390,"context_line":"                driver_internal_info[\u0027vbox_target_boot_device\u0027] \u003d device"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a122d0e_484fc633","line":387,"range":{"start_line":387,"start_character":12,"end_line":387,"end_character":71},"updated":"2016-04-28 12:45:54.000000000","message":"Can we save a call to get_boot_device and just overwrite the driver_internal_info.\n\ndriver_internal_info \u003d task.node.driver_internal_info\ndriver_internal_info[\u0027vbox_target_boot_device\u0027] \u003d boot_dev\ntask.node.driver_internal_info \u003d driver_internal_info\ntask.node.save()","commit_id":"13b7ba483700130fb695520fb29a715f8123b0af"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"8aa5040e1a885b85e9302322d3d00982772644b5","unresolved":false,"context_lines":[{"line_number":384,"context_line":"                        {\u0027node_uuid\u0027: task.node.uuid, \u0027device\u0027: device})"},{"line_number":385,"context_line":"            # We should store target_device in case the"},{"line_number":386,"context_line":"            # end user shutoff the baremetal machine from NOVA API."},{"line_number":387,"context_line":"            boot_device_now \u003d self.get_boot_device(task)[\u0027boot_device\u0027]"},{"line_number":388,"context_line":"            if device !\u003d boot_device_now:"},{"line_number":389,"context_line":"                driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":390,"context_line":"                driver_internal_info[\u0027vbox_target_boot_device\u0027] \u003d device"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a122d0e_32ff4267","line":387,"range":{"start_line":387,"start_character":12,"end_line":387,"end_character":71},"in_reply_to":"1a122d0e_484fc633","updated":"2016-04-29 00:59:53.000000000","message":"If the boot device we are using now is the same as the device we are trying to set, we do not need to this redundant operation on DB.","commit_id":"13b7ba483700130fb695520fb29a715f8123b0af"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"32cdcfc0a2afb01c3bd800e5bf6eaabbdd0797aa","unresolved":false,"context_lines":[{"line_number":385,"context_line":"            # We should store target_device in case the"},{"line_number":386,"context_line":"            # end user shutoff the baremetal machine from NOVA API."},{"line_number":387,"context_line":"            boot_device_now \u003d self.get_boot_device(task)[\u0027boot_device\u0027]"},{"line_number":388,"context_line":"            if device !\u003d boot_device_now:"},{"line_number":389,"context_line":"                driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":390,"context_line":"                driver_internal_info[\u0027vbox_target_boot_device\u0027] \u003d device"},{"line_number":391,"context_line":"                task.node.driver_internal_info \u003d driver_internal_info"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a122d0e_482ea68c","line":388,"range":{"start_line":388,"start_character":15,"end_line":388,"end_character":41},"updated":"2016-04-28 12:45:54.000000000","message":"It should be:\nboot_dev !\u003d boot_device_now\n\nAs get_boot_device() would return device using Ironic boot device mapping","commit_id":"13b7ba483700130fb695520fb29a715f8123b0af"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"8aa5040e1a885b85e9302322d3d00982772644b5","unresolved":false,"context_lines":[{"line_number":385,"context_line":"            # We should store target_device in case the"},{"line_number":386,"context_line":"            # end user shutoff the baremetal machine from NOVA API."},{"line_number":387,"context_line":"            boot_device_now \u003d self.get_boot_device(task)[\u0027boot_device\u0027]"},{"line_number":388,"context_line":"            if device !\u003d boot_device_now:"},{"line_number":389,"context_line":"                driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":390,"context_line":"                driver_internal_info[\u0027vbox_target_boot_device\u0027] \u003d device"},{"line_number":391,"context_line":"                task.node.driver_internal_info \u003d driver_internal_info"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a122d0e_b28cf2d7","line":388,"range":{"start_line":388,"start_character":15,"end_line":388,"end_character":41},"in_reply_to":"1a122d0e_482ea68c","updated":"2016-04-29 00:59:53.000000000","message":"yes, get_boot_device() returns the  Ironic boot device mapping, and also device here is using the Ironic boot device mapping, see the docstring of this method:  param device: ironic.common.boot_devices\n\nhowever the boot_dev is from  boot_dev \u003d IRONIC_TO_VIRTUALBOX_DEVICE_MAPPING[device]\n\nit is the Virtualbox device mapping.\n\nSo boot_dev cannot be compared with boot_device_now.","commit_id":"13b7ba483700130fb695520fb29a715f8123b0af"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"32cdcfc0a2afb01c3bd800e5bf6eaabbdd0797aa","unresolved":false,"context_lines":[{"line_number":387,"context_line":"            boot_device_now \u003d self.get_boot_device(task)[\u0027boot_device\u0027]"},{"line_number":388,"context_line":"            if device !\u003d boot_device_now:"},{"line_number":389,"context_line":"                driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":390,"context_line":"                driver_internal_info[\u0027vbox_target_boot_device\u0027] \u003d device"},{"line_number":391,"context_line":"                task.node.driver_internal_info \u003d driver_internal_info"},{"line_number":392,"context_line":"                task.node.save()"},{"line_number":393,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"1a122d0e_08f78ed3","line":390,"range":{"start_line":390,"start_character":66,"end_line":390,"end_character":72},"updated":"2016-04-28 12:45:54.000000000","message":"ditto.\nIt should be boot_dev","commit_id":"13b7ba483700130fb695520fb29a715f8123b0af"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"8aa5040e1a885b85e9302322d3d00982772644b5","unresolved":false,"context_lines":[{"line_number":387,"context_line":"            boot_device_now \u003d self.get_boot_device(task)[\u0027boot_device\u0027]"},{"line_number":388,"context_line":"            if device !\u003d boot_device_now:"},{"line_number":389,"context_line":"                driver_internal_info \u003d task.node.driver_internal_info"},{"line_number":390,"context_line":"                driver_internal_info[\u0027vbox_target_boot_device\u0027] \u003d device"},{"line_number":391,"context_line":"                task.node.driver_internal_info \u003d driver_internal_info"},{"line_number":392,"context_line":"                task.node.save()"},{"line_number":393,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"1a122d0e_f2c02ae2","line":390,"range":{"start_line":390,"start_character":66,"end_line":390,"end_character":72},"in_reply_to":"1a122d0e_08f78ed3","updated":"2016-04-29 00:59:53.000000000","message":"Same reason as last one.","commit_id":"13b7ba483700130fb695520fb29a715f8123b0af"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"96680027b8176d8407f9746a3b8febdc76d4b1d3","unresolved":false,"context_lines":[{"line_number":181,"context_line":""},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"class VirtualBoxPower(base.PowerInterface):"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"    def get_properties(self):"},{"line_number":186,"context_line":"        return COMMON_PROPERTIES"},{"line_number":187,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"1a122d0e_af37b7fc","side":"PARENT","line":184,"updated":"2016-05-05 08:41:54.000000000","message":"nit: this is an unrelated change, but also, I think it\u0027s nice to have a space between the class name and the methods","commit_id":"f0095741626dd1f59b3227f3bca28d842cb9ab3c"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"d44ba69ff9c86737fcd0da574d952f97ed072914","unresolved":false,"context_lines":[{"line_number":195,"context_line":"        \"\"\""},{"line_number":196,"context_line":"        _parse_driver_info(task.node)"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    def _apply_boot_device(self, task):"},{"line_number":199,"context_line":"        \"\"\"Get the target boot device and apply on the baremetal machine ."},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"        :param task: a TaskManager instance."}],"source_content_type":"text/x-python","patch_set":16,"id":"1a122d0e_ccd425bf","line":198,"updated":"2016-05-03 06:27:50.000000000","message":"need unit test for this method.","commit_id":"d76f12f4f91a01cab447ba0833816852cba873d3"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"96680027b8176d8407f9746a3b8febdc76d4b1d3","unresolved":false,"context_lines":[{"line_number":195,"context_line":"        \"\"\""},{"line_number":196,"context_line":"        _parse_driver_info(task.node)"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    def _apply_boot_device(self, task):"},{"line_number":199,"context_line":"        \"\"\"Get the target boot device and apply on the baremetal machine ."},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"        :param task: a TaskManager instance."}],"source_content_type":"text/x-python","patch_set":16,"id":"1a122d0e_8aa6290d","line":198,"in_reply_to":"1a122d0e_201d83be","updated":"2016-05-05 08:41:54.000000000","message":"For unittests we need to test specific \"units\" (where the rest is mocked). So, ideally yes we need a test for this method specifically.","commit_id":"d76f12f4f91a01cab447ba0833816852cba873d3"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"bf27bd18a770742a72a7a72492a53d4d746a6aba","unresolved":false,"context_lines":[{"line_number":195,"context_line":"        \"\"\""},{"line_number":196,"context_line":"        _parse_driver_info(task.node)"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    def _apply_boot_device(self, task):"},{"line_number":199,"context_line":"        \"\"\"Get the target boot device and apply on the baremetal machine ."},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"        :param task: a TaskManager instance."}],"source_content_type":"text/x-python","patch_set":16,"id":"1a122d0e_201d83be","line":198,"in_reply_to":"1a122d0e_ccd425bf","updated":"2016-05-05 01:33:58.000000000","message":"The test case like VirtualboxPowerTestCase.test_reboot, test_set_power_state_off,test_set_power_state_on,test_set_power_state_reboot cover this method.","commit_id":"d76f12f4f91a01cab447ba0833816852cba873d3"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"d44ba69ff9c86737fcd0da574d952f97ed072914","unresolved":false,"context_lines":[{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    def _apply_boot_device(self, task):"},{"line_number":199,"context_line":"        \"\"\"Get the target boot device and apply on the baremetal machine ."},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"        :param task: a TaskManager instance."},{"line_number":202,"context_line":"        \"\"\""},{"line_number":203,"context_line":"        driver_internal_info \u003d task.node.driver_internal_info"}],"source_content_type":"text/x-python","patch_set":16,"id":"1a122d0e_8c7cedec","line":200,"updated":"2016-05-03 06:27:50.000000000","message":"nit: It\u0027s better to add a note about _apply_boot_device() should be only called when baremetal machine is power off.","commit_id":"d76f12f4f91a01cab447ba0833816852cba873d3"},{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"d44ba69ff9c86737fcd0da574d952f97ed072914","unresolved":false,"context_lines":[{"line_number":305,"context_line":"        \"\"\""},{"line_number":306,"context_line":"        return list(IRONIC_TO_VIRTUALBOX_DEVICE_MAPPING.keys())"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"    def _get_boot_device_from_hardware(self, task):"},{"line_number":309,"context_line":"        boot_dev \u003d _run_virtualbox_method(task.node,"},{"line_number":310,"context_line":"                                          \u0027get_boot_device\u0027, \u0027get_boot_device\u0027)"},{"line_number":311,"context_line":"        ironic_boot_dev \u003d VIRTUALBOX_TO_IRONIC_DEVICE_MAPPING.get(boot_dev)"}],"source_content_type":"text/x-python","patch_set":16,"id":"1a122d0e_2cdaf9e9","line":308,"updated":"2016-05-03 06:27:50.000000000","message":"ditto","commit_id":"d76f12f4f91a01cab447ba0833816852cba873d3"}],"ironic/tests/unit/drivers/modules/test_agent_base_vendor.py":[{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"87ed0bfae563071e2f9398b97a2b00ca9f205081","unresolved":false,"context_lines":[{"line_number":617,"context_line":""},{"line_number":618,"context_line":"    @mock.patch.object(manager_utils, \u0027node_power_action\u0027, autospec\u003dTrue)"},{"line_number":619,"context_line":"    def test_reboot_and_finish_deploy_on_power_off_node("},{"line_number":620,"context_line":"            self,"},{"line_number":621,"context_line":"            node_power_action_mock):"},{"line_number":622,"context_line":"        self.node.provision_state \u003d states.DEPLOYING"},{"line_number":623,"context_line":"        self.node.target_provision_state \u003d states.ACTIVE"},{"line_number":624,"context_line":"        self.node.power_state \u003d states.POWER_OFF"}],"source_content_type":"text/x-python","patch_set":2,"id":"5aef4532_654a7f56","line":621,"range":{"start_line":620,"start_character":0,"end_line":621,"end_character":36},"updated":"2016-03-11 03:24:26.000000000","message":"nit: see the indents in L602","commit_id":"f710028559c9f49dd7df1bee67e31c4f4c1832e9"}],"ironic/tests/unit/drivers/modules/test_virtualbox.py":[{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"87ed0bfae563071e2f9398b97a2b00ca9f205081","unresolved":false,"context_lines":[{"line_number":345,"context_line":"            task.driver.management.set_boot_device(task, boot_devices.PXE)"},{"line_number":346,"context_line":"            self.assertEqual(\u0027power off\u0027, task.node.power_state,"},{"line_number":347,"context_line":"                             \"node should be power off\")"},{"line_number":348,"context_line":"            run_method_mock.assert_called_with(task.node,"},{"line_number":349,"context_line":"                                               \u0027set_boot_device\u0027,"},{"line_number":350,"context_line":"                                               \u0027set_boot_device\u0027,"},{"line_number":351,"context_line":"                                               \u0027Network\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"5aef4532_256b57b8","line":348,"updated":"2016-03-11 03:24:26.000000000","message":"why do you change assert_called_once_with? where did it call again with these parameters","commit_id":"f710028559c9f49dd7df1bee67e31c4f4c1832e9"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"a6b86eb8d6b76387779ced4a5f9435cc23b4d666","unresolved":false,"context_lines":[{"line_number":345,"context_line":"            task.driver.management.set_boot_device(task, boot_devices.PXE)"},{"line_number":346,"context_line":"            self.assertEqual(\u0027power off\u0027, task.node.power_state,"},{"line_number":347,"context_line":"                             \"node should be power off\")"},{"line_number":348,"context_line":"            run_method_mock.assert_called_with(task.node,"},{"line_number":349,"context_line":"                                               \u0027set_boot_device\u0027,"},{"line_number":350,"context_line":"                                               \u0027set_boot_device\u0027,"},{"line_number":351,"context_line":"                                               \u0027Network\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"5aef4532_6c542321","line":348,"in_reply_to":"5aef4532_256b57b8","updated":"2016-03-11 08:46:17.000000000","message":"Because power_off function in set_boot_device will invoke the mocked method. So the total call count should exceed one.\n\nI change this test to verify that  \nset_boot_device and set_power_off both be called.","commit_id":"f710028559c9f49dd7df1bee67e31c4f4c1832e9"}],"releasenotes/notes/fix-virtualbox-localboot-not-working-558a3dec72b5116b.yaml":[{"author":{"_account_id":13362,"name":"Tan Lin","email":"lin.tan@intel.com","username":"zero"},"change_message_id":"87ed0bfae563071e2f9398b97a2b00ca9f205081","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Fixs an issue that ironic faild to deploy the"},{"line_number":4,"context_line":"    baremetal machine in local boot mode that offered"},{"line_number":5,"context_line":"    by virtualbox."}],"source_content_type":"text/x-yaml","patch_set":2,"id":"5aef4532_85d86b54","line":4,"updated":"2016-03-11 03:24:26.000000000","message":"this is only working for local boot? It seems to me that this fix an general issue about set boot device for virtual-box during deploying","commit_id":"f710028559c9f49dd7df1bee67e31c4f4c1832e9"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"a6b86eb8d6b76387779ced4a5f9435cc23b4d666","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Fixs an issue that ironic faild to deploy the"},{"line_number":4,"context_line":"    baremetal machine in local boot mode that offered"},{"line_number":5,"context_line":"    by virtualbox."}],"source_content_type":"text/x-yaml","patch_set":2,"id":"5aef4532_4c016739","line":4,"in_reply_to":"5aef4532_85d86b54","updated":"2016-03-11 08:46:17.000000000","message":"Done. Thank you for help me on improving my expression.","commit_id":"f710028559c9f49dd7df1bee67e31c4f4c1832e9"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"75e2a6a3e3ed4c86323dc313aa438e6c1f1bba69","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Fixs a VirtualBox issue that ironic fails"},{"line_number":4,"context_line":"    to set VirtualBox VM\u0027s boot device"},{"line_number":5,"context_line":"    when it is powered on. This bug will"},{"line_number":6,"context_line":"    causes two problems 1. VirtualBox cannot"},{"line_number":7,"context_line":"    deploy VMs in local boot mode. 2. ironic"},{"line_number":8,"context_line":"    fails to set boot device when VirtualBox"},{"line_number":9,"context_line":"    VMs is powered on and also fails to get"},{"line_number":10,"context_line":"    the correct boot device from ironic"},{"line_number":11,"context_line":"    API call when VMs is powerd on."}],"source_content_type":"text/x-yaml","patch_set":11,"id":"1a122d0e_84462279","line":11,"range":{"start_line":2,"start_character":0,"end_line":11,"end_character":35},"updated":"2016-04-26 16:55:01.000000000","message":"How about this?\n\n -  Fixes a bug where Ironic fails to get/set VirtualBox\n    VM\u0027s boot device when it is powered on and VirtualBox\n    cannot deploy VMs in local boot mode.","commit_id":"b92c7a550843b49c548d60d895e6e4e09f4257d2"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"176a4b951c2522b3c8dddc1e1d777500e381160a","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Fixs a VirtualBox issue that ironic fails"},{"line_number":4,"context_line":"    to set VirtualBox VM\u0027s boot device"},{"line_number":5,"context_line":"    when it is powered on. This bug will"},{"line_number":6,"context_line":"    causes two problems 1. VirtualBox cannot"},{"line_number":7,"context_line":"    deploy VMs in local boot mode. 2. ironic"},{"line_number":8,"context_line":"    fails to set boot device when VirtualBox"},{"line_number":9,"context_line":"    VMs is powered on and also fails to get"},{"line_number":10,"context_line":"    the correct boot device from ironic"},{"line_number":11,"context_line":"    API call when VMs is powerd on."}],"source_content_type":"text/x-yaml","patch_set":11,"id":"1a122d0e_ed36cd4f","line":11,"range":{"start_line":2,"start_character":0,"end_line":11,"end_character":35},"in_reply_to":"1a122d0e_84462279","updated":"2016-04-27 06:51:51.000000000","message":"Done","commit_id":"b92c7a550843b49c548d60d895e6e4e09f4257d2"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"5da73decde57ab3fc360a9cec5a705fa62640081","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Fixs a VirtualBox issue that ironic fails"},{"line_number":4,"context_line":"    to set VirtualBox VM\u0027s boot device"},{"line_number":5,"context_line":"    when it is powered on. This bug will"},{"line_number":6,"context_line":"    causes two problems 1. VirtualBox cannot"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"1a122d0e_93a013f6","line":3,"range":{"start_line":3,"start_character":4,"end_line":3,"end_character":8},"updated":"2016-04-27 11:43:50.000000000","message":"s/Fixs/Fixed/","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"0a83b9d2956cde4b220e335e1ac9b715cb756f10","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Fixs a VirtualBox issue that ironic fails"},{"line_number":4,"context_line":"    to set VirtualBox VM\u0027s boot device"},{"line_number":5,"context_line":"    when it is powered on. This bug will"},{"line_number":6,"context_line":"    causes two problems 1. VirtualBox cannot"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"1a122d0e_4da88f8c","line":3,"range":{"start_line":3,"start_character":33,"end_line":3,"end_character":39},"updated":"2016-04-27 16:44:48.000000000","message":"s/ironic/Ironic","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"52249565b33e897458506edbcadca0cefe58e480","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Fixs a VirtualBox issue that ironic fails"},{"line_number":4,"context_line":"    to set VirtualBox VM\u0027s boot device"},{"line_number":5,"context_line":"    when it is powered on. This bug will"},{"line_number":6,"context_line":"    causes two problems 1. VirtualBox cannot"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"1a122d0e_e7dd2f15","line":3,"range":{"start_line":3,"start_character":33,"end_line":3,"end_character":39},"in_reply_to":"1a122d0e_4da88f8c","updated":"2016-04-28 05:04:30.000000000","message":"Done","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"52249565b33e897458506edbcadca0cefe58e480","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Fixs a VirtualBox issue that ironic fails"},{"line_number":4,"context_line":"    to set VirtualBox VM\u0027s boot device"},{"line_number":5,"context_line":"    when it is powered on. This bug will"},{"line_number":6,"context_line":"    causes two problems 1. VirtualBox cannot"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"1a122d0e_47c86355","line":3,"range":{"start_line":3,"start_character":4,"end_line":3,"end_character":8},"in_reply_to":"1a122d0e_93a013f6","updated":"2016-04-28 05:04:30.000000000","message":"Done","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"0a83b9d2956cde4b220e335e1ac9b715cb756f10","unresolved":false,"context_lines":[{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Fixs a VirtualBox issue that ironic fails"},{"line_number":4,"context_line":"    to set VirtualBox VM\u0027s boot device"},{"line_number":5,"context_line":"    when it is powered on. This bug will"},{"line_number":6,"context_line":"    causes two problems 1. VirtualBox cannot"},{"line_number":7,"context_line":"    deploy VMs in local boot mode. 2. ironic"},{"line_number":8,"context_line":"    fails to set boot device when VirtualBox"},{"line_number":9,"context_line":"    VMs is powered on and also fails to get"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"1a122d0e_0da217ae","line":6,"range":{"start_line":5,"start_character":27,"end_line":6,"end_character":23},"updated":"2016-04-27 16:44:48.000000000","message":"This bug causes two problems;","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"52249565b33e897458506edbcadca0cefe58e480","unresolved":false,"context_lines":[{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Fixs a VirtualBox issue that ironic fails"},{"line_number":4,"context_line":"    to set VirtualBox VM\u0027s boot device"},{"line_number":5,"context_line":"    when it is powered on. This bug will"},{"line_number":6,"context_line":"    causes two problems 1. VirtualBox cannot"},{"line_number":7,"context_line":"    deploy VMs in local boot mode. 2. ironic"},{"line_number":8,"context_line":"    fails to set boot device when VirtualBox"},{"line_number":9,"context_line":"    VMs is powered on and also fails to get"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"1a122d0e_c7e2b3d4","line":6,"range":{"start_line":5,"start_character":27,"end_line":6,"end_character":23},"in_reply_to":"1a122d0e_0da217ae","updated":"2016-04-28 05:04:30.000000000","message":"Done","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"0a83b9d2956cde4b220e335e1ac9b715cb756f10","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    to set VirtualBox VM\u0027s boot device"},{"line_number":5,"context_line":"    when it is powered on. This bug will"},{"line_number":6,"context_line":"    causes two problems 1. VirtualBox cannot"},{"line_number":7,"context_line":"    deploy VMs in local boot mode. 2. ironic"},{"line_number":8,"context_line":"    fails to set boot device when VirtualBox"},{"line_number":9,"context_line":"    VMs is powered on and also fails to get"},{"line_number":10,"context_line":"    the correct boot device from ironic"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"1a122d0e_cd9c9f6c","line":7,"range":{"start_line":7,"start_character":38,"end_line":7,"end_character":44},"updated":"2016-04-27 16:44:48.000000000","message":"s/ironic/Ironic","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"52249565b33e897458506edbcadca0cefe58e480","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    to set VirtualBox VM\u0027s boot device"},{"line_number":5,"context_line":"    when it is powered on. This bug will"},{"line_number":6,"context_line":"    causes two problems 1. VirtualBox cannot"},{"line_number":7,"context_line":"    deploy VMs in local boot mode. 2. ironic"},{"line_number":8,"context_line":"    fails to set boot device when VirtualBox"},{"line_number":9,"context_line":"    VMs is powered on and also fails to get"},{"line_number":10,"context_line":"    the correct boot device from ironic"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"1a122d0e_27e447de","line":7,"range":{"start_line":7,"start_character":38,"end_line":7,"end_character":44},"in_reply_to":"1a122d0e_cd9c9f6c","updated":"2016-04-28 05:04:30.000000000","message":"Done","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"0a83b9d2956cde4b220e335e1ac9b715cb756f10","unresolved":false,"context_lines":[{"line_number":7,"context_line":"    deploy VMs in local boot mode. 2. ironic"},{"line_number":8,"context_line":"    fails to set boot device when VirtualBox"},{"line_number":9,"context_line":"    VMs is powered on and also fails to get"},{"line_number":10,"context_line":"    the correct boot device from ironic"},{"line_number":11,"context_line":"    API call when VMs is powerd on."}],"source_content_type":"text/x-yaml","patch_set":14,"id":"1a122d0e_0d897726","line":10,"range":{"start_line":10,"start_character":33,"end_line":10,"end_character":39},"updated":"2016-04-27 16:44:48.000000000","message":"s/ironic/Ironic","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"52249565b33e897458506edbcadca0cefe58e480","unresolved":false,"context_lines":[{"line_number":7,"context_line":"    deploy VMs in local boot mode. 2. ironic"},{"line_number":8,"context_line":"    fails to set boot device when VirtualBox"},{"line_number":9,"context_line":"    VMs is powered on and also fails to get"},{"line_number":10,"context_line":"    the correct boot device from ironic"},{"line_number":11,"context_line":"    API call when VMs is powerd on."}],"source_content_type":"text/x-yaml","patch_set":14,"id":"1a122d0e_07e94bb7","line":10,"range":{"start_line":10,"start_character":33,"end_line":10,"end_character":39},"in_reply_to":"1a122d0e_0d897726","updated":"2016-04-28 05:04:30.000000000","message":"Done","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"5da73decde57ab3fc360a9cec5a705fa62640081","unresolved":false,"context_lines":[{"line_number":8,"context_line":"    fails to set boot device when VirtualBox"},{"line_number":9,"context_line":"    VMs is powered on and also fails to get"},{"line_number":10,"context_line":"    the correct boot device from ironic"},{"line_number":11,"context_line":"    API call when VMs is powerd on."}],"source_content_type":"text/x-yaml","patch_set":14,"id":"1a122d0e_f3a187f8","line":11,"range":{"start_line":11,"start_character":25,"end_line":11,"end_character":31},"updated":"2016-04-27 11:43:50.000000000","message":"s/powerd/powered/","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":20671,"name":"bin","email":"froyo.bin@gmail.com","username":"binyu"},"change_message_id":"52249565b33e897458506edbcadca0cefe58e480","unresolved":false,"context_lines":[{"line_number":8,"context_line":"    fails to set boot device when VirtualBox"},{"line_number":9,"context_line":"    VMs is powered on and also fails to get"},{"line_number":10,"context_line":"    the correct boot device from ironic"},{"line_number":11,"context_line":"    API call when VMs is powerd on."}],"source_content_type":"text/x-yaml","patch_set":14,"id":"1a122d0e_e7040f7f","line":11,"range":{"start_line":11,"start_character":25,"end_line":11,"end_character":31},"in_reply_to":"1a122d0e_f3a187f8","updated":"2016-04-28 05:04:30.000000000","message":"Done","commit_id":"9524f59342a7d0b9f078f75b749a943dc1058223"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"fb4fc3cbba6c7cdf3be52c12af749d9b1230f356","unresolved":false,"context_lines":[{"line_number":6,"context_line":"    two problems 1. VirtualBox cannot"},{"line_number":7,"context_line":"    deploy VMs in local boot mode. 2. Ironic"},{"line_number":8,"context_line":"    fails to set boot device when VirtualBox"},{"line_number":9,"context_line":"    VMs is powered on and also fails to get"},{"line_number":10,"context_line":"    the correct boot device from Ironic"},{"line_number":11,"context_line":"    API call when VMs is powered on."}],"source_content_type":"text/x-yaml","patch_set":16,"id":"1a122d0e_a374a667","line":9,"range":{"start_line":9,"start_character":4,"end_line":9,"end_character":10},"updated":"2016-04-29 15:25:06.000000000","message":"Nit: s/VMs/VM","commit_id":"d76f12f4f91a01cab447ba0833816852cba873d3"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"fb4fc3cbba6c7cdf3be52c12af749d9b1230f356","unresolved":false,"context_lines":[{"line_number":8,"context_line":"    fails to set boot device when VirtualBox"},{"line_number":9,"context_line":"    VMs is powered on and also fails to get"},{"line_number":10,"context_line":"    the correct boot device from Ironic"},{"line_number":11,"context_line":"    API call when VMs is powered on."}],"source_content_type":"text/x-yaml","patch_set":16,"id":"1a122d0e_43103200","line":11,"range":{"start_line":11,"start_character":18,"end_line":11,"end_character":24},"updated":"2016-04-29 15:25:06.000000000","message":"Nit: s/VMs/VM","commit_id":"d76f12f4f91a01cab447ba0833816852cba873d3"}]}
