You can delete RBAC policies for shared network access.
Before you begin
- The administrator has created a project for you and has provided you with a
clouds.yaml file for you to access the cloud.
- The
python-openstackclient package is on your workstation.
$ dnf list installed python-openstackclient
Procedure
-
Confirm that the system
OS_CLOUD variable is set for your cloud:
$ echo $OS_CLOUD
my_cloud
Reset the variable if necessary:
$ export OS_CLOUD=my_other_cloud
As an alternative, you can specify the cloud name by adding the --os-cloud <cloud_name> option each time you run an openstack command.
-
Run the
openstack network rbac list command to retrieve the ID of your existing role-based access control (RBAC) policies:
# openstack network rbac list
+--------------------------------------+-------------+--------------------------------------+
| id | object_type | object_id |
+--------------------------------------+-------------+--------------------------------------+
| 314004d0-2261-4d5e-bda7-0181fcf40709 | network | fa9bb72f-b81a-4572-9c7f-7237e5fcabd3 |
| bbab1cf9-edc5-47f9-aee3-a413bd582c0a | network | 9b2f4feb-fee8-43da-bb99-032e4aaf3f85 |
+--------------------------------------+-------------+--------------------------------------+
-
Run the
openstack network rbac delete command to delete the RBAC, using the ID of the RBAC that you want to delete:
# openstack network rbac delete 314004d0-2261-4d5e-bda7-0181fcf40709
Deleted rbac_policy: 314004d0-2261-4d5e-bda7-0181fcf40709