なにかの技術メモ置き場

なにかの技術メモ置き場

@インフラエンジニア

OpenStack環境構築 part17

Networking service (Neutron)

Install and configure compute node

Install the components
dnf -y install openstack-neutron-linuxbridge iptables-ebtables ipset

※ebtables→iptables-ebtables

cp -p /etc/neutron/neutron.conf{,_org}
ls -l /etc/neutron/neutron.conf*
cat << EOF > /etc/neutron/neutron.conf
[DEFAULT]
transport_url = rabbit://openstack:RABBIT_PASS@ctr01
auth_strategy = keystone

[keystone_authtoken]
www_authenticate_uri = http://ctr01:5000
auth_url = http://ctr01:5000
memcached_servers = ctr01:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = NEUTRON_PASS

[oslo_concurrency]
lock_path = /var/lib/neutron/tmp
EOF
cat /etc/neutron/neutron.conf
Configure networking options

▼jump page

Networking Option 1: Provider networks

Configure the Linux bridge agent
cp -p /etc/neutron/plugins/ml2/linuxbridge_agent.ini{,_org}
ls -l /etc/neutron/plugins/ml2/linuxbridge_agent.ini*
cat << EOF > /etc/neutron/plugins/ml2/linuxbridge_agent.ini
[linux_bridge]
physical_interface_mappings = provider:enp0s25

[vxlan]
enable_vxlan = false

[securitygroup]
enable_security_group = true
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
EOF
cat /etc/neutron/plugins/ml2/linuxbridge_agent.ini
sysctl net.bridge.bridge-nf-call-iptables
sysctl net.bridge.bridge-nf-call-ip6tables

→要確認
Network Option 1で構成した際はカーネルパラメータが存在しないと表示された。
その後、Network Option 2で構成した後から正しい値(1)が出力されるようになった。と思う。

▲return page

Install and configure compute node

Configure the Compute service to use the Networking service
cp -p /etc/nova/nova.conf{,_add_neutron}
ls -l /etc/nova/nova.conf*
cat << EOF >> /etc/nova/nova.conf

[neutron]
auth_url = http://ctr01:5000
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = NEUTRON_PASS
EOF
diff /etc/nova/nova.conf{,_add_neutron}
cat /etc/nova/nova.conf
Finalize installation
systemctl restart openstack-nova-compute.service
systemctl enable --now neutron-linuxbridge-agent.service
systemctl status --no-pager -l neutron-linuxbridge-agent.service
systemctl is-active neutron-linuxbridge-agent.service
systemctl is-enabled neutron-linuxbridge-agent.service

参考サイト

docs.openstack.org