H3C SeerEngine-DC Controller Converged OpenStack Plug-Ins Installation Guide for Ubuntu-E62xx-5W200

HomeSupportAD-NET(SDN)H3C SeerEngine-DCConfigure & DeployInteroperability GuidesH3C SeerEngine-DC Controller Converged OpenStack Plug-Ins Installation Guide for Ubuntu-E62xx-5W200
01-Text
Title Size Download
01-Text 544.01 KB

Contents

Overview·· 1

SeerEngine-DC Neutron plug-ins· 1

Nova patch· 1

Openvswitch-agent patch· 1

DHCP failover components· 1

DHCP component 1

Metadata component 2

SeerEngine-DC Neutron security plug-ins· 2

Restrictions and guidelines· 3

Installing OpenStack cloud platforms· 5

Preconfiguring SeerEngine-DC·· 6

Installing SeerEngine-DC Neutron plug-ins and patches on OpenStack· 1

Installing the Python tools· 1

Configuring interoperability in the KVM host-based overlay scenario· 2

Installing and configuring plug-ins on the controller node· 2

Installing configuring plug-ins on a compute node· 12

Verifying interoperability· 15

Configuring interoperability in the KVM network-based overlay scenario· 15

Installing and configuring plug-ins on the controller node· 15

Installing the lldpad service· 15

Installing and configuring plug-ins on a compute node· 16

Install the new patch. For more information, see "Installing the lldpad service· 17

Installing and configuring plug-ins on a network node· 18

Verifying interoperability· 22

Configuring interoperability in the network-based overlay with SR-IOV enabled scenario· 22

Installing and configuring plug-ins on the controller node· 22

Installing and configuring plug-ins on a compute node· 22

See "Installing the lldpad service· 22

Enabling SR-IOV for a vNIC· 23

Editing the configuration file· 23

Verifying interoperability· 23

Configuring interoperability with F5 or third-party load balancers· 23

Installing and configuring plug-ins on the controller node· 23

Installing and configuring plug-ins on a compute node· 23

See "Installing the lldpad service· 23

For the VXLAN or network overlay environment, see openvswich patch installation in "Installing the lldpad service  24

Setting up the F5 environment 24

Verifying interoperability· 26

Configuring interoperability with third-party firewalls· 26

Installing and configuring plug-ins on the controller node· 26

Installing and configuring plug-ins on a compute node· 26

See "Installing the lldpad service· 26

For the VXLAN or network overlay scenario, see openvswich patch installation in "Installing the lldpad service  27

Setting up the environment 27

Verifying interoperability· 28

Configuring interoperability with Ironic· 28

Installing and configuring plug-ins on the controller node· 28

Deploying Ironic· 28

Metadata solution· 28

Installing and configuring OpenStack plug-ins on the controller node· 28

Installing and configuring OpenStack plug-ins on the compute node· 28

Setting up the environment for the traditional VLAN and VXLAN-based Metadata solution· 29

Setting up the environment for the traditional VLAN and VXLAN hierarchical port binding-based Metadata solution  30

Installing the SeerEngine-DC Neutron security plug-ins on OpenStack· 32

Installing the security plug-ins on the controller node· 32

Obtaining the installation package· 32

Installing the security plug-ins on the OpenStack controller node· 32

Editing the configuration files on the OpenStack controller node· 33

Verifying the installation· 36

Parameters and fields· 36

(Optional.) Upgrading the SeerEngine-DC Neutron security plug-ins· 41

Comparing and synchronizing firewall resource information between the cloud platform and controller 41

Comparing and synchronizing LB resource information between the cloud platform and controller 43

Upgrading non-converged plug-ins to converged plug-ins· 43

Comparing and synchronizing resource information between the controller and cloud platform·· 47

FAQ·· 48

The Python tools cannot be installed using the yum command when a proxy server is used for Internet access. What should I do?· 48

Live migration of a VM to a specified destination host failed because of a service exception on the destination host. What should I do?· 48

The Inter X700 Ethernet network adapter series fails to receive LLDP messages. What should I do?· 49

VM instances fail to be created in a normal environment. What should I do?· 50

In a Rocky or later OpenStack environment, packet loss occurs during a live migration. What should I do?  50

 


Overview

This document describes how to install OpenStack plug-ins for interoperability with OpenStack cloud platforms. Then SeerEngine-DC can process requests from the OpenStack cloud platforms.

OpenStack plug-ins include 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 the SeerEngine-DC controller based on the OpenStack framework. SeerEngine-DC Neutron plug-ins can obtain network configuration from OpenStack through REST APIs and synchronize the configuration to the SeerEngine-DC controllers. They can obtain settings for the tenants' networks, subnets, routers, or ports.

 

CAUTION

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 controller 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 controllers.

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.

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 a DHCP component on a network 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 network node to provide the Metadata function for the DHCP component.

SeerEngine-DC Neutron security plug-ins

SeerEngine-DC Neutron security plug-ins are developed for the SeerEngine-DC controller based on the OpenStack framework. SeerEngine-DC Neutron security plug-ins can obtain security configuration from OpenStack through REST APIs and synchronize the configuration to the SeerEngine-DC controllers. They can obtain settings for the tenants' FW, LB, or VPN.


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 SeerEngine-DC 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.

Table 1 Software requirements

Item

Supported versions

OpenStack (deployed on CentOS with YUM)

·     OpenStack Kilo 2015.1 on Ubuntu 14.04

·     OpenStack Liberty on Ubuntu 14.04

·     OpenStack Mitaka on Ubuntu 14.04

·     OpenStack Newton on Ubuntu 14.04

·     OpenStack Ocata on Ubuntu 14.04

·     OpenStack Pike on Ubuntu 16.04

·     OpenStack Queens on Ubuntu 18.04

·     OpenStack Rocky on Ubuntu 18.04

·     OpenStack Stein on Ubuntu 18.04

