Skip to content

Conversation

@0xmichalis
Copy link
Contributor

@0xmichalis 0xmichalis commented Jun 13, 2017

One of our upgrades failed with

error: error when evicting pod \"boo-2-deploy\": pods \"boo-2-deploy\" not found"

@derekwaynecarr since you already fixed half of it

cc: @kubernetes/sig-cli-bugs

I failed terribly at adding a unit test mostly because draining involves discovery for the eviction API and the fake client stuff for discovery are far from functional - will spawn a separate issue about it.

fyi @jupierce

related: kubernetes/kubectl#28

@k8s-ci-robot k8s-ci-robot added sig/cli Categorizes an issue or PR as relevant to SIG CLI. 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 Jun 13, 2017
@k8s-github-robot k8s-github-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. release-note-label-needed labels Jun 13, 2017
@0xmichalis 0xmichalis added this to the v1.7 milestone Jun 13, 2017
@0xmichalis
Copy link
Contributor Author

/release-note-none

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. and removed release-note-label-needed labels Jun 13, 2017
@derekwaynecarr
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 15, 2017
@derekwaynecarr
Copy link
Member

@k8s-bot pull-kubernetes-e2e-gce-etcd3 test this

@derekwaynecarr
Copy link
Member

/assign @fabianofranz

@0xmichalis
Copy link
Contributor Author

Opened #47608 for the fake discovery client stuff.

@fabianofranz
Copy link
Contributor

/approve no-issue

@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: derekwaynecarr, fabianofranz, kargakis

Associated issue: 28

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

Details Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot k8s-github-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 15, 2017
@0xmichalis
Copy link
Contributor Author

/retest

2 similar comments
@0xmichalis
Copy link
Contributor Author

/retest

@0xmichalis
Copy link
Contributor Author

/retest

@k8s-github-robot
Copy link

Automatic merge from submit-queue (batch tested with PRs 47523, 47438, 47550, 47450, 47612)

@k8s-github-robot k8s-github-robot merged commit a36d9df into kubernetes:master Jun 16, 2017
@0xmichalis 0xmichalis deleted the fix-drain branch June 16, 2017 08:42
eparis added a commit to eparis/kubernetes that referenced this pull request Jul 22, 2017
In kubernetes#47450 we stopped
returning an error if a pod disappeared before we could remove it.
Instead we just continue to spin forever. Return "success" if a pod
disappeared before we actually removed it.

https://bugzilla.redhat.com/1473777
bug 1473777
eparis added a commit to eparis/kubernetes that referenced this pull request Jul 22, 2017
In kubernetes#47450 we stopped
returning an error if a pod disappeared before we could remove it.
Instead we just continue to spin forever. Return "success" if a pod
disappeared before we actually removed it.

https://bugzilla.redhat.com/1473777
bug 1473777
k8s-github-robot pushed a commit that referenced this pull request Jul 24, 2017
Automatic merge from submit-queue (batch tested with PRs 49444, 47864, 48584, 49395, 49118)

Do not spin forever if kubectl drain races with other removal

In #47450 we stopped
returning an error if a pod disappeared before we could remove it.
Instead we just continue to spin forever. Return "success" if a pod
disappeared before we actually removed it.

https://bugzilla.redhat.com/1473777
bug 1473777

```release-note
`kubectl drain` no longer spins trying to delete pods that do not exist
```
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. release-note-none Denotes a PR that doesn't merit a release note. sig/cli Categorizes an issue or PR as relevant to SIG CLI. 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.

5 participants