Skip to content

MASCLI fails on "Review AI Service Instances" #1944

@Maximo-Mike

Description

@Maximo-Mike

MAS CLI version

v17.2.0

CLI function used

update

What happened?

When using MAS UPDATe to patch MAS/Manage the following error is seen:

=================
mas update -c v9-251127-amd64 --no-confirm
IBM Maximo Application Suite Update Manager (v17.2.0)
Powered by https://github.com/ibm-mas/ansible-devops/ and https://tekton.dev/

IBM Maximo Application Suite Admin CLI v17.2.0
Powered by https://github.com/ibm-mas/ansible-devops/ and https://tekton.dev/

  1. Review Installed Catalog
    The currently installed Maximo Operator Catalog is IBM Maximo Operators (v9-251127-amd64)
    icr.io/cpopen/ibm-maximo-operator-catalog@sha256:3fce7a6fd2aaafd40597178512d7a4722f28252baec8ac5d4f41edafbd432d7d

  2. Review MAS Instances
    The following MAS instances are installed on the target cluster and will be affected by the catalog update:

  • devmas v9.0.16
  • devmas91 v9.1.5
  • dev2mas91 v9.1.6
  1. Review AI Service Instances
    Traceback (most recent call last):
    File "/opt/app-root/bin/mas-cli", line 70, in
    app.update(argv[2:])
    File "/opt/app-root/lib64/python3.9/site-packages/mas/cli/update/app.py", line 98, in update
    isAiServiceInstalled = self.reviewAiServiceInstance()
    File "/opt/app-root/lib64/python3.9/site-packages/mas/cli/update/app.py", line 239, in reviewAiServiceInstance
    return self.reviewInstances(listAiServiceInstances, 'AI Service', 'AIServiceApp.aiservice.ibm.com/v1')
    File "/opt/app-root/lib64/python3.9/site-packages/mas/cli/update/app.py", line 244, in reviewInstances
    instances = getInstances(self.dynamicClient)
    File "/opt/app-root/lib64/python3.9/site-packages/mas/devops/mas.py", line 138, in listAiServiceInstances
    return listInstances(dynClient, "aiservice.ibm.com/v1", "AIServiceApp")
    File "/opt/app-root/lib64/python3.9/site-packages/mas/devops/mas.py", line 150, in listInstances
    logger.info(f" * {instance['metadata']['name']} v{instance['status']['versions']['reconciled']}")
    KeyError: 'versions'

===========

Now we did in previous attempts to try install the AI Service that failed. While we troubleshoot the AI Service install issue we need to patch our environments. As a workaround we are patching using the manual installation method.

Relevant log output

=================
mas update -c v9-251127-amd64 --no-confirm
IBM Maximo Application Suite Update Manager (v17.2.0)
Powered by https://github.com/ibm-mas/ansible-devops/ and https://tekton.dev/

IBM Maximo Application Suite Admin CLI v17.2.0
Powered by https://github.com/ibm-mas/ansible-devops/ and https://tekton.dev/


1) Review Installed Catalog
The currently installed Maximo Operator Catalog is IBM Maximo Operators (v9-251127-amd64)
 icr.io/cpopen/ibm-maximo-operator-catalog@sha256:3fce7a6fd2aaafd40597178512d7a4722f28252baec8ac5d4f41edafbd432d7d

2) Review MAS Instances
The following MAS instances are installed on the target cluster and will be affected by the catalog update:
- devmas v9.0.16
- devmas91 v9.1.5
- dev2mas91 v9.1.6

3) Review AI Service Instances
Traceback (most recent call last):
  File "/opt/app-root/bin/mas-cli", line 70, in <module>
    app.update(argv[2:])
  File "/opt/app-root/lib64/python3.9/site-packages/mas/cli/update/app.py", line 98, in update
    isAiServiceInstalled = self.reviewAiServiceInstance()
  File "/opt/app-root/lib64/python3.9/site-packages/mas/cli/update/app.py", line 239, in reviewAiServiceInstance
    return self.reviewInstances(listAiServiceInstances, 'AI Service', 'AIServiceApp.aiservice.ibm.com/v1')
  File "/opt/app-root/lib64/python3.9/site-packages/mas/cli/update/app.py", line 244, in reviewInstances
    instances = getInstances(self.dynamicClient)
  File "/opt/app-root/lib64/python3.9/site-packages/mas/devops/mas.py", line 138, in listAiServiceInstances
    return listInstances(dynClient, "aiservice.ibm.com/v1", "AIServiceApp")
  File "/opt/app-root/lib64/python3.9/site-packages/mas/devops/mas.py", line 150, in listInstances
    logger.info(f" * {instance['metadata']['name']} v{instance['status']['versions']['reconciled']}")
KeyError: 'versions'

===========

Metadata

Metadata

Assignees

Labels

Bug ReportSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions