- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
01-Text | 1013.95 KB |
Contents
SeerEngine-DC Neutron plug-ins
SeerEngine-DC Neutron security plug-ins
Installing OpenStack cloud platforms
Installing SeerEngine-DC Neutron plug-ins and patches on OpenStack
Configuring interoperability in the KVM host-based overlay scenario
Installing and configuring plug-ins on the controller node
Installing and configuring plug-ins on a compute node
Configuring interoperability in the KVM network-based overlay scenario
Installing and configuring plug-ins on the controller node
Installing and configuring plug-ins on a compute node
(Optional.) Installing and configuring plug-ins on the DHCP failover node
CentOS 7.2.1511 operating system
OpenEuler 21.10 ARM operating system
Configuring interoperability in the network-based overlay with SR-IOV enabled scenario
Installing and configuring plug-ins on the controller node
Installing and configuring plug-ins on a compute node
Editing the configuration file
Configuring interoperability with F5 or third-party load balancers
Installing and configuring plug-ins on the controller node
Installing and configuring plug-ins on a compute node
Configuring interoperability with third-party firewalls
Installing and configuring plug-ins on the controller node
Installing and configuring plug-ins on a compute node
Configuring interoperability with Ironic
Installing and configuring plug-ins on the controller node
Installing and configuring OpenStack plug-ins on the controller node
Installing and configuring OpenStack plug-ins on the compute node
Setting up the environment for the traditional VLAN and VXLAN-based Metadata solution
Installing the SeerEngine-DC Neutron security plug-ins on OpenStack
Installing the security plug-ins on the controller node
Obtaining the installation package
Installing the security plug-ins on the OpenStack controller node
Editing the configuration files on the OpenStack controller node
(Optional.) Upgrading the SeerEngine-DC Neutron security plug-ins
Comparing and synchronizing firewall resource information between the cloud platform and controller
Comparing and synchronizing LB resource information between the cloud platform and controller
Upgrading non-converged plug-ins to converged plug-ins
Comparing and synchronizing resource information between the controller and cloud platform
CLI-based management of VPC connections and floating IP addresses
CLI-based management of VPC connections
CLI-based management of floating IP addresses
The Inter X700 Ethernet network adapter series fails to receive LLDP messages. What should I do?
VM instances fail to be created in a normal environment. What should I do?
Overview
This document describes how to install OpenStack plug-ins including SeerEngine-DC Neutron plug-ins, Nova patch, openvswitch-agent patch, and DHCP failover components.
SeerEngine-DC Neutron plug-ins
Neutron is a type of OpenStack services used to manage all virtual networking infrastructures (VNIs) in an OpenStack environment. It provides virtual network services to the devices managed by OpenStack computing services.
SeerEngine-DC Neutron plug-ins are developed for SeerEngine-DC based on the OpenStack framework. SeerEngine-DC Neutron plug-ins can obtain network configuration from OpenStack through REST APIs and synchronize the configuration to SeerEngine-DC. They can obtain settings for the tenants' networks, subnets, routers, or ports.
CAUTION: To avoid service interruptions, do not modify the settings issued by the cloud platform on the controller, such as the virtual link layer network, vRouter, and vSubnet settings after the plug-ins connect to the OpenStack cloud platform. |
Nova patch
Nova is an OpenStack computing control software that provides virtual services for users. The virtual services include creating, starting up, shutting down, and migrating virtual machines and setting configuration information for the virtual machines, such as CPU and memory information.
In specific scenarios (such as a host-based overlay or vCenter network-based overlay scenario), you must install the Nova patch to enable virtual machines created by OpenStack to access networks managed by SeerEngine-DC. Kylin V10 operating systems do not support Nova patch installation.
Openvswitch-agent patch
The open source openvswitch-agent process on an OpenStack compute node might fail to deploy VLAN flow tables to open source vSwitches when the following conditions exist:
· The kernel-based virtual machine (KVM) technology is used on the node.
· The hierarchical port binding feature is configured on the node.
To resolve this issue, you must install the openvswitch-agent patch.
Kylin V10 operating systems do not support Openvswitch-agent patch installation.
DHCP failover components
Kylin V10 operating systems do not support installing DHCP failover components.
DHCP component
In the network-based overlay scenario, only a controller is currently allowed to assign addresses to virtual machines or bare metal servers as a DHCP server. When the controller is disconnected from the southbound network, the virtual machines or bare metal servers will not be able to renew and reobtain addresses through DHCP. To resolve the issue, you can install the DHCP component on the DHCP failover node to provide DHCP failover in the network-based overlay scenario. When the controller loses connection to the southbound network, the virtual machines or bare metal servers can renew and reobtain addresses through the independently deployed DHCP server.
Metadata component
In the DHCP failover scenario, you must install a Metadata component on the DHCP failover node to provide the Metadata function for the DHCP component.
SeerEngine-DC Neutron security plug-ins
The SeerEngine-DC Neutron security plug-ins are designed for SeerEngine-DC and meet the OpenStack requirements. They implement all features of security plugins (such as Fwaas, Lbaas, and Vpnaas). They can synchronize the security configurations obtained from OpenStack to SeerEngine-DC through REST API, which allows tenants to schedule security network resources. The synchronized security configurations include tenants' firewalls (FW), load balancers (LB), and VPNs.
Kylin V10 OS does not support installing security plug-ins.
Restrictions and guidelines
This document describes interoperability between SeerEngine-DC with one OpenStack platform that contains one controller node. In other scenarios, follow these restrictions and guidelines:
· SeerEngine-DC interoperates with one OpenStack platform that contains multiple controller nodes.
Configure all controller nodes on the OpenStack platform in the same way a single controller is configured, and make sure the configuration on all controller nodes is the same.
· SeerEngine-DC interoperates with multiple OpenStack platforms. Only OpenStack Queens and Rocky are supported.
¡ Install plug-ins on all controller nodes on each OpenStack platform, and configure interoperability parameters, including the cloud_region_name parameter in ml2_conf.ini of the SeerEngine-DC Neutron.
[SDNCONTROLLER]
cloud_region_name = default
cloud_region_name represents the name of the cloud platform. The default value is default. Make sure the value for this parameter is the same as the cloud platform name added on the Automation > Data Center Networks > Virtual Networking > OpenStack page on the controller. Make sure the cloud platform name and VXLAN VNI for each cloud platform and the host name of each node are unique across the OpenStack platforms.
¡ If each OpenStack platform uses an exclusive keystone service, verify that SeerEngine-DC can interoperate with each OpenStack platform and each platform can deploy services to its tenant.
¡ If multiple OpenStack platforms share the same keystone service, verify that SeerEngine-DC can interoperate with each OpenStack platform and all platforms can deploy services to the same tenant.
· Check the OpenStack version and OSs. Table 1 shows the software requirements for installing the SeerEngine-DC Neutron plug-ins, Nova patch, or openvswitch-agent patch.
Item |
Supported versions |
OpenStack (deployed on CentOS or Kylin V10 with YUM) |
· OpenStack Kilo 2015.1 on CentOS 7.1.1503 · OpenStack Liberty on CentOS 7.1.1503 · OpenStack Mitaka on CentOS 7.1.1503 · OpenStack Newton on CentOS 7.2.1511 · OpenStack Ocata on CentOS 7.2.1511 · OpenStack Pike on CentOS 7.2.1511 or Kylin V10 · OpenStack Queens on CentOS 7.4.1708 · OpenStack Rocky on CentOS 7.2.1511 · OpenStack Stein on CentOS 7.4.1708 · OpenStack Train on CentOS 7, CentOS 8, or Kylin V10 · OpenStack Ussuri on CentOS 8 or Kylin V10 · OpenStack Victoria on CentOS 8 or Kylin V10 · OpenStack Wallaby on CentOS Stream 8 or Kylin V10 · OpenStack Xena on CentOS Stream 8 · OpenStack Yoga on CentOS Stream 8 |
IMPORTANT: · OpenStack security plug-ins cannot be installed on OpenStack Victoria, Wallaby, Xena or Yoga. · To install plug-ins on OpenStack Pike, the dnsmasq version must be 2.76. You can use the dnsmasq –v command to display the dnsmasq version number. · Make sure your system has a reliable Internet connection before you install the OpenStack plug-ins. |
Installing OpenStack cloud platforms
See the installation guide for the specific OpenStack version on the OpenStack official website to install and deploy OpenStack cloud platforms. Verify that the /etc/hosts file on all nodes has the host name-IP address mappings, and the OpenStack Neutron component has been deployed.
Preprovisioning SeerEngine-DC
SeerEngine-DC preprovisioning provides only basic configuration for SeerEngine-DC. For detailed configuration for different scenarios, see the configuration guides.
Table 2 SeerEngine-DC preprovisioning
Configuration |
Path |
Fabrics |
Automation > Data Center Networks > Fabrics > Fabrics |
VDS |
Automation > Data Center Networks > Common Network Settings > Virtual Distributed Switch |
Address pools |
Automation > Data Center Networks > Resource Pools > IP Address Pools |
VNID pools (VLANs, VXLANs, and VLAN-VXLAN mappings) |
Automation > Data Center Networks > Resource Pools > VNID Pools > VLANs Automation > Data Center Networks > Resource Pools > VNID Pools > VXLANs Automation > Data Center Networks > Resource Pools > VNID Pools > VLAN-VXLAN Mappings |
Adding access and border devices to a fabric |
Automation > Data Center Networks > Fabrics > Fabrics |
L4-L7 physical devices, resource pools, and profiles |
Automation > Data Center Networks > Resource Pools > Devices > Physical Devices Automation > Data Center Networks > Resource Pools > Devices > L4-L7 Physical Resource Pools |
Gateway |
Automation > Data Center Networks > Common Network Settings > Gateways |
Domains and hosts |
Automation > Data Center Networks > Fabrics > Domains Automation > Data Center Networks > Fabrics > Domains > Hosts |
Interoperability with OpenStack |
Automation > Data Center Networks > Virtual Networking > OpenStack NOTE: · You must specify the cloud platform name. It is case sensitive and must be the same as the value for the cloud_region_name parameter in the ml2_conf.ini file of the Neutron plug-in. · Make the VNI range is the same as the VXLAN VNI range on the cloud platform. |
Installing SeerEngine-DC Neutron plug-ins and patches on OpenStack
The SeerEngine-DC Neutron plug-ins, Nova patch, openvswitch-agent patch, and DHCP failover components can be installed on different OpenStack versions. The installation package varies by OpenStack version. However, you can use the same procedure to install the Neutron plug-ins, Nova patch, or openvswitch-agent patch on different OpenStack versions.
Install the SeerEngine-DC Neutron plug-ins on an OpenStack controller node, the Nova patch and openvswitch-agent patch on an OpenStack compute node, and the DHCP failover components on the DHCP failover node. Before installation, you must install the Python tools on the associated node.
Installing the Python tools
Before installing the plug-ins, first you must download the Python tools online and install them.
To download and install the Python tools:
1. Update the software source list.
[root@localhost ~]# yum clean all
[root@localhost ~]# yum makecache
2. Download and install the Python tools.
¡ CentOS 8, CentOS Stream 8, and Kylin V10 operating systems (OpenStack version: Train, Ussuri, Victoria, or Wallaby):
[root@localhost ~]# yum install –y python3-pip python3-setuptools
¡ Other CentOS operating systems and Kylin V10 operating system (OpenStack version: Pike):
[root@localhost ~]# yum install –y python-pip python-setuptools
3. Log in to the controller node to edit the /etc/hosts file:
a. Add the IP and name mappings for all OpenStack hosts on the Automation > Data Center Networks > Fabrics > Domains > Hosts page on SeerEngine-DC.
b. Add the IP and name mappings of all leaf, spine, and boarder devices on the Automation > Data Center Networks > Resource Pools > Devices > Physical Devices page on SeerEngine-DC.
[root@localhost ~]# vim /etc/hosts
127.0.0.1 localhost
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
99.0.83.75 controller
99.0.83.76 compute1
99.0.83.77 compute2
99.0.83.78 nfs-server
99.0.83.79 compute3
99.0.83.74 compute4
4. Install websocket-client on the controller node.
¡ CentOS 8, CentOS Stream 8, and Kylin V10 operating systems (OpenStack version: Train, Ussuri, Victoria, or Wallaby):
[root@localhost ~]# yum install –y python3-websocket-client
¡ Other CentOS operating systems and Kylin V10 operating system (OpenStack version: Pike):
[root@localhost ~]# yum install –y python-websocket-client
IMPORTANT: The version requirement on websocket-client varies by operating system type as follows: · For CentOS operating systems, the version of python-websocket-client and the version of python3-websocket-client must be 0.56. · For Kylin V10 operating systems, the version of python-websocket-client and the version of python3-websocket-client must be 0.47 or 0.56. |
Configuring interoperability in the KVM host-based overlay scenario
Installing and configuring plug-ins on the controller node
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 controller node
CAUTION: The QoS feature will not operate correctly if you configure the database connection in configuration file neutron.conf as follows: This is an open source bug in OpenStack. To prevent this problem, configure the database connection as follows: The three dots (…) in the command line represents the neutron database link information. |
Some parameters must be configured with the required values as described in "Parameters and fields."
To install the SeerEngine-DC Neutron plug-ins:
1. Access the directory where the SeerEngine-DC OpenStack package (an .egg, .whl, or .rpm file) is saved, and install the package on the OpenStack controller node. In the following examples, the SeerEngine-DC OpenStack package is in the /root directory.
The name and the installation method of the SeerEngine-DC OpenStack package vary by operating system type as follows:
¡ The name of an .egg file is SeerEngine_DC_PLUGIN-version-py2.7.egg or SeerEngine_DC_PLUGIN-version-py3.6.egg. The version argument represents the version of the package.
- CentOS operating systems (Python2.7):
[root@localhost ~]# easy_install SeerEngine_DC_PLUGIN-E3608-py2.7.egg
- Kylin V10 operating systems with OpenStack Pike:
[root@localhost ~]# easy_install SeerEngine_DC_PLUGIN-E6203-py2.7.egg
¡ The name of an .whl file is SeerEngine_DC_PLUGIN-version-py3-none-any.whl. The version argument represents the version of the package.
- CentOS operating systems (Python3):
[root@localhost ~]# pip3 install SeerEngine_DC_PLUGIN-E6401-py3-none-any.whl
- Kylin V10 operating systems with OpenStack Train, Ussuri, Victoria, or Wallaby:
[root@localhost ~]# pip3 install SeerEngine_DC_PLUGIN-E6401-py3-none-any.whl
¡ The name of an .rpm file is SeerEngine_DC_PLUGIN-version-1-py2.7.noarch.rpm or SeerEngine_DC_PLUGIN-version-1-py3.6.noarch.rpm. The version argument represents the version of the package.
To install an .rpm file on a CentOS operating system (Python2.7):
[root@localhost ~]# rpm -ivh SeerEngine_DC_PLUGIN-E6402-1-py2.7.noarch.rpm
To install an .rpm file on a CentOS operating system (Python3):
[root@localhost ~]# rpm -ivh SeerEngine_DC_PLUGIN-E6402-1-py3.6.noarch.rpm
|
NOTE: Kylin V10 operating systems do not support .rpm file installation. |
2. Change the user group and permissions of the plug-in file to be consistent with those of the Neutron file.
¡ CentOS 8 and CentOS Stream 8 operating systems:
[root@localhost ~]# cd /usr/local/lib/python3.6/site-packages
[root@localhost ~]# chown -R --reference=/usr/lib/python3.6/site-packages/neutron *h3c
[root@localhost ~]# chmod -R --reference=/usr/lib/python3.6/site-packages/neutron *h3c
[root@localhost ~]# cd /usr/local/bin
[root@localhost ~]# chown -R --reference=/usr/bin/neutron-server h3c*
[root@localhost ~]# chmod -R --reference=/usr/bin/neutron-server h3c*
¡ Other CentOS operating systems and Kylin V10 operating system (with OpenStack Pike):
[root@localhost ~]# cd /usr/lib/python2.7/site-packages
[root@localhost ~]# chown -R --reference=neutron SeerEngine*
[root@localhost ~]# chmod -R --reference=neutron SeerEngine*
[root@localhost ~]# cd /usr/bin
[root@localhost ~]# chown -R --reference=neutron-server h3c*
[root@localhost ~]# chmod -R --reference=neutron-server h3c*
¡ Kylin V10 operating systems (with OpenStack Train, Ussuri, Victoria, or Wallaby):
[root@localhost ~]# cd /usr/local/lib/python3.7/site-packages/
[root@localhost site-packages]# chown -R --reference=/usr/lib/python3.7/site-packages/neutron *h3c
[root@localhost site-packages]# chmod -R --reference=/usr/lib/python3.7/site-packages/neutron *h3c
[root@localhost site-packages]# cd /usr/local/bin
[root@localhost bin]# chown -R --reference=/usr/bin/neutron-server h3c*
[root@localhost bin]# chmod -R --reference=/usr/bin/neutron-server h3c*
3. Install the SeerEngine-DC Neutron plug-ins.
[root@localhost bin]# cd
[root@localhost ~]# h3c-sdnplugin controller install
¡ If Neutron is developed based on OpenStack Newton, execute the following command to install the SeerEngine-DC Neutron plug-ins:
[root@localhost ~]# h3c-sdnplugin controller install --neutron_version newton
¡ If Neutron is developed based on OpenStack Pike execute the following command to install the SeerEngine-DC Neutron plug-ins:
[root@localhost ~]# h3c-sdnplugin controller install --neutron_version pike
IMPORTANT: Before executing the h3c-sdnplugin controller install command, make sure no neutron.conf file exists in the /root directory. If such a file exists, delete it or move it to another location. |
Editing the configuration file
1. Modify the neutron.conf configuration file.
a. Use the vi editor to open the neutron.conf configuration file.
[root@localhost ~]# vi /etc/neutron/neutron.conf
b. Press I to switch to insert mode, and modify the configuration file. For information about the parameters, see "neutron.conf."
If the operating system type is Kylin V10 and the OpenStack version is Train, Ussuri, Victoria, or Wallaby:
[DEFAULT]
core_plugin = ml2
service_plugins = h3c_l3_router,qos,h3c_port_forwarding
If the operating system type is CentOS and the OpenStack version is Train, Ussuri, Victoria, Wallaby, Xena, or Yoga:
[DEFAULT]
core_plugin = ml2
service_plugins = h3c_l3_router,qos,h3c_port_forwarding,h3c_bgp_neighbor,h3c_taas,h3c_trunk
[service_providers]
service_provider= BGP_NEIGHBOR:H3C:networking_h3c.l3_router.h3c_bgp_neighbors_driver.H3CBgpNeighborsDriver:default
service_provider= TAAS:H3C:networking_h3c.l3_router.h3c_tap_services.H3CTapServicesDriver:default
service_provider=EXROUTE:H3C:networking_h3c.l3_router.h3c_exroutes_driver.H3CExroutesDriver:default
If the OpenStack version is OpenStack Queens, Rocky, or Stein:
[DEFAULT]
core_plugin = ml2
service_plugins = h3c_l3_router,qos,h3c_port_forwarding
If the OpenStack version is Pike:
[DEFAULT]
core_plugin = ml2
service_plugins = h3c_l3_router,qos,h3c_port_forwarding
If the OpenStack version is Mitaka and QoS services are deployed in OpenStack:
[DEFAULT]
core_plugin = ml2
service_plugins = h3c_l3_router,qos,h3c_bgp_neighbor,h3c_taas,h3c_trunk
[qos]
notification_drivers = message_queue,qos_h3c
[service_providers]
service_provider= BGP_NEIGHBOR:H3C:networking_h3c.l3_router.h3c_bgp_neighbors_driver.H3CBgpNeighborsDriver:default
service_provider= TAAS:H3C:networking_h3c.l3_router.h3c_tap_services.H3CTapServicesDriver:default
service_provider=EXROUTE:H3C:networking_h3c.l3_router.h3c_exroutes_driver.H3CExroutesDriver:default
If the OpenStack version is Liberty, Newton, or Ocata and QoS services are deployed in OpenStack:
[DEFAULT]
core_plugin = ml2
service_plugins = h3c_l3_router,qos
[qos]
notification_drivers = message_queue,qos_h3c
If the OpenStack version is Kilo 2015.1:
[DEFAULT]
core_plugin = ml2
service_plugins = h3c_l3_router
IMPORTANT: · OpenStack Kilo does not support QoS. You do not need to specify QoS in the service_plugins parameter. · The open source port forwarding software has known problems and is not compatible with the Neutron plug-in L3 Plugin. As a best practice, use h3c_port_forwarding Plugin in the Neutron plug-in, and make sure the Neutron community version has resolved the known BUG #1799135. |
c. Press Esc to quit insert mode, and enter :wq to exit the vi editor and save the neutron.conf file.
IMPORTANT: If the operating system type is CentOS, OpenStack Mitaka, Pike, Queens, Rocky, Stein, Train, Ussuri, Victoria, Wallaby, Xena, and Yoga can allow inter-VPC traffic to pass through a firewall. To achieve this goal, you need to add configuration as shown in Table 3 to the neutron.conf configuration file. |
OpenStack version |
Configuration to add to the neutron.conf configuration file for inter-VPC traffic to pass through the firewall |
|
Mitaka |
Network cloud scenario |
|
Pike |
Non-network cloud scenario |
If the service_plugins parameter is set to h3c_vpc_connection_pike in the pre-upgrade environment, change the parameter value to h3c_vpc_connection_general as a best practice. The api_extensions_path setting can be obtained as follows: |
Queens,Rocky, and Stein |
Non-network cloud scenario |
The api_extensions_path setting can be obtained as follows: |
Train, Ussuri, Victoria Wallaby, Xena, and Yoga |
Network cloud scenario |
|
Non-network cloud scenario |
The api_extensions_path setting can be obtained as follows: |
2. Modify the ml2_conf.ini configuration file.
a. Use the vi editor to open the ml2_conf.ini configuration file.
[root@localhost ~]# vi /etc/neutron/plugins/ml2/ml2_conf.ini
b. Press I to switch to insert mode, and set the parameters in the ml2_conf.ini configuration file. For information about the parameters, see "ml2_conf.ini."
[ml2]
type_drivers = vxlan,vlan
tenant_network_types = vxlan,vlan
mechanism_drivers = ml2_h3c
extension_drivers = ml2_extension_h3c,qos
[ml2_type_vlan]
network_vlan_ranges = physicnet1:1000:2999,port_security
[ml2_type_vxlan]
vni_ranges = 1:500
c. Press Esc to quit insert mode, and enter :wq to exit the vi editor and save the ml2_conf.ini file.
3. Modify the ml2_conf.ini configuration file after the SeerEngine-DC Neutron plug-in is installed.
a. Use the vi editor to open the ml2_conf.ini configuration file.
[root@localhost ~]# vi /etc/neutron/plugins/ml2/ml2_conf.ini
b. Press I to switch to insert mode, and set the following parameters in the ml2_conf.ini configuration file. For information about the parameters, see "ml2_conf_h3c.ini."
[SDNCONTROLLER]
url = http://127.0.0.1:30000
username = admin
password = Pwd@12345
domain = sdn
timeout = 1800
retry = 10
vhostuser_mode = server
white_list = False
use_neutron_credential = False
output_json_log = False
vendor_rpc_topic = VENDOR_PLUGIN
hierarchical_port_binding_physicnets = ANY
hierarchical_port_binding_physicnets_prefix = physicnet
enable_dhcp_hierarchical_port_binding = False
enable_security_group = True
enable_https = False
neutron_plugin_ca_file =
neutron_plugin_cert_file =
neutron_plugin_key_file =
enable_iam_auth = False
sdnc_rpc_url = ws://127.0.0.1:30000
sdnc_rpc_ping_interval = 60
websocket_fragment_size = 102400
enable_l3_router_rpc_notify = False
qos_rx_limit_min = 0
cloud_region_name = default
enable_h3c_l3_exroute = False
neutron_black_list =
black_list_matching =
force_vlan_port_details_qvo = True
neutron_version =
neutron_domain_name =
enable_encrypted_authentication = False
enable_neutron_rpc = True
c. Press Esc to quit insert mode, and enter :wq to exit the vi editor and save the ml2_conf.ini file.
4. If you have set the white_list parameter to True, add an authentication-free user to the controller.
¡ Enter the IP address of the host where the Neutron server resides.
¡ Specify the role as Admin.
5. If you have set the use_neutron_credential parameter to True, perform the following steps:
a. Modify the neutron.conf configuration file.
# Use the vi editor to open the neutron.conf configuration file.
# Press I to switch to insert mode, and add the following configuration. For information about the parameters, see "neutron.conf."
[keystone_authtoken]
admin_user = neutron
admin_password = KEYSTONE_PASS
# Press Esc to quit insert mode, and enter :wq to exit the vi editor and save the neutron.conf file.
b. Add an admin user to the controller.
# Configure the username as neutron.
# Specify the role as Admin.
# Enter the password of the neutron user in OpenStack.
6. Restart the neutron-server service.
[root@localhost ~]# service neutron-server restart
neutron-server stop/waiting
neutron-server start/running, process 4583
Verifying the installation
# Verify that the SeerEngine-DC OpenStack package is correctly installed. If the correct software and OpenStack versions are displayed, the package is successfully installed.
· .egg file
¡ CentOS 8 and CentOS Stream 8 operating systems:
[root@localhost ~]# pip3 freeze | grep PLUGIN
SeerEngine-DC-PLUGIN===E6102
¡ Other CentOS operating systems and Kylin V10 operating system (with OpenStack Pike):
[root@localhost ~]# pip freeze | grep PLUGIN
SeerEngine-DC-PLUGIN===E3608
¡ Kylin V10 operating systems (with OpenStack Train, Ussuri, Victoria, or Wallaby):
[root@localhost ~]# pip3 freeze | grep PLUGIN
SeerEngine-DC-PLUGIN===E3608
· .rpm file
[root@localhost ~]# rpm -qa | grep PLUGIN
SeerEngine-DC-PLUGIN===E3608.noarch
# Verify that the neutron-server service is enabled. The service is enabled if its state is running.
[root@localhost ~]# service neutron-server status
neutron-server start/running, process 1849
Parameters and fields
This section describes parameters in configuration files and fields included in parameters.
neutron.conf
Parameter |
Required value |
Description |
core_plugin |
ml2 |
Used for loading the core plug-in ml2 to OpenStack. |
service_plugins |
h3c_l3_router,qos,h3c_port_forwarding,h3c_vpc_connection |
Used for loading the extension plug-ins to OpenStack. |
service_provider |
N/A |
Directory where the extension plug-ins are saved. |
notification_drivers |
message_queue,qos_h3c |
Name of the QoS notification driver. |
admin_user |
N/A |
Admin username for Keystone authentication in OpenStack, for example, neutron. |
admin_password |
N/A |
Admin password for Keystone authentication in OpenStack, for example, 123456. |
ml2_conf.ini
Parameter |
Required value |
Description |
type_drivers |
vxlan,vlan |
Driver type. vxlan must be specified as the first driver type. |
tenant_network_types |
vxlan,vlan |
Type of the networks to which the tenants belong. For intranet, only vxlan is available. For extranet, only vlan is available. · In the host overlay scenario and network overlay with hierarchical port binding scenario, vxlan must be specified as the first network type. · In the network overlay without hierarchical port binding scenario, vlan must be specified as the first network type. · In the host overlay, network overlay with hierarchical port binding, and network overlay without hierarchical port binding hybrid scenario, vxlan must be specified as the first network type. In this scenario, you can create a VLAN only from the background CLI, REST API, or Web administration interface. |
mechanism_drivers |
ml2_h3c |
Name of the ml2 driver. To create SR-IOV instances for VLAN networks, set this parameter to sriovnicswitch, ml2_h3c. To create hierarchy-supported instances, set this parameter to ml2_h3c,openvswitch. |
extension_drivers |
ml2_extension_h3c,qos |
Names of the ml2 extension drivers. Available names include ml2_extension_h3c, qos, and port_security. If the QoS feature is not enabled on OpenStack, you do not need to specify the value qos for this parameter. To not enable port security on OpenStack, you do not need to specify the port_security value for this parameter (OpenStack Kilo 2015.1, Liberty 2015.2, and Ocata 2017.1 do not support the port_security value.) OpenStack Kilo 2015.1 do not support the QoS driver. |
network_vlan_ranges |
N/A |
Value range for the VLAN ID of the extranet, for example, physicnet1:1000:2999. |
vni_ranges |
N/A |
Value range for the VXLAN ID of the intranet, for example, 1:500. |
ml2_conf_h3c.ini
Parameter |
Description |
url |
URL address for logging in to the Unified Platform, for example, http://ip_address:30000 or https://ip_address:30000. |
username |
Username for logging in to the Unified Platform, for example, admin. You do not need to configure a username when the use_neutron_credential parameter is set to True. |
password |
Password for logging in to the Unified Platform, for example, Pwd@12345. You do not need to configure a password when the use_neutron_credential parameter is set to True. If the password contains a dollar sign ($), enter a backward slash (\) before the dollar sign. |
domain |
Name of the domain where the controller resides, for example, sdn. This parameter has been deprecated. |
timeout |
The amount of time that the Neutron server waits for a response from the controller in seconds, for example, 1800 seconds. As a best practice, set the waiting time greater than or equal to 1800 seconds. |
retry |
Maximum times for sending connection requests from the Neutron server to the controller, for example, 10. |
vif_type |
Default vNIC type: · ovs · vhostuser (applied to the OVS DPDK solution) · None (only supported by Mitaka) You can set the vhostuser_mode parameter when the value of this parameter is vhostuser. For Mitaka plug-ins, if you set the value to None, you must make sure the host name is consistent with the host name of the compute node when you add a compute node on the compute domain page. When the value is None, the vNIC type can be automatically identified in a host-based overlay environment. |
vhostuser_mode |
Default DPDK vHost-user mode: · server · client The default value is server. This setting takes effect only when the value of the vif_type parameter is vhostuser. |
white_list |
Whether to enable or disable the authentication-free user feature on OpenStack. · True—Enable. · False—Disable. |
use_neutron_credential |
Whether to use the OpenStack Neutron username and password to communicate with the controller. · True—Use. · False—Do not use. |
output_json_log |
Whether to output REST API messages to the OpenStack operating logs in JSON format for communication between the SeerEngine-DC Neutron plug-ins and the controller. · True—Enable. · False—Disable. |
vendor_rpc_topic |
RPC topic of the vendor. This parameter is required when the vendor needs to obtain Neutron data from the SeerEngine-DC Neutron plug-ins. The available values are as follows: · VENDOR_PLUGIN—Default value, which means that the parameter does not take effect. · DP_PLUGIN—RPC topic of DPtech. The value of this parameter must be negotiated by the vendor and H3C. |
hierarchical_port_binding_physicnets |
Policy for OpenStack to select a physical VLAN when performing hierarchical port binding. The default value is ANY. · ANY—A VLAN is selected from all physical VLANs for VLAN ID assignment. · PREFIX—A VLAN is selected from all physical VLANs matching the specified prefix for VLAN ID assignment. |
hierarchical_port_binding_physicnets_prefix |
Prefix for matching physical VLANs. The default value is physicnet. This parameter is available only when you set the value of the hierarchical_port_binding_physicnets parameter to PREFIX. |
enable_dhcp_hierarchical_port_binding |
Whether to enable DHCP hierarchical port binding. The default value is False. · True—Enable. · False—Disable. |
enable_security_group |
Whether to deploy OpenStack security group rules to the controller. The default value is False. |
enable_https |
Whether to enable HTTPS bidirectional authentication. The default value is False. · True—Enable. · False—Disable. |
neutron_plugin_ca_file |
Save location for the CA certificate of the controller, for example, /etc/neutron/ca.crt. As a best practice, save the CA certificate in the /usr/share/neutron directory. |
neutron_plugin_cert_file |
Save location for the Cert certificate of the controller, for example, /etc/neutron/sna.pem. As a best practice, save the Cert certificate in the /usr/share/neutron directory. |
neutron_plugin_key_file |
Save location for the Key certificate of the controller, for example, /etc/neutron/sna.key. As a best practice, save the Cert certificate in the /usr/share/neutron directory. |
enable_iam_auth |
Whether to enable IAM interface authentication. · True—Enable. · False—Disable. When connecting to the Unified Platform, you can set the value to True to use the IAM interface for authentication. The default value is False. This parameter is obsolete. |
sdnc_rpc_url |
RPC interface URL of the controller. Only a WebSocket type interface is supported, for example, ws://127.0.0.1:30000. If the Unified Platform uses an HTTPS URL, the controller must uses the WebSocket Secure (wss) URL scheme. Configure this parameter based on the URL of the Unified Platform. For example, if the URL of the Unified Platform is http://127.0.0.1:30000, set this parameter to ws://127.0.0.1:30000. |
sdnc_rpc_ping_interval |
Interval at which an RPC ICMP echo request message is sent to the controller, in seconds. Int type. The default value is 60 seconds. |
websocket_fragment_size |
Size of a WebSocket fragment sent from the plug-in to the controller in the DHCP failover scenario, in bytes. Int type. The value is an integer equal to or larger than 1024. The default value is 102400. If the value is 1024, the message is not fragmented. |
enable_l3_router_rpc_notify |
Whether to enable or disable the feature of sending Layer 3 routing events through RPC. · True—Enable. · False—Disable. |
qos_rx_limit_min |
Minimum inbound bandwidth, in kbps. If the QoS minimum inbound bandwidth configured on OpenStack is smaller than this parameter value, this parameter value takes effect. Only OpenStack Kilo 2015.1 supports this parameter. |
cloud_region_name |
Name of the cloud platform. String type. The default value is default. Make sure the value of this parameter is the same as the cloud platform name configured on the Automation > Data Center Networks > Virtual Networking > OpenStack page on the controller. |
enable_h3c_l3_exroute |
Whether to enable routing extension. The default value is False. When the value is True, configure the api_extensions_path parameter in the neutron.conf file [DEFAULT] as follows: · CentOS 8 and CentOS Stream 8 operating systems: · Other CentOS operating systems: Only OpenStack Mitaka, Train, Ussuri, Victoria, Wallaby, Xena, and Yoga support this parameter. For Kylin V10 operating systems, the value must be False, because they do not support routing extension. |
neutron_black_list |
Neutron network denylist function. This parameter must be used together with the black_list_matching parameter. No default value exists. If the value for this parameter is flat and no denylist matching rule is specified, the denylist feature takes effect only on flat-type internal networks. |
black_list_matching |
Denylist matching rule. Options are prefix and suffix. When the value is prefix, the network is added to the denylist if the network name prefix is within the value range for the neutron_black_list parameter. When the value is suffix, the network is added to the denylist if the network name suffix is within the value range for the neutron_black_list parameter. After a network resource is added to the denylist, that network resource will not be deployed to the controller after being created on the cloud platform. The default value is not configured, which means the denylist function is disabled. The denylist function only applies to layer 2 resources, such as networks, subnets, and ports. It cannot be used for layer 3 resources, such as binding a subnet interface to a virtual router. |
force_vlan_port_details_qvo |
Whether to forcibly create a qvo-type vPort on the OVS bridge after a VM in a VLAN network comes online. If the value is true, the system forcibly creates a qvo-type vPort. If the value is false, the system automatically creates a tap-type or qvo-type vPort as configured. As a best practice, set the value to false for interoperability with the cloud platform for the first time. |
neutron_version |
Neutron version. Options include pike and newton. You can also leave the parameter unconfigured. By default, this parameter is unconfigured. If Neutron is developed based on open source OpenStack Pike or Newton, specify the value as pike or newton. |
neutron_domain_name |
If the Neutron permission is insufficient for obtaining the tenant or domain names from Keystone, you can use the current domain name to configure this field for Neutron to obtain sufficient permission. By default, this field is not configured. You can obtain the current domain name from the cloud platform. |
enable_encrypted_authentication |
Indicates whether to perform base64 decoding for the username and password of Unified Platform. When set to False, the username and password of Unified Platform will not be decrypted. When set to True, the base64 decoding algorithm is used to decrypt the username and password of Unified Platform, and the username and password need to be entered in the encoded base64 value. For example, if the username is admin and the password is Pwd@12345, the encryption command is echo -n 'password' |base64, the encoded username is YWRtaW4=, and the password is UHdkQDEyMzQ1. |
enable_neutron_rpc |
Whether to establish a connection to the neutron message queue. The default value is true. |
Upgrading the SeerEngine-DC Neutron plug-ins
CAUTION: · Services might be interrupted during the SeerEngine-DC Neutron plug-ins upgrade procedure. · The default parameter settings for SeerEngine-DC Neutron plug-ins might vary by OpenStack version (Kilo 2015.1, Liberty, Mitaka, and Ocata). Modify the default parameter settings for SeerEngine-DC Neutron plug-ins when upgrading the OpenStack version to ensure that the plug-ins have the same configurations before and after the upgrade. |
To upgrade the SeerEngine-DC Neutron plug-ins:
1. Remove the SeerEngine-DC Neutron plug-ins.
[root@localhost ~]# h3c-sdnplugin controller uninstall
Restore config files
Uninstallation complete.
¡ If Neutron is developed based on open source OpenStack Newton, execute the following command to remove the SeerEngine-DC Neutron plug-ins:
[root@localhost ~]# h3c-sdnplugin controller uninstall --neutron_version newton
¡ If Neutron is developed based on open source OpenStack Pike, execute the following command to remove the SeerEngine-DC Neutron plug-ins:
[root@localhost ~]# h3c-sdnplugin controller uninstall --neutron_version pike
2. Remove the SeerEngine-DC OpenStack package.
¡ .egg file or .whl file
- CentOS operating systems (Python3) or Kylin V10 operating systems with OpenStack Train, Ussuri, Victoria, and Wallaby
[root@localhost ~]# pip3 uninstall SeerEngine-DC-PLUGIN
Found existing installation: SeerEngine-DC-PLUGIN E6401
Uninstalling SeerEngine-DC-PLUGIN-E6401:
Would remove:
/usr/local/bin/h3c-sdnplugin
/usr/local/bin/h3c-sdnplugin-extension
/usr/local/lib/python3.6/site-packages/SeerEngine_DC_PLUGIN-E6401.dist-info/*
/usr/local/lib/python3.6/site-packages/networking_h3c/*
/usr/local/lib/python3.6/site-packages/neutron_bgp_h3c/*
/usr/local/lib/python3.6/site-packages/neutron_exroute_h3c/*
/usr/local/lib/python3.6/site-packages/neutron_taas_h3c/*
/usr/local/lib/python3.6/site-packages/neutron_trunk_h3c/*
/usr/local/lib/python3.6/site-packages/neutron_vpc_h3c/*
Proceed (Y/n)? y
Successfully uninstalled SeerEngine-DC-PLUGIN-E6401
- CentOS operating systems (Python2.7) or Kylin V10 operating systems with OpenStack Pike
[root@localhost ~]# pip uninstall SeerEngine-DC-PLUGIN
Uninstalling SeerEngine-DC-PLUGIN-E3608:
/usr/bin/h3c-sdnplugin
/usr/lib/python2.7/site-packages/SeerEngine_DC_PLUGIN-E3608-py2.7.egg
Proceed (y/n)? y
Successfully uninstalled SeerEngine-DC-PLUGIN-E3608
¡ .rpm file
[root@localhost ~]# rpm -e SeerEngine_DC_PLUGIN
3. Install plug-ins of the new version. For more information, see "Installing and configuring plug-ins on the controller node."
Installing and configuring plug-ins on a compute node
You must install the Nova patch only in the following scenarios:
· In KVM host-based overlay or network-based overlay scenario, virtual machines are load balancer members, and the load balancer must be aware of the member status.
· vCenter network-based overlay scenario.
Obtaining the Nova patch installation package
The Nova patch is included in the SeerEngine-DC OpenStack package. Perform the following steps to download the SeerEngine-DC OpenStack package from the H3C website:
1. Obtain the SeerEngine-DC OpenStack package of the required version.
2. Copy the SeerEngine-DC OpenStack package to the installation directory on the server or virtual machine, or upload it to the installation directory through FTP, TFTP, or SCP.
|
NOTE: If you decide to upload the SeerEngine-DC OpenStack package through FTP or TFTP, use the binary mode to avoid damage to the package. |
Installing the Nova patch
Based on your network environment, choose one step between step 3 and step 4.
To install the Nova patch on the OpenStack compute node:
1. Access the directory where the SeerEngine-DC OpenStack package (an .egg or .rpm file) is saved, and install the package on the OpenStack compute node. The name of the SeerEngine-DC OpenStack package is SeerEngine_DC_PLUGIN-version1-py2.7.egg or SeerEngine_DC_PLUGIN-version1.noarch.rpm. version1 represents the version of the package.
In this example, the SeerEngine-DC OpenStack package is saved to the /root directory.
¡ .egg file
[root@localhost ~]# easy_install SeerEngine_DC_PLUGIN-E3608-py2.7.egg
¡ .rpm file
[root@localhost ~]# rpm -ivh SeerEngine_DC_PLUGIN-E3608.noarch.rpm
2. Install the Nova patch.
[root@localhost ~]# h3c-sdnplugin compute install
Install the nova patch
modifying:
/usr/lib/python2.7/site-packages/nova/virt/vmwareapi/vmops.py
modify success, backuped at: /usr/lib/python2.7/site-packages/nova/virt/vmwareapi/vmops.py.h3c_bak
|
NOTE: The contents below the modifying: line indicate the modified open source Neutron file and the backup path of the file before modification. |
3. Perform the following steps:
a. Stop the neutron-openvswitch-agent service on the compute node and disable the system from starting the service at startup.
[root@localhost ~]# service neutron-openvswitch-agent stop
[root@localhost ~]# systemctl disable neutron-openvswitch-agent.service
b. Execute the neutron agent-list command on the controller node to identify whether the agent of the compute node exists in the database.
- If the agent of the compute node does not exist in the database, go to the next step.
- If the agent of the compute node exists in the database, execute the neutron agent-delete id command to delete the agent. The id argument represents the agent ID.
[root@localhost ~]# neutron agent-list
| id | agent_type | host |
| 25c3d3ac-5158-4123-b505-ed619b741a52 | Open vSwitch agent | compute3
[root@localhost ~]# neutron agent-delete 25c3d3ac-5158-4123-b505-ed619b741a52
Deleted agent: 25c3d3ac-5158-4123-b505-ed619b741a52
c. Use the vi editor on the compute node to open the nova.conf configuration file.
[root@localhost ~]# vi /etc/nova/nova.conf
d. Press I to switch to insert mode, and set the parameters in the nova.conf configuration file as follows. For descriptions of the parameters, see Table 4.
If the hypervisor type of the compute node is KVM, modify the nova.conf configuration file as follows:
[s1020v]
s1020v = False
member_status = True
[neutron]
ovs_bridge = vds1-br
If the hypervisor type of the compute node is VMware vCenter, modify the nova.conf configuration file as follows:
[DEFAULT]
compute_driver = vmwareapi.VMwareVCDriver
[vmware]
host_ip = 127.0.0.1
host_username = sdn
host_password = skyline123
cluster_name = vcenter
insecure = True
[s1020v]
s1020v = False
vds = VDS2
e. Press Esc to quit insert mode, and enter :wq to exit the vi editor and save the nova.conf file.
Table 4 Parameters in the configuration file
Parameter |
Description |
s1020v |
Whether to use the S1020V vSwitch to forward the traffic between vSwitches and the traffic between the vSwitches and the external network. · True—Use the S1020V vSwitch. · False—Do not use the S1020V vSwitch. This parameter is obsoleted. |
member_status |
Whether to enable or disable the feature of modifying the status of members on OpenStack load balancers. · True—Enable. · False—Disable. |
vds |
VDS to which the host in the vCenter belongs. In this example, the host belongs to VDS2. In the host-based overlay networking, you can only specify the VDS that the controller synchronizes to the vCenter. In the network-based overlay networking, you can specify an existing VDS on demand. |
ovs_bridge |
Name of the bridge for the H3C S1020V vSwitch. Make sure the bridges created on all H3C S1020V vSwitches use the same name. |
compute_driver |
Name of the driver used by the compute node for virtualization. |
host_ip |
IP address used to log in to the vCenter, for example, 127.0.0.1. |
host_username |
Username for logging in to the vCenter, for example, sdn. |
host_password |
Password for logging in to the vCenter, for example, skyline123. If the password contains a dollar sign ($), enter a backward slash (\) before the dollar sign. |
cluster_name |
Name of the team in the vCenter environment, for example, vcenter. |
insecure |
Whether to enable or disable security check. · True—Do not perform security check. · False—Perform security check. This value is not supported in the current software version. |
4. Restart the openstack-nova-compute service.
[root@localhost ~]# service openstack-nova-compute restart
Verifying the installation
# Verify that the SeerEngine-DC OpenStack package is correctly installed. If the correct software and OpenStack versions are displayed, the package is successfully installed.
· .egg file
[root@localhost ~]# pip freeze | grep PLUGIN
SeerEngine-DC-PLUGIN===E3608
· .rpm file
[root@localhost ~]# rpm -qa | grep PLUGIN
SeerEngine-DC-PLUGIN===E3608.noarch
# Verify that the openstack-nova-compute service is enabled. The service is enabled if its state is running.
[root@localhost ~]# service openstack-nova-compute status
nova-compute start/running, process 184
Upgrading the Nova patch
CAUTION: Services might be interrupted during the Nova patch upgrade procedure. |
You must remove the Nova patch before upgrading the Nova patch.
To upgrade the Nova patch:
1. Remove the Nova patch.
[root@localhost ~]# h3c-sdnplugin compute uninstall
Uninstall the nova patch
2. Remove the SeerEngine-DC OpenStack package.
¡ .egg file
[root@localhost ~]# pip uninstall SeerEngine-DC-PLUGIN
Uninstalling SeerEngine-DC-PLUGIN-E3608:
/usr/bin/h3c-sdnplugin
/usr/lib/python2.7/site-packages/SeerEngine_DC_PLUGIN-E3608-py2.7.egg
Proceed (y/n)? y
Successfully uninstalled SeerEngine-DC-PLUGIN-E3608
¡ .rpm file
[root@localhost ~]# rpm -e SeerEngine_DC_PLUGIN
3. Install the new-version Nova patch. For more information, see "Installing and configuring plug-ins on a compute node."
Verifying interoperability
1. Create a VXLAN network and a VM on OpenStack.
2. Log in to SeerEngine-DC, and access the Automation > Data Center Networks > All Tenant Networks > vPorts page to identify whether the vPort exists. If the vPort information is correct and the vPort is up, the interoperation has succeeded.
Configuring interoperability in the KVM network-based overlay scenario
Installing and configuring plug-ins on the controller node
Installing the SeerEngine-DC Neutron plug-ins on the controller node
See "Installing the SeerEngine-DC Neutron plug-ins ."
Editing the configuration file
IMPORTANT: You must configure a physical network name and VLAN range for all compute nodes in the network_vlan_ranges parameter in the ml2_conf.ini file. Make sure the physical network name in the bridge_mappings parameter in the openvswitch_agent.ini file is unique for a compute node. |
To edit the configuration file:
1. Log in to a controller node as a root user.
2. Edit the network_vlan_ranges parameter in the /etc/neutron/plugins/ml2/openvswitch_agent.ini file. The value to the left of the colon represents the physical network name, and the value to the right of the colon represents the VLAN range.
[ml2]
type_drivers = vxlan,vlan
tenant_network_types = vxlan,vlan
mechanism_drivers = ml2_h3c,openvswitch
[ml2_type_vlan]
network_vlan_ranges = physicnet1:1000:1999,physicnet2:2000:2999
[ml2_type_vxlan]
vni_ranges = 1:500
3. Restart the neutron-server service.
[root@localhost ~]# service neutron-server restart
neutron-server stop/waiting
neutron-server start/running, process 4583
Installing and configuring plug-ins on a compute node
Installing the LLDP service
· CentOS 8 or CentOS Stream 8 operating system
Install and start the lldpad service on the compute node.
[root@localhost ~]# yum install -y lldpd
[root@localhost ~]# systemctl enable lldpd.service
[root@localhost ~]# systemctl start lldpd.service
· Other CentOS operating systems:
a. Install and start the lldpad service on the compute node.
[root@localhost ~]# yum install -y lldpad
[root@localhost ~]# systemctl enable lldpad.service
[root@localhost ~]# systemctl start lldpad.service
b. Enable the uplink interface to send LLDP messages. eno2 is the uplink interface in this example.
[root@localhost ~]# lldptool set-lldp -i eno2 adminStatus=rxtx;
[root@localhost ~]# lldptool -T -i eno2 -V sysName enableTx=yes;
[root@localhost ~]# lldptool -T -i eno2 -V portDesc enableTx=yes;
[root@localhost ~]# lldptool -T -i eno2 -V sysDesc enableTx=yes;
[root@localhost ~]# lldptool -T -i eno2 -V sysCap enableTx=yes;
Installing the Nova patch
You must install the Nova patch only in the following scenarios:
· In KVM host-based overlay or network-based overlay scenario, virtual machines are load balancer members, and the load balancer must be aware of the member status.
· vCenter network-based overlay scenario.
For the installation procedure, see "Installing and configuring plug-ins on a compute node."
Installing the openvswitch-agent patch
IMPORTANT: · The openvswitch-agent patch is applicable only to open-source scenarios. If a third-party cloud modifies the openvswitch-agent patch, openvswitch-agent patch installation is not supported. · OpenStack Rocky and later versions do not require installation of the openvswitch-agent patch. · Kylin V10 operating systems do not support openvswitch-agent patch installation. |
To install the openvswitch-agent patch:
1. Access the directory where the SeerEngine-DC OpenStack package (an .egg or .rpm file) is saved, and install the package on the OpenStack compute node. The name of the SeerEngine-DC OpenStack package is SeerEngine_DC_PLUGIN-version -py2.7.egg or SeerEngine_DC_PLUGIN-version.noarch.rpm. version represents the version of the package.
¡ .egg file
[root@localhost ~]# easy_install SeerEngine_DC_PLUGIN-E3608-py2.7.egg
¡ .rpm file
[root@localhost ~]# rpm -ivh SeerEngine_DC_PLUGIN-E3608-1.noarch.rpm
2. Install the openvswitch-agent patch.
[root@localhost ~]# h3c-sdnplugin openvswitch install
3. Restart the openvswitch-agent service.
[root@localhost ~]# service neutron-openvswitch-agent restart
Verifying the installation
# Verify that the SeerEngine-DC OpenStack package is correctly installed. If the correct software and OpenStack versions are displayed, the package is successfully installed.
· .egg file
[root@localhost ~]# pip freeze | grep PLUGIN
SeerEngine-DC-PLUGIN===E3608
· .rpm file
[root@localhost ~]# rpm -qa | grep PLUGIN
SeerEngine-DC-PLUGIN===E3608
# Verify that the openvswitch-agent service is enabled. The service is enabled if its state is running.
[root@localhost ~]# service neutron-openvswitch-agent status
Redirecting to /bin/systemctl status neutron-openvswitch-agent.service
neutron-openvswitch-agent.service - OpenStack Neutron Open vSwitch Agent
Loaded: loaded (/usr/lib/systemd/system/neutron-openvswitch-agent.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2016-12-05 16:58:18 CST; 18h ago
Main PID: 807 (neutron-openvsw)
Upgrading the openvswitch-agent patch
CAUTION: Services might be interrupted during the openvswitch-agent patch upgrade procedure. |
To upgrade the openvswitch-agent patch, you must remove the current version first, and install a new version.
To upgrade the openvswitch-agent patch:
1. Remove the openvswitch-agent patch.
[root@localhost ~]# h3c-sdnplugin openvswitch uninstall
2. Remove the SeerEngine-DC OpenStack package.
¡ .egg file
[root@localhost ~]# pip uninstall SeerEngine-DC-PLUGIN
Uninstalling SeerEngine-DC-PLUGIN-E3608:
/usr/bin/h3c-sdnplugin
/usr/lib/python2.7/site-packages/SeerEngine_DC_PLUGIN-E3608-py2.7.egg
Proceed (y/n)? y
Successfully uninstalled SeerEngine-DC-PLUGIN-E3608
¡ .rpm file
[root@localhost ~]# rpm -e SeerEngine_DC_PLUGIN
3. Install the new patch. For more information, see "Installing the openvswitch-agent patch."
Setting up the configuration environment
IMPORTANT: Make sure the physical network name in the bridge_mappings parameter in the openvswitch_agent.ini file is unique for a compute node. |
To set up the configuration environment:
1. Log in to a controller node as a root user.
2. Edit the bridge_mappings parameter in the /etc/neutron/plugins/ml2/openvswitch_agent.ini file. The value to the left of the colon represents the physical network name, and the value to the right of the colon represents the manually created OVS bridge name.
Make sure the physical network name is the same as the physical network name of the bound NIC.
[ovs]
bridge_mappings = physicnet1:br-ens33
3. Create a bridge named br-ens33.
[root@localhost ~]# ovs-vsctl add-br br-ens33
4. Map the bridge to the physical port.
[root@localhost ~]# ovs-vsctl add-port br-ens33 ens33
5. Verify that the bridge was created successfully.
[root@localhost ~]# ovs-vsctl show
6. Delete the default bridge.
[root@localhost ~]# ovs-vsctl del-br br-tun
7. Edit the /etc/neutron/plugins/ml2/openvswitch_agent.ini file to comment out all tunnel-related parameters.
[agent]
# tunnel_types = vxlan
# vxlan_udp_port = 4789
# l2_population = true
[ovs]
# tunnel_bridge = br-tun
# local_ip = 192.168.1.100
8. Restart the openvswitch-agent and neutron-openvswitch-agent services to verify that the br-tun bridge has been deleted successfully.
[root@localhost ~]# systemctl restart neutron-openvswitch-agent.service
[root@localhost ~]# systemctl restart openvswitch-agent.service
[root@localhost ~]# ovs-vsctl show
(Optional.) Installing and configuring plug-ins on the DHCP failover node
To use DHCP failover in a scenario, use a separate node as THE DHCP failover node and install DHCP and Metadata components on the node.
IMPORTANT: The DHCP failover components only support the following operating systems: · CentOS 7.2.1511 operating system with kernel version 3.10.0-327.el7.x86_64. If the kernel version does not match the S1020V version, install the kernel patch first. For the specific configuration procedure, see "CentOS 7.2.1511 operating system." · OpenEuler 21.10 ARM operating system. For the specific configuration procedure, see "OpenEuler 21.10 ARM operating system." |
CentOS 7.2.1511 operating system
Installing basic components
1. Install WebSocket Client on the DHCP failover node.
IMPORTANT: Make sure WebSocket Client is in version 0.56 or later. |
[root@localhost ~]# yum install –y python-websocket-client
2. Install an S1020V vSwitch on the DHCP failover node and configure bridge and controller settings. For the installation and configuration procedures, see H3C S1020V Installation Guide.
[root@localhost ~]# rpm -ivh --force s1020v-centos71-3.10.0-229.el7.x86_64-x86_64.rpm
Obtaining the installation package of the DHCP failover components
Two SeerEngine-DC OpenStack packages are available: one contains the DHCP failover components package and one does not. The SeerEngine-DC OpenStack package that contains the DHCP failover components package is named in the SeerEngine_DC_PLUGIN-DHCP_version1_version2.egg format. version1 represents the software package version number. version2 represents the OpenStack version number.
Obtain the required version of the SeerEngine-DC OpenStack package and then save the package to the target installation directory on the server or virtual machine. You can also 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 DHCP component on the DHCP failover node
Installing the DHCP component
1. Access the directory where the SeerEngine-DC OpenStack package (an .egg file) is saved and then install the package.
In the following example, the SeerEngine-DC OpenStack package is in the /root directory.
[root@localhost ~]# easy_install SeerEngine_DC_PLUGIN-DHCP_E3608_2017.10-py2.7.egg
2. Install the DHCP component.
[root@localhost ~]# h3c-sdnplugin dhcp install
Install Environment dependent packages
Preparing… ########## [100%]
Updating / installing…
python2-six-1.10.0-9.el7 ########## [ 1%]
………
Install config files
Install services
Installation complete
Please do not remove the *.h3c_bak files.
3. Edit the DHCP component configuration file.
a. Use the vi editor to open the h3c_dhcp_agent.ini file on the DHCP failover node.
[root@localhost ~]# vi /etc/neutron/h3c_dhcp_agent.ini
b. Press I to switch to insert mode and edit the configuration file as follows:
[DEFAULT]
interface_driver = openvswitch
dhcp_driver = networking_h3c.agent.dhcp.driver.dhcp.Dnsmasq
enable_isolated_metadata = true
force_metadata = true
ovs_integration_bridge = br0
[h3c]
transport_url = ws://127.0.0.1:8080
websocket_fragment_size = 102400
[ovs]
ovsdb_interface = vsctl
c. To enable certificate authentication, add the following configurations:
[h3c]
ca_file = /etc/neutron/ca.crt
cert_file = /etc/neutron/sna.pem
key_file = /etc/neutron/sna.key
key_password = KEY_PASSWORD
insecure = true
d. Press Esc to quit insert mode, and enter :wq to exit the vi editor and save the neutron.conf file.
4. Start the DHCP component.
[root@localhost ~]# systemctl enable h3c-dhcp-agent.service
[root@localhost ~]# systemctl start h3c-dhcp-agent.service
Installing the Metadata component
1. Access the directory where the SeerEngine-DC OpenStack package (an .egg or .rpm file) is saved and then install the package. The name of the SeerEngine-DC OpenStack package is SeerEngine_DC_PLUGIN-version1_version2-py2.7.egg or SeerEngine_DC_PLUGIN-version1_version2.noarch.rpm. version1 represents the version of the package. version2 represents the version of OpenStack.
In the following example, the SeerEngine-DC OpenStack package is in the /root directory.
[root@localhost ~]# easy_install SeerEngine_DC_PLUGIN-DHCP_E3608-2017.10-py2.7.egg
2. Install the Metadata component.
[root@localhost ~]# h3c-sdnplugin metadata install
Install config files
Install services
Installation complete
Please do not remove the *.h3c_bak files.
3. Edit the Metadata component configuration file.
a. Use the vi editor to open theh3c_metadata_agent.ini configuration file on the DHCP failover node.
[root@localhost ~]# vi /etc/neutron/h3c_metadata_agent.ini
b. Press I to switch to insert mode and edit the configuration file as follows:
[DEFAULT]
nova_metadata_host = controller
nova_metadata_port = 8775
nova_proxy_shared_secret = METADATA_SECRET
enable_keystone_authtoken = True
[cache]
[keysone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = NEUTRON_PASSWORD
[SDNCONTROLLER]
url = https://127.0.0.1:8443
username = admin
password = Pwd@12345
enable_https = False
neutron_plugin_ca_file =
neutron_plugin_cert_file =
neutron_plugin_key_file =
c. Press Esc to quit insert mode, and enter :wq to exit the vi editor and save the neutron.conf file.
4. Start the Metadata component.
[root@localhost ~]# systemctl enable h3c-metadata-agent.service
[root@localhost ~]# systemctl start h3c-metadata-agent.service
Removing DHCP failover components
Remove the SeerEngine-DC OpenStack package after removing the DHCP and Metadata components.
To remove the DHCP failover components:
1. Remove the DHCP component.
[root@localhost ~]# h3c-sdnplugin dhcp uninstall
Remove services
Removed symlink /etc/system/system/multi-user.target.wants/h3c-dhcp-agent.service.
Backup config files
Uninstallation complete
2. Remove the Metadata component.
[root@localhost ~]# h3c-sdnplugin metadata uninstall
Remove services
Removed symlink /etc/system/system/multi-user.target.wants/h3c-metadata-agent.service.
Backup config files
Uninstallation complete
3. Remove the SeerEngine-DC OpenStack package.
[root@localhost ~]# pip uninstall SeerEngine-DC-PLUGIN
Uninstalling SeerEngine-DC-PLUGIN-DHCP_E3608-2017.10:
/usr/bin/h3c-sdnplugin
/usr/lib/python2.7/site-packages/SeerEngine_DC_PLUGIN-DHCP_E3608-2017.10 -py2.7.egg
Proceed (y/n)? y
Successfully uninstalled SeerEngine-DC-PLUGIN-DHCP_E3608-2017.10
Upgrading DHCP failover components
To upgrade DHCP failover components, first remove the old version and then install the new version.
CAUTION: Service might be interrupted during the upgrade. Before performing an upgrade, be sure you fully understand its impact on the services. |
Parameters and fields
This section describes parameters in configuration files and fields included in parameters.
Table 5 DHCP component configuration file
Parameter |
Description |
ovs_integration_bridge |
vSwitch bridge where the DHCP port resides. |
websocket_fragment_size |
Size of a websocket message fragment sent to the controller, in bytes. The value is an integer equal to or larger than 1024. The default value is 102400. When the value is 1024, the websocket messages are not fragmented. |
key_password |
Password used for certificate authentication. Replace KEY_PASSWORD with the real password used for certificate authentication. |
insecure |
Whether to enable WebSocket certificate authentication. The default value is False. |
Table 6 Metadata component configuration file
Parameter |
Description |
enable_keystone_authtoken |
Whether to enable Neutron API. When the value is True, you must configure the keystone_authtoken parameter. When the value is False, you must configure the SDNCONTROLLER parameter. |
OpenEuler 21.10 ARM operating system
Installing basic components
1. Install WebSocket Client on the DHCP failover node.
[root@localhost ~]# yum install –y python-websocket-client
|
NOTE: Make sure WebSocket Client is in version 0.56 or later. |
2. Install an S1020V vSwitch on the DHCP failover node and configure bridge and controller settings. For the installation and configuration procedures, see H3C S1020V Installation Guide.
Obtaining the installation package of the DHCP failover components
Two SeerEngine-DC OpenStack packages are available: one contains the DHCP failover components package and one does not. The SeerEngine-DC OpenStack package that contains the DHCP failover components package is named in the SeerEngine_DC_PLUGIN-DHCP_version1_version2.egg format. The version1 parameter represents the software package version number. The version2 parameter represents the OpenStack version number.
Obtain the required version of the SeerEngine-DC OpenStack package and then save the package to the target installation directory on the server or virtual machine. You can also 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 DHCP component on the DHCP failover node
1. Access the directory where the SeerEngine-DC OpenStack package (an .egg file) is saved and then install the package.
The package name format is SeerEngine_DC_PLUGIN-DHCP_version1_ARM-py2.7.egg, where the version1 parameter represents the software version number.
[root@localhost ~]# easy_install SeerEngine_DC_PLUGIN-DHCP_E6602_ARM-py2.7.egg
2. Install the DHCP component.
a. Install the required RPM files. Obtain the folder path as follows:
[root@controller ~]# python
>>> import networking_h3c
>>> networking_h3c.__path__
['/usr/lib/python2.7/site-packages/SeerEngine_DC_PLUGIN-DHCP_E6602_ARM-py2.7.egg/networking_h3c'][root@controller ~]# cd /usr/lib/python2.7/site-packages/SeerEngine_DC_PLUGIN-DHCP_E6602_ARM-py2.7.egg/networking_h3c/rpms
[root@controller ~]rpm -ivh * --nodeps --force
warning: c-ares-1.16.1-3.oe1.aarch64.rpm: Header V3 RSA/SHA1 Signature, key ID b25e7f66: NOKEY
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:python2-six-1.15.0-2.oe1 ################################# [ 1%]
2:……
b. Install the DHCP components.
[root@controller ~]h3c-sdnplugin dhcp install
Install config files
Install services
Installation complete.
Please do not remove the *.h3c_bak files.
3. Edit the DHCP component configuration file.
a. Use the vi editor to open the h3c_dhcp_agent.ini file on the DHCP failover node.
[root@localhost ~]# vi /etc/neutron/h3c_dhcp_agent.ini
b. Press I to switch to insert mode and edit the configuration file as follows:
[DEFAULT]
interface_driver = openvswitch
dhcp_driver = networking_h3c.agent.dhcp.driver.dhcp.Dnsmasq
enable_isolated_metadata = true
force_metadata = true
ovs_integration_bridge = br0
[h3c]
transport_url = ws://127.0.0.1:30000
[ovs]
ovsdb_interface = vsctl
[SDNCONTROLLER]
url = http://127.0.0.1:30000
username = admin
password = Pwd@12345
enable_encrypted_authentication = False
timeout = 1800
retry = 10
enable_https = False
neutron_plugin_ca_file =
neutron_plugin_cert_file =
neutron_plugin_key_file =
c. Press Esc to quit insert mode, and enter :wq to exit the vi editor and save the neutron.conf file.
Table 7 Parameters
Parameter |
Description |
interface_driver |
Driver for managing vPorts. As a best practice, use the default settings. |
dhcp_driver |
Driver for managing the DHCP service. As a best practice, use the default settings. |
enable_isolated_metadata |
Specify whether the Nova compute service enables a separate metadata service proxy for each instance. As a best practice, use the default settings. |
force_metadata |
Specify whether to force an instance to use the metadata service to obtain metadata information. |
ovs_integration_bridge |
vSwitch bridge where the DHCP port comes online. |
transport_url |
RPC interface URL for the controller. In the current software version, only WebSocket interfaces are supported, for example, ws://127.0.0.1:30000. When Unified Platform is configured to use the HTTPS protocol, you must set this parameter to the WSS protocol. For more information, see the guidelines for filling in URL parameters. For example, if the Unified Platform URL is http://127.0.0.1:30000, then the sdnc_rpc_url parameter must be set to ws://127.0.0.1:30000. |
url |
URL for logging in to Unified Platform. The URL for Unified Platform is either http://ip_address:30000 or https://ip_address:30000. For example, use http://127.0.0.1:30000. |
username |
Username for logging in to Unified Platform, for example, admin. When the use_neutron_credential parameter is set to True, you do not need to configure this parameter. |
password |
Password for logging in to Unified Platform, for example, Pwd@12345. When the use_neutron_credential parameter is set to True, you do not need to configure this parameter. Use the escape character "\" before the character "$" in a password. |
timeout |
The amount of time that the Neutron server waits for a response from the controller in seconds, for example, 1800 seconds. As a best practice, set the waiting time greater than or equal to 1800 seconds. |
retry |
Times of sending connection requests, for example, 10. |
enable_encrypted_authentication |
Indicates whether to perform base64 decoding for the username and password of Unified Platform. When this parameter is set to False, the username and password of Unified Platform will not be decrypted. When this parameter is set to True, the base64 decoding algorithm is used to decrypt the username and password of Unified Platform, and the username and password need to be entered in the encoded base64 value. For example, if the username is admin and the password is Pwd@12345, the encryption command is echo -n 'password' |base64, the encoded username is YWRtaW4=, and the password is UHdkQDEyMzQ1. |
enable_https |
Whether to enable HTTPS bidirectional authentication. The default value is False. |
neutron_plugin_ca_file |
Save location for the CA certificate of the controller, for example, /etc/neutron/ca.crt. As a best practice, save the CA certificate in the /usr/share/neutron directory. |
neutron_plugin_cert_file |
Save location for the Cert certificate of the controller, for example, /etc/neutron/sna.pem. As a best practice, save the Cert certificate in the /usr/share/neutron directory. |
neutron_plugin_key_file |
Save location for the Key certificate of the controller, for example, /etc/neutron/sna.key. As a best practice, save the Key certificate in the /usr/share/neutron directory. |
4. Start the DHCP component.
[root@localhost ~]# systemctl enable h3c-dhcp-agent.service
[root@localhost ~]# systemctl start h3c-dhcp-agent.service
Installing the Metadata component on the DHCP failover node
1. Access the directory where the SeerEngine-DC OpenStack package (an .egg file) is saved and then install the package.
The package name format is SeerEngine_DC_PLUGIN-DHCP_version1_ARM-py2.7.egg, where the version1 parameter represents the software version number.
[root@localhost ~]# easy_install SeerEngine_DC_PLUGIN-DHCP_E6602_ARM-py2.7.egg
2. Install the Metadata component for the failover service.
[root@localhost ~]# h3c-sdnplugin metadata install
Install config files
Install services
Installation complete
Please do not remove the *.h3c_bak files.
3. Edit the Metadata component configuration file.
a. Use the vi editor to open the h3c_dhcp_agent.ini file on the DHCP failover node.
[root@localhost ~]# vi /etc/neutron/h3c_dhcp_agent.ini
b. Press I to switch to insert mode and edit the configuration file as follows:
[DEFAULT]
nova_metadata_host = controller
nova_metadata_port = 8775
nova_proxy_shared_secret = METADATA_SECRET
enable_keystone_authtoken = True
[cache]
[keysone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = NEUTRON_PASSWORD
url = http://127.0.0.1:30000
username = admin
password = Pwd@12345
enable_encrypted_authentication = False
timeout = 1800
retry = 10
enable_https = False
neutron_plugin_ca_file =
neutron_plugin_cert_file =
neutron_plugin_key_file =
c. Press Esc to quit insert mode, and enter :wq to exit the vi editor and save the neutron.conf file.
Table 8 Parameters
Parameter |
Description |
DEFAULT |
Configure the DEFAULT parameter group as needed. The listed values are for illustration only. |
enable_keystone_authtoken |
Whether to enable the Neutron API feature. When this parameter is set to True, you must configure the [keystone_authtoken] authentication item. When this parameter is set to False, you must configure the [SDNCONTROLLER] authentication item. |
url |
URL for logging in to Unified Platform. The URL for Unified Platform is either http://ip_address:30000 or https://ip_address:30000. For example, use http://127.0.0.1:30000. |
username |
Username for logging in to Unified Platform, for example, admin. When the use_neutron_credential parameter is set to True, you do not need to configure this parameter. |
password |
Password for logging in to Unified Platform, for example, Pwd@12345. When the use_neutron_credential parameter is set to True, you do not need to configure this parameter. Use the escape character "\" before the character "$" in a password. |
timeout |
The amount of time that the Neutron server waits for a response from the controller in seconds, for example, 1800 seconds. As a best practice, set the waiting time greater than or equal to 1800 seconds. |
retry |
Times of sending connection requests, for example, 10. |
enable_encrypted_authentication |
Indicates whether to perform base64 decoding for the username and password of Unified Platform. When this parameter is set to False, the username and password of Unified Platform will not be decrypted. When this parameter is set to True, the base64 decoding algorithm is used to decrypt the username and password of Unified Platform, and the username and password need to be entered in the encoded base64 value. For example, if the username is admin and the password is Pwd@12345, the encryption command is echo -n 'password' |base64, the encoded username is YWRtaW4=, and the password is UHdkQDEyMzQ1. |
enable_https |
Whether to enable HTTPS bidirectional authentication. The default value is False. |
neutron_plugin_ca_file |
Save location for the CA certificate of the controller, for example, /etc/neutron/ca.crt. As a best practice, save the CA certificate in the /usr/share/neutron directory. |
neutron_plugin_cert_file |
Save location for the Cert certificate of the controller, for example, /etc/neutron/sna.pem. As a best practice, save the Cert certificate in the /usr/share/neutron directory. |
neutron_plugin_key_file |
Save location for the Key certificate of the controller, for example, /etc/neutron/sna.key. As a best practice, save the Key certificate in the /usr/share/neutron directory. |
4. Start the Metadata component.
[root@localhost ~]# systemctl enable h3c-metadata-agent.service
[root@localhost ~]# systemctl start h3c-metadata-agent.service
Removing DHCP failover components
You can remove the failover components in the following method. Remove the SeerEngine-DC OpenStack package after removing the DHCP and Metadata components.
1. Remove the DHCP component.
[root@localhost ~]# h3c-sdnplugin dhcp uninstall
Remove services
Removed symlink /etc/system/system/multi-user.target.wants/h3c-dhcp-agent.service.
Backup config files
Uninstallation complete
2. Remove the Metadata component.
[root@localhost ~]# h3c-sdnplugin metadata uninstall
Remove services
Removed symlink /etc/system/system/multi-user.target.wants/h3c-metadata-agent.service.
Backup config files
Uninstallation complete
3. Remove the SeerEngine-DC OpenStack package.
[root@localhost ~]# pip uninstall SeerEngine-DC-PLUGIN
Found existing installation: SeerEngine-DC-PLUGIN DHCP-E6601-ARM
Uninstalling SeerEngine-DC-PLUGIN-DHCP-E6601-ARM:
Would remove:
/usr/bin/h3c-dhcp-agent
/usr/bin/h3c-metadata-agent
/usr/bin/h3c-sdnplugin
/usr/lib/python2.7/site-packages/SeerEngine_DC_PLUGIN-DHCP_E6601_ARM-py2.7.egg
Proceed (y/n)? y
Successfully uninstalled SeerEngine-DC-PLUGIN-DHCP-E6601-ARM
Upgrading DHCP failover components
To upgrade DHCP failover components, first remove the old version and then install the new version.
CAUTION: Service might be interrupted during the upgrade. Before performing an upgrade, be sure you fully understand its impact on the services. |
Verifying interoperability
1. Create a VXLAN network and a VM on OpenStack.
2. Log in to SeerEngine-DC, and access the Automation > Data Center Networks > All Tenant Networks > vPorts page to identify whether the vPort exists. If the vPort information is correct and the vPort is up, the interoperation has succeeded.
Configuring interoperability in the network-based overlay with SR-IOV enabled scenario
Installing and configuring plug-ins on the controller node
IMPORTANT: Because of the restrictions by the OpenStack community, only VLAN but not VXLAN is supported in this scenario. |
See "Installing the SeerEngine-DC Neutron plug-ins ."
Installing and configuring plug-ins on a compute node
See "Installing and configuring plug-ins on a compute node."
Enabling SR-IOV for a vNIC
See the SR-IOV configuration guide at the official website of OpenStack.
Editing the configuration file
1. Log in to a controller node as a root user.
2. Edit the mechanism_drivers parameter in the Ml2 conf.ini file.
[ml2]
type_drivers = vxlan,vlan
tenant_network_types = vxlan,vlan
mechanism_drivers = sriovnicswitch,ml2_h3c,openvswitch
3. Restart the neutron-server service.
Verifying interoperability
1. Create a VLAN network and a direct-type port on OpenStack.
2. Create a VM with this type of port.
3. Log in to SeerEngine-DC, and access the Automation > Data Center Networks > All Tenant Networks > vPorts page to identify whether the vPort exists. If the vPort information is correct and the vPort is up, the interoperation has succeeded.
Configuring interoperability with F5 or third-party load balancers
IMPORTANT: · For how to configure interoperability with a third-party load balancer, see the interoperation guide. This section is for reference only. · Kylin V10 operating systems do not support F5 or third-party load balancers. |
Installing and configuring plug-ins on the controller node
See "Installing the SeerEngine-DC Neutron plug-ins ."
Installing and configuring plug-ins on a compute node
Installing the Nova patch
See "Installing and configuring plug-ins on a compute node."
Installing the openvswitch patch
For the VXLAN or network overlay environment, see openvswitch patch installation in "Installing and configuring plug-ins on a compute node."
Setting up the F5 environment
Log in to a controller node as a root user, and place the F5 plug-ins in a directory on the controller node, for example, /var/log/neutron. The installation package is provided by F5. Please contact the corresponding personnel to obtain the F5 installation package.
Installing the git tool kit
To obtain the networking-f5 package, you must install the git tool kit before installing F5 plug-ins and patches. To download and install the git tool kit, execute the [root@localhost ~]# yum install –y git command.
Installing F5 plug-ins
1. Install base F5 packages.
[root@neutron ~]# rpm -ivh f5-icontrol-rest-1.3.9-1.el7.noarch.rpm
[root@neutron ~]# rpm -ivh f5-sdk-3.0.11-1.el7.noarch.rpm
2. Install the F5 LBv2 plugin driver.
[root@neutron ~]# tar xvf f5.tgz -C /usr/lib/python2.7/site-packages/neutron_lbaas/drivers/
3. Install the F5 LBv2 plugin driver.
[root@neutron ~]# tar xvf f5.tgz -C /usr/lib/python2.7/site-packages/neutron_lbaas/drivers/
4. Install the F5 agent.
[root@neutron ~]# rpm -ivh f5-openstack-agent-9.7.0-35.el7.noarch.rpm
5. Install the F5 ML2 Plugin driver f5networks.
[root@neutron ~]# git clone https://github.com/F5Networks/networking-f5.git
[root@neutron ~]# cd networking-f5/
[root@networking-f5 ~]# python setup.py install
Editing the configuration files
1. Edit the /etc/neutron/neutron.conf file.
a. If LBaaSV1 configuration exists in the service_plugins parameter, remove the configuration, and add the LBaaSV2 configuration. Keep other configuration unchanged.
[DEFAULT]
core_plugin = ml2
service_plugins = …,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2
b. Configure F5 service_providers.
[service_providers]
service_provider=LOADBALANCERV2:F5Networks:neutron_lbaas.drivers.f5.driver_v2.F5LBaaSV2Driver:default
c. Add the following configuration:
[DEFAULT]
unlegacy_setting_placeholder_driver_side = special_driver_side
debug = true
port_normal_or_baremetal = baremetal
to_delete_last_port = False
2. Edit the /etc/neutron/plugins/ml2/ml2_con.ini file.
[ml2]
type_drivers = vxlan,vlan
tenant_network_types = vxlan,vlan
mechanism_drivers = ml2_h3c,...,f5networks //Make sure f5networks is to the right of ml2_h3c
[ml2_type_vlan]
//Separate VLAN ranges with commas (,)
network_vlan_ranges = physicnet1:1000:2999,f5network:3000:3200
[ml2_type_vxlan]
vni_ranges = 1:500 //Specify a VXLAN range
3. Edit the /etc/neutron/services/f5/f5-openstack-agent.ini file.
a. Edit the configuration as follows:
[DEFAULT]
debug = True
// F5 HA modes include standalone and pair
f5_ha_type = standalone
// f5network is the network egress. 5.0 is the name of the trunk created on F5
f5_external_physical_mappings = f5network:5.0:True,default:5.0:True
icontrol_hostname = 31.1.1.135 //F5 management interface address
icontrol_username = admin //F5 account
icontrol_password = admin //F5 password
f5_network_segment_physical_network = f5network //F5 network egress
f5_global_routed_mode = False
agent_id = f5_cluster1 //F5 agent host ID
b. Comment out the following configuration:
#f5_vtep_folder = None
#f5_vtep_selfip_name = None
4. Restart the services.
[root@localhost ~]# systemctl enable f5-openstack-agent
[root@localhost ~]# systemctl restart f5-openstack-agent
[root@localhost ~]# systemctl restart neutron-server
Verifying interoperability
1. Create a LoadBalancer v2 resource on OpenStack.
2. Create a VM with this type of port.
3. Log in to SeerEngine-DC, and access the Automation > Data Center Networks > Tenant Network > Load Balancing page to identify whether the load balancer exists. If the load balancer information is correct, the interoperation has succeeded.
Configuring interoperability with third-party firewalls
IMPORTANT: · For more information about interoperability with third-party firewalls, see the interoperation guide. This section uses a DP firewall as an example. · SeerEngine-DC Neutron plug-ins support using callbacks to process router events. Resources used are h3c_router and h3c_router_interface. |
Installing and configuring plug-ins on the controller node
See "Installing the SeerEngine-DC Neutron plug-ins ."
Installing and configuring plug-ins on a compute node
Installing the Nova patch
See "Installing and configuring plug-ins on a compute node."
Installing the openvswitch patch
For the VXLAN or network overlay scenario, see openvswitch patch installation in "Installing and configuring plug-ins on a compute node."
Setting up the environment
Editing the configuration files
1. Configure the basic environment based on the third-party interoperability guide.
2. Log in to a controller node as a root user, and edit the ml2_conf.ini file to load DP RPC topic.
[SDNCONTROLLER]
vendor_rpc_topic = DP_PLUGIN
3. Edit the Neutron firewall configuration file to load DP Driver.
vim /etc/neutron/fwaas_driver.ini
[fwaas]
driver= neutron.services.firewall.drivers.linux.dp_fwaas.FwaasDriver
enabled = True
4. Restart the Neutron server.
[root@localhost ~]# systemctl restart neutron-server
Configuring third-party interoperability on SeerEngine-DC
Enable predeployment of third-party interconnect address through REST API:
nem/v1.0/reserve_option
{
"reserve_option": {
"thirdparty_security_service_option": true
}
}
Verifying interoperability
1. Create a firewall resource on OpenStack and bind it to a router.
2. Create a VM with this type of port.
3. Log in to SeerEngine-DC, and access the Automation > Data Center Networks > Tenant Network > Firewalls page to identify whether the firewall exists. If the firewall information is correct, the interoperation has succeeded.
Configuring interoperability with Ironic
IMPORTANT: This section describes only basic installation and configuration procedures. For more information, see the configuration examples. |
Installing and configuring plug-ins on the controller node
See "Installing and configuring plug-ins on the controller node."
Deploying Ironic
See the relevant Ironic deployment guide.
Metadata solution
Installing and configuring OpenStack plug-ins on the controller node
For the detailed installation procedure, see "Installing and configuring plug-ins on the controller node."
Installing and configuring OpenStack plug-ins on the compute node
(Optional.) Installing the Nova patch
For the detailed installation procedure, see "Installing and configuring plug-ins on a compute node."
(Optional.) Installing the openvswitch patch
For the detailed installation procedure, see "Installing the SeerEngine-DC Neutron plug-ins ."
Setting up the environment for the traditional VLAN and VXLAN-based Metadata solution
IMPORTANT: The M-LAG network does not support this configuration solution. |
Perform the following procedure on all nodes where a DHCP agent resides. The node that hosts a DHCP agent requires three physical interfaces: one for management services, one for VLAN data services, and one for VXLAN data services.
To set up the environment for the traditional VLAN and VXLAN-based metadata solution:
1. Configure an IP address for the VXLAN uplink interface.
ens192: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 100.101.0.10 netmask 255.255.255.0 broadcast 100.101.0.255
inet6 fe80::250:56ff:fe89:6b8a prefixlen 64 scopeid 0x20<link>
ether 00:50:56:89:6b:8a txqueuelen 1000 (Ethernet)
RX packets 5612 bytes 452681 (442.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 142 bytes 14443 (14.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
2. Enable all VLAN and VXLAN uplink interfaces to send LLDP messages and assign IP address mngAddr to the uplink interfaces.
# In this example, ens192 is the VXLAN uplink interface and ens193 is the VLAN uplink interface. Configure the same settings for the two uplink interfaces.
[root@localhost ~]# lldptool set-lldp -i ens192 adminStatus=rxtx;
[root@localhost ~]# lldptool -T -i ens192 -V sysName enableTx=yes;
[root@localhost ~]# lldptool -T -i ens192 -V portDesc enableTx=yes;
[root@localhost ~]# lldptool -T -i ens192 -V sysDesc enableTx=yes;
[root@localhost ~]# lldptool -T -i ens192 -V sysCap enableTx=yes;
[root@localhost ~]# lldptool -T -i ens192 -V mngAddr enableTx=yes;
[root@localhost ~]# lldptool -T -i ens192 -V mngAddr ipv4=100.101.0.10 //Configure an IP address for the VXLAN uplink interface.
[root@localhost ~]# lldptool set-lldp -i ens192 adminStatus=rxtx;
[root@localhost ~]# lldptool -T -i ens192 -V sysName enableTx=yes;
[root@localhost ~]# lldptool -T -i ens192 -V portDesc enableTx=yes;
[root@localhost ~]# lldptool -T -i ens192 -V sysDesc enableTx=yes;
[root@localhost ~]# lldptool -T -i ens192 -V sysCap enableTx=yes;
[root@localhost ~]# lldptool -T -i ens192 -V mngAddr enableTx=yes;
[root@localhost ~]# lldptool -T -i ens192 -V mngAddr ipv4=100.101.0.10 //Configure the IP address for the VLAN uplink interface to be the same as that of the VXLAN interface.
[root@localhost ~]# lldptool -t -i ens193
3. Add the following settings for the neutron openvswitch agent process.
[root@localhost ~]# vi /etc/neutron/plugins/ml2/openvswitch_agent.ini
[agent]
tunnel_types = vxlan
[ovs]
local_ip = 100.101.0.10 //Configure an IP address for the uplink interface.
4. Restart the neutron-openvswitch-agent process.
[root@localhost ~]# systemctl restart neutron-openvswitch-agent
Setting up the environment for the traditional VLAN and VXLAN hierarchical port binding-based Metadata solution
Controller node
1. Modify the ml2_conf.ini file.
[root@localhost ~]# vi /etc/neutron/plugins/ml2/ml2_conf.ini
[SDNCONTROLLER]
enable_dhcp_hierarchical_port_binding = True
2. Restart the service.
[root@localhost ~]# systemctl restart neutron-server.service
Network node
1. Access the /etc/neutron/plugins/ml2/openvswitch_agent.ini file and edit the bridge_mappings parameter for OVS.
¡ The value before the colon is the physical network name bound to the network card.
¡ The value after the colon is the name of the OVS bridge to be created manually. You can define the name as required.
[ovs]
bridge_mappings = physicnet1:br-ens192
2. Create a network bridge.
In this example, the network bridge is named br-ens192.
[root@localhost ~]# ovs-vsctl add-br br-ens192
3. Bind the network bridge to the physical interface.
[root@localhost ~]# ovs-vsctl add-port br-ens192 ens192
4. Verify that the OVS settings are correct.
[root@localhost ~]# ovs-vsctl show
5. Delete the default network bridge.
In this example, the network bridge br-tun is deleted.
[root@localhost ~]# ovs-vsctl del-br br-tun
6. Enable all VLAN uplink interfaces to send LLDP messages and assign IP address mngAddr to the uplink interface.
In this example, the VLAN uplink interface is ens193. You are not required to specify an IP address for it.
[root@localhost ~]# lldptool set-lldp -i ens193 adminStatus=rxtx;
[root@localhost ~]# lldptool -T -i ens193 -V sysName enableTx=yes;
[root@localhost ~]# lldptool -T -i ens193 -V portDesc enableTx=yes;
[root@localhost ~]# lldptool -T -i ens193 -V sysDesc enableTx=yes;
[root@localhost ~]# lldptool -T -i ens193 -V sysCap enableTx=yes;
[root@localhost ~]# lldptool -T -i ens193 -V mngAddr enableTx=yes;
[root@localhost ~]# lldptool -T -i ens193
7. Access the /etc/neutron/plugins/ml2/openvswitch_agent.ini file to delete all tunnel-related parameters.
[agent]
# tunnel_types = vxlan
# vxlan_udp_port = 4789
# l2_population = true
[ovs]
# tunnel_bridge = br-tun
# local_ip = 192.168.1.100
8. Edit the /etc/neutron/dhcp_agent.ini configuration file.
[DEFAULT]
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = true
force_metadata = true
9. Restart the service.
[root@localhost ~]# systemctl restart neutron-dhcp-agent.service
[root@localhost ~]# systemctl restart neutron-openvswitch-agent.service
Installing the SeerEngine-DC Neutron security plug-ins on OpenStack
The SeerEngine-DC Neutron security plug-ins can be installed on multiple versions of OpenStack.
The SeerEngine-DC Neutron security plug-ins are installed on the OpenStack controller node. Before installation, set up the base environment on the node.
Kylin V10 OS does not support installing security plug-ins.
Installing the security plug-ins on the controller node
Obtaining the installation package
Obtain and copy the security plug-ins installation package of the required version 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.
IMPORTANT: To avoid damaging the installation packages, select binary mode if you are to transfer the package through FTP or TFTP. |
Installing the security plug-ins on the OpenStack controller node
1. Access the directory where the security plug-ins installation package (.whl/.rpm file) is saved. In this example, the package is saved in the /root directory.
¡ The name of installation package is in the SeerEngine_DC_SEC_PLUGIN-version-py3-none-any.whl or SeerEngine_DC_SEC_PLUGIN-version-1-py3.6.noarch.rpm format for CentOS 8 or CentOS Stream 8 operating system.
- .whl file
[root@localhost ~]# pip3 install SeerEngine_DC_SEC_PLUGIN-E7201-py3-none-any.whl
- .rpm file
[root@localhost ~]# rpm -ivh SeerEngine_DC_SEC_PLUGIN-E3603P01-1-py3.6.noarch.rpm
¡ The name of installation package is in the SeerEngine_DC_SEC_PLUGIN-version-py2.7.egg or SeerEngine_DC_SEC_PLUGIN-version-1-py2.7.noarch.rpm format for other CentOS operating systems.
- .egg file
[root@localhost ~]# easy_install SeerEngine_DC_SEC_PLUGIN-E6401-py2.7.egg
- .rpm file
[root@localhost ~]# rpm -ivh SeerEngine_DC_SEC_PLUGIN-E6401-1-py2.7.noarch.rpm
2. Edit the user group and permissions for the plug-ins installation package to be the same as those of the Neutron component installation package.
¡ In CentOS 8 and CentOS Stream 8 operating systems
[root@localhost ~]# cd /usr/local/lib/python3.6/site-packages
[root@localhost ~]# chown -R --reference=/usr/lib/python3.6/site-packages/neutron SeerEngine*
[root@localhost ~]# chmod -R --reference=/usr/lib/python3.6/site-packages/neutron SeerEngine*
[root@localhost ~]# cd /usr/local/bin
[root@localhost ~]# chown -R --reference=/usr/bin/neutron-server h3c*
[root@localhost ~]# chmod -R --reference=/usr/bin/neutron-server h3c*
¡ In other CentOS operating systems
[root@localhost ~]# cd /usr/lib/python2.7/site-packages
[root@localhost ~]# chown -R --reference=neutron SeerEngine*
[root@localhost ~]# chmod -R --reference=neutron SeerEngine*
[root@localhost ~]# cd /usr/bin
[root@localhost ~]# chown -R --reference=neutron-server h3c*
[root@localhost ~]# chmod -R --reference=neutron-server h3c*
3. Install the SeerEngine-DC Neutron security plug-ins.
¡ If the security plug-in is configured with the agent mode of the firewall plug-in, use the following command:
[root@localhost ~]# h3c-secplugin controller install
¡ If the security plug-in is configured with the agentless mode of the optimized open-source firewall plug-in (firewall_h3c), the installation of the h3c_sec_agent component is not required. In this case, use the following command to install the security plugin:
[root@localhost ~]# h3c-secplugin controller purge_install
IMPORTANT: Before executing the h3c-secplugin controller install or h3c-secplugin controller purge_install command, make sure no neutron.conf file exists in the /root directory. If such a file exists, delete it or move it to another location. |
Editing the configuration files on the OpenStack controller node
1. Edit the neutron.conf configuration file.
a. Use the vi editor to open the neutron.conf configuration file.
[root@localhost ~]# vi /etc/neutron/neutron.conf
b. Press I to switch to insert mode, and then edit the configuration file. For more information about the parameters, see "neutron.conf."
For OpenStack Pike and Queens, the firewall, fwaas_h3c, and firewall_h3c firewall services are supported. Taking firewall as an example, edit the neutron.conf configuration file as follows:
[DEFAULT]
service_plugins = firewall,h3c_security_core,lbaasv2,vpnaas
[service_providers]
service_provider=FIREWALL:H3C:networking_sec_h3c.fw.h3c_fwplugin_driver.H3CFwaasDriver:default
service_provider=LOADBALANCERV2:H3C:networking_sec_h3c.lb.h3c_lbplugin_driver_v2.H3CLbaasv2PluginDriver:default
service_provider=VPN:H3C:networking_sec_h3c.vpn.h3c_vpnplugin_driver.H3CVpnPluginDriver:default
IMPORTANT: For OpenStack Pike, when the load balancer supports multiple resource pools of the Context type, you must preprovision a resource pool named dmz or core on the controller, and then change the value of the service provider parameter to LOADBALANCERV2:DMZ:networking_sec_h3c.lb.h3c_lbplugin_driver_v2.H3CLbaasv2PluginDMZDriver:default or LOADBALANCERV2:CORE:networking_sec_h3c.lb.h3c_lbplugin_driver_v2.H3CLbaasv2PluginCOREDriver:default accordingly. |
For OpenStack Rocky, the firewall, fwaas_h3c, firewall_h3c, and firewall_v2 firewall services are supported.
Taking firewall as an example, edit the neutron.conf configuration file as follows:
[DEFAULT]
service_plugins = firewall,h3c_security_core,lbaasv2,vpnaas
[service_providers]
service_provider=FIREWALL:H3C:networking_sec_h3c.fw.h3c_fwplugin_driver.H3CFwaasDriver:default
service_provider=LOADBALANCERV2:H3C:networking_sec_h3c.lb.h3c_lbplugin_driver_v2.H3CLbaasv2PluginDriver:default
service_provider=VPN:H3C:networking_sec_h3c.vpn.h3c_vpnplugin_driver.H3CVpnPluginDriver:default
Taking firewall_v2 as an example, edit the neutron.conf configuration file as follows:
[DEFAULT]
service_plugins = h3c_l3_router,firewall_v2,segments,h3c_security_core
[service_providers]
service_provider = FIREWALL_V2:H3C:networking_sec_h3c.fw2.h3c_fwpluginv2_driver.H3CFwaasV2Driver:default
¡ For OpenStack Kilo2015.1, Liberty, and Mitaka, configure the neutron.conf configuration file as follows when Load balancer V1 is configured in OpenStack:
[DEFAULT]
service_plugins = firewall,lbaas,vpnaas
[service_providers]
service_provider=FIREWALL:H3C:networking_sec_h3c.fw.h3c_fwplugin_driver.H3CFwaasDriver:default
service_provider=LOADBALANCER:H3C:networking_sec_h3c.lb.h3c_lbplugin_driver.H3CLbaasPluginDriver:default
service_provider=VPN:H3C:networking_sec_h3c.vpn.h3c_vpnplugin_ko_driver.H3CVpnPluginDriver:default
¡ For OpenStack Newton and Ocata, you can specify only Load balancer V2 and edit the service_provider parameter for the VPN service as follows:
service_provider=VPN:H3C:networking_sec_h3c.vpn.h3c_vpnplugin_ko_driver.H3CVpnPluginDriver:default
¡ For OpenStack Stein, Train, and Ussuri, the security plug-ins only supports configuring the firewall service firewall_v2. Please configure the neutron.conf configuration file as follows:
[DEFAULT]
service_plugins = firewall_v2
[service_providers]
service_provider=FIREWALL_V2:H3C:networking_sec_h3c.fw2.h3c_fwpluginv2_driver.H3CFwaasV2Driver:default
IMPORTANT: The service_provider parameter value for the VPN services is different between OpenStack Pike, Queens, and Rocky and OpenStack Kilo2015.1, Liberty, Mitaka, Newton, and Ocata. Be clear about the differences. |
c. Press Esc to quit insert mode, and enter :wq to exit the vi editor and save the neutron.conf file.
2. Edit the local_settings configuration file.
a. Use the vi editor to open the local_settings configuration file.
[root@localhost ~]# vi /etc/openstack-dashboard/local_settings
b. Press I to switch to insert mode. Edit the OPENSTACK_NEUTRON_NETWORK parameter to enable LB, FW, and VPN configuration pages in OpenStack Web.
OPENSTACK_NEUTRON_NETWORK = {
'enable_lb': True,
'enable_firewall': True,
'enable_quotas': True,
'enable_vpn': True,
# The profile_support option is used to detect if an external router can be
# configured via the dashboard. When using specific plugins the
# profile_support can be turned on if needed.
'profile_support': None,
#'profile_support': 'cisco',
}
c. Press Esc to quit insert mode, and enter :wq to exit the vi editor and save the local_settings file.
3. Edit the ml2_sec_conf_h3c.ini configuration file.
a. Use the vi editor to open the ml2_sec_conf_h3c.ini configuration file.
[root@localhost ~]# vi /etc/neutron/plugins/ml2/ml2_sec_conf_h3c.ini
b. Press I to switch to insert mode and configure the parameters in the configuration file as follows. For more information about the parameters, see "ml2_sec_conf_h3c.ini."
[SEC_SDNCONTROLLER]
url = https://127.0.0.1: 30000
username = admin
password = Pwd@12345
domain = sdn
timeout = 1800
retry = 10
white_list = False
use_neutron_credential = False
firewall_force_audit = False
sec_output_json_log = False
vendor_rpc_topic = VENDOR_PLUGIN
enable_https = False
neutron_plugin_ca_file =
neutron_plugin_cert_file =
neutron_plugin_key_file =
enable_iam_auth = False
enable_firewall_metadata = False
enable_router_nat_without_firewall = False
enable_firewall_object_group = False
cloud_region_name = default
c. Press Esc to quit insert mode, and enter :wq to exit the vi editor and save the ml2_sec_conf_h3c.ini file.
4. If you have set the white_list parameter to True, perform the following tasks:
¡ Delete the username, password, and domain parameters for SEC_SDNCONTROLLER in the ml2_conf_h3c.ini configuration file.
¡ Add an authentication-free user to the controller.
¡ Enter the IP address of the host where the Neutron server resides.
¡ Specify the role as Admin.
5. If you have set the use_neutron_credential parameter to True, perform the following steps:
a. Modify the neutron.conf configuration file.
# Use the vi editor to open the neutron.conf configuration file.
# Press I to switch to insert mode, and add the following configuration. For information about the parameters, see "neutron.conf."
[keystone_authtoken]
admin_user = neutron
admin_password = KEYSTONE_PASS
# Press Esc to quit insert mode, and enter :wq to exit the vi editor and save the neutron.conf file.
b. Add an admin user to the controller.
# Configure the username as neutron.
# Specify the role as Admin.
# Enter the password of the neutron user in OpenStack.
6. Restart the neutron-server service.
[root@localhost ~]# service neutron-server restart
neutron-server stop/waiting
neutron-server start/running, process 4583
7. (Optional.) For the firewall to operate in h3c-sec-agent mode, you can restart the h3c-sec-agent process.
[root@localhost ~]# service h3c-sec-agent restart
h3c-sec-agent stop/waiting
h3c-sec-agent start/running, process 4585
Verifying the installation
1. Verify that the SeerEngine-DC OpenStack security plug-ins is installed correctly. If the version number of the plug-ins is displayed correctly, the installation is successful.
¡ .egg file
[root@localhost ~]# pip freeze | grep PLUGIN
SeerEngine-DC-SEC-PLUGIN===E3603P01
¡ .rpm file
[root@localhost ~]# rpm -qa | grep PLUGIN
SeerEngine-DC-SEC-PLUGIN===E3603P01.noarch
¡ .whl file
[root@localhost ~]# pip3 freeze | grep PLUGIN
SeerEngine-DC-SEC-PLUGIN===E7201
2. Verify that the neutron-server service has been enabled. If the service is in running state, the service is enabled successfully.
[root@localhost ~]# service neutron-server status
neutron-server start/running, process 1849
3. (Optional.) For the firewall to operate in h3c-sec-agent mode, verify that the h3c-sec-agent service is enabled. If the service is running state, the service is enabled.
[root@localhost ~]# service h3c-sec-agent status
h3c-sec-agent start/running, process 1855
Parameters and fields
This section describes parameters in configuration files and fields included in parameters.
neutron.conf
Parameter |
Description |
service_plugins |
Extension plug-ins loaded to OpenStack The security plug-in supports the following firewall services, and you can change the values as follows: · For the open-source firewall plug-in agent mode, change firewall in the value to firewall. · If deployment of firewall policies and rules takes a long time, change firewall in the value to fwaas_h3c. · For the open-source firewall plug-in not in agent mode, change firewall in the value to firewall_h3c. Executing the h3c-secplugin controller install command will start the h3c-sec-agent process automatically. If you set the value to fwaas_h3c, you must execute the systemctl stop h3c-sec-agent and systemctl disable h3c-sec-agent commands to stop and disable the h3c-sec-agent process. · Based on H3C's self-developed firewall 2.0 service: firewall_v2 (only supports OpenStack Rocky, Stein, Train, and Ussuri). To configure firewall services, add h3c_security_core to the value. |
service_provider |
Directory where the extension plug-ins are saved. |
admin_user |
Admin username for Keystone authentication in OpenStack, for example, neutron. |
admin_password |
Admin password for Keystone authentication in OpenStack, for example, 123456. |
ml2_sec_conf_h3c.ini
Parameter |
Description |
url |
URL address for accessing the Unified Platform. |
username |
Username for logging in to the Unified Platform, for example, admin. You do not need to configure a username when the use_neutron_credential parameter is set to True. |
password |
Password for logging in to the Unified Platform, for example, Pwd@12345. You do not need to configure a password when the use_neutron_credential parameter is set to True. If the password contains a dollar sign ($), enter a backward slash (\) before the dollar sign. |
domain |
Name of the domain where the controller resides, for example, sdn. This parameter has been deprecated. |
timeout |
The amount of time that the Neutron server waits for a response from the controller in seconds, for example, 1800 seconds. As a best practice, set the waiting time greater than or equal to 1800 seconds. |
retry |
Times of sending connection requests, for example, 10. |
white_list |
Whether to enable or disable the authentication-free user feature on OpenStack. · True—Enable. · False—Disable. |
use_neutron_credential |
Whether to use the OpenStack Neutron username and password to communicate with the controller. · True—Use. · False—Do not use. |
firewall_force_audit |
Whether to audit firewall policies synchronized to the controller by OpenStack. The default value is True for OpenStack Kilo 2015.1 and False for other OpenStack versions. · True—Audits firewall policies synchronized to the controller by OpenStack. The auditing state of the synchronized policies on the controller is True (audited). · False—Does not audit firewall policies synchronized to the controller by OpenStack. The synchronized policies on the controller retain their previous auditing state. |
sec_output_json_log |
Whether to output REST API messages between the SeerEngine-DC Neutron security plugins and the controller to the OpenStack operating logs in JSON format. · True—Enable. · False—Disable. |
vendor_rpc_topic |
RPC topic of the vendor. This parameter is required when the vendor needs to obtain Neutron data from the SeerEngine-DC Neutron plug-ins. The available values are as follows: · VENDOR_PLUGIN—Default value, which means that the parameter does not take effect. · DP_PLUGIN—RPC topic of DPtech. The value of this parameter must be negotiated by the vendor and H3C. |
enable_https |
Whether to enable HTTPS bidirectional authentication. The default value is False. · True—Enable. · False—Disable. Only OpenStack Pike supports this parameter. |
neutron_plugin_ca_file |
Save location for the CA certificate of the controller. As a best practice, save the CA certificate in the /usr/share/neutron directory. Only OpenStack Pike supports this parameter. |
neutron_plugin_cert_file |
Save location for the Cert certificate of the controller. As a best practice, save the Cert certificate in the /usr/share/neutron directory. Only OpenStack Pike supports this parameter. |
neutron_plugin_key_file |
Save location for the Key certificate of the controller. As a best practice, save the Cert certificate in the /usr/share/neutron directory. Only OpenStack Pike supports this parameter. |
enable_iam_auth |
Whether to enable IAM interface authentication. · True—Enable. · False—Disable. When connecting to the Unified Platform, you can set the value to True to use the IAM interface for authentication. The default value is False. Only OpenStack Mitaka and Newton support this parameter. |
enable_firewall_metadata |
Whether to allow the CloudOS platform to issue firewall-related fields such as the resource pool name to the controller. This parameter is used only for communication with the CloudOS platform. Only OpenStack Pike supports this parameter. |
enable_router_nat_without_firewall |
Whether to enable NAT when no firewall is configured for the tenant. · True—Enable NAT when no firewall is configured. This setting automatically creates default firewall resources to implement NAT if the vRouter has been bound to an external network. · False—Not enable NAT when no firewall is configured. The default value is False. Only OpenStack Pike supports this parameter. |
enable_firewall_object_group |
Whether to enable the firewall object group feature of the plug-in. The default value is False. If you set the value to True, a firewall object group can be created on the cloud platform through the plug-in. Only OpenStack Rocky supports this parameter. To use this feature, configure compatibility settings on the cloud platform. For information about how to configure the compatibility settings, contact Technical Support. |
cloud_region_name |
If one cloud platform is connected to the controller, you can modify this parameter only when the following requirements are met: · The cloud platform is connected to the controller for the first time after upgrade. · No tenant resources are newly created on the controller. Make sure the value for this parameter is the same as the name configured on the controller and configure the cloud platform as the default platform. If multiple cloud platforms are connected to the controller, the rules for the single cloud platform interoperability scenario applies for the first cloud platform. For the other cloud platforms, you must change the value of this parameter to be the same as the value for these cloud platforms, and make sure they are the same as those configured on the controller. This parameter cannot be modified after the cloud platforms are connected to the controller. |
(Optional.) Upgrading the SeerEngine-DC Neutron security plug-ins
To upgrade the SeerEngine-DC Neutron security plug-ins, first remove the old version and then install the new version.
CAUTION: Service might be interrupted during the upgrade. Before performing an upgrade, be sure you fully understand its impact on services. |
IMPORTANT: The default parameter settings vary depending on the version of SeerEngine-DC Neutron security plug-ins. Modify the default parameter settings for SeerEngine-DC Neutron security plug-ins to ensure that the plug-ins have the same parameter settings before and after the upgrade. |
To upgrade SeerEngine-DC Neutron security plug-ins:
1. Uninstall the SeerEngine-DC Neutron security plug-ins.
¡ If the security plug-in is configured with the agent mode of the firewall plug-in, use the following command:
[root@localhost ~]# h3c-secplugin controller uninstall
Restore config files
Uninstallation complete.
¡ If the security plug-in is configured with the agentless mode of the optimized open-source firewall plug-in (firewall_h3c), the h3c_sec_agent component is not installed. In this case, use the following command:
[root@localhost ~]# h3c-secplugin controller purge_uninstall
2. Uninstall the SeerEngine-DC OpenStack software package.
¡ .egg file
[root@localhost ~]# pip uninstall seerengine-dc-sec-plugin
Uninstalling SeerEngine-DC-SEC-PLUGIN-E3603P01:
/usr/bin/h3c-secplugin
/usr/lib/python2.7/site-packages/SeerEngine_DC_SEC_PLUGIN-E3603P01-py2.7.egg
Proceed (y/n)? y
Successfully uninstalled SeerEngine-DC-SEC-PLUGIN-E3603P01
¡ .rpm file
[root@localhost ~]# rpm -e SeerEngine_DC_SEC_PLUGIN
¡ .whl file
[root@localhost ~]# pip3 uninstall SeerEngine-DC-PLUGIN
3. Install the new version of SeerEngine-DC Neutron security plug-in.
For more information, see "Installing the security plug-ins on the controller node."
4. After you upgrade the version of converged plug-ins from E6503 earlier to E6503 and later (or E6601 and later), some parameters in the ml2_sec_conf_h3c.ini configuration file are moved to the Web interface of the controller. After installing the new converged plug-ins version and the new controller version, you must change the values of those parameters to their original values before upgrade.
a. Save the ml2_sec_conf_h3c.ini.bak or ml2_sec_conf_h3c.ini.h3c_bak file in the /etc/neutron/plugins/ml2 directory of the controller node.
b. Log in to the controller, click Automation on the top navigation bar, and then select Virtual Networking > OpenStack from the left navigation pane. Click Add OpenStack-Based Cloud Platform, and then click the Parameter Settings tab to edit the parameters based on the information in the ml2_sec_conf_h3c.ini.bak or ml2_sec_conf_h3c.ini.h3c_bak file. Table 9 shows mappings between parameters on the controller and in the configuration file. Table 10 shows the parameters that become obsolete after upgrade.
CAUTION: If OpenStack-based cloud platform has been configured on the controller before the upgrade, after upgrading, you need to click Edit in the corresponding Actions section to enter the Edit OpenStack-Based Cloud Platform page. Confirm the parameters under the Security Settings tab, and then click Apply. |
Table 9 Mappings between parameters on the controller and in the configuration file
Parameters in the ml2_sec_conf_h3c.ini file before upgrade |
Parameters on the Web interface of the controller after upgrade |
directly_external: OFF |
Firewall: On for All |
directly_external: ANY |
Firewall: Off for All |
directly_external: SUFFIX directly_external_suffix: name (The name argument represents the suffix of the name of the vRouter.) |
Firewall: Off for vRouters Matching Suffix |
tenant_gw_selection_strategy: match_gateway_name tenant_gateway_name: name (The name argument represents the name of the border gateway.) |
External Connectivity Settings: Single-Segment Tenant Border Gateway Policy: Match Border Gateway Name |
enable_multi_gateways: True |
External Connectivity Settings: Single-Segment Tenant Border Gateway Policy: Match Physical Network Name of vRouter External Network |
enable_multi_segments: True |
External Connectivity Settings: Multi-Segment Tenant Border Gateway Policy: Match Segmented Physical Network Name of External Network |
auto_create_resource: True |
Auto Create Resource: On |
resource_mode: CORE_GATEWAY firewall_type: CGSR |
Firewall Resource Type: Service Gateway Firewall Resource Mode: Exclusive |
resource_mode: CORE_GATEWAY firewall_type: CGSR_SHARE |
Firewall Resource Type: Service Gateway Firewall Resource Mode: Shared |
resource_mode: CORE_GATEWAY firewall_type: NFV_CGSR |
Firewall Resource Type: Service Gateway Firewall Resource Mode: NFV |
resource_mode: SERVICE_LEAF firewall_type: ACSR |
Firewall Resource Type: Service Leaf Firewall Resource Mode: Exclusive |
resource_mode: SERVICE_LEAF firewall_type: ACSR_SHARE |
Firewall Resource Type: Service Leaf Firewall Resource Mode: Shared |
lb_type: CGSR |
LB Resource Mode: Exclusive |
lb_type: CGSR_SHARE |
LB Resource Mode: Shared |
lb_type: NFV_CGSR |
LB Resource Mode: NFV |
resource_share_count: 1 |
Shared Resource Nodes: 1 |
lb_resource_mode: SP |
LB Resource Pool Mode: Single Resource Pool |
lb_resource_mode: MP |
LB Resource Pool Mode: Multiple Resource Pools |
lb_enable_snat: True |
SNAT for Loadbalancer: On |
lb_member_slow_shutdown: True |
Real Service Slow Shutdown: On |
enable_lb_xff: True |
XFF for Loadbalancer: On |
enable_lb_certchain: True |
Send Full Certificate Chain on SSL Server: On |
Table 10 Obsolete parameters after upgrade
Parameter |
Description |
firewall_type |
Type of the firewalls created on the SeerEngine-DC controller. The following firewall type is no longer supported: CGSR_SHARE_BY_COUNT—Context-based gateway service type firewall, all using the same context when the number of contexts reaches the threshold set by the cgsr_fw_context_limit parameter. This firewall type is available only when the value of the resource_mode parameter is CORE_GATEWAY. Only OpenStack Pike supports this firewall type. |
fw_share_by_tenant |
Whether to enable exclusive use of a gateway service type firewall context by a single tenant and allow the context to be shared by service resources of the tenant when the firewall type is CGSR_SHARE or ACSR_SHARE. |
cgsr_fw_context_limit |
Context threshold for context-based gateway service type firewalls. The value is an integer. When the threshold is reached, all the context-based gateway service type firewalls use the same context. This parameter takes effect only when the value of the firewall_type parameter is CGSR_SHARE_BY_COUNT. Only OpenStack Pike supports this parameter. |
nfv_ha |
Whether the NFV and NFV_SHARE resources support stack. · True—Support. · False—Do not support. |
Comparing and synchronizing firewall resource information between the cloud platform and controller
Only OpenStack Pike supports this task.
To compare and synchronize firewall resource information between the cloud platform and controller:
1. Execute the h3c-secplugin-fw-extension compare --file [absolute path] file name.csv command to compare firewall resource information between the cloud platform and controller.
¡ If you do not specify the --file [absolute path] filename.csv option, the comparison result is saved to the /var/log/neutron/compare_sec_data-time.csv file, where time indicates the comparison start time.
¡ If you specify --file [absolute path] filename.csv, the comparison result is saved to the specified file. If you do not specify an absolute path, the result is saved to /var/log/neutron/file name.csv.
The comparison result file contains the following fields:
¡ Resource—Resource type.
¡ Name—Resource name.
¡ Id—Resource ID.
¡ Tenant_id—Tenant ID of the resource.
¡ Tenant_name—Tenant name of the resource.
¡ Status—Comparison result.
- lost—Less resources on the controller. You must add resources to the controller.
- different—Different resources on the controller than the cloud platform. You must update resources on the controller.
- surplus—More resources on the controller. You must remove excessive resources from the controller.
2. Execute the h3c-secplugin-fw-extension sync –file comparison result file name.csv command to synchronize firewall resource information on the controller with that on the cloud platform. If the comparison result file is in the /var/log/neutron/ path, enter the file name directly. If the comparison result file is in another path, enter the absolute file path.
After the synchronization is complete, a synchronization result file /var/log/neutron/sync_sec_data-time.csv is generated, where time indicates the synchronization start time.
CAUTION: Do not add or edit information in the synchronization result file. |
Comparing and synchronizing LB resource information between the cloud platform and controller
Only OpenStack Pike, Queens, and Rocky support this task.
To compare and synchronize LB resource information between the cloud platform and controller:
1. Execute the h3c-secplugin-lb-extension compare --file [absolute path] file name.csv command to compare LB resource information between the cloud platform and controller.
¡ If you do not specify the file [absolute path] file name.csv option, the comparison result is saved to the /var/log/neutron/compare_sec_lbv2_data-time.csv file, where time indicates the comparison start time.
¡ If you specify the file [absolute path] file name.csv option, the comparison result is saved to the specified file. If you do not specify an absolute path, the result is saved to /var/log/neutron/file name.csv.
The comparison result file contains the following fields:
¡ Resource—Resource type.
¡ Name—Resource name.
¡ Id—Resource ID.
¡ Tenant_id—Tenant ID of the resource.
¡ Tenant_name—Tenant name of the resource.
¡ Status—Comparison result.
- lost—Less resources on the controller. You must add resources to the controller.
- different—Different resources on the controller than the cloud platform. You must update resources on the controller.
- surplus—More resources on the controller. You must remove excessive resources from the controller.
2. Execute the h3c-secplugin-lb-extension sync --file comparison result file name.csv command to synchronize LB resource information on the controller with that on the cloud platform. If the comparison result file is in the /var/log/neutron/ path, enter the file name directly. If the comparison result file is in another path, enter the absolute file path.
After the synchronization is complete, a synchronization result file /var/log/neutron/sync_sec_lb_data-time.csv is generated, where time indicates the synchronization start time.
CAUTION: Do not add or edit information in the synchronization result file. |
Upgrading non-converged plug-ins to converged plug-ins
1. Upgrade the controller to a version that supports converged plug-ins.
2. Remove non-converged plug-ins:
a. Remove the plug-ins on the controller node:
- Versions earlier than E3702
[root@localhost ~]# h3c-vcfplugin controller uninstall
- E3702 and its later versions
[root@localhost ~]# h3c-sdnplugin controller uninstall
b. Remove the plug-ins on the compute node:
- Versions earlier than E3702
[root@localhost ~]# h3c-vcfplugin compute uninstall
[root@localhost ~]# h3c-vcfplugin openvswitch uninstall
- E3702 and its later versions
[root@localhost ~]# h3c-sdnplugin compute uninstall
[root@localhost ~]# h3c-sdnplugin openvswitch uninstall
c. Remove the plug-ins on the DHCP failover node:
- Versions earlier than E3702
[root@localhost ~]# h3c-vcfplugin dhcp uninstall
[root@localhost ~]# h3c-vcfplugin metadata uninstall
- E3702 and its later versions
[root@localhost ~]# h3c-sdnplugin dhcp uninstall
[root@localhost ~]# h3c-sdnplugin metadata uninstall
d. Remove the software packages from all nodes:
- CentOS 8 and CentOS Stream 8 operating systems:
[root@localhost ~]# pip3 uninstall SeerEngine-DC-PLUGIN
- Other CentOS operating systems:
[root@localhost ~]# pip uninstall SeerEngine-DC-PLUGIN
IMPORTANT: Commands for removing plug-ins vary depending on the software version. |
3. Install converged plug-ins:
a. Install converged plug-ins and security plug-ins as shown in Installing SeerEngine-DC Neutron plug-ins and patches on OpenStack and Installing the SeerEngine-DC Neutron security plug-ins on OpenStack, respectively.
b. Use the vi editor to open the ml2_conf.ini configuration file.
[root@localhost ~]# vi /etc/neutron/plugins/ml2/ml2_conf.ini
c. Press I to switch to insert mode, and set the parameters in the ml2_conf.ini configuration file. Press Esc to quit insert mode, and enter :wq to exit the vi editor and save the ml2_conf.ini file.
[SDNCONTROLLER]
sdnc_rpc_url = ws://127.0.0.1:30000
sdnc_rpc_ping_interval = 60
websocket_fragment_size = 102400
cloud_region_name = default
ml2_conf.ini
sdnc_rpc_url |
Set the value to the IP address and WebSocket type interface number of the Unified Platform when Metadata is enabled or DHCP fail-safe is supported. Configure this parameter based on the URL of the Unified Platform. For example, if the URL of the Unified Platform is http://127.0.0.1:30000, set this parameter to ws://127.0.0.1:30000. |
cloud_region_name |
If one cloud platform is connected to the controller, you can modify this parameter when the cloud platform is connected to the controller for the first time after upgrade and no tenant resources are newly created on the controller. Make sure the value of this parameter is the same as the name configured on the controller and configure the cloud platform as the default platform. If multiple cloud platforms are connected to the controller, the rules for the single cloud platform interoperability scenario applies for the first cloud platform. For the other cloud platforms, you must change the value of this parameter to be the same as the value for these cloud platforms, and make sure they are the same as those configured on the controller. This parameter cannot be modified after the cloud platforms are connected to the controller. You must specify different values for the vxlan vni_ranges parameter for different cloud platforms. |
d. Delete the backup files generated for non-converged plug-ins or change their file name suffixes. Those backup files include ml2_conf_h3c.ini.bak and ml2_conf_h3c.ini.h3c_bak. If you do not perform this operation, some parameters of non-converged plug-ins might be modified or initialized upon next-time security plug-in upgrades.
4. Configure parameters on the controller:
Some parameters in the ml2_conf_h3c.ini configuration file for non-converged plug-ins have been moved to the Web interface on the controller. After installing converged plug-ins, you must change the values of the parameters to the values before upgrade.
a. Save the ml2_conf_h3c.ini.bak or ml2_conf_h3c.ini.h3c_bak file in the /etc/neutron/plugins/ml2 directory of the controller node.
b. Log in to the controller, click Automation on the top navigation bar, and then select Virtual Networking > OpenStack from the left navigation pane. Click Add OpenStack-Based Cloud Platform, and then click the Parameter Settings tab to edit the parameters based on the information in the ml2_conf_h3c.ini.bak or ml2_conf_h3c.ini.h3c_bak file.
Table 11 Mapping between parameters on the controller and in the configuration file
Parameters in the ml2_conf_h3c.ini file before upgrade |
Parameters on the controller after upgrade |
cloud_region_name |
Name |
hybrid_vnic |
VLAN to VXLAN Conversion |
enable_metadata: True enable_dhcp_hierarchical_port_binding: True |
Network Node Access Policy: VLAN |
enable_metadata: True enable_dhcp_hierarchical_port_binding: False |
Network Node Access Policy: VXLAN |
enable_metadata: False enable_dhcp_hierarchical_port_binding: False |
Network Node Access Policy: No Access |
ip_mac_binding |
IP-MAC Anti-Spoofing |
directly_external: OFF |
Firewall: On for All |
directly_external: ANY |
Firewall: Off for All |
directly_external: SUFFIX directly_external_suffix: name where name represents the suffix of the name of the vRouter. |
Firewall: Off for vRouters Matching Suffix |
tenant_gw_selection_strategy: match_gateway_name tenant_gateway_name: name, where name represents the name of the boarder gateway. |
External Connectivity Settings: Single-Segment Tenant Border Gateway Policy: Match Boarder Gateway Name |
enable_multi_gateway: True |
External Connectivity Settings: Single-Segment Tenant Border Gateway Policy: Match Physical Network Name of vRouter External Network |
enable_bind_router_gateway_with_specified_name: True |
External Connectivity Settings: Single-Segment Tenant Border Gateway Policy: Match External Network Name of vRouter |
enable_multi_segments: True |
External Connectivity Settings: Multi-Segment Tenant Border Gateway Policy: Match Physical Network Name of vRouter External Network |
deploy_network_resource_gateway |
Preconfigure Border Gateway for External Network |
network_force_flat |
Forcibly Convert External Network to Flat Network |
enable_network_l3vni: False |
Automatic Allocation of L3VNIs for External Networks: Off |
dhcp_lease_time |
DHCP Lease Duration |
generate_vrf_based_on_router_name: False |
VRF Name Generation Method on vRouter: Auto |
generate_vrf_based_on_router_name: True |
VRF Name Generation Method on vRouter: Use vRouter Name |
vds_name |
Default VDS name |
auto_create_resource: True |
Auto Create Resource: On |
resource_mode: CORE_GATEWAY firewall_type: CGSR |
Firewall Resource Type: Service Gateway Firewall Resource Mode: Exclusive |
resource_mode: CORE_GATEWAY firewall_type: CGSR_SHARE |
Firewall Resource Type: Service Gateway Firewall Resource Mode: Shared |
resource_mode: CORE_GATEWAY firewall_type: NFV_CGSR |
Firewall Resource Type: Service Gateway Firewall Resource Mode: NFV |
resource_mode: SERVICE_LEAF firewall_type: ACSR |
Firewall Resource Type: Service Leaf Firewall Resource Mode: Exclusive |
resource_mode: SERVICE_LEAF firewall_type: ACSR_SHARE |
Firewall Resource Type: Service Leaf Firewall Resource Mode: Shared |
lb_type: CGSR |
LB Resource Mode: Exclusive (Service Gateway) |
resource_mode: CORE_GATEWAY lb_type: CGSR_SHARE |
Resource Type: Service Gateway LB Resource Mode: Shared (Service Gateway) |
resource_mode: CORE_GATEWAY lb_type: NFV_CGSR |
Resource Type: Service Gateway LB Resource Mode: NFV (Service Gateway) |
resource_share_count: 1 |
Shared Resource Nodes: 1 |
lb_resource_mode: SP |
LB Resource Pool Mode: Single Resource Pool |
lb_resource_mode: MP |
LB Resource Pool Mode: Multiple Resource Pools |
lb_enable_snat: True |
SNAT for Loadbalancer: On |
lb_member_slow_shutdown: True |
Real Service Slow Shutdown: On |
enable_lb_xff: True |
XFF for Loadbalancer: On |
enable_lb_certchain: True |
Send Full Certificate Chain on SSL Server: On |
Table 12 Obsolete parameters after upgrade
Parameter |
Description |
firewall_type |
Type of the firewalls created on the SeerEngine-DC controller. The following firewall type is no longer supported: CGSR_SHARE_BY_COUNT—Context-based gateway service type firewall, all using the same context when the number of contexts reaches the threshold set by the cgsr_fw_context_limit parameter. This firewall type is available only when the value of the resource_mode parameter is CORE_GATEWAY. Only OpenStack Pike supports this firewall type. |
fw_share_by_tenant |
Whether to enable exclusive use of a gateway service type firewall context by a single tenant and allow the context to be shared by service resources of the tenant when the firewall type is CGSR_SHARE or ACSR_SHARE. |
cgsr_fw_context_limit |
Context threshold for context-based gateway service type firewalls. The value is an integer. When the threshold is reached, all the context-based gateway service type firewalls use the same context. This parameter takes effect only when the value of the firewall_type parameter is CGSR_SHARE_BY_COUNT. Only OpenStack Pike supports this parameter. |
nfv_ha |
Whether the NFV and NFV_SHARE resources support stack. · True—Support. · False—Do not support. |
5. Configure the following settings on the controller:
a. Configure the VNI range to be same as the vni_ranges parameter value in the ml2_conf.ini configuration file before the upgrade.
b. Make sure a VXLAN pool exists on the controller after the upgrade. The VXLAN pool and the vni_ranges range in the ml2_conf.ini file before the upgrade cannot conflict with each other. As a best practice, make sure the range of the VXLAN pool includes the l3_vni_ranges range in the ml2_conf_h3c.ini file before the upgrade.
CAUTION: If OpenStack-based cloud platform has been configured on the controller before the upgrade, after upgrading, you need to click Edit in the corresponding Actions section to enter the Edit OpenStack-Based Cloud Platform page. Confirm the parameters under the Security Settings tab, and then click Apply. |
6. Restart the neutron-server service.
[root@localhost ~]# service neutron-server restart
Comparing and synchronizing resource information between the controller and cloud platform
IMPORTANT: This feature is not supported in the following scenarios: · H3C CloudOS network-based overlay VXLAN environment. · Third-party cloud platforms except for the Ericsson cloud and OpenStack. This feature is not applicable to extended resources (vpc-connection, bgpneighbor, exroute, trunk, and taas) except for those provided by H3C proprietary plug-ins and Ericsson cloud plug-ins |
Before performing this task, navigate to the Automation > Data Center Networks > Virtual Networking > OpenStack page and configure the default cloud platform. OpenStack Kilo and Liberty do not support this feature.
To compare and synchronize resource information between the controller and cloud platform:
1. Execute the h3c-sdnplugin-extension compare --file [absolute path] file name.csv command to compare resource information between the controller and cloud platform.
¡ If you do not specify --file [absolute path] filename.csv, the comparison result is saved to the /var/log/neutron/compare_data-time.csv file, where time indicates the comparison start time.
¡ If you specify --file [absolute path] filename.csv, the comparison result is saved to the specified file. If you do not specify an absolute path, the result is saved to /var/log/neutron/file name.csv.
The comparison result file contains the following fields:
¡ Resource—Resource type.
¡ Name—Resource name.
¡ Id—Resource ID.
¡ Tenant_id—Tenant ID of the resource.
¡ Tenant_name—Tenant name of the resource.
¡ Status—Comparison result.
- lost—Less resources on the controller. You must add resources to the controller.
- different—Different resources on the controller than the cloud platform. You must update resources on the controller.
- surplus—More resources on the controller. You must remove excessive resources from the controller.
2. Execute the h3c-sdnplugin-extension sync --file comparison result file name.csv command. If the comparison result file is in the /var/log/neutron/ path, enter the file name directly. If the comparison result file is in another path, enter the absolute file path.
If you need to specify the synchronization result file storage path, you can use the command h3c-sdnplugin-extension sync --file comparison result file name.csv --sync_result_file synchronization result file name.csv. If you want to save the synchronization result file under /var/log/neutron/, you can directly enter the file name, otherwise please enter the absolute path file name.
After you set the value of the enable_security_group parameter to False, security groups and security groups bound to vPorts might exist on the controller when you perform the comparison operation. To resolve the issue, perform the synchronization twice.
After the command is executed, the system displays resource statistics and prompts for your confirmation to start the synchronization. The system starts the synchronization only after receiving your confirmation for twice.
After synchronization is completed, if the --sync_result_file is specified, the synchronization result will be saved to the specified file in .csv format. Otherwise, the default synchronization result file will be generated: /var/log/neutron/sync_data-time.csv, where time indicating the synchronization start time.
CAUTION: · Do not add or edit information in the synchronize result file. · To avoid anomaly caused by misoperations, examine and compare the result file and resource statistics carefully. |
CLI-based management of VPC connections and floating IP addresses
This feature allows you to create, update, delete, or view VPC connections and floating IP addresses on the cloud platform.
Restrictions and guidelines
· Before you perform CLI-based management of VPC connections, set the firewall scenario setting to non-network cloud for VPC communication.
· OpenStack Kilo, Liberty, Mitaka, Newton, and Ocata do not support CLI-based management of VPC connections.
CLI-based management of VPC connections
Table 13 shows the commands that can be used for VPC connection management.
Table 13 Commands for VPC connection management
Item |
Supported versions |
neutron h3c-vpcconnection-list |
Displays all VPC connections. |
neutron h3c-vpcconnection-show uuid |
Displays the specified VPC connection. The uuid argument represents the UUID of the desired VPC connection. |
neutron h3c-vpcconnection-create |
Creates a VPC connection. |
neutron h3c-vpcconnection-update |
Updates a VPC connection. |
neutron h3c-vpcconnection-delete uuid |
Deletes a VPC connection. The uuid argument represents the UUID of the desired VPC connection. |
For example, you can create a VPC connection as follows:
[root@controller ~]# neutron h3c-vpcconnection-create --tenant-id b5450fb690a245edbfdb202ada84cae9 --fw_enabled False --local-subnets b323aa83-83d1-4b21-b81a-4ee243c9da00 --peer-subnets dd275c26-2b33-4884-8fcf-129f7d895d14 --local-cidrs 1.1.1.1/24 --peer-cidrs 3.3.3.3/24 --local-router d331cde9-747b-40f8-b598-b291fddeb306 --peer-router 39a866f3-70a5-4dc4-ab7c-af0cc2d1146f
CLI-based management of floating IP addresses
Table 14 shows the commands that can be used for floating IP address management.
Table 14 Commands for floating IP address management
Item |
Supported versions |
neutron h3c-floatingip-list |
Displays all floating IP addresses. |
neutron h3c-floatingip-show uuid |
Displays the specified floating IP address. The uuid argument represents the UUID of the desired floating IP address. |
neutron h3c-floatingip-create |
Creates a floating IP address. |
neutron h3c-floatingip-update |
Updates a floating IP address. |
neutron h3c-floatingip-delete uuid |
Deletes a floating IP address. The uuid argument represents the UUID of the desired floating IP address. |
neutron h3c-floatingip-associate |
Associates a floating IP address with a port. |
neutron h3c-floatingip-disassociate |
Disassociates a floating IP address from a port. |
For example, you can create a floating IP address as follows:
[root@controller ~]# neutron h3c-floatingip-create --port-id b2f2e5bd-0007-4423-9c8e-249ca1712c85 f33ff85a-aad0-4cc2-96f5-1e648b4bc168
FAQ
The Python tools cannot be installed using the yum command when a proxy server is used for Internet access. What should I do?
Configure HTTP proxy by performing the following steps:
1. Make sure the server or the virtual machine can access the HTTP proxy server.
2. At the CLI of the CentOS system, use the vi editor to open the yum.conf configuration file. If the yum.conf configuration file does not exist, this step creates the file.
[root@localhost ~]# vi /etc/yum.conf
3. Press I to switch to insert mode, and provide HTTP proxy information as follows:
¡ If
the server does not require authentication, enter HTTP proxy information in the following format:
proxy =
http://yourproxyaddress:proxyport
¡ If the server requires authentication, enter
HTTP proxy information in the following format:
proxy = http://yourproxyaddress:proxyport
proxy_username=username
proxy_password=password
Table 15 describes the arguments in HTTP proxy information.
Table 15 Arguments in HTTP proxy information
Field |
Description |
username |
Username for logging in to the proxy server, for example, sdn. |
password |
Password for logging in to the proxy server, for example, 123456. |
yourproxyaddress |
IP address of the proxy server, for example, 172.25.1.1. |
proxyport |
Port number of the proxy server, for example, 8080. |
proxy = http://172.25.1.1:8080
proxy_username = sdn
proxy_password = 123456
4. Press Esc to quit insert mode, and enter :wq to exit the vi editor and save the yum.conf file.
Live migration of a VM to a specified destination host failed because of a service exception on the destination host. What should I do?
To resolve the issue:
1. View the VM state. If the live migration operation has been rolled back, the VM is in normal state, and services are not affected, you can perform live migration again after the destination host recovers.
2. Compare resource information to identify whether residual configuration exists on the destination host. If residual configuration exists, determine whether services will be affected.
¡ If services will not be affected, retain the residual configuration.
¡ If services will be affected, contact the technical support to delete the residual configuration.
The Inter X700 Ethernet network adapter series fails to receive LLDP messages. What should I do?
Use the following procedure to resolve the issue. An enp61s0f3 Ethernet network adapter is used as an example.
1. View detailed information about the Ethernet network adapter and record the value for the bus-info field.
sdn@ubuntu:~$ ethtool -i enp61s0f3
driver: i40e
version: 2.8.20-k
firmware-version: 3.33 0x80000f0c 1.1767.0
expansion-rom-version:
bus-info: 0000:3d:00.3
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: yes
2. Use one of the following solutions:
¡ Solution 1. If this solution fails, use solution 2.
# Execute the following command:
sdn@ubuntu:~$ sudo ethtool --set-priv-flags enp61s0f3 disable-fw-lldp on
# Identify whether the value for the disable-fw-lldp field is on.
sdn@ubuntu:~$ ethtool --show-priv-flags enp61s0f3 | grep lldp
disable-fw-lldp : on
If the value is on, the network adapter then can receive LLDP messages. For this command to remain effective after a system restart, you must write this command into the user-defined startup program file.
# Open the self-defined startup program file.
sdn@ubuntu:~$ sudo vi /etc/rc.local
# Press I to switch to insert mode, and add this command to the file. Then press Esc to quit insert mode, and enter :wq to exit the vi editor and save the file.
ethtool --set-priv-flags enp61s0f3 disable-fw-lldp on
Make sure this command line is configured before the exit 0 line.
¡ Solution 2.
# Execute the echo "lldp stop" > /sys/kernel/debug/i40e/bus-info/command command. Enter the recorded bus info value for the network adapter, and add a backslash (\) before each ":".
sdn@ubuntu:~$ sudo -i
sdn@ubuntu:~$ echo "lldp stop" > /sys/kernel/debug/i40e/0000\:3d\:00.3/command
The network adapter can receive LLDP messages after this command is executed. For this command to remain effective after a system restart, you must write this command into the user-defined startup program file.
# Open the self-defined startup program file.
sdn@ubuntu:~$ sudo vi /etc/rc.local
# Press I to switch to insert mode, and add this command to the file. Then Press Esc to quit insert mode, and enter :wq to exit the vi editor and save the file.
echo "lldp stop" > /sys/kernel/debug/i40e/0000\:3d\:00.3/command
Make sure this command line is configured before the exit 0 line.
VM instances fail to be created in a normal environment. What should I do?
1. Identify whether WebSocket client is installed. If WebSocket client is not installed, identify whether the controller cluster has rebooted.
2. If the controller cluster has rebooted, restart the neutron-server service and then create VM instances.
As a best practice, install WebSocket client and enable WebSocket client connection with the controller RPC service to prevent data loss in case of a controller cluster reboot.
In a Rocky or later OpenStack environment, packet loss occurs during a live migration. What should I do?
Packet loss during a live migration results from a bug in the open source codes. To resolve the issue, you must modify the open source codes. The following procedure uses the Rocky version as an example.
CAUTION: Back up the codes before your modification. |
To resolve the issue:
1. Perform the following steps on each of the controller nodes:
a. Modify the plugin.py file.
vi /usr/lib/python2.7/site-packages/neutron/plugins/ml2/plugin.py
Press I to switch to insert mode, and then modify the open source codes as shown in Figure 1.
Figure 1 Open source codes to be modified on each controller node
After the modification, press Esc to quit insert mode, and enter :wq to exit the vi editor and save the plugin.py file.
b. Modify the ml2_conf.ini file.
vi /etc/neutron/plugins/ml2/ml2_conf.ini
[securitygroup]
firewall_driver = iptables_hybrid
enable_security_group = true
After the modification, press Esc to quit insert mode, and enter :wq to exit the vi editor and save the ml2_conf.ini file.
c. Restart the neutron-server service.
systemctl restart neutron-server
2. Perform the following steps on each of the compute nodes.
a. Modify the rpc.py file.
vi /usr/lib/python2.7/site-packages/neutron/agent/rpc.py
Press I to switch to insert mode, and then modify the open source codes as shown in Figure 1.
Figure 2 Open source codes to be modified on each compute node
After the modification, press Esc to quit insert mode, and enter :wq to exit the vi editor and save the plugin.py file.
a. Modify the openvswitch_agent.ini file.
vi /etc/neutron/plugins/ml2/openvswitch_agent.ini
Press I to switch to insert mode
[securitygroup]
firewall_driver = iptables_hybrid
enable_security_group = true
After the modification, press Esc to quit insert mode, and enter :wq to exit the vi editor and save the openvswitch_agent.ini file.
b. Restart the neutron-openvswitch-agent service.
systemctl restart neutron-openvswitch-agent
c. Modify the nova.conf file.
vi /etc/nova/nova.conf
Press I to switch to insert mode
[compute]
live_migration_wait_for_vif_plug=true
After the modification, press Esc to quit insert mode, and enter :wq to exit the vi editor and save the nova.conf file.
d. Restart the openstack-nova-compute service.
systemctl restart openstack-nova-compute
When neutron database link information is encrypted, converged plug-ins cannot inherit the portforwardings table because they cannot access the neutron database. What should I do?
1. Uninstall the Neutron plug-ins. For more information, see "Remove the SeerEngine-DC Neutron plug-ins."
2. Reinstall the Neutron plug-ins and specify the db_connection parameter when you start Neutron plug-in installation.
[root@localhost ~]# h3c-sdnplugin controller install --db_connection mysql+pymysql://neutron:PASSWORD@controller/neutron
The value for the db_connection parameter is that for the [database] configuration group connection field in the neutron.conf file. The password used for access to the Neutron database is the encrypted password.
connection = mysql+pymysql://neutron:PASSWORD@controller/neutron
The Kylin V10 operating system prompts an Exception ignored in: or Download error on https: notification. What should I do?
You can ignore these notifications.
Figure 3 Exception ignored in: notification
Figure 4 Download error on https: notification