Installing the ML2 plugin
RHEL-based distributions, such as CentOS, require the installation of the openstack-neutron-ml2
package on all nodes as follows:
# yum install openstack-neutron-ml2
Creating a database for ML2
The ML2 plugin attempts to use a common database and schema that can be shared amongst multiple layer 2 agents. On the controller node, create a new database specifically for use with the ML2 plugin using the MySQL client:
# mysql -u root -p
Use the password set earlier in the OpenStack installation. In this guide, the password was set to openstack
.
At the mysql>
prompt, execute the following commands to create a database named neutron_ml2
and to grant permissions to the existing neutron
user:
CREATE DATABASE neutron_ml2; GRANT ALL PRIVILEGES ON neutron_ml2.* TO 'neutron'@'localhost' IDENTIFIED BY 'neutron'; GRANT ALL PRIVILEGES ON neutron_ml2.* TO 'neutron'@'%'; QUIT;
Use crudini
to overwrite the existing database connection...