To ensure that our OpenStack environment is able to separate traffic from one tenant to another, we assign different fixed ranges to each. When a fixed network is no longer required, or we want to assign a particular tenant to a specific network, we can use the
nova-manage
command to modify these details.
To begin with, ensure you're logged in to the OpenStack API server as well as to a client that can access the keystone
environment.
To assign a particular network to a tenant, carry out the following steps:
On a client that has access to the
keystone
command, run the following commands to list the projects available:# Use the admin token export ENDPOINT=172.16.0.201 export SERVICE_TOKEN=ADMIN export SERVICE_ENDPOINT=http://${ENDPOINT}:35357/v2.0 keystone tenant-list
An example of running the previous commands is as follows:
To view the list of networks and ranges available, issue the following command on an OpenStack API host...