-
Notifications
You must be signed in to change notification settings - Fork 1
NeutronServerNecPlugin
Akihiro MOTOKI edited this page Dec 8, 2013
·
4 revisions
- Install neutron server and plugin.
sudo aptitude install neutron-server neutron-plugin-nec
- Edit
/etc/default/neutron-server
so that neutron-server reads the correct plugin configuration file. neutron-server package does not configure the plugin configuration file during the installation. It may be improved in the future but I am not sure.
NEUTRON_PLUGIN_CONFIG="/etc/neutron/plugins/nec/nec.ini"
- Edit
/etc/neutron/neutron.conf
.
[DEFAULT]
core_plugin = neutron.plugins.nec.nec_plugin.NECPluginV2
allow_overlapping_ips = True
rabbit_host = controller
rabbit_userid = guest
rabbit_password = RABBIT_PASS
[agent]
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
[keystone_authtoken]
auth_host = controller
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = neutron
admin_password = NEUTRON_PASS
[database]
connection = mysql://neutron:NEUTRON_DBPASS@controller/neutron
-
core_plugin
must be configured. - Set
allow_overlapping_ips
toTrue
if you want to allow overlapping IPs across tenants.
- Edit
/etc/neutron/plugins/nec/nec.ini
.
[ofc]
# Specify OpenFlow Controller Host, Port and Driver to connect.
host = 10.56.45.210
port = 8888
# Drivers are in neutron/plugins/nec/drivers/ .
driver = trema
[securitygroup]
# Firewall driver for realizing neutron security group function
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
- ofc.host, ofc.port: Configure host and port number of REST API of OpenFlow controller.
- ofc.driver : Specify the driver for OpenFlow controller.
-
trema
: Trema Sliceable Switch -
pfc_v5
(akapfc
),pfc_v4
: NEC ProgrammableFlow OpenFlow Controller
-
- securitygroup.firewall_driver: It is required only if neutron-plugin-nec-agent is running on the controller node.
-
Remove the following
root_helper
from/etc/neutron/plugins/nec/nec.ini
becauseneutron.conf
has this entry.
# Use "sudo neutron-rootwrap /etc/neutron/rootwrap.conf" to use the real
# root filter facility.
# Change to "sudo" to skip the filtering and just run the comand directly
root_helper = sudo
- Create neutron database.
# mysql -u root -p
mysql> CREATE DATABASE neutron;
mysql> GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost' \
IDENTIFIED BY 'NEUTRON_DBPASS';
mysql> GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%' \
IDENTIFIED BY 'NEUTRON_DBPASS';
- Create neutron user and endpoint.
keystone user-create --name=neutron --pass=NEUTRON_PASS [email protected]
keystone user-role-add --user=neutron --tenant=service --role=admin
keystone service-create --name=neutron --type=network \
--description="OpenStack Networking Service"
keystone endpoint-create \
--service-id <neutron_service_id> \
--publicurl http://controller:9696 \
--adminurl http://controller:9696 \
--internalurl http://controller:9696
- Restart neutron server.
sudo service neutron-server restart