此内容没有您所选择的语言版本。
18.3. Extend the Tenant Network for the Benchmarking Service
The following procedure is
optional
and required only if the Benchmarking service scenario being run requires a direct access (ssh
) to the guest. When running the NovaServers.boot_server
scenario, extending the tenant network is not required as this is specific scenario does not ssh
into the guests but simple launches the guests.
Perform the following steps on your Controller node, unless otherwise specified.
- If your Red Hat OpenStack Platform deployment does not have any floating point IPs available, extend the Tenant network to the
rally
host. Run the following command to install the OpenStack Networking OpenvSwitch agent package:yum install openstack-neutron-openvswitch
# yum install openstack-neutron-openvswitch
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Copy the OpenStack Networking configuration files from the Compute node to the Controller node:
scp COMPUTE_NODE_IP:/etc/neutron/* /etc/neutron
# scp COMPUTE_NODE_IP:/etc/neutron/* /etc/neutron
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Set an IP address to the interface that would have been associated with the Tenant network had it been part of the OpenStack cluster.
- Edit the
ovs_neutron_plugin.ini
file and change thelocal_ip
to the IP address that resides on the Tenant network:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Edit the
/etc/neutron/plugin.ini
file and change thelocal_ip
to the IP address that resides on the Tenant network:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Restart the
neutron-openvswitch-agent
:systemctl restart openvswitch systemctl restart neutron-openvswitch-agent
# systemctl restart openvswitch # systemctl restart neutron-openvswitch-agent
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - On the Controller node, verify the agent is properly setup by using the
neutron agent-list
command:neutron agent-list
# neutron agent-list ... Output Abbreviated ... ] | 8578499b-0873-47a9-9cae-9884d4abf768 | Open vSwitch agent | Controller_Host | :-) | True | neutron-openvswitch-agent
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - On the Controller node, create the variables
netid
andhostid
with the following information:netid=PRIVATE_NETWORK_ID echo $netid hostid=CONTROLLER_NODE_HOSTNAME echo $hostid
# netid=PRIVATE_NETWORK_ID # echo $netid # hostid=CONTROLLER_NODE_HOSTNAME # echo $hostid
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - On the Controller node, create a
neutron
port labelledrally-port
that binds to thehost_id
and creates the port within the network of the associatednetid
.Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Within the Controller node, modify the
rally
virtual machine XML with the following:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
Make sure you update theneutron-port-id
with theid
located in the previous step when creating therally-port
. - After the XML file changes have been applied to the
rally
guest, reboot the guest.