Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
4638912
[minor] Support July Catalog Update
prveenkumr Jun 26, 2026
4596e90
[patch] Update catalog digests for July release (#2432)
prveenkumr Jun 26, 2026
8fae278
[patch] update july catalog tag
prveenkumr Jun 26, 2026
165f543
[patch] add catalog md file
prveenkumr Jun 26, 2026
499eff6
Merge branch 'master' into monthlyupdate
prveenkumr Jun 29, 2026
4e57642
Merge branch 'master' into monthlyupdate
prveenkumr Jun 30, 2026
df6d9cb
Merge branch 'master' into monthlyupdate
prveenkumr Jun 30, 2026
de27eff
Merge branch 'master' into monthlyupdate
prveenkumr Jun 30, 2026
dced819
Merge branch 'master' into monthlyupdate
prveenkumr Jun 30, 2026
3f6930e
Merge branch 'master' into monthlyupdate
prveenkumr Jul 1, 2026
8fc120a
Merge branch 'master' into monthlyupdate
prveenkumr Jul 1, 2026
af22526
Merge branch 'master' into monthlyupdate
prveenkumr Jul 2, 2026
f8413f0
Add Support for db2_kind rotation
jainyjoseph Jul 3, 2026
bc19a18
Fixed the pre-commit error
jainyjoseph Jul 3, 2026
d2bd34a
Merge branch 'master' into monthlyupdate
prveenkumr Jul 3, 2026
e778c6d
Updated to test depreciation fix
jainyjoseph Jul 6, 2026
64b5e55
[patch] Merge from master (#2452)
IanBoden Jul 6, 2026
cb2efd6
Updated to test depreciation fix #1
jainyjoseph Jul 6, 2026
0755d56
Merge branch 'master' into monthlyupdate
prveenkumr Jul 6, 2026
e0c1e8f
Merge branch 'master' into monthlyupdate
prveenkumr Jul 7, 2026
8883609
[patch] Update catalog digests for July release (#2455)
prveenkumr Jul 7, 2026
86147cf
Merge branch 'master' into monthlyupdate
prveenkumr Jul 8, 2026
e72a7fe
Merge branch 'master' into monthlyupdate
prveenkumr Jul 9, 2026
5ab2055
Merge branch 'master' into monthlyupdate
prveenkumr Jul 10, 2026
af86d60
Merge branch 'master' into monthlyupdate
prveenkumr Jul 11, 2026
dad1842
[patch] Update catalog digests for July release (#2465)
prveenkumr Jul 11, 2026
362bee2
[patch] rebuild cli
prveenkumr Jul 13, 2026
31a5d4b
Merge branch 'master' into monthlyupdate
prveenkumr Jul 14, 2026
fd59355
Merge branch 'master' into monthlyupdate
prveenkumr Jul 14, 2026
e05d53a
Merge branch 'monthlyupdate' into db2urotate-mc15176
terc1997 Jul 14, 2026
f908e50
Updated the argparser to keep rotate as silent feature alone
jainyjoseph Jul 15, 2026
72a77c8
[patch] Default db2ukind to be handled at ansible-devops
jainyjoseph Jul 15, 2026
6d41e49
[patch] Removed forced fallback to db2ucluater in cli
jainyjoseph Jul 16, 2026
dabf2fc
Updated to remove db2u_kind in non-dev mode if set
jainyjoseph Jul 16, 2026
35e9d8e
[patch] Debug enabled
jainyjoseph Jul 16, 2026
7d2665d
[patch] Debug enabled
jainyjoseph Jul 16, 2026
7426694
[patch] reverting last changes
jainyjoseph Jul 16, 2026
d9aaf35
Debug
jainyjoseph Jul 16, 2026
8278a24
[patch] Fix applied
jainyjoseph Jul 16, 2026
4053692
[patch] Fix applied, removed unwanted debug statements
jainyjoseph Jul 16, 2026
e49e3a9
Re-runing build
jainyjoseph Jul 16, 2026
92b5f23
Merge branch 'master' into db2urotate-mc15176
jainyjoseph Aug 7, 2026
e8f7faa
[patch] conflicts resolved
jainyjoseph Aug 7, 2026
fe3b23e
[patch] conflicts resolved
jainyjoseph Aug 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ Want to contribute to MAS Command Line Interface?
We welcome every Maximo Application Suite users, developers and enthusiasts to contribute to the MAS Command Line Interface while fixing code issues and implementing new automated functionalities.

You can contribute to this collection by raising [a new issue](https://github.com/ibm-mas/cli/issues) with suggestions on how to make our MAS automation engine even better, or if you want to become a new code contributor, please refer to the [Contributing Guidelines](CONTRIBUTING.md) and learn more about how to get started.

3 changes: 2 additions & 1 deletion python/src/mas/cli/install/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ def processCatalogChoice(self) -> list:
self.catalogDigest = self.chosenCatalog["catalog_digest"]
self.catalogMongoDbVersion = self.chosenCatalog["mongo_extras_version_default"]
self.catalogDb2Channel = self.chosenCatalog.get("db2_channel_default", "v110509.0") # Returns fallback "v110509.0" for old catalogs without this field
self.catalogDb2uKind = self.chosenCatalog.get("db2u_kind_default", "db2ucluster") # Returns Fallback if not found
if self.architecture != "s390x" and self.architecture != "ppc64le":
self.catalogCp4dVersion = self.chosenCatalog["cpd_product_version_default"]

Expand Down Expand Up @@ -2511,7 +2512,6 @@ def nonInteractiveMode(self) -> None:
if not self.devMode:
self.validateCatalogSource()
self.licensePrompt()
self.setParam("db2u_kind", "db2ucluster")

if self.getParam("mas_issuer_kind") != "" and not isVersionEqualOrAfter("9.2.0", self.getParam("mas_channel")):
self.fatalError(f"--mas-issuer-kind is only supported for MAS 9.2+ (selected channel: {self.getParam('mas_channel')})")
Expand Down Expand Up @@ -2581,6 +2581,7 @@ def nonInteractiveMode(self) -> None:
operation="installation",
)
self.setDB2DefaultChannel()
self.setDB2uKindDefault()

# Version before 9.1 cannot have empty components
if (
Expand Down
2 changes: 1 addition & 1 deletion python/src/mas/cli/install/argParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,7 @@ def isValidFile(parser: argparse.ArgumentParser, arg: str) -> str:
"--db2u-kind",
dest="db2u_kind",
required=False,
help="Db2 resource kind in the cluster",
help="Db2 resource kind in the cluster(db2ucluster, db2uinstance)",
)

# ECK Integration
Expand Down
24 changes: 21 additions & 3 deletions python/src/mas/cli/install/settings/db2Settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def configDb2(self, silentMode=False) -> None:
self.printH1("Configure Databases")

self.setDB2DefaultChannel() # Set default channel for Db2 if not already set
self.setDB2uKindDefault() # Set default db2u_kind from catalog if not already set

# If neither Monitor, Manage or Facilities is being installed, we have nothing to do
# Note: For Monitor >= 9.2.0, Monitor requires Db2; for Monitor < 9.2.0, IoT requires Db2
Expand Down Expand Up @@ -320,15 +321,13 @@ def configDb2(self, silentMode=False) -> None:
if self.yesOrNo("Select Db2 Custom Resource(CR)"):
self.printDescription(["Db2 Custom Resource", " 1. Db2uCluster", " 2. Db2uInstance"])
self.promptForListSelect("Select the CR Resource", ["db2ucluster", "db2uinstance"], "db2u_kind")
else:
self.setParam("db2u_kind", "db2ucluster")
else:
self.setParam("db2_namespace", "db2u")

def setDB2DefaultChannel(self) -> None:
# Set the default db2-Channel
if hasattr(self, "catalogDb2Channel"):
# Best case: catalogDb2Channel was set by processCatalogChoice()
# CatalogDb2Channel was set by processCatalogChoice()
default_db2_channel = self.catalogDb2Channel
elif hasattr(self, "chosenCatalog") and self.chosenCatalog is not None:
# Fallback: Get directly from chosenCatalog if available
Expand All @@ -346,6 +345,25 @@ def setDB2DefaultChannel(self) -> None:

self.params["db2_channel"] = db2_channel

def setDB2uKindDefault(self) -> None:
# Set the default db2u_kind from catalog, with dev mode Override support
# Get default from Catalog
if hasattr(self, "catalogDb2uKind"):
default_db2u_kind = self.catalogDb2uKind
elif hasattr(self, "chosenCatalog") and self.chosenCatalog is not None:
default_db2u_kind = self.chosenCatalog.get("db2u_kind_default", "db2ucluster")
else:
default_db2u_kind = "db2ucluster"

if not self.devMode:
db2u_kind = default_db2u_kind
else:
# In dev mode, allow user override if provided
user_kind = self.getParam("db2u_kind")
db2u_kind = user_kind if user_kind else default_db2u_kind

self.params["db2u_kind"] = db2u_kind

def setDB2DefaultSettings(self) -> None:

self.setParam("db2_cpu_requests", "4000m")
Expand Down
1 change: 1 addition & 0 deletions python/src/mas/cli/install/summarizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ def db2Summary(self) -> None:
print()
self.printParamSummary("Install Namespace", "db2_namespace")
self.printParamSummary("Subscription Channel", "db2_channel")
self.printParamSummary("Db2 Resource Kind", "db2u_kind")
print()
self.printParamSummary("CPU Request", "db2_cpu_requests")
self.printParamSummary("CPU Limit", "db2_cpu_limits")
Expand Down
Loading