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

Check node_ip is defined when removing etcd node #6603

Merged
merged 1 commit into from
Sep 1, 2020

Conversation

floryut
Copy link
Member

@floryut floryut commented Aug 31, 2020

What type of PR is this?
/kind bug

What this PR does / why we need it:
In some case, if access_ip/ip is not, remove-etcd will try to find IP by querying k8s cluster.
If the etcd node is not in the cluster this won't work and node_ip will stay empty.
This PR aimed to at least fail in this case and not output everything as if the play finish with success

Which issue(s) this PR fixes:
Fixes #6588 (partially)

Special notes for your reviewer:
This is a partial fix, we (or I) need to reproduce the setup and find an implementation that works best

Does this PR introduce a user-facing change?:

NONE

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 31, 2020
@k8s-ci-robot k8s-ci-robot requested review from bozzo and holmsten August 31, 2020 12:10
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 31, 2020
@oomichi
Copy link
Contributor

oomichi commented Aug 31, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 31, 2020
@Miouge1
Copy link
Contributor

Miouge1 commented Sep 1, 2020

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: floryut, Miouge1

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 1, 2020
@k8s-ci-robot k8s-ci-robot merged commit 2faf53b into kubernetes-sigs:master Sep 1, 2020
erulabs added a commit to kubesail/kubespray that referenced this pull request Sep 2, 2020
* 'master' of https://github.com/kubernetes-sigs/kubespray:
  Check node_ip is defined when removing etcd node (kubernetes-sigs#6603)
  Use crictl 1.19.0 for k8s 1.19.x (kubernetes-sigs#6598)
LuckySB pushed a commit to southbridgeio/kubespray that referenced this pull request Jan 12, 2021
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. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

etcd remove-node failing and ignoring the errors
4 participants