·     OpenStack Train on Ubuntu 18.04

·     OpenStack Ussuri on Ubuntu 20.04

·     OpenStack Victoria on Ubuntu 20.04

 

IMPORTANT

IMPORTANT:

·     OpenStack security plug-ins cannot be installed on OpenStack Stein, Train, Ussuri, or Victoria.

·     To install 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.


Preconfiguring SeerEngine-DC

SeerEngine-DC preconfiguration provides only basic configuration for SeerEngine-DC. For detailed configuration for different scenarios, see the configuration guides.

Table 2 SeerEngine-DC preconfiguration

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 PoolsVNID Pools > VXLANs

[Automation > Data Center Networks > Resource PoolsVNID 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 > Virtual Networking > OpenStack

NOTE:

·     Make sure the cloud platform name (case sensitive) is 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 a network 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.

sdn@ubuntu:~$ sudo apt-get update

2.     Download and install the Python tools.

¡     Ubuntu 20.04 operating system:

sdn@ubuntu:~$ sudo apt-get install python3-pip python3-setuptools

¡     Other Ubuntu operating systems:

sdn@ubuntu:~$ sudo apt-get install 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.

sdn@ubuntu:~$ sudo vi /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. Make sure the version is 0.56.

¡     Ubuntu 20.04 operating system:

sdn@ubuntu:~$ sudo pip install websocket-client==0.56

¡     Other Ubuntu operating systems:

sdn@ubuntu:~$ sudo apt-get install python-websocket-client

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

CAUTION:

The QoS feature will not operate correctly if you configure the database connection in configuration file neutron.conf as follows:

[database]

connection = mysql://…

This is an open source bug in OpenStack. To prevent this problem, configure the database connection as follows:

[database]

connection = mysql+pymysql://…

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 file) is saved, and install the package on the OpenStack controller node. The name of the SeerEngine-DC OpenStack package is SeerEngine_DC_PLUGIN-version-py2.7.egg. version represents the version of the package.

¡     Ubuntu 20.04 operating system:

sdn@ubuntu:~$ sudo python3 -m easy_install --no-deps SeerEngine_DC_PLUGIN-E6102-py3.6.egg

¡     Ubuntu 18.04 operating system:

sdn@ubuntu:~$ sudo python -m easy_install SeerEngine_DC_PLUGIN-E3608-py2.7.egg

¡     Other Ubuntu operating systems:

sdn@ubuntu:~$ sudo easy_install SeerEngine_DC_PLUGIN-E3608-py2.7.egg

2.     Change the user group and permissions of the plug-in file to be consistent with those of the Neutron file.

¡     Ubuntu 20.04 operating system:

sdn@ubuntu:~$ sudo cd /usr/local/lib/python3.6/dist-packages

sdn@ubuntu:~$ sudo chown -R --reference=/usr/lib/python3.6/dist-packages/neutron SeerEngine*

sdn@ubuntu:~$ sudo chmod -R --reference=/usr/lib/python3.6/dist-packages/neutron SeerEngine*

sdn@ubuntu:~$ sudo cd /usr/local/bin

sdn@ubuntu:~$ sudo chown -R --reference=/usr/bin/neutron-server h3c*

sdn@ubuntu:~$ sudo chmod -R --reference=/usr/bin/neutron-server h3c*

¡     Other Ubuntu operating systems:

sdn@ubuntu:~$ sudo cd /usr/local/lib/python2.7/dist-packages

sdn@ubuntu:~$ sudo chown -R --reference=/usr/lib/python2.7/dist-packages/neutron SeerEngine*

sdn@ubuntu:~$ sudo chmod -R --reference=/usr/lib/python2.7/dist-packages/neutron SeerEngine*

sdn@ubuntu:~$ sudo cd /usr/bin

sdn@ubuntu:~$ sudo chown -R --reference=neutron-server h3c*

sdn@ubuntu:~$ sudo chmod -R --reference=neutron-server h3c*

3.     Install the SeerEngine-DC Neutron plug-ins.

sdn@ubuntu:~$ sudo h3c-sdnplugin controller install

 

IMPORTANT

IMPORTANT:

Before executing the sudo 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.

sdn@ubuntu:~$ sudo 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."

For OpenStack Train, Ussuri, and Victoria:

[DEFAULT]

core_plugin = ml2

service_plugins = h3c_l3_router,qos,h3c_port_forwarding,h3c_bgp_neighbor,h3c_taas,h3c_vpc_connection,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= VPC_CONNECTION:H3C:networking_h3c.vpc_connection.h3c_vpc_connection_driver.H3CVpcConnectionDriver:default

service_provider=EXROUTE:H3C:networking_h3c.l3_router.h3c_exroutes_driver.H3CExroutesDriver:default

For OpenStack Queens, Rocky, and Stein:

[DEFAULT]

core_plugin = ml2

service_plugins = h3c_l3_router,qos,h3c_port_forwarding

For OpenStack Pike:

[DEFAULT]

core_plugin = ml2

service_plugins = h3c_l3_router,qos,h3c_port_forwarding,h3c_vpc_connection_pike

api_extensions_path = /usr/lib/python2.7/site-packages/SeerEngine_DC_PLUGIN-E3608-py2.7.egg/neutron_vpc_h3c/extensions/vpcconnection_pike

[service_providers]

service_provider=VPC_CONNECTION:H3C:networking_h3c.vpc_connection.h3c_vpc_connection_driver.H3CVpcConnectionDriver:default

The api_extensions_path setting can be obtained as follows:

[root@controller ~]# python

>>> from neutron_vpc_h3c.extensions import vpcconnection_pike

>>> vpcconnection_pike.__path__

['/usr/lib/python2.7/site-packages/SeerEngine_DC_PLUGIN-E3608-py2.7.egg/neutron_vpc_h3c/extensions/vpcconnection_pike']

