-
Notifications
You must be signed in to change notification settings - Fork 226
WIP: test(e2e/vsphere/machines.go): use DeletePropagationForeground policy while deleting CRs to avoid leftovers #1409
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
base: main
Are you sure you want to change the base?
Conversation
… while deleting CRs to avoid leftovers
// Remove machine | ||
By("delete the machine") | ||
err = mc.Machines(util.MachineAPINamespace).Delete(ctx, machine.Name, metav1.DeleteOptions{}) | ||
policy := metav1.DeletePropagationForeground |
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.
assuming this is implemented by the controller, let's see
err = mc.MachineSets(util.MachineAPINamespace).Delete(ctx, ddMachineSet.Name, metav1.DeleteOptions{PropagationPolicy: &policy}) | ||
Expect(err).NotTo(HaveOccurred()) | ||
|
||
// Verify / wait for machineset is removed |
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.
assuming the policy is propagated to machines and is implemented, let's see
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/payload-aggregate periodic-ci-openshift-release-master-nightly-4.21-e2e-vsphere-ovn-serial 10 |
@machine424: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/6a5b45d0-899e-11f0-876f-3fa2e09ebf24-0 |
Hey @machine424 can you explain a little why this change is required and how that fixes your issue, thanks! |
Hello @damdo See https://issues.redhat.com/browse/OCPBUGS-61193?focusedId=27993433&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-27993433 |
Ok thanks do keep me posted on this |
No description provided.