CentOS 6
Sponsored Link

OpenStack Grizzly - Configure Quantum#1
2013/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 Control Node on here.
By the way, it's necessarry to select plugin-software to configure Quantum and this example selects linuxbridge plugin.
[1] Add a user or service for Quantum to Keystone.
# confirm tenant ID

[root@dlp ~(keystone)]#
keystone tenant-list

+----------------------------------+---------+---------+
|                id                |   name  | enabled |
+----------------------------------+---------+---------+
| 4fc0e91962e24923bfe50db73d6930ef |  admin  |   True  |
| a8940116012e4a76af6ead65c7782917 | service |   True  |
+----------------------------------+---------+---------+
[root@dlp ~(keystone)]#
keystone role-list


+----------------------------------+----------+
|                id                |   name   |
+----------------------------------+----------+
| ce2a231d0cf14318a88568f0d98e3607 |  Member  |
| 9fe2ff9ee4384b1894a90878d3e92bab | _member_ |
| da58f01851c4439a80e5789d8a5972cd |  admin   |
+----------------------------------+----------+

[root@dlp ~(keystone)]#
keystone user-create --tenant_id a8940116012e4a76af6ead65c7782917 --name quantum --pass servicepassword --enabled true

+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
| description |     Quantum Network Service      |
|      id     | 59eb427414bb4bad902fc364d8dc6703 |
|     name    |             quantum              |
|     type    |             network              |
+-------------+----------------------------------+

[root@dlp ~(keystone)]#
keystone user-role-add --user-id bf9b05210e8d4845b33c4413743ddf69 --tenant_id a8940116012e4a76af6ead65c7782917 --role-id da58f01851c4439a80e5789d8a5972cd
[root@dlp ~(keystone)]#
keystone service-create --name=quantum --type=network --description="Quantum Network Service"

+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
| description |     Quantum Network Service      |
|      id     | 1458d607798e4bb2a6f5cd057fc4136f |
|     name    |             quantum              |
|     type    |             network              |
+-------------+----------------------------------+

# define Quantum Server's hostname or IP address

[root@dlp ~(keystone)]#
export quantum_server=10.0.0.30
[root@dlp ~(keystone)]#
keystone endpoint-create --region RegionOne \
--service_id=59eb427414bb4bad902fc364d8dc6703 \
--publicurl="http://$quantum_server:9696/" \
--internalurl="http://$quantum_server:9696/" \
--adminurl="http://$quantum_server:9696/"

+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
|   adminurl  |      http://10.0.0.31:9696/      |
|      id     | e70e5f895caf40d69712bf14e1ba4192 |
| internalurl |      http://10.0.0.31:9696/      |
|  publicurl  |      http://10.0.0.31:9696/      |
|    region   |            RegionOne             |
|  service_id | 1458d607798e4bb2a6f5cd057fc4136f |
+-------------+----------------------------------+
[2] Install Quantum Server
# install from EPEL OpenStack, EPEL

[root@dlp ~(keystone)]#
yum --enablerepo=epel-openstack-grizzly,epel -y install openstack-quantum openstack-quantum-linuxbridge
[3] Configure Quantum Server
# initial setup

[root@dlp ~(keystone)]#
quantum-server-setup --plugin linuxbridge

Quantum plugin: linuxbridge
Plugin: linuxbridge => Database: quantum_linux_bridge
Please enter the password for the 'root' MySQL user:  
# MySQL root password

Verified connectivity to MySQL.
Please enter network device for VLAN trunking:
eth0
 
# for VLAN

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

Complete!
[root@dlp ~(keystone)]#
vi /etc/quantum/quantum.conf
# line 198: QPID's hostname or IP address (this example specify control Node)

notification_topics = notifications
core_plugin = quantum.plugins.linuxbridge.lb_quantum_plugin.LinuxBridgePluginV2
rpc_backend = quantum.openstack.common.rpc.impl_qpid
qpid_hostname =
127.0.0.1
# line 283: chnage like follows (it's the value added in Keystone)

[keystone_authtoken]
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
signing_dir = /var/lib/quantum/keystone-signing
admin_tenant_name =
service

admin_user =
quantum

admin_password =
servicepassword
[root@dlp ~(keystone)]#
/etc/rc.d/init.d/quantum-server start

Starting quantum:                                [  OK  ]
[root@dlp ~(keystone)]#
chkconfig quantum-server on

Matched Content
 
Tweet