Heat does not delete ports from failed instances
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
In Progress
|
Undecided
|
Julia Kreger |
Bug Description
With TripleO heat templates, an internal port is utilized with baremetal nodes. This is important because if a deployment of a baremetal node fails, the port appears not to be deleted. This is important because when used with baremetal nodes where the MAC address has been set externally to match the actual physical baremetal.
Since instances are created with a port in those scenarios, when torn down due to a failure, nova will not remove the port since it was created outside of Nova's context. This is exposed as preserve_on_delete attribute in the instance metadata.
This is important since because the lack of the port being deleted prevents the physical baremetal node from being re-used.
Nova code for port "addition" and "deletion" with pertinent areas:
creation:
https:/
deletion:
https:/
https:/
This ends up demonstrating its self as a deployment of new instances failing with ultimately ironic reporting an error along these lines:
2018-04-24 11:24:51.401 21530 ERROR ironic.
Ironic can't route around this issue because it has no means to identify if the other port can be deleted. Due to the nova behavior, realistically heat needs to clean up upon trying to replace the instance.
Changed in heat: | |
milestone: | none → no-priority-tag-bugs |
Fix proposed to branch: master /review. openstack. org/564104
Review: https:/