Attempt to power off BareMetalHost before delete#412
Attempt to power off BareMetalHost before delete#412sadasu wants to merge 1 commit intometal3-io:masterfrom sadasu:bmh-delete
Conversation
zaneb
left a comment
There was a problem hiding this comment.
Actually, reading through the provisioner code just now, it looks like PowerOff never returns an ErrorMessage. Ideally we would check for one, and if it is present just log it and increment a prometheus metric, then carry on as we're doing here. But given that it can't happen right now, I'm not too worried about it.
|
/test-integration |
|
I opened a separate PR (#514) to clean up the existing problem with |
|
@sadasu are you still working on this PR? |
|
/lgtm |
|
/test-integration |
|
@dhellmann could you please take a look? I need an approve label. |
|
On closer inspection, it looks like the provisioner code doesn't actually check for a failed attempt to power off (it doesn't look at any error messages from Ironic), so I suspect we will just end up retrying forever if the credentials don't work. /lgtm cancel |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sadasu The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/test-integration |
|
/test-integration |
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
|
/remove-lifecycle stale |
|
Any updates on this? |
|
/test-integration |
|
/test-integration |
|
/test-integration |
|
/test-integration |
|
/test-integration |
|
Implementation has moved to #816. |
When a BareMetalHost is deleted, power it off before performing
the delete operation.
Fixes #410