CentOS 6
Sponsored Link

OpenStack Grizzly - Configure Quantum#22013/09/12

 
Configure OpenStack Network Service (Quantum).
This example shows to configure Quantum on the environment below.
                                |
+------------------+            |            +------------------------+
| [ Control Node ] |10.0.0.30   |   10.0.0.31|    [ Network Node ]    |
|     Keystone     |------------+------------|        DHCP Agent      |
|  Quantum Server  |            |            |        L3 Agent        |
+------------------+            |            |        L2 Agent        |
                                |            +------------------------+
                                |
                                |10.0.0.51
                      +--------------------+
                      |  [ Compute Node ]  |
                      |       L2 Agent     |
                      +--------------------+
 
Configure Network Node on here.
By the way, it's necessarry to select plugin-software to configure Quantum and this example selects linuxbridge plugin.
[1] Enable IP forwarding first.
[root@network ~]#
sed -i -e "s/net.ipv4.ip_forward = 0/net.ipv4.ip_forward = 1/g" /etc/sysctl.conf

[root@network ~]#
sysctl -p

[2] Update system from EPEL OpenStack to use Network Namespace and Install Quantum packages.
# install from EPEL OpenStack, EPEL

[root@network ~]#
yum --enablerepo=epel-openstack-grizzly,epel -y update

[root@network ~]#
yum --enablerepo=epel-openstack-grizzly,epel -y install openstack-quantum openstack-quantum-linuxbridge python-keystoneclient

[root@network ~]#
[3] Load environment variables.
[root@network ~]#
vi ~/keystonerc_quantum
export OS_USERNAME=quantum
export OS_PASSWORD=servicepassword
export OS_TENANT_NAME=service
export OS_AUTH_URL=http://10.0.0.30:35357/v2.0/
export PS1='[\u@\h \W(quantum)]\$ '
[root@network ~]#
chmod 600 ~/keystonerc_quantum

[root@network ~]#
source ~/keystonerc_quantum

[root@network ~(quantum)]#
echo "source ~/keystonerc_quantum " >> ~/.bash_profile
[4] Configure DHCP, L3, L2 Agent
[root@network ~(quantum)]#
quantum-dhcp-setup --plugin linuxbridge

Quantum plugin: linuxbridge
Please enter the Quantum hostname:
10.0.0.30
   
# specify QPID's hostname or IP address

Configuration updates complete!
[root@network ~(quantum)]#
quantum-l3-setup --plugin linuxbridge

Quantum plugin: linuxbridge
Please enter the Quantum hostname:
10.0.0.30
   
# specify QPID's hostname or IP address

Configuration updates complete!
[root@network ~(quantum)]#
quantum-node-setup --plugin linuxbridge

Quantum plugin: linuxbridge
Please enter the Quantum hostname:
10.0.0.30
   
# specify QPID's hostname or IP address

Would you like to update the nova configuration files? (y/n):
n

Complete!
[root@network ~(quantum)]#
vi /etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini
# line 11: add

tenant_network_type = vlan
# line 22: add

network_vlan_ranges = physnet0:1000:2999
# line 29: comment out and add sql_connection for Quantum

#
sql_connection = sqlite://
sql_connection = mysql://quantum:quantum@10.0.0.30/quantum_linux_bridge
# line 54: add

physical_interface = eth0
# line 64: add

physical_interface_mappings = physnet0:eth0
[root@network ~(quantum)]#
for service in dhcp-agent l3-agent linuxbridge-agent; do
/etc/rc.d/init.d/quantum-$service start
chkconfig quantum-$service on
done

Starting quantum-dhcp-agent:                   [  OK  ]
Starting quantum-l3-agent:                     [  OK  ]
Starting quantum-linuxbridge-agent:            [  OK  ]
Matched Content