Skip to content

Commit 4535375

Browse files
authored
Merge branch 'release-1.9' into cherry-pick-1763-to-release-1.9
2 parents 627d469 + 6ef2ff9 commit 4535375

1 file changed

Lines changed: 35 additions & 3 deletions

File tree

modules/orchestrator/proc-troubleshooting-the-pipelines.adoc

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,43 @@ Pipeline succeeds but workflows are missing:: If the CI pipeline succeeds but th
3131

3232
* Make sure the target namespace is labeled for Argo CD:
3333
+
34-
[source,terminal]
34+
[source,terminal,subs="+quotes"]
3535
----
36-
$ oc label ns sonataflow-infra rhdh.redhat.com/argocd-namespace=true
36+
$ oc label ns _<target_namespace>_ rhdh.redhat.com/argocd-namespace=true
3737
----
3838

3939
* Make sure the ArgoCD ServiceAccount has the required permissions to manage resources in the `rhdh` namespace.
4040

41-
Argo CD sync failure:: If resources appear but remain in an `OutOfSync` state, click *Refresh* in the Argo CD UI or verify that the *AppProject* exists in the `orchestrator-gitops` namespace.
41+
Argo CD sync failure:: If resources appear but remain in an `OutOfSync` state, click *Refresh* in the Argo CD UI or verify that the *AppProject* exists in the `orchestrator-gitops` namespace.
42+
43+
PostgreSQL authentication failures in Argo CD:: If the Orchestrator fails to connect to the PostgreSQL database when you deploy by using Argo CD, the failure is often due to a mismatch in password generation.
44+
+
45+
The Orchestrator Helm chart uses the Helm `lookup` function to check for an existing PostgreSQL secret. Because Argo CD uses `helm template` to render manifests, it cannot query the live cluster. Consequently, the chart generates a new, random password instead of retrieving the existing one, resulting in an authentication failure.
46+
+
47+
To resolve this failure, you must complete the following steps:
48+
49+
.. Create the database secret manually with the correct credentials:
50+
+
51+
[source,bash,subs=+attributes]
52+
----
53+
$ kubectl create secret generic <backstage-postgresql-svcbind-postgres> --from-literal=password=<your_password>
54+
----
55+
56+
.. Update your Helm configuration (for example, in `values.yaml`) to disable automatic service binding generation:
57+
+
58+
[source,yaml]
59+
----
60+
upstream:
61+
postgresql:
62+
serviceBindings:
63+
enabled: false
64+
auth:
65+
username: postgres
66+
database: backstage
67+
existingSecret: backstage-postgresql-svcbind-postgres
68+
secretKeys:
69+
adminPasswordKey: password
70+
userPasswordKey: password
71+
----
72+
73+
.. Sync the application in Argo CD to apply the changes.

0 commit comments

Comments
 (0)