commit 47b738431ed87af314d0477625a18cdd258a0148
Author: Vladimir Sharshov (warpc) <email address hidden>
Date: Tue Mar 3 19:57:56 2015 +0300
Prevent unexpected erasing nodes during image based provision
Classic provisioning flow:
bootstrap -> erase -> reboot -> provisioning (node do not respond via mcollective) -> reboot -> target
If system is backed online via mcollective and return bootstrap status, it will be erased.
Image flow before this change:
bootstrap -> erase -> provisioning (node still can respond via mcollective) -> reboot -> target
Sometimes we can ask nodes about status in case of image flow
before they will be rebooted. And send them to erase if they are answered 'bootstrap'. To prevent such situation, we add
new systemtype 'image'.
Now workflow will be looked:
bootstrap -> erase -> image -> provisioning (node still can respond via mcollective) -> reboot -> target
We marked nodes with 'image' systemtype as not provisioned, but do not try to erase them.
This new type should not block any other operations with node:
Reviewed: https:/ /review. openstack. org/160891 /git.openstack. org/cgit/ stackforge/ fuel-astute/ commit/ ?id=47b738431ed 87af314d0477625 a18cdd258a0148
Committed: https:/
Submitter: Jenkins
Branch: master
commit 47b738431ed87af 314d0477625a18c dd258a0148
Author: Vladimir Sharshov (warpc) <email address hidden>
Date: Tue Mar 3 19:57:56 2015 +0300
Prevent unexpected erasing nodes during image based provision
Classic provisioning flow:
bootstrap -> erase -> reboot -> provisioning (node do not respond via mcollective) -> reboot -> target
If system is backed online via mcollective and return bootstrap status, it will be erased.
Image flow before this change:
bootstrap -> erase -> provisioning (node still can respond via mcollective) -> reboot -> target
Sometimes we can ask nodes about status in case of image flow
before they will be rebooted. And send them to erase if they are answered 'bootstrap'. To prevent such situation, we add
new systemtype 'image'.
Now workflow will be looked:
bootstrap -> erase -> image -> provisioning (node still can respond via mcollective) -> reboot -> target
We marked nodes with 'image' systemtype as not provisioned, but do not try to erase them.
This new type should not block any other operations with node:
* delete;
* stop provisioning;
* reprovisioning.
Change-Id: I7fcc32c6045265 75d7805386ecfe3 d0d40cbd12e
Closes-Bug: #1427718