Skip to content

Conversation

@m1kola
Copy link
Contributor

@m1kola m1kola commented Apr 24, 2025

Summary

  • Fixes pre-flight scripts to work with MCK images
  • Updates Red Hat project IDs for new images
  • Moves to init-appdb, database and init-database from UBI8 to UBI9. Note: init-ops-manager and mongodb-kubernetes already use UBI9.

Proof of Work

  • CI must be green
  • Preflight tasks must be green (see this patch)
    evergreen patch -v preflight_release_images -t all -p mongodb-kubernetes --path .evergreen.yml -v all -f -d $(git branch --show-current):$(git rev-parse HEAD) --param pin_tag_at=$(date +'%H:%M') -y -u --browse
@m1kola m1kola marked this pull request as ready for review April 24, 2025 19:58
@m1kola m1kola requested a review from a team as a code owner April 24, 2025 19:58
@m1kola m1kola marked this pull request as draft April 25, 2025 08:21
@m1kola
Copy link
Contributor Author

m1kola commented Apr 25, 2025

Reverting UBI9 changes a lot of tests failing and there is also a concern about compatibility with MongoDB prior to 6.0.4.

@m1kola
Copy link
Contributor Author

m1kola commented Apr 25, 2025

Preflight works now without additional changes (e.g no switching to UBI9). I think failing preflights yesterday were related to the image registry outage Red Hat had yesterday.

Here is what preflight does in relation to UBI verification:

  1. It gets image layer IDs (hashes)
  2. Then here it makes a request to pyxis API (relevant method) which, as far as I understand, returns images found in pyxis for registry.access.redhat.com image registry.
  3. If there is an image found - then it passes UBI check.

So it seems likely that API would return incorrect/incomplete result during the image registry outage.

@m1kola m1kola marked this pull request as ready for review April 25, 2025 10:05
@m1kola m1kola requested a review from mircea-cosbuc April 25, 2025 10:05
Copy link
Member

@mircea-cosbuc mircea-cosbuc left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@nammn nammn left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

name_prefix: str = "mongodb-enterprise-",
name_suffix: str = "-ubi",
name_prefix: str = "mongodb-kubernetes-",
name_suffix: str = "",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: Wdyt about removing this ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We still need it for ops-manager and mongodb-agent images.

@m1kola m1kola merged commit bd4d20e into mongodb:master Apr 25, 2025
33 checks passed
@m1kola m1kola deleted the rh_certification branch April 25, 2025 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants