From Fedora Project Wiki

The following is a description of how to go from Packstack with traditional nova networking to Quantum. In the example below the OpenvSwitch plugin is used:

Single host setup only
The instructions below assume an all-in-one setup. If you have several compute nodes, you'll at least have to open port 9696 on the controller and copy some portions of nova.conf to each and every node.

1. Terminate nova networking

   service openstack-nova-network stop
   chkconfig openstack-nova-network off

2. Install quantum service and the Open vSwitch plugin

   yum install openstack-quantum openstack-quantum-openvswitch

3. The Quantum installation scripts make use of keystone environment variables. Make sure that the administrator environment variables are set.

   source /root/keystonerc_admin

4. Configure quantum service to use Open vSwitch (you can get the MySQL password from the Packstack answer file, see CONFIG_MYSQL_PW)


5.1. The above script will ask if the nova parameters need to be updated. Restart the nova compute service. The script will configure Quantum as the networking module for Nova.

   service openstack-nova-compute restart

5.2 Start the openvswitch service

   service openvswitch start
   chkconfig openvswitch on

5.3 Create the integration bridge (for the private network)

   ovs-vsctl add-br br-int

5.4 Create the external bridge (for the layer 3 agent)

   ovs-vsctl add-br br-ex

5.5 Ensure that the interfaces are persistant after reboot. This is done by creating interface files, for example for br-int:


6. Configure quantum is using the root wrapper to call ovs-vsctl (also, comment out any other root_helper configuration, just in case)

   sed -e 's|^[^#]\W*root_helper\W|#&|' -e 's|root_helper\W=\Wsudo|&\nroot_helper = sudo /usr/bin/quantum-rootwrap /etc/quantum/rootwrap.conf|' -i /etc/quantum/quantum.conf
   service quantum-server restart

7. Start quantum service

   service quantum-server start
   chkconfig quantum-server on

7.1 Start quantum agent

   service quantum-openvswitch-agent start
   chkconfig quantum-openvswitch-agent on

8. In order for the IPAM to take place one needs to invoke the DHCP agent. Use the DHCP setup tool


8.1. Start DHCP agent

   service quantum-dhcp-agent start
   chkconfig quantum-dhcp-agent on

9. In order to support floating IP's one need to invoke the Layer 3 agent. Use the L3 agent setup tool


9.1. Start the L3 agent

   service quantum-l3-agent start
   chkconfig quantum-l3-agent on 

10. Ensure that the openvswitch cleanup utility is enabled (this is used after reboot to ensure that device management of the quantum agents is not affected by the fact that the openvswitch creates the interfaces at boot)

   chkconfig quantum-ovs-cleanup on

11. Create a Quantum endpoint with keystone

   keystone service-create --name=quantum --type=network --description="Quantum Service"
   keystone endpoint-create --region RegionOne --service-id<ID>  --publicurl "" --adminurl "" --internalurl ""

12. Create a keystone tenant and user.

12.1 Create the keystone tenant

   keystone tenant-list     # Record 'services' tenant ID
   keystone user-create --name=quantum --pass="" --tenant-id <services_ID>

12.2 Add the quantum user to the admin role

   keystone role-list       # Record 'admin' role
   keystone user-list       # Record 'quantum' user ID
   keystone user-role-add --user_id <quantum_ID> --role_id <admin_ID> --tenant_id <services_ID>

13. Now one is able to start to use the Quantum CLI

13.1 Create a private network

   quantum net-create private

13.2 Create a subnet

   quantum subnet-create private

14. Validate that a port has been created by the DHCP agent (quantum port-list). This port will have IP address The gateway will

15. At this stage VM's can be deployed and they will receive IP addresses from the DHCP service.