diff --git a/puppet/services/ceilometer-base.yaml b/puppet/services/ceilometer-base.yaml index 57439c2904..12237d05a7 100644 --- a/puppet/services/ceilometer-base.yaml +++ b/puppet/services/ceilometer-base.yaml @@ -181,7 +181,7 @@ outputs: ceilometer::telemetry_secret: {get_param: CeilometerMeteringSecret} ceilometer::snmpd_readonly_username: {get_param: SnmpdReadonlyUserName} ceilometer::snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword} - ceilometer::host: '%{::fqdn}' + ceilometer::host: "%{hiera('fqdn_canonical')}" service_config_settings: keystone: ceilometer_auth_enabled: true diff --git a/puppet/services/neutron-base.yaml b/puppet/services/neutron-base.yaml index c92dfc0ec3..77467e4130 100644 --- a/puppet/services/neutron-base.yaml +++ b/puppet/services/neutron-base.yaml @@ -146,7 +146,7 @@ outputs: neutron::dhcp_agent_notification: {get_param: DhcpAgentNotification} neutron::dns_domain: {get_param: NeutronDnsDomain} neutron::rabbit_heartbeat_timeout_threshold: 60 - neutron::host: '%{::fqdn}' + neutron::host: "%{hiera('fqdn_canonical')}" neutron::db::database_db_max_retries: -1 neutron::db::database_max_retries: -1 neutron::db::sync::db_sync_timeout: {get_param: DatabaseSyncTimeout} diff --git a/puppet/services/nova-base.yaml b/puppet/services/nova-base.yaml index ec9a9c015f..319ca0dc62 100644 --- a/puppet/services/nova-base.yaml +++ b/puppet/services/nova-base.yaml @@ -226,7 +226,7 @@ outputs: nova::network::neutron::neutron_auth_url: {get_param: [EndpointMap, KeystoneV3Admin, uri]} nova::rabbit_heartbeat_timeout_threshold: 60 nova::cinder_catalog_info: 'volumev3:cinderv3:internalURL' - nova::host: '%{::fqdn}' + nova::host: "%{hiera('fqdn_canonical')}" nova::notify_on_state_change: 'vm_and_task_state' nova::notification_driver: {get_param: NotificationDriver} nova::notification_format: 'unversioned' diff --git a/releasenotes/notes/fix_nova_host-0b82c88597703353.yaml b/releasenotes/notes/fix_nova_host-0b82c88597703353.yaml new file mode 100644 index 0000000000..7430490e0f --- /dev/null +++ b/releasenotes/notes/fix_nova_host-0b82c88597703353.yaml @@ -0,0 +1,9 @@ +--- +fixes: + - | + The nova/neutron/ceilometer host parameter is now explicitly set to the + same value that is written to /etc/hosts. On a correctly configured + deployment they should be already be identical. However if the hostname + or domainname is altered (e.g via DHCP) then the hostname is unlikely to + resolve to the correct IP address for live-migraiton. + Related bug: https://bugs.launchpad.net/tripleo/+bug/1758034