[关闭]
@zhangyy 2020-01-13T10:18:27.000000Z 字数 3208 阅读 174

Openstack 云计算(二): Openstack Rocky部署四 neutron 部署与验证 (计算节点)

openstack系列


  • 一: 在计算节点安装neutron

  1. # Install and configure compute node
  2. https://docs.openstack.org/neutron/rocky/install/compute-install-rdo.html
  3. 安装neutron组件
  4. yum install openstack-neutron-linuxbridge ebtables ipset -y

image_1d8nnaeqm15h91see1ai1c3j1e5fc.png-271.4kB

  1. 快速配置/etc/neutron/neutron.conf
  2. openstack-config --set /etc/neutron/neutron.conf DEFAULT transport_url rabbit://openstack:openstack@controller
  3. openstack-config --set /etc/neutron/neutron.conf DEFAULT auth_strategy keystone
  4. openstack-config --set /etc/neutron/neutron.conf keystone_authtoken www_authenticate_uri http://controller:5000
  5. openstack-config --set /etc/neutron/neutron.conf keystone_authtoken auth_url http://controller:5000
  6. openstack-config --set /etc/neutron/neutron.conf keystone_authtoken memcached_servers controller:11211
  7. openstack-config --set /etc/neutron/neutron.conf keystone_authtoken auth_type password
  8. openstack-config --set /etc/neutron/neutron.conf keystone_authtoken project_domain_name default
  9. openstack-config --set /etc/neutron/neutron.conf keystone_authtoken user_domain_name default
  10. openstack-config --set /etc/neutron/neutron.conf keystone_authtoken project_name service
  11. openstack-config --set /etc/neutron/neutron.conf keystone_authtoken username neutron
  12. openstack-config --set /etc/neutron/neutron.conf keystone_authtoken password neutron
  13. openstack-config --set /etc/neutron/neutron.conf oslo_concurrency lock_path /var/lib/neutron/tmp

9.png-208.7kB


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

image_1d8nnhqu4111e1gh91hvq1ha314hr15.png-125.6kB

  1. 快速配置/etc/neutron/plugins/ml2/linuxbridge_agent.ini
  2. openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini linux_bridge physical_interface_mappings provider:ens33
  3. openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan enable_vxlan false
  4. openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini securitygroup enable_security_group true
  5. 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

  1. 配置nova计算服务与neutron网络服务协同工作
  2. openstack-config --set /etc/nova/nova.conf neutron url http://controller:9696
  3. openstack-config --set /etc/nova/nova.conf neutron auth_url http://controller:5000
  4. openstack-config --set /etc/nova/nova.conf neutron auth_type password
  5. openstack-config --set /etc/nova/nova.conf neutron project_domain_name default
  6. openstack-config --set /etc/nova/nova.conf neutron user_domain_name default
  7. openstack-config --set /etc/nova/nova.conf neutron region_name RegionOne
  8. openstack-config --set /etc/nova/nova.conf neutron project_name service
  9. openstack-config --set /etc/nova/nova.conf neutron username neutron
  10. openstack-config --set /etc/nova/nova.conf neutron password neutron

18.png-127.9kB

21.png-60.2kB

  1. 重新启动计算节点
  2. systemctl restart openstack-nova-compute.service
  3. systemctl status openstack-nova-compute.service

1.png-85.2kB

  1. 启动neutron网络组件,并配置开机自启动
  2. # 需要启动1个服务,网桥代理
  3. systemctl restart neutron-linuxbridge-agent.service
  4. systemctl status neutron-linuxbridge-agent.service
  5. systemctl enable neutron-linuxbridge-agent.service
  6. systemctl list-unit-files |grep neutron* |grep enabled

2.png-175.4kB

  1. 至此,计算节点的网络配置完成,转回到控制节点进行验证操作
  1. 在控制节点检查确认neutron服务安装成功
  2. # Verify operation
  3. https://docs.openstack.org/neutron/rocky/install/verify.html
  4. # 以下命令在控制节点执行
  5. 1)获取管理权限
  6. cd /openstack
  7. source keystone-admin-pass.sh
  8. 2)列表查看加载的网络插件
  9. openstack extension list --network
  10. neutron ext-list

3.png-119.1kB

image_1d8nobdgb1iulch81da31284acm4t.png-136.3kB

  1. 查看网络代理列表
  2. openstack network agent list

image_1d8nocqq91c151np15l312bc1o8f5a.png-87.1kB

  1. 正常情况下:控制节点有3个服务,计算节点有1个服务,如果不是,需要检查计算节点配置:网卡名称,IP地址,端口,密码等要素
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注