-
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: build rocky linux 9.1 images #637
Conversation
@@ -1,6 +1,6 @@ | |||
--- | |||
- name: remove versionlock for containerd | |||
command: yum versionlock delete containerd.io | |||
command: yum versionlock {{ '--disablerepo "*" --enablerepo offline' if offline_mode_enabled else '' }} delete containerd.io |
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.
yum versionlock commands try to download repo metadata from internet. Adding logic for preventing yum from updating repo metadata when using yum versionlock
in air-gapped installations for "RHEL" ansible distributions.
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.
Wow so that means the rockylinux already comes wit Containerd installed? 🤔
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.
Discussed offline, the behavior for RockyLinux is different from CentoOS/RHEL yum
and it tries to reach other repos when running yum versionlock
.
But this is a good generic change that will prevent this bug in future RHEL releases too.
Minimum allowed coverage is Generated by 🐒 cobertura-action against cc4575c |
fcdb3ae
to
32bb89f
Compare
make/ci.mk
Outdated
e2e.build.rocky-9.1-offline: rocky91-offline infra.aws.destroy | ||
|
||
e2e.build.rocky-9.1: rocky91 | ||
|
||
e2e.build.rhel-8.6-nvidia: rhel86-nvidia | ||
|
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.
should we not do these any more?
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.
I am keeping it in sync with other related targets for other OS. We can remove all related target at once when we deprecate them in separate PR.
79fb2dd
to
be7ff3f
Compare
packer: | ||
distribution: "rockylinux-9" # Offer | ||
distribution_version: "rockylinux-9" # SKU | ||
image_publisher: "erockyenterprisesoftwarefoundationinc1653071250513" |
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.
This is ID for the official free rocky linux image template. https://portal.azure.com/#view/Microsoft_Azure_Marketplace/GalleryItemDetailsBladeNopdl/id/erockyenterprisesoftwarefoundationinc1653071250513.rockylinux-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.
🤮
be7ff3f
to
3bc7626
Compare
Created TC configurations for building Rockylinux release AMI (fips, non-fips) , Azure image (non-fips) |
@@ -1,6 +1,6 @@ | |||
--- | |||
- name: remove versionlock for containerd | |||
command: yum versionlock delete containerd.io | |||
command: yum versionlock {{ '--disablerepo "*" --enablerepo offline' if offline_mode_enabled else '' }} delete containerd.io |
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.
Wow so that means the rockylinux already comes wit Containerd installed? 🤔
packer: | ||
distribution: "rockylinux-9" # Offer | ||
distribution_version: "rockylinux-9" # SKU | ||
image_publisher: "erockyenterprisesoftwarefoundationinc1653071250513" |
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.
🤮
rocky91-offline: | ||
$(MAKE) aws-rocky-9.1_offline | ||
|
||
.PHONY: rocky91-fips-offline |
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.
Did we build FIPS offline packages? I do't think RockyLinux supports the correct 140-2
FIPS version only https://rockylinux.org/news/certifications-fips-2022-06-11/ 140-3
.
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.
FIPS offline packages for rocky. Link
I have still not run any FIPS validation tests
image_publisher: "erockyenterprisesoftwarefoundationinc1653071250513" | ||
image_version: "latest" | ||
ssh_username: "azureuser" | ||
plan_image_sku: "rockylinux-9" # SKU |
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.
Azure plan information needed to use marketplace image.
Packer throwing following error when plan information was not provided.
Creating a virtual machine from Marketplace image or a custom image sourced from a Marketplace image requires Plan information in the request
. TC log link
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.
This thread has lots of useful information https://forums.rockylinux.org/t/azure-rocky-image-on-marketplace/5230/46
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.
Thank you for looking it up
028a8bf
to
0a186aa
Compare
@@ -469,7 +469,7 @@ build { | |||
vars_inline = { | |||
ARCH = "amd64" | |||
OS = lower(var.distribution) | |||
PROVIDER = "amazon" | |||
PROVIDER = "azure" |
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.
wow good find.
RHEL 8.6 NVIDIA tests are failing because kernel header rpm version |
What problem does this PR solve?:
Which issue(s) does this PR fix?:
Special notes for your reviewer:
We had disabled yum version lock for RHEL 8 because of dependency errors with already installed packets.
https://github.com/mesosphere/konvoy-image-builder/blob/main/ansible/roles/setup_versionlock/tasks/redhat.yaml#L2-L5
We had fixed this issue by not upgrading already installed packages.
We will need to revisit this logic for RHEL 8 and see if we can add back this version lock for RHEL 8.
I will test and file separate PR for this.
Does this PR introduce a user-facing change?: