-
Notifications
You must be signed in to change notification settings - Fork 38
Add MariaDB major version upgrade support (OSPRH-31231) #492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
zzzeek
wants to merge
1
commit into
openstack-k8s-operators:main
Choose a base branch
from
zzzeek:OSPRH-31231
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| # Test image: MariaDB 10.11 on CentOS Stream 9 kolla base | ||
| # | ||
| # Derives from the standard 10.5 kolla image to preserve all kolla scripts, | ||
| # uid/gid setup, and filesystem layout. Swaps the MariaDB packages to 10.11 | ||
| # from mariadb.org community repos. | ||
| # | ||
| # This is a temporary test image for developing/validating the 10.5->10.11 | ||
| # upgrade path (OSPRH-31231). The real target image will be RHEL 10 based | ||
| # and built via the production pipeline. | ||
| # | ||
| # Build: | ||
| # podman build -t quay.io/<user>/openstack-mariadb:10.11-test \ | ||
| # -f hack/Containerfile.mariadb-10.11 . | ||
| # | ||
| # Verify: | ||
| # podman run --rm quay.io/<user>/openstack-mariadb:10.11-test mysqld --version | ||
| # podman run --rm quay.io/<user>/openstack-mariadb:10.11-test which mariadb-upgrade | ||
|
|
||
| FROM quay.io/podified-antelope-centos9/openstack-mariadb:current-podified | ||
|
|
||
| USER root | ||
|
|
||
| # Remove the CentOS 9 MariaDB 10.5 RPMs. The community MariaDB-server package | ||
| # conflicts on /usr/sbin/mysqld so these must be removed first. | ||
| RUN rpm -e --nodeps \ | ||
| mariadb-server-galera \ | ||
| mariadb-server \ | ||
| mariadb-server-utils \ | ||
| mariadb-backup \ | ||
| mariadb \ | ||
| mariadb-errmsg \ | ||
| mariadb-common \ | ||
| galera | ||
|
|
||
| # Add the MariaDB.org 10.11 repo and install the community packages. | ||
| # MariaDB-server, MariaDB-client, MariaDB-backup use uppercase names so there | ||
| # is no RPM naming conflict with the packages removed above. | ||
| RUN curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | \ | ||
| bash -s -- --mariadb-server-version=mariadb-10.11 --skip-check-installed && \ | ||
| dnf install -y \ | ||
| MariaDB-server \ | ||
| MariaDB-client \ | ||
| MariaDB-backup \ | ||
| galera-4 && \ | ||
| dnf clean all && \ | ||
| # RHEL packages differ from MariaDB.org community packages in two paths | ||
| # that the operator scripts and config reference. Add symlinks so this test | ||
| # image works without touching operator code. The production RHEL 10 image | ||
| # won't need these. | ||
| mkdir -p /usr/libexec && ln -s /usr/sbin/mysqld /usr/libexec/mysqld && \ | ||
| mkdir -p /usr/lib64/galera && ln -s /usr/lib64/galera-4/libgalera_smm.so /usr/lib64/galera/libgalera_smm.so | ||
|
|
||
| USER mysql | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SO important