Skip to content

[patch] Enable Db2uInstance type rotation in build-system - #2459

Open
jainyjoseph wants to merge 44 commits into
masterfrom
db2urotate-mc15176
Open

[patch] Enable Db2uInstance type rotation in build-system#2459
jainyjoseph wants to merge 44 commits into
masterfrom
db2urotate-mc15176

Conversation

@jainyjoseph

@jainyjoseph jainyjoseph commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Description

This PR adds support for rotating between Db2uCluster and Db2uInstance deployment types based on the day of the week, enabling automated testing of both deployment methods.

Changes

  • app.py: Added catalogDb2uKind attribute to read db2u_kind_default from catalog metadata
  • db2Settings.py: Added setDB2uKindDefault() method to handle catalog defaults with dev mode override logic
  • argParser.py: Added "rotate" as a valid choice for --db2u-kind argument
  • summarizer.py: Added display of db2u_kind parameter in installation summary

Behavior

Non-Dev Mode:

  • Always uses catalog default (e.g., "db2ucluster")
  • CLI argument --db2u-kind is ignored
  • Ensures production consistency

Dev Mode:

  • Allows CLI override via --db2u-kind argument
  • Supports values: db2ucluster, db2uinstance, rotate
  • Falls back to catalog default if not specified

Rotate Option:

  • Passes "rotate" value to Ansible for weekday-based resolution
  • Enables automated testing of both deployment types

Testing

Test results can be reffered in Jira Story MASCORE-15176

NB: Related PR's:
ibm-mas/ansible-devops#2358
ibm-mas/python-devops#421
https://github.ibm.com/maximoappsuite/build-system/pull/1071

@jainyjoseph
jainyjoseph requested a review from terc1997 July 8, 2026 06:51
@jainyjoseph jainyjoseph changed the title [patch] Enable Db2uInstance type rotation [patch] Enable Db2uInstance type rotation in build-system Jul 8, 2026
Comment thread python/src/mas/cli/install/argParser.py Outdated
Comment thread python/src/mas/cli/install/argParser.py Outdated
@terc1997
terc1997 marked this pull request as ready for review July 14, 2026 18:49
@terc1997
terc1997 requested a review from a team as a code owner July 14, 2026 18:49
Base automatically changed from monthlyupdate to master July 30, 2026 10:24
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.

4 participants