Bug 2104148

Summary: route ocs-storagecluster-cephobjectstore misconfigured to use http and https on same http route in haproxy.config
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Matthias Muench <mmuench>
Component: ocs-operatorAssignee: Jiffin <jthottan>
Status: CLOSED ERRATA QA Contact: Mahesh Shetty <mashetty>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.10CC: ebenahar, jthottan, kbg, mmuench, mparida, muagarwa, ocs-bugs, odf-bz-bot, sostapov
Target Milestone: ---   
Target Release: ODF 4.13.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, http request failures occured as route ended up using the secure port because the port in RGW service for its `openshiftroute` was not defined. With this fix, insecure port for the existing OpenShift for RGW are defined properly and a new route with secure port is created thereby avoiding the http request failures. Now, two routes are available for RGW, the existing route uses the insecure port and the new separate route uses the secure port.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-21 15:22:14 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:
Bug Depends On:    
Bug Blocks: 2154341    

Comment 2 Nitin Goyal 2022-07-06 05:24:00 UTC
Moving it to rook

Comment 3 Travis Nielsen 2022-07-06 20:41:25 UTC
There are two routes created for rgw, the first one causes the issues, and the second one should work as expected since it defines the target port of 8080.

# Causes the issues, since no target port is specified it will randomly pick http or https endpoints
ocs-storagecluster-cephobjectstore-openshift-storage.apps.ocp61.dslab.local

# The route with target port of 8080 is expected to work:
ocs-storagecluster-cephobjectstore2-openshift-storage.apps.ocp61.dslab.local

You don't see the issue with the latter route, correct?

The OCS operator creates the routes, so moving back to the OCS Operator component.

Comment 4 Matthias Muench 2022-09-01 09:13:54 UTC
Yes, this is correct. https connection causes the issue, so "ocs-storagecluster-cephobjectstore-openshift-storage.apps.ocp61.dslab.local".

Comment 11 Malay Kumar parida 2023-03-09 07:07:53 UTC
As part of fix for https://bugzilla.redhat.com/show_bug.cgi?id=2139037
separate routes for http and https ports in the rgw service are being created which will also work as a fix for this BZ.

Ref-https://chat.google.com/room/AAAAREGEba8/l6hhxsdBM58

The fix should be available to test on all ODF 4.13 build after 4.13.0-93.

Comment 19 Jiffin 2023-06-15 12:03:28 UTC
*** Bug 2190379 has been marked as a duplicate of this bug. ***

Comment 20 errata-xmlrpc 2023-06-21 15:22:14 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 OpenShift Data Foundation 4.13.0 enhancement and bug fix update), 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/RHBA-2023:3742