Skip to content

Conversation

@boonware
Copy link
Contributor

@boonware boonware commented Sep 3, 2025

Issue

MASAIB-1321

Depends On

ibm-mas/python-devops#106

Description

  • Enhance the "update" command to handle AI Service updates in addition to MAS updates. Rather than having a separate "update AI Service" command we continue to use the existing one that will now detect if MAS is installed or if AI Service is installed and trigger the update pipeline for one or both.
  • CLI no longer fails immediately if there are no MAS instances detected. Instead if will only fail is there are no MAS instances AND no AI Service instances.
  • The existing MAS update pipeline is used to perform the AI Service update.
  • Fixes an incorrect target name in the Makefile, noticed during testing.

Test Results

  • The MAS update pipeline was tested with @karol-czarnecki in an environment with only AI Service installed and a separate environment with both AI Service and MAS installed. In both cases the AI Service was updated from 9.1.5 to version 9.1.6 in the latest catalog. CLI output is shown below from the standalone case:
[ibmmas/cli:15.3.2-pre.1321]mascli$ mas update
IBM Maximo Application Suite Update Manager (v15.3.2-pre.1321)
Powered by https://github.com/ibm-mas/ansible-devops/ and https://tekton.dev/

IBM Maximo Application Suite Admin CLI v15.3.2-pre.1321
Powered by https://github.com/ibm-mas/ansible-devops/ and https://tekton.dev/


1) Set Target OpenShift Cluster
Already connected to OCP Cluster:
 https://console-openshift-console.apps.kc2.cp.fyre.ibm.com

Proceed with this cluster? [y/n] y

2) Review Installed Catalog
The currently installed Maximo Operator Catalog is IBM Maximo Operators (v9-250828-amd64)
 icr.io/cpopen/ibm-maximo-operator-catalog:v9-250828-amd64

3) Review MAS Instances
No MAS instances were detected on the cluster (Suite.core.mas.ibm.com/v1 API is not available)

4) Review AI Service Instances
The following AI Service instances are installed on the target cluster and will be affected by the catalog update:
- apmdevops v9.1.5

5) Select IBM Maximo Operator Catalog Version
Select MAS Catalog
  1) Sep 02 2025 Update (MAS 9.1.2, 9.0.14, 8.11.23, & 8.10.28)
  2) July 31 2025 Update (MAS 9.1.1, 9.0.13, 8.11.22, & 8.10.27)
  3) Jun 24 2025 Update (MAS 9.1.0, 9.0.12, 8.11.21, & 8.10.26)
Select catalog version 1

6) Dependency Update Checks
✅️ IBM Watson Discovery is not installed
✅️ IBM Watson Openscale is not installed
✅️ IBM Certificate-Manager is not installed
✅️ IBM User Data Services is not installed
✅️ Grafana Operator v4 is not installed
✅️ MongoDb CE is already installed at version 7.0.22
✅️ 1 Db2uClusters (db2u.databases.ibm.com/v1) in namespace 'db2u' will be updated
✅️ Kafka.kafka.strimzi.io/v1beta2 is not available in the cluster
✅️ IBM Cloud Pak for Data is not installed


7) Review Settings
Connected to:
 - https://console-openshift-console.apps.kc2.cp.fyre.ibm.com

7.1) IBM Maximo Operator Catalog
  Installed Catalog ....................... v9-250828-amd64
  Updated Catalog ......................... v9-250902-amd64

7.2) Supported Dependency Updates
  IBM Db2 ................................. All Db2uCluster instances in db2u
  MongoDb CE .............................. All MongoDbCommunity instances in mongoce
  Apache Kafka ............................ No action required
  IBM Cloud Pak for Data .................. No action required

7.3) Required Migrations
  IBM Certificate-Manager ................. No action required
  IBM User Data Services .................. No action required
  Grafana v4 Operator ..................... No action required

Please carefully review your choices above, correcting mistakes now is much easier than after the update has begun
Proceed with these settings? [y/n] y

8) Launch Update
✅️ OpenShift Pipelines Operator is installed and ready to use
✅️ Namespace is ready (mas-pipelines)
✅️ Latest Tekton definitions are installed (v15.3.2-pre.1321)
✅️ PipelineRun for MAS update submitted

View progress:
  https://console-openshift-console.apps.kc2.cp.fyre.ibm.com/k8s/ns/mas-pipelines/tekton.dev~v1beta1~PipelineRun/mas-update-250908-1529

[ibmmas/cli:15.3.2-pre.1321]mascli$

@boonware boonware changed the title [wip] AI Service update [wip] include AI Service in "update" command Sep 3, 2025
@boonware boonware changed the title [wip] include AI Service in "update" command [minor] support AI Service as part of update pipeline Sep 9, 2025
@boonware boonware changed the title [minor] support AI Service as part of update pipeline [minor] support AI Service updates Sep 9, 2025
Copy link
Contributor

@karol-czarnecki karol-czarnecki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@durera durera merged commit 11b9768 into master Sep 11, 2025
13 checks passed
@durera durera deleted the 1321 branch September 11, 2025 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants