CentOS 6
Sponsored Link

OpenStack Havana - Configure Neutron#1(Control Node)
2013/10/29
 
Configure OpenStack Network Service (Neutron).
This example configures like the environment below.
Install Neutron Server on Controle Node, and Install DHCP, L3, L2 Agent on Network Node, and Install L2 Agent on Compute Node.
                                |
+------------------+            |            +------------------------+
| [ Control Node ] |10.0.0.30   |   10.0.0.50|    [ Network Node ]    |
|     Keystone     |------------+------------|        DHCP Agent      |
|  Neutron Server  |            |            |        L3 Agent        |
+------------------+            |            |        L2 Agent        |
                                |            +------------------------+
                                |
                                |10.0.0.51
                      +--------------------+
                      |  [ Compute Node ]  |
                      |         Nova       |
                      |       L2 Agent     |
                      +--------------------+
 
Configure Controle Node on here.
By the way, Neutron needs a plugin software, it's possible to choose it from some softwares.
This example chooses Open vSwitch plugin.
[1] Add user or service for Neutron to Keystone.
# add Neutron user or service

[root@dlp ~(keystone)]#
keystone user-create --tenant service --name neutron --pass servicepassword --enabled true

+----------+----------------------------------+
| Property |              Value               |
+----------+----------------------------------+
|  email   |                                  |
| enabled  |               True               |
|    id    | 19b2235ac4964e8ebf5d02b3b5801e14 |
|   name   |             neutron              |
| tenantId | c7c887aaa12c4aedadf1d0640c2609fe |
+----------+----------------------------------+

[root@dlp ~(keystone)]#
keystone user-role-add --user neutron --tenant service --role admin
[root@dlp ~(keystone)]#
keystone service-create --name=neutron --type=network --description="Neutron Network Service"

+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
| description |     Neutron Network Service      |
|      id     | ddaadf5dc8b845e5861c5b84310a67f7 |
|     name    |             neutron              |
|     type    |             network              |
+-------------+----------------------------------+

# define Neutron Server's IP

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

+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
|   adminurl  |      http://10.0.0.30:9696/      |
|      id     | 1b4c6ca316e446ba8add3e4c688fae9e |
| internalurl |      http://10.0.0.30:9696/      |
|  publicurl  |      http://10.0.0.30:9696/      |
|    region   |            RegionOne             |
|  service_id | ddaadf5dc8b845e5861c5b84310a67f7 |
+-------------+----------------------------------+
[2] Install Neutron Server
# install from EPEL OpenStack, EPEL

[root@dlp ~(keystone)]#
yum --enablerepo=openstack-havana,epel -y install openstack-neutron openstack-neutron-openvswitch
[3] Configure Neutron Server
# initial setup

[root@dlp ~(keystone)]#
neutron-server-setup --plugin openvswitch

Neutron plugin: openvswitch
Plugin: openvswitch => Database: ovs_neutron
Please enter the password for the 'root' MySQL user:  
# MySQL root password

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

Configuration updates complete!
[root@dlp ~(keystone)]#
vi /etc/neutron/neutron.conf
# line 5: specify QPID's hostname or IP

qpid_hostname =
10.0.0.30
# line 40: uncomment

bind_host = 0.0.0.0
# line 43: uncomment

bind_port = 9696
# line 111: uncomment

control_exchange = neutron
# line 302: uncomment and change

root_helper =
sudo neutron-rootwrap /etc/neutron/rootwrap.conf
# line 312: uncomment all and change

admin_tenant_name =
service

admin_user =
neutron

admin_password =
servicepassword

auth_host =
10.0.0.30

auth_port = 35357
auth_protocol = http
[root@dlp ~(keystone)]#
/etc/rc.d/init.d/neutron-server start

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

Matched Content
 
Tweet