openstack安裝-計算節點-neutron服務安裝

1、安裝nettron相關服務

yum install openstack-neutron-linuxbridge ebtables ipset -y

2、快速配置配置

 修改紅色部分爲計算節點的網卡名以及IP地址linux

openstack-config --set /etc/neutron/neutron.conf  DEFAULT transport_url  rabbit://openstack:openstack@192.168.70.10
openstack-config --set /etc/neutron/neutron.conf  DEFAULT auth_strategy keystone
openstack-config --set /etc/neutron/neutron.conf  keystone_authtoken  www_authenticate_uri http://192.168.70.10:5000
openstack-config --set /etc/neutron/neutron.conf  keystone_authtoken  auth_url  http://192.168.70.10:5000
openstack-config --set /etc/neutron/neutron.conf  keystone_authtoken  memcached_servers 192.168.70.10: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 password neutron
openstack-config --set /etc/neutron/neutron.conf  oslo_concurrency  lock_path /var/lib/neutron/tmp
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini  linux_bridge physical_interface_mappings   provider:enp3s0
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan  enable_vxlan  true
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan  local_ip  192.168.70.14
openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan  l2_population  true
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
openstack-config --set  /etc/nova/nova.conf  neutron url  http://192.168.70.10:9696
openstack-config --set  /etc/nova/nova.conf  neutron  auth_url http://192.168.70.10: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

 

3、重啓服務

systemctl restart openstack-nova-compute.service

啓動Linux網橋代理並將其配置爲在系統引導時啓動app

systemctl enable neutron-linuxbridge-agent.service
systemctl start neutron-linuxbridge-agent.service
相關文章
相關標籤/搜索