Bug 1635815 - Default Keepalived and HAproxy resources are not configured correctly for Openshift overcloud deployments
Summary: Default Keepalived and HAproxy resources are not configured correctly for Ope...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 14.0 (Rocky)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: 14.0 (Rocky)
Assignee: Martin André
QA Contact: Marius Cornea
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-03 18:08 UTC by Marius Cornea
Modified: 2019-01-11 11:53 UTC (History)
7 users (show)

Fixed In Version: openstack-tripleo-heat-templates-9.0.1-0.20181013060860.ffbe879.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-11 11:53:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 610054 0 'None' MERGED Ensure the needed openshift resources are set 2020-09-11 19:41:17 UTC
Red Hat Product Errata RHEA-2019:0045 0 None None None 2019-01-11 11:53:44 UTC

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


Note You need to log in before you can comment on or make changes to this bug.