5
Installing OpenStack plug-ins
The SeerEngine-DC Neutron plug-ins are installed on the OpenStack control node.
Setting up the basic environment
Before installing SeerEngine-DC Neutron plug-ins on the OpenStack control node, set up the basic
environment on the node.
To set up the basic environment:
1.
Update the software source list, and then download and install the Python tools.
The following uses commands on a CentOS operating system as an example.
[root@controller ~]# yum clean all
[root@controller ~]# yum makecache
[root@controller ~]# yum install –y python-pip python-setuptools
2.
Install runlike.
[root@controller ~]# pip install runlike
3.
Access the
neutron_server
container and edit the
/etc/hosts
file. Add the following
information to the file.
IP and name mappings of all hosts in this OpenStack environment. To obtain this
information, access the SeerEngine-DC controller and select
Provision
>
Domains
>
Hosts
.
IP and name mappings of all leaf, spine, and border devices in this scenario. To obtain this
information, access the SeerEngine-DC controller and select
Provision
>
Inventory
>
Devices
.
Installing the SeerEngine-DC Neutron plug-ins
Obtaining the SeerEngine-DC Neutron plug-in installation
package
The SeerEngine-DC Neutron plug-ins are included in the SeerEngine-DC OpenStack package.
Obtain the SeerEngine-DC OpenStack package of the required version and then save the package
to the target installation directory on the server or virtual machine.
Alternatively, transfer the installation package to the target installation directory through a file transfer
protocol such as FTP, TFTP, or SCP. Use the binary transfer mode to prevent the software package
from being corrupted during transit.
Installing the SeerEngine-DC Neutron plug-ins on the
OpenStack control node
1.
Create the startup scripts for the
neutron-server
and
h3c-agent
containers.
[root@controller ~]# runlike neutron_server>docker-neutron-server.sh
[root@controller ~]# cp docker-neutron-server.sh docker-h3c-agent.sh
[root@controller ~]# sed -i 's/neutron-server/h3c-agent/g' docker-h3c-agent.sh
[root@controller ~]# sed -i 's/neutron_server/h3c_agent/g' docker-h3c-agent.sh
2.
Modify the
neutron.conf
configuration file.