For OpenStack Mitaka (QoS services deployed in OpenStack):

[DEFAULT]

core_plugin = ml2

service_plugins = h3c_l3_router,qos,h3c_bgp_neighbor,h3c_taas,h3c_vpc_connection,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= VPC_CONNECTION:H3C:networking_h3c.vpc_connection.h3c_vpc_connection_driver.H3CVpcConnectionDriver:default

service_provider=EXROUTE:H3C:networking_h3c.l3_router.h3c_exroutes_driver.H3CExroutesDriver:default

For OpenStack Liberty, Newton, and Ocata (QoS services deployed in OpenStack):

[DEFAULT]

core_plugin = ml2

service_plugins = h3c_l3_router,qos

[qos]

notification_drivers = message_queue,qos_h3c

For OpenStack Kilo 2015.1:

[DEFAULT]

core_plugin = ml2

service_plugins = h3c_l3_router

 

IMPORTANT

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.

2.     Modify the ml2_conf.ini configuration file.

a.     Use the vi editor to open the ml2_conf.ini configuration file.

sdn@ubuntu:~$ sudo 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.

sdn@ubuntu:~$ sudo 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:1080

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 =

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 = 123456

# 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.

sdn@ubuntu:~$ sudo service neutron-server restart

neutron-server stop/waiting

neutron-server start/running, process 4583

Verifying the installation

1.     Verify that the SeerEngine-DC OpenStack package is correctly installed. If the correct software and OpenStack versions are displayed, the package is successfully installed.

¡     Ubuntu 20.04 operating system:

sdn@ubuntu:~$ sudo pip3 freeze | grep PLUGIN

SeerEngine-DC-PLUGIN===E6102

¡     Other Ubuntu operating systems:

sdn@ubuntu:~$ sudo pip freeze | grep PLUGIN

SeerEngine-DC-PLUGIN===E3608

2.     Verify that the neutron-server service is enabled. The service is enabled if its state is running.

sdn@ubuntu:~$ sudo 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 does 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 Unified Platform, for example, http://ip_address:30000.

username

Username for logging in to 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.

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 OpenStack Mitaka, 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 SeerEngine-DC. 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.

Only OpenStack Mitaka and Newton support this parameter.

This parameter is obsolete.

sdnc_rpc_url

RPC interface URL of the controller. Only a WebSocket type interface is supported.

String type. The default value is ws://127.0.0.1:1080.

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 SeerEngine-DC.

enable_h3c_l3_exroute

Whether to enable routing extension. The default value is False.

Only OpenStack Mitaka,Train, Ussuri and Victoria support this parameter.

When the value is True, configure the api_extensions_path parameter in the neutron.conf file [DEFAULT] as follows:

·     Ubuntu 20.04 operating system:

[root@controller ~]# python3

>>>from neutron_exroute_h3c import extensions

>>>extensions.__path__

['/usr/local/lib/python3.6/site-packages/SeerEngine_DC_PLUGIN-E6102-py3.6.egg/neutron_exroute_h3c/extensions']

·     Other Ubuntu operating systems:

[root@controller ~]# python

>>>from neutron_exroute_h3c import extensions

>>>extensions.__path__

