Contents

Description

Deploy the Quantum virtual network service and configure Nova to use QuantumManager as its NetworkManager.
Quantum includes several plugins. The openvswitch plugin is covered here.

Setup

The installtion of the Quantum packages is done the openstack-demo-install utility. This will also configure
a Quantum user with Keystone. The examples below show the usage of OpenvSwitch as the plugin and agent.
This can be replaced by any one of the other supported agents, for example linux bridge.

Note: If you have sourced keystone.rc then please make sure that you set the following environment variables. These are used by the Quantun setup scripts and match the configured keystone user and password.

Expected Results

After the subnet create the DHCP server should allocate a port to allocate IP addresses to the VMs running on the network. Run quantum port-list to check that a port has been created.

Check that a namespace has been created for the DHCP agent. Run ip netns. A namespace should be created with the prefix dhcp. This can be used to ping VM's deployed on the network.

The L2 agent will add the port to the integration bridge. Run sudo ovs-vsctl show. This will show that a tap device for the DHCP agent has been added to the integration bridge. The tap device name will be the first 11 bytes of the port ID.

After the router createion a tap device for the router will be attached to the integration bridge. This will have the prefix 'qr-'.

The DHCP IP address will be 10.0.0.1 and the Router address will be 10.0.0.2

Check that a namespace has been created for the router agent. Run ip netns. A namespace should be created with the prefix qrouter. This can be used to ping VM's deployed on the network.

When the router gateway is set a tap device is create on the external bridge. This has the prefix 'qg'.

VM's that are started should receive and IP address on the network 10.0.0.0/24. In addition to this if there is more than one VM on the network the VM's should be able to ping one another.