Skip to content

gcp: fixes image deletion #660

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

Merged
merged 1 commit into from
Jun 4, 2025

Conversation

beraldoleal
Copy link
Member

@beraldoleal beraldoleal commented May 26, 2025

- Description of the problem which is fixed/What is the use case

When kata config is deleted the leftover image should be deleted. Currently is not working because the expected name is IMAGE_NAME not IMAGE_ID.

Fixes rhjira#KATA-3787

- What I did

Used the right key "IMAGE_NAME" instead of IMAGE_ID.

- How to verify it

  1. Deploy the operator + GCP configured
  2. Wait for the image job creation to populate the image
  3. Delete kataconfig
  4. Check for pods osc-podvm-image-deletion-* logs if deletion was complete.

- Description for the changelog
GCP: Fixed issue with image leftover when deleting kataconfig

@openshift-ci openshift-ci bot requested review from gkurz and pmores May 26, 2025 19:31
Copy link

openshift-ci bot commented May 26, 2025

@beraldoleal: all tests passed!

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.

@@ -30,6 +30,8 @@ spec:
value: "" # Set this to the azure image id to delete
- name: LIBVIRT_IMAGE_ID
value: "" # Set this to the libvirt image id to delete
- name: IMAGE_NAME
value: "" # Set this to the gcp image name to delete
Copy link
Contributor

@snir911 snir911 May 27, 2025

Choose a reason for hiding this comment

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

@gsid100 as you worked on deletion recently, do you know if this may hurt other providers deletion process?

Copy link
Member Author

Choose a reason for hiding this comment

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

@snir911 @gsid100 any update here? I'm wondering how this could affect other providers. is this env used by others?

Copy link
Contributor

Choose a reason for hiding this comment

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

I was working on aws snapshot deletion, this commit shouldn't affect it.

Copy link
Contributor

@bpradipt bpradipt left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 3, 2025
When kata config is deleted the leftover image should be deleted.
Currently is not working because the expected name is IMAGE_NAME not
IMAGE_ID.

Fixes rhjira#KATA-3787

Signed-off-by: Beraldo Leal <[email protected]>
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jun 4, 2025
@beraldoleal
Copy link
Member Author

beraldoleal commented Jun 4, 2025

Just rebased on devel to fix the enterprise contracts.

@snir911 any other comments or could we merge this one?

@littlejawa
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 4, 2025
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

@beraldoleal
Copy link
Member Author

@littlejawa as discussed on slack about the pending jobs.... I'm merging this one. thanks everyone.

@beraldoleal beraldoleal merged commit bfbe5a5 into openshift:devel Jun 4, 2025
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants