-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat: Support building offline OS bundles for Oracle Linux 9.4 #1192
Conversation
8a152c7
to
49ab833
Compare
The Containerd tar is named https://packages.d2iq.com/dkp/containerd/containerd-1.7.22-d2iq.1-ol-9.4-x86_64.tar.gz, but the e2e test automation assumes its this:
You'll want another change to replace konvoy-image-builder/magefile.go Line 454 in 4f29942
|
Thanks, will make this change.. will go through e2e test to check the steps and packages it requires. |
(Updated the PR title because it gets used by automation for the release) |
cea4732
to
6418213
Compare
@@ -47,6 +47,10 @@ var osToConfig = map[string]OSConfig{ | |||
configDir: "bundles/ubuntu20.04", | |||
containerImage: "docker.io/library/ubuntu:20.04", | |||
}, | |||
"oracle-9.4": { | |||
configDir: "bundles/oracle9.4", | |||
containerImage: "docker.io/library/oraclelinux:9", |
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.
the minor version container images have not been released yet on any registry(ref) so using this image which currently points to 9.4 only -
[root@8b53e13be278 generated]# cat /etc/oracle-release
Oracle Linux Server release 9.4
[root@8b53e13be278 generated]# cat /etc/redhat-release
Red Hat Enterprise Linux release 9.4 (Plow)
[root@8b53e13be278 generated]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="9.4"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="9.4"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Oracle Linux Server 9.4"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:9:4:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://github.com/oracle/oracle-linux"
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 9"
ORACLE_BUGZILLA_PRODUCT_VERSION=9.4
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=9.4
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.
we can update the image tag once 9.4 version is released on their official registry/repo -
- https://container-registry.oracle.com/ords/f?p=113:4:10433988665656:::4:P4_REPOSITORY,AI_REPOSITORY,AI_REPOSITORY_NAME,P4_REPOSITORY_NAME,P4_EULA_ID,P4_BUSINESS_AREA_ID:1,1,Oracle%20Linux,Oracle%20Linux,1,0&cs=3GLgmu4zPDtIjZjF1cXhfpBMVzRl0Sefp1HfIY1Aw88xKXzFyVBlZp58aVGnejQ6Yin9zyBXV3AgvO8P-JhWwgw
- https://github.com/oracle/container-images/pkgs/container/oraclelinux
Alternatively we can peg image tag to specific SHA but I'm skeptical about reliability of SHA tags to be generally available all time -
Looks great, I just merged #1190, can you please rebase on |
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.
LGTM. But will let someone who knows this code to appprove
feat: add Oracle Linux 9.4 vSphere build configuration
4da94b8
to
7372190
Compare
rebased and removed the non-offline tests for oracle-9.4 .. I suppose there would some e2e test covering both offline and non-offline modes of OS image as there're few ansible tasks which are specific to modes so confirming. |
14d126d
to
cfa26ed
Compare
cfa26ed
to
f521da9
Compare
Running vsphere e2e tests. Good to merge if those are successful for Oracle 9.4: https://github.com/mesosphere/konvoy-image-builder/actions/runs/11186167572/ |
yum: | ||
name: "{{ item }}" | ||
state: present | ||
update_cache: true | ||
enablerepo: "{{ 'offline' if offline_mode_enabled else '' }}" | ||
disablerepo: "{{ '*' if offline_mode_enabled else '' }}" |
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.
Good catch.
What problem does this PR solve?:
Supports building offline OS bundle for Oracle Linux 9.4
Which issue(s) does this PR fix?:
Special notes for your reviewer:
Tested with CI jobs -
Pending:
Testing cluster creation using offline OS bundle.
Does this PR introduce a user-facing change?: