Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1632790

Summary: [RFE] Allow protecting instances from deletion
Product: Red Hat OpenStack Reporter: Dmitry Tantsur <dtantsur>
Component: openstack-ironicAssignee: 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 M1Keywords: 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:

Description Dmitry Tantsur 2018-09-25 14:33:13 UTC
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.

Comment 1 Dmitry Tantsur 2018-10-04 15:55:53 UTC
*** Bug 1397205 has been marked as a duplicate of this bug. ***

Comment 2 Dmitry Tantsur 2020-08-05 16:23:48 UTC
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.