-
Notifications
You must be signed in to change notification settings - Fork 44
Description
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/
-
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 -
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
- 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'
===========