Skip to content

[minor] Support db2 v12 upgrade#2099

Merged
whitfiea merged 38 commits into
masterfrom
mascore-11094
May 6, 2026
Merged

[minor] Support db2 v12 upgrade#2099
whitfiea merged 38 commits into
masterfrom
mascore-11094

Conversation

@terc1997
Copy link
Copy Markdown
Contributor

@terc1997 terc1997 commented Mar 4, 2026

1. Description

To support Db2 v12 upgrade, it requires to change mas update command to allow the upgrade according with the user input. So, for that support it will be included:

  • --db2-v12-upgrade and --db2-license-file flag in the mas update command line
  • db2_v12_upgrade and db2_license_file flag in mas_update Tekton task, backed up by a change in the ansible-devops to carry db2_v12_upgrade
  • Update unit tests

Also in this PR it will be delivered the support for Db2 License file. To support that:

  • Create db2LicenseFile() which has the same features as slsLicenseFile().
  • It was created a new workspace shared-db2 that mounts pipeline-db2-license secret.

2. Dependencies

3. Upgrade Tests

3.1. CLI Help

image

3.2. Non interactive

Without --db2-v12-upgrade

image

Without --db2-license-file

image

Normal flow

image

3.3. Interactive

image

4. Install tests with License

CLI Help

image

Interactive

image image

Non Interactive

image image

Pipeline with License

image image image image

Pipeline without License

image image image

FVT Tests

  • db2upgrade3
  • db2instance

⚠️ Notes for Reviewers

  • Ensure you have understood the PR guidelines in the Playbook before proceeding with a review.
  • Ensure all sections in the PR template are appropriately completed.

@terc1997 terc1997 added DB2 Universal Operator Issues related to the IBM DB2 Universal Operator Do not merge Don't merge this PR yet labels Mar 4, 2026
@terc1997 terc1997 marked this pull request as ready for review March 10, 2026 12:48
@terc1997 terc1997 requested a review from a team as a code owner March 10, 2026 12:48
@whitfiea whitfiea marked this pull request as draft March 30, 2026 07:21
@terc1997 terc1997 marked this pull request as ready for review April 17, 2026 14:33
Copy link
Copy Markdown
Contributor

@durera durera left a comment

Choose a reason for hiding this comment

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

In the screenshots, it doesn't show how the user will be prompted for the db2 activation key in interactive or non-interactive ... I assume that in there though, otherwise upgrade would take them to a trial license? And we need to prevent the update being started in the event that they don't provide the activation key -- even if they think they want to move to the trial license, I just don't want that headache when it means a prod system goes offline in 30 days :D

We can let people install NEW without a license, but for the update/db2 v12 upgrade I think we need to ensure that there's no "downgrade" from full to trial as part of this action

@terc1997
Copy link
Copy Markdown
Contributor Author

In the screenshots, it doesn't show how the user will be prompted for the db2 activation key in interactive or non-interactive ... I assume that in there though, otherwise upgrade would take them to a trial license? And we need to prevent the update being started in the event that they don't provide the activation key -- even if they think they want to move to the trial license, I just don't want that headache when it means a prod system goes offline in 30 days :D

We can let people install NEW without a license, but for the update/db2 v12 upgrade I think we need to ensure that there's no "downgrade" from full to trial as part of this action

Okay. I didn't enforce the license for db2 v12 upgrade. Let me update CLI and ansible-devops to enforce the presence during the upgrade.

@terc1997
Copy link
Copy Markdown
Contributor Author

Added license enforcing when updating from v11 to v12.

@terc1997 terc1997 requested a review from durera April 30, 2026 18:29
durera
durera previously approved these changes May 5, 2026
@durera durera changed the title [patch] support db2 upgrade to v12 [minor] Support db2 v12 upgrade May 5, 2026
@terc1997 terc1997 removed the Do not merge Don't merge this PR yet label May 6, 2026
@whitfiea whitfiea merged commit 3124797 into master May 6, 2026
14 checks passed
@whitfiea whitfiea deleted the mascore-11094 branch May 6, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DB2 Universal Operator Issues related to the IBM DB2 Universal Operator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants