Skip to content
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

Pod VM image handling fix #404

Merged
merged 6 commits into from
May 30, 2024
Merged

Pod VM image handling fix #404

merged 6 commits into from
May 30, 2024

Conversation

bpradipt
Copy link
Contributor

@bpradipt bpradipt commented May 11, 2024

Fixes: #KATA-2958 #KATA-2962

@bpradipt bpradipt requested a review from snir911 May 11, 2024 07:24
@openshift-ci openshift-ci bot requested review from gkurz and pmores May 11, 2024 07:24
controllers/image_generator.go Outdated Show resolved Hide resolved
controllers/openshift_controller.go Show resolved Hide resolved
controllers/utils.go Show resolved Hide resolved
@bpradipt bpradipt force-pushed the pvm-img-fix branch 4 times, most recently from 0bf96ae to 2627806 Compare May 13, 2024 16:53
@bpradipt bpradipt requested review from snir911 and gkurz May 14, 2024 05:21
@bpradipt bpradipt force-pushed the pvm-img-fix branch 2 times, most recently from 11584a6 to fe5b4f0 Compare May 15, 2024 07:34
Copy link
Contributor

@snir911 snir911 left a comment

Choose a reason for hiding this comment

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

LGTM
Thanks!

@bpradipt bpradipt requested a review from gkurz May 19, 2024 06:54
If IMAGE_GALLERY_NAME in azure-podvm-image-cm is empty, then a
gallery name will be created with the pattern
"PodVMGallery_$clusterid. Note that only the first 8 chars of the
clusterid is used.
IMAGE_GALLERY_NAME annotation is added to peer-pods-cm configMap
if gallery is created by OSC job

FIXES: #KATA-2958

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
@bpradipt bpradipt force-pushed the pvm-img-fix branch 2 times, most recently from 1cedd03 to b884377 Compare May 29, 2024 11:31
Copy link
Member

@gkurz gkurz left a comment

Choose a reason for hiding this comment

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

/lgtm @bpradipt ! Just one last nit to fix in the usage string and we're good to go.

bpradipt added 5 commits May 29, 2024 21:26
PodVM image deletion function has been extended to also support
deletion of gallery via a CLI option. This is used by OSC to ensure
deletion of the OSC created gallery during podvm image deletion. This
ensures if gallery is created as part of kataconfig creation, then
the same gallery is deleted as well during kataconfig deletion

Fixes: #KATA-2958

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
az cli doesn't delete image with version ids using the
az image delete command. Instead we need to use
az sig image-version delete command for sig images.

Ref:
https://learn.microsoft.com/en-us/cli/azure/sig/image-version?view=azure-cli-latest#az-sig-image-version-delete

Fixes: #KATA-2962

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
This is not used anywhere

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
Copy link

openshift-ci bot commented May 29, 2024

@bpradipt: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/sandboxed-containers-operator-e2e 23616f9 link false /test sandboxed-containers-operator-e2e
ci/prow/check 23616f9 link false /test check

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@bpradipt bpradipt merged commit f44bb1d into openshift:devel May 30, 2024
2 of 4 checks passed
@bpradipt bpradipt deleted the pvm-img-fix branch May 30, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants