我要评分
获取效率
正确性
完整性
易理解

Configuring the Neutron Network Service for the Ironic Service

You need to configure the network so that the BMS management node baremetal can communicate with the Neutron network service to meet DHCP, PXE boot, and other requirements.

  • The BMS management node baremetal and IPMI OOB Network (BMC management network) are interconnected: The ironic-conductor node can manage the bare metal nodes through ipmitool. You can run the IPMI command on the ironic-conductor node to perform verification on the bare metal server node.
  • The provisioning network reuses the external network to communicate with the bare metal nodes at layer 2. The bare metal nodes can obtain the IP address and the access interface of the TFTP server from the DHCP of the provisioning network. The BMS PXE network port must be able to communicate with the provisioning network of the BMS at layer 2.

Perform the following operations on the BMS management node baremetal.

  1. Install the OVS Agent on the BMS management node baremetal.
    1
    yum -y install openstack-neutron-openvswitch ipset
    
  2. Modify the /etc/neutron/plugins/ml2/openvswitch_agent.ini file as follows:
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    [linux_openvswitch]
    physical_interface_mappings = provider-ironic:eno3
     
    [ovs]
    datapath_type = system
    bridge_mappings = provider-ironic:br-ex
     
    [agent]
    l2_population = True
     
    [securitygroup]
    enable_security_group=true
    firewall_driver = openvswitch
    
  3. Start the vswitchd daemon process.
    1
    2
    3
    systemctl enable openvswitch
    systemctl start openvswitch
    systemctl status openvswitch
    
  4. Manually create an OVS provider bridge.
    1
    2
    ovs-vsctl add-br br-ex
    ovs-vsctl add-port br-ex eno3
    

    After this step is performed, the SSH connection is disconnected. You need to log in to the BMC and log in to the OS through the BMC console, delete the IP address of the eno3 NIC, and configure its IP address on the bridge br-ex. The command is as follows:

    ip addr del 192.168.100.100/24 dev eno3
    ip link set dev br-ex up
    ip addr add 192.168.100.100/24 dev br-ex
    ip route add default via 192.168.100.1 dev br-ex

    After the configuration is complete, use SSH to log in again.

  5. Start the OVS Agent.
    1
    2
    3
    systemctl enable neutron-openvswitch-agent.service
    systemctl start neutron-openvswitch-agent.service
    systemctl status neutron-openvswitch-agent.service
    
  6. Check whether the OVS provider bridge is successfully created.
    1
    ovs-vsctl show
    

    In the command output, if Bridge br-ex and Port "eno3" under Bridge br-ex are displayed, the creation is successful.

  7. Verify the interconnection between the Ironic service and Nova service. Perform the verification two minutes after the restart in 5.

    The following verification is performed on the controller node.

    1
    nova-manage cell_v2 list_hosts
    

    1
    openstack hypervisor list
    

    1
    openstack compute service list