puppet-tripleo/manifests
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
..
certmonger Extract local CA if it expired 2018-03-20 08:18:58 +02:00
cluster Modify cassandra dependency 2015-12-14 14:15:15 +00:00
firewall firewall: add IPv6 support 2018-04-25 10:44:02 -07:00
glance NFS mounting for Glance file backend 2016-11-01 13:34:13 +01:00
haproxy Remove extra keystone admin haproxy listen and allow TLS 2017-10-10 11:39:02 +00:00
host Repair immediate VF configuration for PCI SR-IOV 2017-08-26 10:57:34 -02:30
network Ensure keepalived is restarted when necessary. 2016-11-11 18:49:15 +00:00
pacemaker Ensure presence of pacemaker restart directory. 2016-10-13 15:41:57 +00:00
packages packages: run upgrade at 'setup' stage 2016-10-17 14:06:18 +00:00
profile [Newton only] Do not overwrite current {neutron,nova}::host value. 2018-05-03 11:42:01 +02:00
fencing.pp Configure fencing devices 2015-06-12 18:40:50 +02:00
firewall.pp firewall: don't reload IPtables after cleanup 2018-03-12 16:38:12 +00:00
haproxy.pp Disallow TLS v1.0 from HAProxy 2018-03-20 08:27:56 +02:00
init.pp Implement firewalling in tripleo::firewall 2015-07-15 11:58:46 +02:00
keepalived.pp Better way to ensure keepalived before haproxy. 2016-11-09 14:05:03 +00:00
noop.pp Add class to set noop on various puppet resources 2015-07-03 17:16:07 -04:00
packages.pp packages: run upgrade at 'setup' stage 2016-10-17 14:06:18 +00:00
redis_notification.pp Loadbalancer: Add support for Redis 2015-04-16 21:13:40 +02:00
selinux.pp Add tripleo::selinux 2016-05-05 13:19:20 -04:00
trusted_ca.pp Add manifests to inject and trust CA certificates 2016-08-23 14:36:20 +00:00
trusted_cas.pp Add manifests to inject and trust CA certificates 2016-08-23 14:36:20 +00:00
ui.pp Enable communication between UI and the Undercloud by making HAProxy 2016-11-08 10:09:51 +00:00
vip_hosts.pp Add class to write overcloud VIPs into /etc/hosts 2016-09-06 17:15:26 +03:00