Make the Compute nodes Highly Available

Install Compute & Neutron

  1. [root@compute01 ~]# yum install openstack-selinux python-openstackclient yum-plugin-priorities openstack-nova-compute openstack-utils -y
  2. [root@compute01 ~]# yum install openstack-neutron-linuxbridge ebtables ipset -y

Configure Nova

  1. [root@compute01 ~]# mkdir -p /data/nova/instances
  2. [root@compute01 ~]# chown -R nova:nova /data/nova
  3.  
  4. [root@compute01 ~]# cp /etc/nova/nova.conf{,.bak}
  5.  
  6. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT instances_path /data/nova/instances
  7. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT enabled_apis osapi_compute,metadata
  8. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT transport_url rabbit://openstack:[email protected]:5673
  9. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT my_ip 192.168.220.51
  10. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT use_neutron True
  11. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT firewall_driver nova.virt.firewall.NoopFirewallDriver
  12. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf DEFAULT cpu_allocation_ratio 10
  13.  
  14. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf api_database connection mysql+pymysql://nova:[email protected]/nova_api
  15. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf database connection mysql+pymysql://nova:[email protected]/nova
  16.  
  17. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf api auth_strategy keystone
  18.  
  19. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_uri http://controller:5000
  20. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_url http://controller:35357
  21. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken memcached_servers controller:11211
  22. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_type password
  23. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken project_domain_name default
  24. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken user_domain_name default
  25. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken project_name service
  26. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken username nova
  27. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken password nova
  28.  
  29. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf vnc enabled true
  30. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf vnc vncserver_listen 0.0.0.0
  31. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf vnc vncserver_proxyclient_address compute01
  32. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf vnc novncproxy_base_url http://controller:6080/vnc_auto.html
  33.  
  34. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf glance api_servers http://controller:9292
  35.  
  36. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf oslo_concurrency lock_path /var/lib/nova/tmp
  37.  
  38. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf placement os_region_name RegionOne
  39. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf placement project_domain_name Default
  40. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf placement project_name service
  41. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf placement auth_type password
  42. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf placement user_domain_name Default
  43. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf placement auth_url http://controller:35357/v3
  44. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf placement username placement
  45. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf placement password placement
  46.  
  47. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf libvirt virt_type qemu
  48.  
  49. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf neutron url http://controller:9696
  50. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf neutron auth_url http://controller:35357
  51. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf neutron auth_type password
  52. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf neutron project_domain_name default
  53. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf neutron user_domain_name default
  54. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf neutron region_name RegionOne
  55. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf neutron project_name service
  56. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf neutron username neutron
  57. [root@compute01 ~]# openstack-config --set /etc/nova/nova.conf neutron password neutron

Configure Neutron

  1. [root@compute01 ~]# cp /etc/neutron/neutron.conf{,.bak}
  2.  
  3. [root@compute01 ~]# openstack-config --set /etc/neutron/neutron.conf DEFAULT auth_strategy keystone
  4. [root@compute01 ~]# openstack-config --set /etc/neutron/neutron.conf DEFAULT transport_url rabbit://openstack:[email protected]:5673
  5.  
  6. [root@compute01 ~]# openstack-config --set /etc/neutron/neutron.conf keystone_authtoken auth_uri http://controller:5000
  7. [root@compute01 ~]# openstack-config --set /etc/neutron/neutron.conf keystone_authtoken auth_url http://controller:35357
  8. [root@compute01 ~]# openstack-config --set /etc/neutron/neutron.conf keystone_authtoken memcached_servers controller:11211
  9. [root@compute01 ~]# openstack-config --set /etc/neutron/neutron.conf keystone_authtoken auth_plugin password
  10. [root@compute01 ~]# openstack-config --set /etc/neutron/neutron.conf keystone_authtoken project_domain_id default
  11. [root@compute01 ~]# openstack-config --set /etc/neutron/neutron.conf keystone_authtoken user_domain_id default
  12. [root@compute01 ~]# openstack-config --set /etc/neutron/neutron.conf keystone_authtoken project_name service
  13. [root@compute01 ~]# openstack-config --set /etc/neutron/neutron.conf keystone_authtoken username neutron
  14. [root@compute01 ~]# openstack-config --set /etc/neutron/neutron.conf keystone_authtoken password neutron
  15.  
  16. [root@compute01 ~]# openstack-config --set /etc/neutron/neutron.conf oslo_concurrency lock_path /var/lib/neutron/tmp

Configure LinuxBridge Agent

  1. [root@compute01 ~]# cp /etc/neutron/plugins/ml2/linuxbridge_agent.ini{,.bak}
  2.  
  3. [root@compute01 ~]# openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini linux_bridge physical_interface_mappings provider:'ens33'
  4.  
  5. [root@compute01 ~]# openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini securitygroup enable_security_group true
  6. [root@compute01 ~]# openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini securitygroup firewall_driver neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
  7.  
  8. [root@compute01 ~]# openstack-config --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan enable_vxlan false

Start Compute Service

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

Leave a Reply

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