cli icon indicating copy to clipboard operation
cli copied to clipboard

Throwing DB2 error although not installing in non-interactive mode

Open Rajeshri-Shil opened this issue 1 year ago • 1 comments

MAS CLI version

11.2.1

CLI function used

install

What happened?

In non-interactive mode, its throwing error of "db2_action_system" even though not installing DB2

Unknown option: db2_action_system None
Fatal Error: Unknown option: db2_action_system None

Relevant log output

mas install --mas-catalog-version v9-multiarch-s390x --ibm-entitlement-key $IBM_ENTITLEMENT_KEY \
  --mas-channel 9.1.x-dev --mas-instance-id mastry --mas-workspace-id mastry --mas-workspace-name "mastry" \
  --additional-configs "/mascli" \
  --non-prod \
  --disable-walkme \
  --storage-class-rwo "nfs-client" --storage-class-rwx "nfs-client" \
  --storage-pipeline "nfs-client" --storage-accessmode "ReadWriteMany" \
  --license-file "/mascli/entilement.lic" \
  --uds-email "[email protected]" --uds-firstname "shajeena" --uds-lastname "syed" \
  --dro-namespace "redhat-marketplace" \
  --mongodb-namespace "mongodb" \
  --accept-license --no-confirm

IBM Maximo Application Suite Admin CLI v11.2.0-pre.final-review-s390x
Powered by https://github.com/ibm-mas/ansible-devops/ and https://tekton.dev/

Unknown option: db2_action_system None
Fatal Error: Unknown option: db2_action_system None

Rajeshri-Shil avatar Oct 03 '24 11:10 Rajeshri-Shil

Note : The IBM catalog has only truststore, SLS & MAS core. Environment is zlinux

shajeena avatar Oct 03 '24 18:10 shajeena

Fixed in https://github.com/ibm-mas/cli/pull/1358

verified with command from https://ibm-mas.github.io/cli/examples/eam-migration/ (and removing the --db2-system flag)

docker run -e IBMCLOUD_APIKEY -ti --rm -v ~:/mnt/home --pull always quay.io/ibmmas/cli:master bash -c "
  CLUSTER_TYPE=roks CLUSTER_NAME=mycluster ROLE_NAME=ocp_login ansible-playbook ibm.mas_devops.run_role &&
  mas install \
  --non-prod \
  --mas-instance-id dev \
  --mas-workspace-id demo \
  --mas-workspace-name 'EAM Migration Demo' \
  --mas-catalog-version v9-241107-amd64 \
  --mas-channel 9.0.x \
  --manage-channel 9.0.x \
  --manage-jdbc workspace-application \
  --manage-components base=latest \
  --additional-configs /mnt/home/mas9demo \
  --license-file /mnt/home/mas9demo/entitlement.lic \
  --uds-email [email protected] \
  --uds-firstname David \
  --uds-lastname Parker \
  --storage-class-rwo ibmc-block-gold \
  --storage-class-rwx ibmc-file-gold-gid \
  --storage-pipeline ibmc-file-gold-gid \
  --storage-accessmode ReadWriteMany \
  --superuser-username superuser \
  --superuser-password '$SUPERUSER_PASSWORD' \
  --ibm-entitlement-key '$IBM_ENTITLEMENT_KEY' \
  --accept-license
"

durera avatar Nov 21 '24 01:11 durera