['/usr/lib/python2.7/site

neutron_black_list

Neutron network denylist function. This parameter must be used together with the black_list_matching parameter. No default value exists.

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.

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 empty and pike. By default, the value is empty. For custom development based on OpenStack pike, specify the value as pike.

 

Upgrading the SeerEngine-DC Neutron plug-ins

CAUTION

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.

sdn@ubuntu:~$ sudo h3c-sdnplugin controller uninstall

Restore config files

Uninstallation complete.

2.     Remove the SeerEngine-DC OpenStack package.

¡     Ubuntu 20.04 operating system:

sdn@ubuntu:~$ sudo pip3 uninstall seerengine-dc-plugin

Uninstalling SeerEngine-DC-PLUGIN-E6102

  /usr/local/lib/python3.6/site-packages/SeerEngine_DC_PLUGIN-E6102-py3.6.egg

Proceed (y/n)? y

  Successfully uninstalled SeerEngine-DC-PLUGIN-E6102

¡     Other Ubuntu operating systems:

sdn@ubuntu:~$ sudo 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

3.     Install plug-ins of the new version. For more information, see "Installing and configuring plug-ins on the controller node."

Installing 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 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. version represents the version of the package.

In this example, the SeerEngine-DC OpenStack package is saved to the /root directory.

sdn@ubuntu:~$ sudo easy_install SeerEngine_DC_PLUGIN-E3608-py2.7.egg

2.     Install the Nova patch.

sdn@ubuntu:~$ sudo h3c-sdnplugin compute install

Install the nova patch

 

modifying:

/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/vmops.py

modify success, backuped at: /usr/lib/python2.7/dist-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.

sdn@ubuntu:~$ sudo service neutron-openvswitch-agent stop

sdn@ubuntu:~$ sudo 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.

sdn@ubuntu:~$ sudo neutron agent-list

| id                                   | agent_type         | host     |

| 25c3d3ac-5158-4123-b505-ed619b741a52 | Open vSwitch agent | compute3

sdn@ubuntu:~$ sudo 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.

sdn@ubuntu:~$ sudo 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 3.

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 3 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.

sdn@ubuntu:~$ sudo 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.

 sdn@ubuntu:~$ sudo pip freeze | grep PLUGIN

SeerEngine-DC-PLUGIN===E3608

# Verify that the openstack-nova-compute service is enabled. The service is enabled if its state is running.

sdn@ubuntu:~$ sudo service openstack-nova-compute status

nova-compute start/running, process 184

Upgrading the Nova patch

CAUTION

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.

sdn@ubuntu:~$ sudo h3c-sdnplugin compute uninstall

Uninstall the nova patch

2.     Remove the SeerEngine-DC OpenStack package.

 sdn@ubuntu:~$ sudo pip uninstall seerengine-dc-plugin

Uninstalling SeerEngine-DC-PLUGIN-E3608:

  /usr/bin/h3c-sdnplugin

  /usr/lib/python2.7/dist-packages/SeerEngine_DC_PLUGIN-E368-py2.7.egg

Proceed (y/n)? y

  Successfully uninstalled SeerEngine-DC-PLUGIN-E3608

3.     Install the new-version Nova patch. For more information, see "Installing 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

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.

sdn@ubuntu:~$ sudo service neutron-server restart

neutron-server stop/waiting

neutron-server start/running, process 4583

Installing the lldpad service

In a KVM network-based overlay scenario, you are required to install the lldpad service on each compute node.

1.     Install and start the lldpad service on the compute node.

sdn@ubuntu:~$ sudo apt-get install lldpad

sdn@ubuntu:~$ sudo service lldpad enable

sdn@ubuntu:~$ sudo service lldpad start

2.     Enable the uplink interface to send LLDP messages. eno2 is the uplink interface in this example.

sdn@ubuntu:~$ sudo lldptool set-lldp -i eno2 adminStatus=rxtx

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysName enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V portDesc enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysDesc enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysCap enableTx=yes

Installing and configuring plug-ins on a compute node

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 configuring plug-ins on a compute node."

Installing the openvswitch-agent patch

OpenStack Rocky and later versions do not require installation of the openvswitch-agent patch.

To install the openvswitch-agent patch:

1.     Access the directory where the SeerEngine-DC OpenStack package (an .egg 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. version represents the version of the package.

sdn@ubuntu:~$ sudo easy_install SeerEngine_DC_PLUGIN-E3608-py2.7.egg

2.     Install the openvswitch-agent patch.

sdn@ubuntu:~$ sudo h3c-sdnplugin openvswitch install

3.     Restart the openvswitch-agent service.

sdn@ubuntu:~$ sudo 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.

 sdn@ubuntu:~$ sudo pip freeze | grep PLUGIN

SeerEngine-DC-PLUGIN===E3608

# Verify that the openvswitch-agent service is enabled. The service is enabled if its state is running.

sdn@ubuntu:~$ sudo 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

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.

sdn@ubuntu:~$ sudo h3c-sdnplugin openvswitch uninstall

2.     Remove the SeerEngine-DC OpenStack package.

sdn@ubuntu:~$ sudo pip uninstall seerengine-dc-plugin

Uninstalling SeerEngine-DC-PLUGIN-E3608:

  /usr/bin/h3c-agent

  /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

Install the new patch. For more information, see "Installing the lldpad service

In a KVM network-based overlay scenario, you are required to install the lldpad service on each compute node.

1.     Install and start the lldpad service on the compute node.

sdn@ubuntu:~$ sudo apt-get install lldpad

sdn@ubuntu:~$ sudo service lldpad enable

sdn@ubuntu:~$ sudo service lldpad start

2.     Enable the uplink interface to send LLDP messages. eno2 is the uplink interface in this example.

sdn@ubuntu:~$ sudo lldptool set-lldp -i eno2 adminStatus=rxtx

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysName enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V portDesc enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysDesc enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysCap enableTx=yes

3.     Installing and configuring plug-ins on a compute node."

Setting up the environment

IMPORTANT

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 edit the configuration file:

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.

sdn@ubuntu:~$ sudo ovs-vsctl add-br br-ens33

4.     Map the bridge to the physical port.

sdn@ubuntu:~$ sudo ovs-vsctl add-port br-ens33 ens33

5.     Verify that the bridge was created successfully.

sdn@ubuntu:~$ sudo ovs-vsctl show

6.     Delete the default bridge.

sdn@ubuntu:~$ sudo 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 openvswicth-agent and neutron-openvswitch-agent services to verify that the br-tun bridge has been deleted successfully.

sdn@ubuntu:~$ sudo systemctl restart neutron-openvswitch-agent.service

sdn@ubuntu:~$ sudo systemctl restart openvswitch-agent.service

sdn@ubuntu:~$ sudo ovs-vsctl show

Installing and configuring plug-ins on a network node

To provide DHCP failover in the network-based overlay scenario, you must install DHCP failover and Metadata components.

 

IMPORTANT

IMPORTANT:

The DHCP failover components can operate only on the CentOS 7.2.1511 operating system with a kernel version of 3.10.0-327.el7.x86_64. If the kernel version does not match that of the S1020V, install the kernel patch first .

 

Installing basic components

1.     Install WebSocket Client on the network node.

¡     Ubuntu 20.04 operating system:

sdn@ubuntu:~$ sudo apt-get install python3-websocket-client

¡     Other Ubuntu operating systems:

sdn@ubuntu:~$ sudo apt-get install python-websocket-client

 

IMPORTANT

IMPORTANT:

Make sure WebSocket Client is in version 0.56 or later.

 

sdn@ubuntu:~$ sudo yum install –y python-websocket-client

2.     Remove the openvswitch.

[root@localhost ~]# yum erase openstack-neutron-openvswitch

[root@localhost ~]# rpm -e --nodeps openvswitch

3.     Install an S1020V vSwitch on the network node and configure bridge and controller settings. For the installation and configuration procedures, see H3C S1020V Installation Guide.

sdn@ubuntu:~$ sudo rpm -ivh --force -all -i s1020v_ubuntu14.04-2.2.1.20_amd64.deb

4.     Stop the open-source DHCP and Metadata services on OpenStack.

sdn@ubuntu:~$ sudo systemctl stop neutron-dhcp-agent neutron-metadata-agent

sdn@ubuntu:~$ sudo systemctl disable neutron-dhcp-agent neutron-metadata-agent

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

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.

sdn@ubuntu:~$ sudo easy_install SeerEngine_DC_PLUGIN-DHCP_E3607_pike_2017.10-py2.7.egg

2.     Install the DHCP component.

sdn@ubuntu:~$ sudo h3c-sdnplugin dhcp install

Install Environment dependent packages

Preparing…                         ########## [100%]

Updating / installing…

1.     python2-six-1.10.0-9.el7     ########## [  1%]

2.     ………

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 network node.

sdn@ubuntu:~$ sudo 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 = 123456

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.

sdn@ubuntu:~$ sudo systemctl enable h3c-dhcp-agent.service

sdn@ubuntu:~$ sudo systemctl start h3c-dhcp-agent.service

Installing the Metadata component

1.     Access the directory where the SeerEngine-DC OpenStack package (an .egg 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. 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.

sdn@ubuntu:~$ sudo easy_install SeerEngine_DC_PLUGIN-E3608_pike_2017.10-py2.7.egg

2.     Install the Metadata component.

sdn@ubuntu:~$ sudo 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 network node.

sdn@ubuntu:~$ sudo 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 = sdn

password = skyline

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.

sdn@ubuntu:~$ sudo systemctl enable h3c-metadata-agent.service

sdn@ubuntu:~$ sudo 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.

sdn@ubuntu:~$ sudo 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.

sdn@ubuntu:~$ sudo 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.

sdn@ubuntu:~$ sudo pip uninstall seerengine-dc-plugin

Uninstalling SeerEngine-DC-PLUGIN-DHCP_E3608_pike-2017.10:

  /usr/bin/h3c-sdnplugin

  /usr/lib/python2.7/site-packages/SeerEngine_DC_PLUGIN-DHCP_E3608_pike-2017.10 -py2.7.egg

Proceed (y/n)? y

  Successfully uninstalled SeerEngine-DC-PLUGIN-DHCP_E3608_pike-2017.10

Upgrading DHCP failover components

To upgrade DHCP failover components, first remove the old version and then install the new version.

 

CAUTION

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 4 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.

insecure

Whether to enable WebSocket certificate authentication.

The default value is False.

 

Table 5 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.

 

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

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 the lldpad service

In a KVM network-based overlay scenario, you are required to install the lldpad service on each compute node.

1.     Install and start the lldpad service on the compute node.

sdn@ubuntu:~$ sudo apt-get install lldpad

sdn@ubuntu:~$ sudo service lldpad enable

sdn@ubuntu:~$ sudo service lldpad start

2.     Enable the uplink interface to send LLDP messages. eno2 is the uplink interface in this example.

sdn@ubuntu:~$ sudo lldptool set-lldp -i eno2 adminStatus=rxtx

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysName enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V portDesc enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysDesc enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysCap enableTx=yes

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

IMPORTANT:

For how to configure interoperability with a third-party load balancer, see the interoperation guide. This section is for reference only.

 

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 the lldpad service

In a KVM network-based overlay scenario, you are required to install the lldpad service on each compute node.

1.     Install and start the lldpad service on the compute node.

sdn@ubuntu:~$ sudo apt-get install lldpad

sdn@ubuntu:~$ sudo service lldpad enable

sdn@ubuntu:~$ sudo service lldpad start

2.     Enable the uplink interface to send LLDP messages. eno2 is the uplink interface in this example.

sdn@ubuntu:~$ sudo lldptool set-lldp -i eno2 adminStatus=rxtx

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysName enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V portDesc enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysDesc enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysCap enableTx=yes

Installing and configuring plug-ins on a compute node."

Installing the openvswitch patch

For the VXLAN or network overlay environment, see openvswich patch installation in "Installing the lldpad service

In a KVM network-based overlay scenario, you are required to install the lldpad service on each compute node.

1.     Install and start the lldpad service on the compute node.

sdn@ubuntu:~$ sudo apt-get install lldpad

sdn@ubuntu:~$ sudo service lldpad enable

sdn@ubuntu:~$ sudo service lldpad start

2.     Enable the uplink interface to send LLDP messages. eno2 is the uplink interface in this example.

sdn@ubuntu:~$ sudo lldptool set-lldp -i eno2 adminStatus=rxtx

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysName enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V portDesc enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysDesc enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysCap enableTx=yes

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 sdn@ubuntu:~$ sudo 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.

sdn@ubuntu:~$ sudo systemctl enable f5-openstack-agent

sdn@ubuntu:~$ sudo systemctl restart f5-openstack-agent

sdn@ubuntu:~$ sudo 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 > All Tenant Networks > 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

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 the lldpad service

In a KVM network-based overlay scenario, you are required to install the lldpad service on each compute node.

1.     Install and start the lldpad service on the compute node.

sdn@ubuntu:~$ sudo apt-get install lldpad

sdn@ubuntu:~$ sudo service lldpad enable

sdn@ubuntu:~$ sudo service lldpad start

2.     Enable the uplink interface to send LLDP messages. eno2 is the uplink interface in this example.

sdn@ubuntu:~$ sudo lldptool set-lldp -i eno2 adminStatus=rxtx

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysName enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V portDesc enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysDesc enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysCap enableTx=yes

Installing and configuring plug-ins on a compute node."

Installing the openvswitch patch

For the VXLAN or network overlay scenario, see openvswich patch installation in "Installing the lldpad service

In a KVM network-based overlay scenario, you are required to install the lldpad service on each compute node.

1.     Install and start the lldpad service on the compute node.

sdn@ubuntu:~$ sudo apt-get install lldpad

sdn@ubuntu:~$ sudo service lldpad enable

sdn@ubuntu:~$ sudo service lldpad start

2.     Enable the uplink interface to send LLDP messages. eno2 is the uplink interface in this example.

sdn@ubuntu:~$ sudo lldptool set-lldp -i eno2 adminStatus=rxtx

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysName enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V portDesc enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysDesc enableTx=yes

sdn@ubuntu:~$ sudo lldptool -T -i eno2 -V sysCap enableTx=yes

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.

sdn@ubuntu:~$ sudo 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 > All Tenant Networks > Firewalls page to identify whether the firewall exists. If the firewall information is correct, the interoperation has succeeded.

Configuring interoperability with Ironic

IMPORTANT

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 the SeerEngine-DC Neutron plug-ins ."

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 configuring plug-ins on a compute node."

(Optional.) Installing the openvswitch patch

For the detailed installation procedure, see "Installing configuring plug-ins on a compute node."

Setting up the environment for the traditional VLAN and VXLAN-based Metadata 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.

sdn@ubuntu:~$ sudo lldptool set-lldp -i ens192 adminStatus=rxtx;

sdn@ubuntu:~$ sudo lldptool -T -i ens192 -V sysName enableTx=yes;

sdn@ubuntu:~$ sudo lldptool -T -i ens192 -V portDesc enableTx=yes;

sdn@ubuntu:~$ sudo lldptool -T -i ens192 -V sysDesc enableTx=yes;

sdn@ubuntu:~$ sudo ldptool -T -i ens192 -V sysCap enableTx=yes;

sdn@ubuntu:~$ sudo lldptool -T -i ens192 -V mngAddr enableTx=yes;

sdn@ubuntu:~$ sudo lldptool -T -i ens192 -V mngAddr ipv4=100.101.0.10   //Configure an IP address for the VXLAN uplink interface.

sdn@ubuntu:~$ sudo lldptool -t -i ens193

sdn@ubuntu:~$ sudo lldptool set-lldp -i ens193 adminStatus=rxtx;

sdn@ubuntu:~$ sudo lldptool -T -i ens193 -V sysName enableTx=yes;

sdn@ubuntu:~$ sudo lldptool -T -i ens193 -V portDesc enableTx=yes;

sdn@ubuntu:~$ sudo lldptool -T -i ens193 -V sysDesc enableTx=yes;

sdn@ubuntu:~$ sudo lldptool -T -i ens193 -V sysCap enableTx=yes;

sdn@ubuntu:~$ sudo lldptool -T -i ens193 -V mngAddr enableTx=yes;

sdn@ubuntu:~$ sudo lldptool -T -i ens193 -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.

sdn@ubuntu:~$ sudo lldptool -t -i ens193

3.     Add the following settings for the neutron openvswitch agent process.

sdn@ubuntu:~$ sudo 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.

sdn@ubuntu:~$ sudo 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.

sdn@ubuntu:~$ sudo vi /etc/neutron/plugins/ml2/ml2_conf.ini

[SDNCONTROLLER]

enable_dhcp_hierarchical_port_binding = True

2.     Restart the service.

sdn@ubuntu:~$ sudo 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.

sdn@ubuntu:~$ sudo ovs-vsctl add-br br-ens192

3.     Bind the network bridge to the physical interface.

sdn@ubuntu:~$ sudo ovs-vsctl add-port br-ens192 ens192

4.     Verify that the OVS settings are correct.

sdn@ubuntu:~$ sudo ovs-vsctl show

5.     Delete the default network bridge.

In this example, the network bridge br-tun is deleted.

sdn@ubuntu:~$ sudo 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.

sdn@ubuntu:~$ sudo lldptool set-lldp -i ens193 adminStatus=rxtx;

sdn@ubuntu:~$ sudo lldptool -T -i ens193 -V sysName enableTx=yes;

sdn@ubuntu:~$ sudo lldptool -T -i ens193 -V portDesc enableTx=yes;

sdn@ubuntu:~$ sudo lldptool -T -i ens193 -V sysDesc enableTx=yes;

sdn@ubuntu:~$ sudo lldptool -T -i ens193 -V sysCap enableTx=yes;

sdn@ubuntu:~$ sudo lldptool -T -i ens193 -V mngAddr enableTx=yes;

sdn@ubuntu:~$ sudo 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.

sdn@ubuntu:~$ sudo systemctl restart neutron-dhcp-agent.service

sdn@ubuntu:~$ sudo 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 OpenStack versions.

The SeerEngine-DC Neutron security plug-ins are installed on the OpenStack controller node. Before installation, set up the base environment on the node.

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

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 is saved. The name of installation package is in the SeerEngine_DC_SEC_PLUGIN-version-py2.7.egg format.

In this example, the package is saved in the /root directory.

sdn@ubuntu:~$ sudo easy_install SeerEngine_DC_SEC_PLUGIN-E3603P01-py2.7.egg

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.

sdn@ubuntu:~$ sudo cd /usr/local/lib/python2.7/dist-packages

sdn@ubuntu:~$ sudo chown -R --reference==/usr/lib/python2.7/dist-packages/neutron SeerEngine*

sdn@ubuntu:~$ sudo chmod -R --reference=/usr/lib/python2.7/dist-packages/neutron SeerEngine*

sdn@ubuntu:~$ sudo cd /usr/bin

sdn@ubuntu:~$ sudo chown -R --reference=neutron-server h3c*

sdn@ubuntu:~$ sudo chmod -R --reference=neutron-server h3c*

3.     Install the SeerEngine-DC Neutron security plug-ins.

sdn@ubuntu:~$ sudo h3c-secplugin controller install

 

IMPORTANT

IMPORTANT:

Before executing the sudo h3c-secplugin 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 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.

sdn@ubuntu:~$ sudo 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, Queens, and Rocky, edit the neutron.conf configuration file as follows:

[DEFAULT]

service_plugins = firewall,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

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.H3CLbaasv2PluginDMZDriver:default accordingly.

 

¡     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

 

IMPORTANT

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.

sdn@ubuntu:~$ sudo 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.

sdn@ubuntu:~$ sudo 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 = sdn

password = skyline

domain = sdn

timeout = 1800

retry = 10

white_list = False

firewall_type = CGSR

fw_share_by_tenant = False

lb_type = CGSR

resource_mode = CORE_GATEWAY

resource_share_count = 1

auto_create_resource = True

nfv_ha = True

use_neutron_credential = False

firewall_force_audit = False

sec_output_json_log = False

lb_enable_snat = False

vendor_rpc_topic = VENDOR_PLUGIN

enable_https = False

neutron_plugin_ca_file =

neutron_plugin_cert_file =

neutron_plugin_key_file =

cgsr_fw_context_limit = 0

enable_iam_auth = False

enable_firewall_metadata = False

lb_member_slow_shutdown = False

enable_multi_gateways = False

enable_multi_segments = False

tenant_gateway_name = None

tenant_gw_selection_strategy = match_first

enable_router_nat_without_firewall = False

directly_external = OFF

directly_external_suffix = DMZ

sec_agent_enable = True

lb_resource_mode = SP

enable_lb_xff = False

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 = 123456

# 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.

sdn@ubuntu:~$ sudo 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.

sdn@ubuntu:~$ sudo 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.

sdn@ubuntu:~$ sudo pip freeze | grep PLUGIN

SeerEngine-DC-SEC-PLUGIN===E3603P01

2.     Verify that the neutron-server service has been enabled. If the service is in running state, the service is enabled successfully.

sdn@ubuntu:~$ sudo 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.

sdn@ubuntu:~$ sudo 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 values include firewall, fwaas_h3c, and firewall_h3c. To use the firewall service with the h3c-sec-agent process enabled, set the value to firewall. To speed up deployment of firewall policies and rules, set the value to fwaas_h3c. To use the firewall service with the h3c-sec-agent process disabled, set the value to firewall_h3c.

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, sdn. 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, skyline. 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 SeerEngine-DC controller resides, for example, sdn.

timeout

The amount of time that the Neutron server waits for a response from the SeerEngine-DC 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.

firewall_type

Type of the firewalls created on the controller:

·     CGSR—Context-based gateway service type firewall, each using an independent context. This firewall type is available only when the value of the resource_mode parameter is CORE_GATEWAY.

·     CGSR_SHARE—Context-based gateway service type firewall, all using the same context even if they belong to different tenants. This firewall type is available only when the value of the resource_mode parameter is CORE_GATEWAY.

·     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.

·     NFV_CGSR—VNF-based gateway service type firewall, each using an independent VNF. This firewall type is available only when the value of the resource_mode parameter is CORE_GATEWAY.

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.

lb_type

Type of the load balancers created on the controller.

·     CGSR—Gateway service type load balancer on a context. When the value of the lb_resource_mode parameter is SP, CGSR type load balancers that belong to one tenant use the same context. CGSR type load balancers that belong to different tenants use different contexts. When the value of the lb_resource_mode parameter is MP, CGSR type load balancers that belong to one tenant and are bound to the same gateway use the same context. CGSR type load balancers that belong to different tenants use different contexts. This type of load balancers are available only when the value of the resource_mode parameter is set to CORE_GATEWAY.

·     CGSR_SHAREGateway service type load balancer on a context. When the value of the lb_resource_mode parameter is SP, all CGSR_SHARE type load balancers use the same context even if they belong to different tenants. When the value of the lb_resource_mode parameter is MP, CGSR_SHARE type load balancers that belong to different tenants and are bound to the same gateway use the same context. This type of load balancers are available only when the value of the resource_mode parameter is set to CORE_GATEWAY.

·     NFV_CGSRGateway service type load balancer on a VNF. When the value of the lb_resource_mode parameter is SP, NFV_CGSR type load balancers that belong to one tenant use the same VNF. NFV_CGSR type load balancers that belong to different tenants use different VNFs. When the value of the lb_resource_mode parameter is MP, NFV_CGSR type load balancers that belong to one tenant and are bound to the same gateway use the same VNF. NFV_CGSR type load balancers that belong to different tenants use different VNFs. This type of load balancers are available only when the value of the resource_mode parameter is set to CORE_GATEWAY.

resource_mode

Type of the resource created on the controller. The available values are as follows:

·     CORE_GATEWAY—Gateway service resource.

·     NFV—VNF resource. This parameter has been obsoleted.

resource_share_count

Maximum times that the resource node can be shared by resources.

The value is in the range of 1 to 65535. The default value is 1, indicating that the resources cannot be shared.

auto_create_resource

Whether to enable or disable the automatic resources creation feature.

·     True—Enable.

·     False—Disable.

nfv_ha

Whether the NFV and NFV_SHARE resources support stack.

·     True—Support.

·     False—Do not support.

use_neutron_credential

Whether to use the OpenStack Neutron username and password to communicate with the SeerEngine-DC 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 SeerEngine-DC controller to the OpenStack operating logs in JSON format.

·     True—Enable.

·     False—Disable.

lb_enable_snat

Whether to enable or disable Source Network Address Translation (SNAT) for load balancers on the SeerEngine-DC 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.

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.

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.

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.

This parameter is obsolete.

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.

lb_member_slow_shutdown

Whether to enable slow shutdown when creating an LB real server.

·     True—Enable.

·     False—Disable.

The default value is False.

enable_multi_gateways

Whether to enable the multi-gateway mode for the tenant.

·     True—Enable the multi-gateway mode for the tenant. In an OpenStack environment without the Segments configuration, this setting enables different vRouters to access the external network over different gateways.

·     False—Not enable the multi-gateway mode for the tenant.

The default value is False.

Only OpenStack Pike, Queens, and Rocky support this parameter.

enable_multi_segments

Whether to enable multiple outbound interfaces, allowing the vRouter to access the external network from multiple outbound interfaces. The default value is False.

To enable multiple outbound interfaces, configure the following settings:

·     Set the value of this parameter to True.

·     Set the value of the network_force_flat parameter to False.

·     Access the /etc/neutron/plugins/ml2/ml2_conf.ini file on the controller node and specify the controller's gateway name for the network_vlan_ranges parameter.

Only OpenStack Pike supports this parameter.

tenant_gateway_name

Name of the gateway to which the tenant is bound. The default value is None.

When the value of the tenant_gw_selection_strategy parameter is match_gateway_name. You must specify the name of an existing gateway on the controller side.

Only OpenStack Pike, Queens, and Rocky support this parameter.

tenant_gw_selection_strategy

Gateway selection strategy for the tenant.

·     match_first—Select the first gateway.

·     match_gateway_name—Take effect together with the tenant_gateway_name parameter.

Only OpenStack Pike, Queens, and Rocky support 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.

directly_external

Whether traffic to the external network is directly forwarded by the gateway. The default value is OFF.

The available values are as follows:

·     ANY—Traffic to the external network is directly forwarded by the gateway to the external network.

·     OFF—Traffic to the external network is forwarded by the gateway to the firewall and then to the external network.

·     SUFFIX—Traffic that matches the vRouter name suffix is forwarded by the gateway to the firewall and then to the external network.

directly_external_suffix

vRouter name suffix (DMZ for example). This parameter is available only when you set the value of the directly_external parameter to SUFFIX.

When you change the vRouter name, make sure you understand the impact on this parameter.

Only OpenStack Pike, Queens, and Rocky support this parameter.

sec_agent_enable

Whether to enable the h3c-sec-agent process. The default value is True.

This parameter is used and takes effect only for security plug-in upgrade.

Value change of this parameter does not take effect immediately. After you set the value to True, you must install the security plug-in and execute the h3c-secplugin controller install command to enable the process.

lb_resource_mode

Resource pool mode of LB service resources.

·     SP—All gateways share the same LB resource pool.

·     MP—Each gateway uses an LB resource pool.

The default value is SP.

enable_lb_xff

Whether to enable XFF transparent transmission for LB listeners.

·     True—Enable.

·     False—Disable.

When the value is True and the listener protocol is HTTP or TERMINATED_HTTPS, a newly created listener is enabled with XFF transparent transmission by default, and the client's IP address is transparently transmitted to the server encapsulated in the X-Forward-For field of the HTTP header.

Only OpenStack Pike supports this parameter.

 

(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

CAUTION:

Service might be interrupted during the upgrade. Before performing an upgrade, be sure you fully understand its impact on services.

 

IMPORTANT

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.

sdn@ubuntu:~$ sudo h3c-secplugin controller uninstall

Restore config files

Uninstallation complete.

2.     Uninstall the SeerEngine-DC OpenStack software package.

sdn@ubuntu:~$ sudo 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

3.     Install the new version of SeerEngine-DC Neutron security plug-ins.

For more information, see "Installing the security plug-ins on the controller node."

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] file name.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 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-fw-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.

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

CAUTION:

Do not add or edit information in the synchronize 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

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 E3602

sdn@ubuntu:~$ sudo h3c-vcfplugin controller uninstall

-     E3602 and its later versions

sdn@ubuntu:~$ sudo h3c-sdnplugin controller uninstall

b.     Remove the plug-ins on the compute node:

-     Versions earlier than E3602

sdn@ubuntu:~$ sudo h3c-vcfplugin compute uninstall

sdn@ubuntu:~$ sudo h3c-vcfplugin openvswitch uninstall

-     E3602 and its later versions

sdn@ubuntu:~$ sudo h3c-sdnplugin compute uninstall

sdn@ubuntu:~$ sudo h3c-sdnplugin openvswitch uninstall

c.     Remove the plug-ins on the network node:

-     Versions earlier than E3602

sdn@ubuntu:~$ sudo h3c-vcfplugin dhcp uninstall

sdn@ubuntu:~$ sudo h3c-vcfplugin metadata uninstall

-     E3602 and its later versions

sdn@ubuntu:~$ sudo h3c-sdnplugin dhcp uninstall

sdn@ubuntu:~$ sudo h3c-sdnplugin metadata uninstall

d.     Remove the software packages from all nodes:

Ubuntu 20.04 operating system:

sdn@ubuntu:~$ sudo pip3 uninstall seerengine-dc-plugin

Other Ubuntu operating systems:

sdn@ubuntu:~$ sudo pip uninstall seerengine-dc-plugin

 

IMPORTANT

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 described 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.

sdn@ubuntu:~$ sudo 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:1080

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.

 

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 6 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

vni_ranges

VNI Range

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 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

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

 

IMPORTANT

IMPORTANT:

Make sure a VXLAN pool exists on the controller after the upgrade. If no VXLAN pools exist or the VXLAN pool resources are insufficient, add a new VXLAN pool and make sure the VXLAN pool range does not contain the segment IDs of the existing vRouters.

 

5.     Restart the neutron-server service.

sdn@ubuntu:~$ sudo service neutron-server restart


Comparing and synchronizing 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.

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 the synchronization is complete, a synchronization result file /var/log/neutron/sync_all-time.csv is generated, where time indicating the synchronization start time.

 

CAUTION

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.

 

 


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 correctly access the HTTP proxy server.

2.     At the CLI of the Ubuntu, use the vi editor to open the apt.conf configuration file. If the apt.conf configuration file does not exist, this step creates the file.

sdn@ubuntu:~$ sudo vi /etc/apt/apt.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:

Acquire::http::proxy = http://yourproxyaddress:proxyport

¡     If the server requires authentication, enter HTTP proxy information in the following format:

Acquire::http::proxy = http:// username:password@yourproxyaddress:proxyport, for example, Acquire::http::proxy "http://sdn:123456@172.25.1.1:8080

Table 7 describes the arguments in HTTP proxy information.

Table 7 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.

 

4.     Press Esc to quit insert mode, and enter :wq to exit the vi editor and save the apt.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 wil 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 SeerEngine-DC controller cluster has rebooted.

2.     If the SeerEngine-DC 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 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

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

 

 

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网