Compute — Neutron

Install Neutron

  1. [root@compute ~]# yum install openstack-neutron-linuxbridge ebtables ipset -y

Configure Neutron

  1. [root@compute ~]# cp /etc/neutron/neutron.conf /etc/neutron/neutron.conf.bak
  2. [root@compute ~]# openstack-config --set /etc/neutron/neutron.conf DEFAULT auth_strategy keystone
  3. [root@compute ~]# openstack-config --set /etc/neutron/neutron.conf DEFAULT advertise_mtu True
  4. [root@compute ~]# openstack-config --set /etc/neutron/neutron.conf DEFAULT dhcp_agents_per_network 2
  5. [root@compute ~]# openstack-config --set /etc/neutron/neutron.conf DEFAULT control_exchange neutron
  6. [root@compute ~]# openstack-config --set /etc/neutron/neutron.conf DEFAULT nova_url http://controller:8774/v2
  7. [root@compute ~]# openstack-config --set /etc/neutron/neutron.conf DEFAULT transport_url rabbit://openstack:[email protected]
  8. [root@compute ~]# openstack-config --set /etc/neutron/neutron.conf keystone_authtoken auth_uri http://controller:5000
  9. [root@compute ~]# openstack-config --set /etc/neutron/neutron.conf keystone_authtoken auth_url http://controller:35357
  10. [root@compute ~]# openstack-config --set /etc/neutron/neutron.conf keystone_authtoken memcached_servers controller:11211
  11. [root@compute ~]# openstack-config --set /etc/neutron/neutron.conf keystone_authtoken auth_type password
  12. [root@compute ~]# openstack-config --set /etc/neutron/neutron.conf keystone_authtoken project_domain_name default
  13. [root@compute ~]# openstack-config --set /etc/neutron/neutron.conf keystone_authtoken user_domain_name default
  14. [root@compute ~]# openstack-config --set /etc/neutron/neutron.conf keystone_authtoken project_name service
  15. [root@compute ~]# openstack-config --set /etc/neutron/neutron.conf keystone_authtoken username neutron
  16. [root@compute ~]# openstack-config --set /etc/neutron/neutron.conf keystone_authtoken password password
  17. [root@compute ~]# openstack-config --set /etc/neutron/neutron.conf oslo_concurrency lock_path /var/lib/neutron/tmp

Configure LinuxBridge Agent

  1. [root@compute ~]# cp /etc/neutron/plugins/ml2/linuxbridge_agent.ini /etc/neutron/plugins/ml2/linuxbridge_agent.ini.bak
  2. [root@compute ~]# >/etc/neutron/plugins/ml2/linuxbridge_agent.ini
  3. [root@compute ~]# openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini DEFAULT debug false
  4. [root@compute ~]# openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini DEFAULT verbose true
  5. [root@compute ~]# openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan enable_vxlan True
  6. [root@compute ~]# openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan local_ip 10.2.2.62
  7. [root@compute ~]# openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan l2_population True
  8. [root@compute ~]# openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini securitygroup enable_security_group True
  9. [root@compute ~]# openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini securitygroup firewall_driver neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

Configure Nova

  1. [root@compute ~]# openstack-config --set /etc/nova/nova.conf neutron url http://controller:9696
  2. [root@compute ~]# openstack-config --set /etc/nova/nova.conf neutron auth_url http://controller:35357
  3. [root@compute ~]# openstack-config --set /etc/nova/nova.conf neutron auth_type password
  4. [root@compute ~]# openstack-config --set /etc/nova/nova.conf neutron project_domain_name default
  5. [root@compute ~]# openstack-config --set /etc/nova/nova.conf neutron user_domain_name default
  6. [root@compute ~]# openstack-config --set /etc/nova/nova.conf neutron region_name RegionOne
  7. [root@compute ~]# openstack-config --set /etc/nova/nova.conf neutron project_name service
  8. [root@compute ~]# openstack-config --set /etc/nova/nova.conf neutron username neutron
  9. [root@compute ~]# openstack-config --set /etc/nova/nova.conf neutron password password

Restart Nova & Neutron

  1. [root@compute ~]# systemctl restart openstack-nova-compute.service
  2. [root@compute ~]# systemctl enable neutron-linuxbridge-agent.service
  3. [root@compute ~]# systemctl restart neutron-linuxbridge-agent.service
  4. [root@compute ~]# systemctl status openstack-nova-compute.service neutron-linuxbridge-agent.service

Leave a Reply

Your email address will not be published. Required fields are marked *