puppet-tripleo/manifests/profile/base
Sofer Athlan-Guyot 6938b5d1f2 [Newton only] Do not overwrite current {neutron,nova}::host value.
In newton we are setting both nova::host and neutron::host values
explicitly to the fqdn.

This can cause problem during upgrade from Mitaka.  The previous host
value (defaulting to python socket.gethostname) could return only the
hostname[0].  It means that during upgrade we are changing this
identifier.  At restart nova/neutron creates *new* agents.  Those
agents are then unaware of existing workload.

For neutron, the problem is that due to [1] and the fact the L3 agents
are in HA mode, the previous defined workloads on those agent get lost
and FIPs become unreachable.

For nova it's no longer possible to send commands to (before upgrade)
existing vm anymore.

This patch checks the current live value of the host parameter through
a fact and set the nova::host and neutron::host value to it if we are
not in a deployment (upgrade/update)

For nova, we directly use nova-manage to get the current live value.
Using the mysql parameter directly has the advantage that it's defined
on all types of node (controller *and* compute).  As a matter of fact
the required auth parameters are usually not defined on compute node.

For neutron, when auth is available in the configuration (on
Controller) we use that.  There is no neutron-manage equivalent here
so we use the nova value when auth is unavailable.  When host is unset
they both use python.gethostname, so it should be the same value.
Using auth on controller add another level of confidence though.  And
the controller are where the l3 agents are, so better be safe than
sorry.

This patch is newton only as it's where we are setting for the first
time this parameter.  After that (ocata on) we use[2] to make sure
that those parameters are never rewritten.

[0] https://bugzilla.redhat.com/show_bug.cgi?id=1499201
[1] https://review.openstack.org/#/c/560855/
[2] need to be backported to ocata https://review.openstack.org/#/q/I8f075a5ad869ef0dc72a700dcb7be0b6efca787a

Partial-Bug: #1763322
Change-Id: Ieb92ff161d1684c214382c5eb6b5949efc3fe75c
2018-05-03 11:42:01 +02:00
..
aodh Create dedicated "apache" base profile 2018-01-12 00:30:18 +00:00
ceilometer Create dedicated "apache" base profile 2018-01-12 00:30:18 +00:00
ceph Set rgw_keystone_revocation_interval to 0 for ceph::rgw::keystone 2018-02-20 10:15:22 +01:00
cinder Update cephx keys with ACLs for openstack services. 2017-12-19 08:57:57 +00:00
database Enable automatic restart of memcached, apache and mongodb 2018-01-17 22:04:55 +01:00
glance Update cephx keys with ACLs for openstack services. 2017-12-19 08:57:57 +00:00
gnocchi Merge "Update cephx keys with ACLs for openstack services." into stable/newton 2018-01-16 18:08:22 +00:00
heat Move db syncs into mysql base role 2016-09-27 12:08:20 -04:00
ironic Ironic: update included drivers 2016-09-04 17:44:06 +02:00
logging Deploy monitoring/logging agents sooner 2016-10-26 11:55:42 +02:00
manila Update cephx keys with ACLs for openstack services. 2017-12-19 08:57:57 +00:00
mistral Fix mistral sync_db profile steps 2016-08-09 16:32:45 +02:00
monitoring Deploy monitoring/logging agents sooner 2016-10-26 11:55:42 +02:00
neutron Allow vhost socket directory user/group as configurable from template 2018-04-16 10:00:22 +02:00
nova Update nova::compute::libvirt for bug 1720787 2018-01-25 15:26:22 -05:00
sahara Move db syncs into mysql base role 2016-09-27 12:08:20 -04:00
swift Merge "Set memcache_servers in /etc/swift/object-expirer.conf" into stable/newton 2017-10-10 07:43:39 +00:00
time Stop the chronyd service 2017-03-14 00:06:35 +00:00
trove Move db syncs into mysql base role 2016-09-27 12:08:20 -04:00
aodh.pp Add proper handling of IPv6 addresses for rabbit host/port handling 2016-11-08 14:37:57 -03:30
apache.pp Create dedicated "apache" base profile 2018-01-12 00:30:18 +00:00
ceilometer.pp Add proper handling of IPv6 addresses for rabbit host/port handling 2016-11-08 14:37:57 -03:30
ceph.pp Enable usage of "short names" for Ceph cluster 2016-10-06 12:02:20 +00:00
cinder.pp Add proper handling of IPv6 addresses for rabbit host/port handling 2016-11-08 14:37:57 -03:30
docker_registry.pp Stop accidentally removing docker-distribution 2017-03-03 14:38:23 +01:00
gnocchi.pp Fix parameters and headers inconsistency in the puppet manifests. 2016-08-08 22:44:01 +02:00
haproxy.pp Reload haproxy if any configuration changes on HA 2016-10-31 14:08:13 +02:00
heat.pp Add proper handling of IPv6 addresses for rabbit host/port handling 2016-11-08 14:37:57 -03:30
horizon.pp Create dedicated "apache" base profile 2018-01-12 00:30:18 +00:00
ironic.pp Add proper handling of IPv6 addresses for rabbit host/port handling 2016-11-08 14:37:57 -03:30
keepalived.pp Adds auto-detection for VIP interfaces 2016-12-05 15:37:27 -05:00
kernel.pp Ignore failures when loading nf_conntrack_proto_sctp kernel module 2017-07-03 12:05:38 +03:00
keystone.pp Enable automatic restart of memcached, apache and mongodb 2018-01-17 22:04:55 +01:00
manila.pp Add proper handling of IPv6 addresses for rabbit host/port handling 2016-11-08 14:37:57 -03:30
memcached.pp Enable automatic restart of memcached, apache and mongodb 2018-01-17 22:04:55 +01:00
mistral.pp Add proper handling of IPv6 addresses for rabbit host/port handling 2016-11-08 14:37:57 -03:30
neutron.pp [Newton only] Do not overwrite current {neutron,nova}::host value. 2018-05-03 11:42:01 +02:00
nova.pp [Newton only] Do not overwrite current {neutron,nova}::host value. 2018-05-03 11:42:01 +02:00
pacemaker.pp Add retries to the ::pacemaker::stonith property 2017-05-11 13:10:25 +00:00
rabbitmq.pp Check rabbitmq user at step >= 2 2017-04-03 11:51:54 +05:30
sahara.pp Add proper handling of IPv6 addresses for rabbit host/port handling 2016-11-08 14:37:57 -03:30
snmp.pp Allow to configure snmpd_config 2017-10-10 13:21:08 +00:00
sshd.pp Refactor SSHD config to allow both SSHD options and banner/motd to be set 2017-05-31 16:31:13 +00:00
ui.pp Manage tripleo-ui configuration files with puppet 2016-09-16 14:11:14 +02:00
validations.pp Add validations profile for tripleo 2016-09-12 17:39:50 +02:00