IBM / cloud-pak-deployer

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.
https://ibm.github.io/cloud-pak-deployer/
Apache License 2.0
130 stars 65 forks source link

DMC profile configuration fails because of missing secret #716

Closed fketelaars closed 3 weeks ago

fketelaars commented 1 month ago

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.