RETIRED, Lightweight composition layer for Puppet TripleO
Go to file
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
lib [Newton only] Do not overwrite current {neutron,nova}::host value. 2018-05-03 11:42:01 +02:00
manifests [Newton only] Do not overwrite current {neutron,nova}::host value. 2018-05-03 11:42:01 +02:00
releasenotes/notes Merge "Composable Role for Neutron LBaaS" into stable/newton 2018-03-24 01:32:49 +00:00
spec [Newton only] Do not overwrite current {neutron,nova}::host value. 2018-05-03 11:42:01 +02:00
templates Add Docker Registry profile 2017-03-03 13:24:11 +00:00
zuul.d Zuul: Remove project name 2018-02-08 16:47:35 -08:00
.gitignore vhostuser socket dir shall be created for vhostuserclient mode 2018-04-13 13:31:42 +05:30
.gitreview Update .gitreview for stable/newton 2016-09-29 12:59:16 -04:00
.sync.yml Initial msync run for all Puppet OpenStack modules 2015-08-18 14:30:54 +02:00
Gemfile Use stable/newton for puppet-openstack_spec_helper. 2016-11-11 14:33:58 +00:00
LICENSE Add basic structure for a Puppet module 2015-02-02 11:39:21 -05:00
Puppetfile_extras Puppetfile: pin puppetlabs-haproxy to 1.5 (latest newton) 2017-11-21 17:53:09 +00:00
README.md README: basic words for now. 2015-02-02 11:46:31 -05:00
Rakefile Switch puppet-tripleo to use puppet-openstack_spec_helper 2016-09-22 21:26:23 -04:00
bindep.txt [newton] Add Puppet package to bindep, for module build 2017-10-27 13:50:11 -07:00
metadata.json Release 5.6.10 (Newton) 2018-04-20 13:36:33 -07:00

README.md

puppet-tripleo

Lightweight composition layer for Puppet TripleO.