<commit_before>= Controller Node

[IMPORTANT]
Follow the Red Hat documentation's
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/6/html/Deploying_OpenStack_Learning_Environments/sect-Configure_the_Networking_Service.html[7.4. Configure the Networking Service]
instructions, but *note the following differences*.

. *7.4.1. Configure OpenStack Networking Service Authentication*
+
====
Apply as is.
====

. *7.4.2. Configure RabbitMQ Message Broker Settings for the Networking Service*
+
====
Apply as is.
====

. *7.4.3. Set the OpenStack Networking Service Plug-in*
+
====
Do *not* apply. Instead, perform the following steps:

.. Edit the `/etc/neutron/neutron.conf` file and add the following keys
to the `[DEFAULT]` section:
+
[source]
----
[DEFAULT]
...
core_plugin = midonet.neutron.plugin.MidonetPluginV2
allow_overlapping_ips = True
----
+
[NOTE]
Make sure to not leave any space at the starting of lines in any configuration
file (this applies to all configuration files).

.. Create the directory for the MidoNet plugin:
+
[source]
----
mkdir /etc/neutron/plugins/midonet
----

.. Create the `/etc/neutron/plugins/midonet/midonet.ini` file and edit it to
contain the following:
+
[literal,subs="quotes"]
----
[DATABASE]
sql_connection = mysql://neutron:**_NEUTRON_DBPASS_**@*_controller_*/neutron

[MIDONET]
# MidoNet API URL
midonet_uri = http://*_controller_*:8080/midonet-api
# MidoNet administrative user in Keystone
username = *_midonet_*
password = <PASSWORD>*
# MidoNet administrative user's tenant
project_id = services
----

.. Create a symbolic link to direct Neutron to the MidoNet configuration:
+
[source]
----
# ln -s /etc/neutron/plugins/midonet/midonet.ini /etc/neutron/plugin.ini
----
====

. *7.4.4. VXLAN and GRE tunnels*
+
====
Do *not* apply.
====

. *7.4.5. Configure Open vSwitch tunneling*
+
====
Do *not* apply.
====

. *7.4.6. Configure the OpenStack Networking SQL database connection*
+
====
Do *not* apply.
====

. *7.4.7. Create the OpenStack Networking Database*
+
====
Do *not* apply.

Instead, create the database as follows:

[literal,subs="quotes"]
----
$ mysql -u root -p
CREATE DATABASE neutron;
GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost' IDENTIFIED BY '*_NEUTRON_DBPASS_*';
GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%' IDENTIFIED BY '*_NEUTRON_DBPASS_*';
FLUSH PRIVILEGES;
quit
----
====

. *7.4.8. Launch the OpenStack Networking Service*
+
====
Apply as is.
====
<commit_msg>QSG RHEL 7 Juno (OSP): Added neutron-db-manage command<commit_after>= Controller Node

[IMPORTANT]
Follow the Red Hat documentation's
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/6/html/Deploying_OpenStack_Learning_Environments/sect-Configure_the_Networking_Service.html[7.4. Configure the Networking Service]
instructions, but *note the following differences*.

. *7.4.1. Configure OpenStack Networking Service Authentication*
+
====
Apply as is.
====

. *7.4.2. Configure RabbitMQ Message Broker Settings for the Networking Service*
+
====
Apply as is.
====

. *7.4.3. Set the OpenStack Networking Service Plug-in*
+
====
Do *not* apply. Instead, perform the following steps:

.. Edit the `/etc/neutron/neutron.conf` file and add the following keys
to the `[DEFAULT]` section:
+
[source]
----
[DEFAULT]
...
core_plugin = midonet.neutron.plugin.MidonetPluginV2
allow_overlapping_ips = True
----
+
[NOTE]
Make sure to not leave any space at the starting of lines in any configuration
file (this applies to all configuration files).

.. Create the directory for the MidoNet plugin:
+
[source]
----
mkdir /etc/neutron/plugins/midonet
----

.. Create the `/etc/neutron/plugins/midonet/midonet.ini` file and edit it to
contain the following:
+
[literal,subs="quotes"]
----
[DATABASE]
sql_connection = mysql://neutron:**_NEUTRON_DBPASS_**@*_controller_*/neutron

[MIDONET]
# MidoNet API URL
midonet_uri = http://*_controller_*:8080/midonet-api
# MidoNet administrative user in Keystone
username = *_midonet_*
password = <PASSWORD>*
# MidoNet administrative user's tenant
project_id = services
----

.. Create a symbolic link to direct Neutron to the MidoNet configuration:
+
[source]
----
# ln -s /etc/neutron/plugins/midonet/midonet.ini /etc/neutron/plugin.ini
----
====

. *7.4.4. VXLAN and GRE tunnels*
+
====
Do *not* apply.
====

. *7.4.5. Configure Open vSwitch tunneling*
+
====
Do *not* apply.
====

. *7.4.6. Configure the OpenStack Networking SQL database connection*
+
====
Do *not* apply.
====

. *7.4.7. Create the OpenStack Networking Database*
+
====
Do *not* apply.

Instead, create the database as follows:

[literal,subs="quotes"]
----
$ mysql -u root -p
CREATE DATABASE neutron;
GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost' IDENTIFIED BY '*_NEUTRON_DBPASS_*';
GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%' IDENTIFIED BY '*_NEUTRON_DBPASS_*';
FLUSH PRIVILEGES;
quit
----

Afterwards, run the `neutron-db-manage` command:

[source]
----
# neutron-db-manage \
  --config-file /usr/share/neutron/neutron-dist.conf \
  --config-file /etc/neutron/neutron.conf \
  --config-file /etc/neutron/plugin.ini \
  upgrade head
----
====

. *7.4.8. Launch the OpenStack Networking Service*
+
====
Apply as is.
====

{'fraction_non_alphanumeric': 0.14828175431934687, 'fraction_numerical': 0.012340991076514145, 'mean_word_length': 4.139512195121951, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3639493', 'n_tokens_mistral': 1908, 'n_tokens_neox': 1811, 'n_words': 508}