RHOSP16 Protecting the overcloud stack from removal does not work

Solution Verified - Updated -

Issue

In the past, the 16.x documentation for protecting the overcloud from removal was not functional.

  • Adding {"stacks:delete": "rule:deny_everybody"} in the config file /var/lib/config-data/puppet-generated/heat/etc/heat/policy.json does not prevent it from being deleted accidentally.

    # with {"stacks:delete": "rule:deny_everybody"} in the wrong policy.json file ...
    
    (undercloud) [stack@undercloud-0 ~]$ openstack overcloud delete overcloud
    Are you sure you want to delete this stack(s) [y/N]? y
    Request to delete stack overcloud has been accepted.
    

Environment

  • Red Hat OpenStack Platform 16

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content