Openstack Rocky部署四 neutron 部署與驗證(計算節點)

Openstack 雲計算(二): Openstack Rocky部署四 neutron 部署與驗證 (計算節點)

標籤(空格分隔): openstack系列html


  • 一: 在計算節點安裝neutron

# Install and configure compute node
https://docs.openstack.org/neutron/rocky/install/compute-install-rdo.html

安裝neutron組件

yum install openstack-neutron-linuxbridge ebtables ipset -y

image_1d8nnaeqm15h91see1ai1c3j1e5fc.png-271.4kB

快速配置/etc/neutron/neutron.conf

openstack-config --set /etc/neutron/neutron.conf DEFAULT transport_url  rabbit://openstack:openstack@controller
openstack-config --set /etc/neutron/neutron.conf DEFAULT auth_strategy keystone
openstack-config --set /etc/neutron/neutron.conf keystone_authtoken www_authenticate_uri  http://controller:5000
openstack-config --set /etc/neutron/neutron.conf keystone_authtoken auth_url http://controller:5000
openstack-config --set /etc/neutron/neutron.conf keystone_authtoken memcached_servers controller:11211
openstack-config --set /etc/neutron/neutron.conf keystone_authtoken auth_type password
openstack-config --set /etc/neutron/neutron.conf keystone_authtoken project_domain_name default
openstack-config --set /etc/neutron/neutron.conf keystone_authtoken user_domain_name default
openstack-config --set /etc/neutron/neutron.conf keystone_authtoken project_name service
openstack-config --set /etc/neutron/neutron.conf keystone_authtoken username neutron
openstack-config --set /etc/neutron/neutron.conf keystone_authtoken password neutron
openstack-config --set /etc/neutron/neutron.conf oslo_concurrency lock_path /var/lib/neutron/tmp

9.png-208.7kB


egrep -v '(^$|^#)' /etc/neutron/neutron.conf

image_1d8nnhqu4111e1gh91hvq1ha314hr15.png-125.6kB

快速配置/etc/neutron/plugins/ml2/linuxbridge_agent.ini

openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini linux_bridge physical_interface_mappings  provider:ens33
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan enable_vxlan false
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini securitygroup enable_security_group true
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini securitygroup firewall_driver neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

10.png-62.8kB

11.png-41.3kB

配置nova計算服務與neutron網絡服務協同工做

openstack-config --set /etc/nova/nova.conf neutron url http://controller:9696
openstack-config --set /etc/nova/nova.conf neutron auth_url http://controller:5000
openstack-config --set /etc/nova/nova.conf neutron auth_type password
openstack-config --set /etc/nova/nova.conf neutron project_domain_name default
openstack-config --set /etc/nova/nova.conf neutron user_domain_name default
openstack-config --set /etc/nova/nova.conf neutron region_name RegionOne
openstack-config --set /etc/nova/nova.conf neutron project_name service 
openstack-config --set /etc/nova/nova.conf neutron username neutron
openstack-config --set /etc/nova/nova.conf neutron password neutron

18.png-127.9kB

21.png-60.2kB

從新啓動計算節點

systemctl restart openstack-nova-compute.service
systemctl status openstack-nova-compute.service

1.png-85.2kB

啓動neutron網絡組件,並配置開機自啓動

# 須要啓動1個服務,網橋代理
systemctl restart neutron-linuxbridge-agent.service
systemctl status neutron-linuxbridge-agent.service

systemctl enable neutron-linuxbridge-agent.service
systemctl list-unit-files |grep neutron* |grep enabled

2.png-175.4kB

至此,計算節點的網絡配置完成,轉回到控制節點進行驗證操做
在控制節點檢查確認neutron服務安裝成功

# Verify operation
https://docs.openstack.org/neutron/rocky/install/verify.html

# 如下命令在控制節點執行
1)獲取管理權限
cd /openstack
source keystone-admin-pass.sh
2)列表查看加載的網絡插件
openstack extension list --network

neutron ext-list

3.png-119.1kB

image_1d8nobdgb1iulch81da31284acm4t.png-136.3kB

查看網絡代理列表
openstack network agent list

image_1d8nocqq91c151np15l312bc1o8f5a.png-87.1kB

正常狀況下:控制節點有3個服務,計算節點有1個服務,若是不是,須要檢查計算節點配置:網卡名稱,IP地址,端口,密碼等要素
相關文章
相關標籤/搜索