Configuration-based installation of OpenShift and Cloud Pak for Data/Integration/Watson AIOps on various private and public cloud infrastructure providers. Deployment attempts to achieve the end-state defined in the configuration. If something fails along the way, you only need to restart the process to continue the deployment.
Describe the bug
When creating a DMC profile, the Db2 instance password is retrieved. However, the command tries to extract the secret from the last selected project instead of the DMC project.
TASK [cp4d-configure-dmc-profiles : Get password for Db2 instance ca-metastore] ***
Thursday 16 May 2024 02:41:57 +0000 (0:00:00.053) 6:13:31.761 **********
fatal: [localhost]: FAILED! => changed=true
cmd: |-
oc extract secret/c-db2oltp-1715822885792665-instancepassword --to=-
delta: '0:00:00.577427'
end: '2024-05-16 02:41:58.359986'
msg: non-zero return code
rc: 1
start: '2024-05-16 02:41:57.782559'
stderr: 'Error from server (NotFound): secrets "c-db2oltp-1715822885792665-instancepassword" not found'
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
Solution
Qualify the oc extract comamnd with namespace.
Describe the bug When creating a DMC profile, the Db2 instance password is retrieved. However, the command tries to extract the secret from the last selected project instead of the DMC project.
Solution Qualify the
oc extract
comamnd with namespace.