需要配置网络,以便裸金属服务管理baremetal节点可以与Neutron网络服务通信以实现DHCP,PXE引导和其他要求。
以下安装配置在裸金属服务管理baremetal节点执行。
1
|
yum -y install openstack-neutron-openvswitch ipset |
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 |
1 2 3 |
systemctl enable openvswitch systemctl start openvswitch systemctl status openvswitch |
1 2 |
ovs-vsctl add-br br-ex ovs-vsctl add-port br-ex eno3 |
执行完此步骤,SSH连接将断开。需要登录BMC并从控制台登录操作系统,将eno3网卡上的IP地址删除并将其IP地址配置到br-ex网桥上,操作命令参考如下:
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
配置完成后,使用SSH重新登录即可。
1 2 3 |
systemctl enable neutron-openvswitch-agent.service systemctl start neutron-openvswitch-agent.service systemctl status neutron-openvswitch-agent.service |
1
|
ovs-vsctl show
|
命令输出中存在"Bridge br-ex",且br-ex下有"Port eno3",则表示创建成功。
以下验证在controller节点验证。
1
|
nova-manage cell_v2 list_hosts |
1
|
openstack hypervisor list |
1
|
openstack compute service list |