-
Notifications
You must be signed in to change notification settings - Fork 94
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
podvm:Enable se image build for s390x rhel podvm #1924
podvm:Enable se image build for s390x rhel podvm #1924
Conversation
48e4f21
to
ff58e4a
Compare
51881f9
to
d472c6a
Compare
@Saripalli-lavanya - it looks like you are still actively pushing to this PR frequently. Is in in progress and therefore should be marked as draft, or is it ready for review now? |
1d2a173
to
4e4f390
Compare
dcad2ab
to
a1bbac2
Compare
Hi @stevenhorsman, @snir911, Thank you for the review. I have updated the code. could you please re-review. |
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.
Can we get more information in the commit message about some of the changes and why they are required?
I can see that some are adding RHEL versions of existing debian commands, but there are extra dracut things and qemuargs?
Thanks
a1bbac2
to
156108a
Compare
Sure @stevenhorsman, i've updated the commit message to provide more details. Please review the updated commit message, and let me know if further adjustments are needed. Thank you |
d1fb986
to
56e3cc3
Compare
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 codes change overall LGTM, I built out the se-rhel image from one lpar.
only one thing, please fix the commit body too long issue.
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, thanks, built also on x86, e2e test was failing, not sure if it's related, i re-run
1b8c8bb
to
571026e
Compare
As suggested tried reducing commit message length and pushed code after re-basing code with main branch. |
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
@liudalibj @snir911 @Saripalli-lavanya can you please check the e2e failure.. Not sure what's causing it.. |
Looks like simple pod creation tests are failing as well.. @Saripalli-lavanya can you please try running libvirt tests on x86 in your setup ? |
Sure @bpradipt |
The failure is due to missing auth.json. May be fixed by #1964 ? |
@bpradipt I noticed libvirt test cases passed with the fix in that PR. so is this PR okay to go? |
Waiting for #1964 to be merged and re-running the e2e test once before merging this one. |
@Saripalli-lavanya Can we replace all |
good suggestion.. @Saripalli-lavanya can you please make this minor change. Rest looks good. The e2e passed successfully as well. |
571026e
to
1ee9c60
Compare
hi @liudalibj , i have replaced all SE_BOOT=1 to SE_BOOT=true. could you please take a look and suggest. Thank you |
@bpradipt Lavanya made the changes. Kindly merge the PR |
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
Unfortunately the tree is in read-only mode. This might have to wait a bit. |
Made changes to build RHEL Se enabled podvm image with an extra Arg of SE_BOOT=true Signed-off-by: ANJANA-A-R-K <ANJANA.A.R.K1@ibm.com> Signed-off-by: Saripalli Lavanya <Saripalli.Lavanya@ibm.com> Co-Authored-By: ANJANA-A-R-K <149779123+ANJANA-A-R-K@users.noreply.github.com>
As a temporary fix, we're downloading cryptsetup in a container and copying the binaries to the VM image. Signed-off-by: ANJANA-A-R-K <ANJANA.A.R.K1@ibm.com> Signed-off-by: Saripalli Lavanya <Saripalli.Lavanya@ibm.com> Co-Authored-By: ANJANA-A-R-K <149779123+ANJANA-A-R-K@users.noreply.github.com>
1ee9c60
to
1690bd8
Compare
@Saripalli-lavanya are there more changes needed ? |
No @bpradipt, no more changes needed. Thank you. |
Since you pushed new changes post review, would you mind mentioning the new changes just for awareness .. |
This changes help build RHEL Se enabled podvm image with an extra Arg of SE_BOOT=true
Changes Made:-
Updated the build-s390x-se-image.sh script to generate SE PodVM images for both RHEL and Debian.
Used Dracut to update the initramfs on the RHEL machine, incorporating the newly created fstab, crypttab, and keys into the Dracut configuration file.
Revised the Packer configuration file (qemu-rhel.pkr.hcl) to include an additional disk for encryption purposes and to execute a script for enabling SE.
Updated the Makefile, Dockerfile.podvm.rhel, and variables.pkr.hcl to include the SE_BOOT variable option.
Also, as suggested in comments replaced all SE_BOOT=1 with SE_BOOT=true.
Temporary fix:
Due to issue https://gitlab.com/qemu-project/qemu/-/issues/2054, we can't install packages on RHEL s390x base machines with packer. As a temporary fix, we're downloading cryptsetup in a container and copying the binaries to the VM image.
Resulting images :-
se-enabled podvm qcow2 image was able to bring up workload on OCP
below are the logs from libvirt peerpod deamon for reference which says LaunchSecurityType: S390PV