Bug 1887424

Summary: HEAT stack does not support the load balancing algorithm SOURCE_IP_PORT in pool definitions
Product: Red Hat OpenStack Reporter: Arieh Maron <amaron>
Component: openstack-heatAssignee: Zane Bitter <zbitter>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.2 (Train)CC: apetrich, dpeacock, kecarter, mburns, ramishra, sbaker, shardy
Target Milestone: zstreamKeywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-heat-13.1.1-2.20201217073508.0d7e5bd.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-15 07:09:19 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 Arieh Maron 2020-10-12 12:25:41 UTC
Description of problem:

HEAT stack does not support the load balancing algorithm SOURCE_IP_PORT in pool definitions

Version-Release number of selected component (if applicable):

OSP: 16.1 (Train)
HEAT: all versions


How reproducible:
 100%

Steps to Reproduce:
1.Build a yaml HEAT template with the parameter "lb_algorithm: SOURCE_IP_PORT"
2.Try to run the template with "openstack stack create -t ..."

Actual results:

"RESP BODY: {"code": 400, "title": "Bad Request", "explanation": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "error": {"type": "StackValidationFailed", "traceback": null, "message": "Property error: : resources.pool.properties.lb_algorithm: : \"SOURCE_IP_PORT\" is not an allowed value [\"ROUND_ROBIN\", \"LEAST_CONNECTIONS\", \"SOURCE_IP\"]"}}


Expected results:

The stack should be successfully built


Additional info:


SOURCE_IP_PORT is the ONLY load balancing algorithm currently supported by the OVN Provider driver.

Comment 1 Cédric Jeanneret 2020-10-13 08:08:17 UTC
Apparently linked to https://github.com/openstack/octavia/commit/2eac7a7862330746ad77d9b28760c99fa706e179

Comment 3 Kevin Carter 2020-10-22 15:50:03 UTC
An upstream review to address this issue has been created and can be tracked here: https://review.opendev.org/#/c/759280/

Comment 9 Arieh Maron 2021-04-19 06:28:31 UTC
testing with puddle release RHOS-16.2-RHEL-8-20210216.n.2
with openstack heat version openstack-heat-13.1.1-2.20210209004946.069c4db.el8ost.1
fails:

                                                                                                                                 
(overcloud) [stack@undercloud-0 ~]$ openstack stack create -t tree.yaml ovntree
ERROR: Property error: : resources.loadbalancer.properties: : Unknown Property lb_algorithm

Comment 12 Arieh Maron 2021-04-19 10:40:34 UTC
Testing successfull:

puddle release: RHOS-16.2-RHEL-8-20210216.n.2
openstack heat version: openstack-heat-13.1.1-2.20210209004946.069c4db.el8ost.1

Previous failure was a result of an error in the yaml used in the test

Comment 13 Arieh Maron 2021-04-19 10:40:59 UTC
Testing successfull:

puddle release: RHOS-16.2-RHEL-8-20210216.n.2
openstack heat version: openstack-heat-13.1.1-2.20210209004946.069c4db.el8ost.1

Previous failure was a result of an error in the yaml used in the test

Comment 15 errata-xmlrpc 2021-09-15 07:09:19 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 (Red Hat OpenStack Platform (RHOSP) 16.2 enhancement 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-2021:3483