Explicitly set nova and neutron host on controllers
authorBen Nemec <bnemec@redhat.com>
Tue, 12 Apr 2016 20:44:49 +0000 (15:44 -0500)
committerBen Nemec <bnemec@redhat.com>
Thu, 21 Jul 2016 19:06:51 +0000 (14:06 -0500)
In I7d07c57b7276815c72d08acaa86f673e43eb0498 we set this for compute
nodes, but we also need it for controllers.  Otherwise when a
controller reboots it may come back up with a different host value,
which seems to break networking for anything that was created before
the reboot.  In my case, it changes from the short hostname (without
domain name) to the fqdn.  Since we set it to fqdn for the compute
nodes, let's do the same for controllers.

This moves all of the host setting to the base yaml of the nova
and neutron profiles.

Change-Id: Ieb793b9e9fd2dfc98584691412f9991aa99e0b47
Closes-Bug: 1604907

puppet/hieradata/compute.yaml
puppet/services/neutron-base.yaml
puppet/services/nova-base.yaml

index 6272833..fe203be 100644 (file)
@@ -1,6 +1,5 @@
 # Hiera data here applies to all compute nodes
 
-nova::host: "%{::fqdn}"
 nova::notify_on_state_change: 'vm_and_task_state'
 nova::notification_driver: messagingv2
 nova::compute::instance_usage_audit: true
@@ -19,6 +18,4 @@ nova::compute::reserved_host_memory: 2048
 ceilometer::agent::auth::auth_tenant_name: 'service'
 ceilometer::agent::auth::auth_endpoint_type: 'internalURL'
 
-neutron::host: "%{::fqdn}"
-
 compute_classes: []
index 8bd8d98..73f707c 100644 (file)
@@ -60,3 +60,4 @@ outputs:
             params:
               PLUGINS: {get_param: NeutronServicePlugins}
         neutron::debug: {get_param: Debug}
+        neutron::host: '"%{::fqdn}"'
index 7de14f6..c67a1d8 100644 (file)
@@ -29,7 +29,7 @@ parameters:
 
 outputs:
   role_data:
-    description: Role data for the Neutron base service.
+    description: Role data for the Nova base service.
     value:
       config_settings:
         nova::rabbit_password: {get_param: RabbitPassword}
@@ -37,3 +37,4 @@ outputs:
         nova::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
         nova::rabbit_port: {get_param: RabbitClientPort}
         nova::debug: {get_param: Debug}
+        nova::host: '"%{::fqdn}"'