Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1635815

Summary: Default Keepalived and HAproxy resources are not configured correctly for Openshift overcloud deployments
Product: Red Hat OpenStack Reporter: Marius Cornea <mcornea>
Component: openstack-tripleo-heat-templatesAssignee: Martin André <m.andre>
Status: CLOSED ERRATA QA Contact: Marius Cornea <mcornea>
Severity: high Docs Contact:
Priority: high    
Version: 14.0 (Rocky)CC: bperkins, dbecker, jtrowbri, m.andre, mburns, morazi, sasha
Target Milestone: betaKeywords: Triaged
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-9.0.1-0.20181013060860.ffbe879.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-11 11:53:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marius Cornea 2018-10-03 18:08:23 UTC
Description of problem:
docker-ha.yaml environment gets added by default in downstream[1] which overrides the HAproxy and Keeaplived resources:

[root@undercloud-0 stack]# grep -E -i 'haproxy|keepalived' /usr/share/openstack-tripleo-heat-templates/environments/docker-ha.yaml 
  OS::TripleO::Services::Keepalived: OS::Heat::None
  OS::TripleO::Services::HAproxy: ../docker/services/pacemaker/haproxy.yaml

These won't work for the Openshift deployment because:
1/ Keepalived is required
2/ There is no Pacemaker deployed

As a workaround the user needs to override the resource_registry inside an environment file with:

resource_registry:
  OS::TripleO::Services::HAproxy: /usr/share/openstack-tripleo-heat-templates/docker/services/haproxy.yaml
  OS::TripleO::Services::Keepalived: /usr/share/openstack-tripleo-heat-templates//docker/services/keepalived.yaml

It would be less error prone and more user friendly if we added these in the environment files used for activating Openshift(/usr/share/openstack-tripleo-heat-templates/environments/openshift.yaml or /usr/share/openstack-tripleo-heat-templates/environments/openshift-cns.yaml)

[1] https://code.engineering.redhat.com/gerrit/#/c/128715/

Comment 1 Martin André 2018-10-12 14:43:19 UTC
Submitted upstream patch at https://review.openstack.org/#/c/610054/

Comment 8 errata-xmlrpc 2019-01-11 11:53:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:0045