Bug 1872730

Summary: [RFE][External mode] Re-configure noobaa to use the updated RGW endpoint from the RHCS cluster
Product: [Red Hat Storage] Red Hat OpenShift Container Storage Reporter: Rachael <rgeorge>
Component: Multi-Cloud Object GatewayAssignee: Nimrod Becker <nbecker>
Status: CLOSED ERRATA QA Contact: Sidhant Agrawal <sagrawal>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.5CC: assingh, dwalveka, etamir, jthottan, muagarwa, nbecker, nberry, ocs-bugs, omitrani, owasserm, sagrawal
Target Milestone: ---Keywords: AutomationBackLog, FutureFeature
Target Release: OCS 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: v4.7.0-158.ci Doc Type: Enhancement
Doc Text:
.Update RGW address in the external mode With this update, you can change the RGW address without affecting the Multicloud Object Gateway's(MCG) work if the MCG is configured with an RGW BackingStore in the external mode.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-19 09:15:04 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: 1921864    
Bug Blocks: 1938134    

Description Rachael 2020-08-26 13:59:23 UTC
Description of problem (please be detailed as possible and provide log
snippets):

For an external mode cluster, if the RGW endpoint changes due to a node replacement operation or an issue with the Load balancer(HA proxy) configured for RGW on the RHCS cluster, this will affect the noobaa operations on the OCS cluster. 

There should be a way, either automatically or through a series of manual steps, to update this change in RGW endpoint in noobaa without having to re-deploy OCS altogether.

Version of all relevant components (if applicable):
OCS version: 4.5.0-526.ci
OCP version: 4.5.0-0.nightly-2020-08-20-051434

Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?

Yes, Noobaa services will get affected

Is there any workaround available to the best of your knowledge?
Not that I am aware of

Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?
4

Can this issue reproducible?
Yes

Can this issue reproduce from the UI?


If this is a regression, please provide more details to justify this:


Steps to Reproduce:
1.If the RHCS cluster has only one RGW endpoint configured, use the endpoint to create an OCS cluster in external mode
2. Perform a node replacement operation on the RGW node. This would change the the RGW endpoint
3. Check noobaa status and services

Comment 3 Nimrod Becker 2020-08-26 14:05:42 UTC
RFE, not a blocker for 4.5, moving to 4.6.

Also, why is it not a BZ on rook ? Rook provides the URL of RGW to connect to, if rook changes but MCG does not, its a bug in MCG. If rook does not change as well, that's the first step.

Comment 4 Nimrod Becker 2020-09-01 08:41:50 UTC
I think its a rook BZ as rook provides the URL to connect to.
What do you think ?

Comment 5 Nimrod Becker 2020-09-08 09:01:04 UTC
Adding some info (eng. internal :) )

We would need to enable updated to the external connection which is used by this BS and update the node within the hosted_agents process

Comment 6 Nimrod Becker 2020-09-08 09:02:19 UTC
in any case we are dependent on rook changes (and also ocs-operator due to those changes) that will happen only on 4.7
Moving this to 4.7

Comment 7 Ohad 2020-11-02 11:25:12 UTC
A PR was issued with a fix on the upstream project (see link section)

The changes in linked PR will guarantee that NooBaa will consume FQDN for RGW service which should also solve the address change problem

Comment 22 errata-xmlrpc 2021-05-19 09:15:04 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 (Moderate: Red Hat OpenShift Container Storage 4.7.0 security, bug fix, and enhancement 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/RHSA-2021:2041