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

read failureReason and failureMessage from the vsphereVM object to the vspheremachine #833

Merged
merged 1 commit into from
Mar 17, 2020

Conversation

yastij
Copy link
Member

@yastij yastij commented Mar 17, 2020

What this PR does / why we need it: This PR ensures that we set the machines as failed when they are deleted from vcenter directly. remediation should happen through MachineHealthChecks

Which issue(s) this PR fixes : Fixes #805

Special notes for your reviewer:

/cc @akutz @randomvariable

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:

set machines as failed if they are deleted directly through vcenter

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 17, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yastij

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 17, 2020
@yastij yastij changed the title Fail deleted machines read failureReason and failureMessage from the vsphereVM object to the vspheremachine Mar 17, 2020
api/v1alpha3/vspherevm_types.go Show resolved Hide resolved
api/v1alpha3/vspherevm_types.go Show resolved Hide resolved
pkg/services/govmomi/service.go Outdated Show resolved Hide resolved
controllers/vspheremachine_controller.go Outdated Show resolved Hide resolved
@akutz akutz self-requested a review March 17, 2020 15:33
@yastij yastij force-pushed the fail-deleted-machines branch 3 times, most recently from 0a12aaf to 22dae9c Compare March 17, 2020 16:01
…e vspheremachine

Signed-off-by: Yassine TIJANI <ytijani@vmware.com>

Co-authored-by: Naadir Jeewa <jeewan@vmware.com>
@akutz
Copy link
Contributor

akutz commented Mar 17, 2020

/lgtm
/hold

Hi @yastij,

Holding in case anyone else wants to make a final pass.

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm "Looks good to me", indicates that a PR is ready to be merged. labels Mar 17, 2020
@yastij
Copy link
Member Author

yastij commented Mar 17, 2020

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 17, 2020
@k8s-ci-robot k8s-ci-robot merged commit 06eeb56 into kubernetes-sigs:master Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deleting a VM from a cluster ends up in a continual Loop and fails to recreate the VM
6 participants