Set host in nova.conf for compute nodes
authorJames Slagle <jslagle@redhat.com>
Sat, 5 Mar 2016 13:33:54 +0000 (08:33 -0500)
committerJames Slagle <jslagle@redhat.com>
Mon, 7 Mar 2016 19:32:10 +0000 (14:32 -0500)
In order for instance HA to function safely, nova-compute needs access
to the name by which nova knows the current compute node.

Since the names of the nova-compute and neutron ml2 agents must be the
same for vif binding to work, it also sets the host value in
neutron.conf.

Change-Id: I7d07c57b7276815c72d08acaa86f673e43eb0498

puppet/manifests/overcloud_compute.pp

index 7925f50..dcf6374 100644 (file)
@@ -56,6 +56,7 @@ include ::nova::compute
 nova_config {
   'DEFAULT/my_ip':                     value => $ipaddress;
   'DEFAULT/linuxnet_interface_driver': value => 'nova.network.linux_net.LinuxOVSInterfaceDriver';
+  'DEFAULT/host':                      value => $fqdn;
 }
 
 $rbd_ephemeral_storage = hiera('nova::compute::rbd::ephemeral_storage', false)
@@ -146,6 +147,9 @@ else {
   }
 }
 
+neutron_config {
+  'DEFAULT/host': value => $fqdn;
+}
 
 include ::ceilometer
 include ::ceilometer::config