Skip to content

CLOUDP-366183: Bump Ops Manager Container Image version to 7.0.21 and fix image usage#671

Merged
nammn merged 12 commits intomasterfrom
CLOUDP-366183_om_image_version_bump-test
Jan 7, 2026
Merged

CLOUDP-366183: Bump Ops Manager Container Image version to 7.0.21 and fix image usage#671
nammn merged 12 commits intomasterfrom
CLOUDP-366183_om_image_version_bump-test

Conversation

@nammn
Copy link
Collaborator

@nammn nammn commented Jan 5, 2026

Summary

This PR fixes upgrade/OLM tests failing in patch builds when testing unreleased OpsManager versions (e.g., 7.0.21) that don't exist on quay.io yet.

Problem

When PR #648 bumped OM from 7.0.20 to 7.0.21, upgrade tests started failing with:

Failed to pull image "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:7.0.21": image not found

Root Cause: In patch builds, images are published to ECR (dev registry) but not yet to quay.io. Upgrade tests install released operators (from official Helm charts or OLM) which default to quay.io registries.

Solution

Pass ECR registry configuration to upgrade tests in patch builds:

Helm-based Upgrade Tests (install_official_operator)

  • OM Registry (registry.opsManager): Passed to ALL operators (including legacy like 1.27.0, 1.32.0) because OM version tags are standard (e.g., 7.0.21)
  • Agent Registry (registry.agent): Only passed to current/dev operator, NOT legacy operators because they use different tag formats (e.g., 13.21.0.9059-1_1.27.0) that don't exist in ECR

OLM Upgrade Tests (subscription config)

  • Added get_registry_env_vars_for_subscription() helper in olm_test_commons.py
  • Only passes OPS_MANAGER_IMAGE_REPOSITORY env var (not agent registry) because:
    1. Released operators may use different agent tag formats
    2. OLM subscription env vars persist across channel upgrades

Proof of Work

  • green pr

Checklist

  • Have you linked a jira ticket and/or is the ticket in the title?
  • Have you checked whether your jira ticket required DOCSP changes?
  • Have you added changelog file?

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

⚠️ (this preview might not be accurate if the PR is not rebased on current master branch)

MCK 1.6.2 Release Notes

Bug Fixes

  • Fixed an issue where monitoring agents would fail after disabling TLS on a MongoDB deployment.
  • Persistent Volume Claim resize fix: Fixed an issue where the Operator ignored namespaces when listing PVCs, causing conflicts with resizing PVCs of the same name. Now, PVCs are filtered by both name and namespace for accurate resizing.
  • Fixed a panic that occurred when the domain names for a horizon was empty. Now, if the domain names are not valid (RFC 1123), the validation will fail before reconciling.

@nammn nammn added the skip-changelog Use this label in Pull Request to not require new changelog entry file label Jan 5, 2026
# to verify the actual public release path.
# IMPORTANT: Don't use ECR for legacy operator versions (e.g., 1.27.0) because they use
# different image tag formats that only exist on quay.io, not in ECR.
build_scenario = operator_installation_config.get("buildScenario", "")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

helm charts: priorly failing now passing using ecr:

  mongodb-ops-manager:
    Container ID:  containerd://5411883ed7f4acacc6af22072e10e5fd2acbd577442de93ad57edab9f7309f7a
    Image:         268558157000.dkr.ecr.us-east-1.amazonaws.com/dev/mongodb-enterprise-ops-manager-ubi:7.0.21

Copy link
Contributor

@m1kola m1kola left a comment

Choose a reason for hiding this comment

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

Looks good in general, but I'm raising a question/point of caution.

variant: init_test_run
# Wait for OM images to be published to quay.io on commit builds (staging).
# On patch builds, this dependency is skipped (task doesn't exist).
- name: release_om_and_agents
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this and on other places should ensure that this task runs on master merges first before running the tests, at the same time it won't run on patches as the task doesn't exist (hence the optional setting)

@nammn nammn changed the title Cloudp 366183 om image version bump test CLOUDP-366183: Bump Ops Manager Container Image version to 7.0.21 and fix image usage Jan 5, 2026
@nammn nammn marked this pull request as ready for review January 5, 2026 16:01
@nammn nammn requested a review from a team as a code owner January 5, 2026 16:01
@nammn nammn requested review from ashortt-mdb and lsierant January 5, 2026 16:01
@nammn nammn merged commit 825428c into master Jan 7, 2026
31 of 34 checks passed
@nammn nammn deleted the CLOUDP-366183_om_image_version_bump-test branch January 7, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Use this label in Pull Request to not require new changelog entry file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants