RBAC Network
To share a Role-Based Access Control (RBAC) network from one project to another project using your OpenStack client, you must:
- create a network RBAC using a user from the source project (to which the network belongs) for the target project
Prerequisites
- openstack client >= 5.4.0 (to check: openstack --version)
- Basic knowledge of the Linux operating system (shell)
- Access to a running Linux VM (Ubuntu in our example) with an open port (Egress 443) to the OpenStack API
- Application Credentials (cloud.yaml)
For the installation of the OpenStack Client, (See setup OSC)
Creating the RBAC Network
#create network RBAC:
pyenv shell 3.7.3 && source .venv-3.7.3/bin/activate && export OS_CLOUD=myprofile
pyenv global; pyenv versions; python -V; openstack --version
#need openstack-client >= 5.4.0
#https://storyboard.openstack.org/#!/story/2007724
#https://github.com/openstack/python-openstackclient/commit/0a8753dc3eaeda25554ccd769350de1e9792a62b
openstack --os-cloud myprofile network rbac create --target-project $target_project_id --action access_as_shared --type network $source_network
Further information on available RBAC commands can be found on the following website: OpenStackClient Role-Based Access Control