tripleo-heat-templates/deployment/haproxy
Michele Baldessari 668cc684fc Fix double cert mount in haproxy bundle when using tls everywhere
When deploying with tls-everywhere the haproxy_init_bundle container
will bind mount /etc/ipa/ca.crt twice and starting with podman 1.{3,4}.x
this will break:

  "stderr: Error: /etc/ipa/ca.crt: duplicate mount destination"

The TLS bind mounts are needed in haproxy_init_bundle (which is only
in charge of creating the pcmk resource) because puppet-haproxy uses
a validate command to check the config which will fail if we simply
remove those bind mounts. Instead of skipping this verification with
some parameter/tag, we try and avoid the duplicate cert by removing the
ca.crt bind mount from deployed_cert_mounts.

The duplication comes from:
1) https://github.com/openstack/tripleo-heat-templates/blob/master/deployment/containers-common.yaml#L122-L127
2) https://github.com/openstack/tripleo-heat-templates/blob/master/deployment/haproxy/haproxy-pacemaker-puppet.yaml#L263

Since changing it into 1) has large implication, we just avoid
redefining it in 2).

Tested with a full tls-everywhere deploy with the applied patch and the
error is not seen any longer.

Change-Id: I6493fd090c808da01d19cc12d1b8371c67708904
Related-Bug: #1833347
Closes-Bug: #1846495
2019-10-07 14:41:10 +02:00
..
haproxy-container-puppet.yaml Stop services for unupgraded controllers 2019-08-07 19:23:11 +02:00
haproxy-internal-tls-certmonger.j2.yaml Request certificate for using host service principals 2019-03-05 10:17:24 +02:00
haproxy-pacemaker-puppet.yaml Fix double cert mount in haproxy bundle when using tls everywhere 2019-10-07 14:41:10 +02:00
haproxy-public-tls-certmonger.yaml certmonger: Don't restart haproxy on cert renewal 2019-02-01 08:41:32 +02:00
haproxy-public-tls-inject.yaml Fix typo in get container_id ansible task 2019-02-25 12:49:42 +05:30