cli icon indicating copy to clipboard operation
cli copied to clipboard

MAS update DB2

Open zoltanpesko opened this issue 10 months ago • 0 comments

MAS CLI version

latest

CLI function used

update

What happened?

When attempting to perform the MAS update, the update-db2 fails with an error, despite having specifically added the 'db2u' namespace in the cli, which is also listed in the parameters.

Image

Relevant log output

TASK [ibm.mas_devops.db2 : Find out which namespace db2 operator is running] ***
changed: [localhost] => changed=true 
  cmd: oc get subs -A | grep db2u-operator | awk '{print $1}'
  delta: '0:00:00.432276'
  end: '2025-03-06 12:19:35.494333'
  msg: ''
  rc: 0
  start: '2025-03-06 12:19:35.062057'
  stderr: ''
  stderr_lines: <omitted>
  stdout: |-
    cpd-operators
    db2u
  stdout_lines: <omitted>

TASK [ibm.mas_devops.db2 : Assert db2 operator is installed] *******************
ok: [localhost] => changed=false 
  msg: All assertions passed

TASK [ibm.mas_devops.db2 : Assert there is just one db2 operator running] ******
fatal: [localhost]: FAILED! => changed=false 
  assertion: db2_operator_namespace_lookup.stdout_lines | length == 1
  evaluated_to: false
  msg:
  - There are multiple subscriptions for DB2 in the cluster.
  - Make sure you just have one DB2 operator running.
  - 'DB2 operator namespaces identified: [''cpd-operators'', ''db2u'']'

zoltanpesko avatar Mar 06 '25 12:03 zoltanpesko