Bug 1632790
| Summary: | [RFE] Allow protecting instances from deletion | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Dmitry Tantsur <dtantsur> |
| Component: | openstack-ironic | Assignee: | Dmitry Tantsur <dtantsur> |
| Status: | CLOSED WONTFIX | QA Contact: | mlammon |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 16.0 (Train) | CC: | akaris, bfournie, mburns, pmannidi, racedoro |
| Target Milestone: | Upstream M1 | Keywords: | FutureFeature, Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-08-05 16:23:48 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** Bug 1397205 has been marked as a duplicate of this bug. *** Code available upstream. The initial goal was to failure-proof upgrades from nova-based to nova-less undercloud, but I don't think it was used in the end. |
This RFE suggests adding two new fields to the Node object: protected (boolean, default false) and protected_reason (string, default null). The following will apply: The new fields can only be set on nodes in active provision state, otherwise HTTP 400 is returned. The provisioning actions deleted and rebuild fail with HTTP 403 on nodes with protected=true. The protected_reason field can only be set to a non-null value for nodes with protected=true and is automatically unset when protected is set to false (similar to maintenance_reason). The use case is protecting overcloud nodes from heat craziness.