Bug 2111228 - [ODF MS] Fresh Deployment with provider addon v2.0.4 is failed: spec.remoteWrite.oauth2.tokenUrl: Invalid value
Summary: [ODF MS] Fresh Deployment with provider addon v2.0.4 is failed: spec.remoteWr...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: odf-managed-service
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Kaustav Majumder
QA Contact: suchita
URL:
Whiteboard:
: 2111225 2111226 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-26 19:10 UTC by suchita
Modified: 2023-08-09 17:00 UTC (History)
5 users (show)

Fixed In Version: v2.04
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-23 08:44:04 UTC
Embargoed:


Attachments (Terms of Use)

Description suchita 2022-07-26 19:10:33 UTC
Description of problem:

Appliance mode fresh deployment addon status of provider is failed

Version-Release number of selected component (if applicable):
OCS-provider-qe Addon deployer version v2.0.4
openshift-v4.10.22


How reproducible:
2/2

Steps to Reproduce:
1. Deploy appliance mode provider with a
2.
3.

Actual results:Addon install status is Failed


Expected results: provider Addon should get installed successfully and have status ready 


Additional info:

root cause analyzed and discussed in gchat thread https://chat.google.com/room/AAAASHA9vWs/LkLDLWdnKAo

2022-07-26T12:10:19.923Z    ERROR    controllers.ManagedOCS    An error was encountered during reconcilePhases    {"error": "Failed to update Prometheus: Prometheus.monitoring.coreos.com \"managed-ocs-prometheus\" is invalid: spec.remoteWrite.oauth2.tokenUrl: Invalid value: \"\": spec.remoteWrite.oauth2.tokenUrl in body should be at least 1 chars long"}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
    /tmp/go/ocs-osd-deployer/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:298
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
    /tmp/go/ocs-osd-deployer/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
    /tmp/go/ocs-osd-deployer/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:214
2022-07-26T12:10:19.930Z    ERROR    controller-runtime.manager.controller.managedocs    Reconciler error    {"reconciler group": "ocs.openshift.io", "reconciler kind": "ManagedOCS", "name": "managedocs", "namespace": "openshift-storage", "error": "Failed to update Prometheus: Prometheus.monitoring.coreos.com \"managed-ocs-prometheus\" is invalid: spec.remoteWrite.oauth2.tokenUrl: Invalid value: \"\": spec.remoteWrite.oauth2.tokenUrl in body should be at least 1 chars long"}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
    /tmp/go/ocs-osd-deployer/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
    /tmp/go/ocs-osd-deployer/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:214

Comment 1 Filip Balák 2022-08-01 12:08:21 UTC
*** Bug 2111225 has been marked as a duplicate of this bug. ***

Comment 2 Filip Balák 2022-08-01 12:08:32 UTC
*** Bug 2111226 has been marked as a duplicate of this bug. ***

Comment 3 Kaustav Majumder 2022-08-02 07:41:45 UTC
The saas  template for the secret was incorrect resulting in the secret getting created in the addon namespace as incomplete. Fixing the saas template fixed the issue for upgraded and fresh installed clusters.
@suchita can you confim the same?

Comment 4 suchita 2022-08-04 11:03:02 UTC
After a Fix, Fesh deployment has processed successfully. 
Reference Jenkins Jobs: 
Provider :https://ocs4-jenkins-csb-odf-qe.apps.ocp-c1.prod.psi.redhat.com/job/qe-deploy-ocs-cluster/15274/
Consumer: https://ocs4-jenkins-csb-odf-qe.apps.ocp-c1.prod.psi.redhat.com/job/qe-deploy-ocs-cluster/15281/

Hence marking This BZ as verified.

Comment 12 Ritesh Chikatwar 2023-01-23 08:44:04 UTC
Closing the bug as it's fixed in v2.0.4 and verified by QA.


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