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

rkt: return non error if the pod doesn't exist in GetPodStatus() #14706

Merged
merged 1 commit into from
Oct 2, 2015

Conversation

yifan-gu
Copy link
Contributor

Previously, GetPodStatus() will return error if the pod is never
created. However we've never seen the sync loop fail because in the
beginning of the loop, if the pod is not found, it will be created.

This works fine except the pod that keeps crashing. Because the above
logic will keep restarting the pod as if it's never created.

This PR fixes the bug.

/cc @dchen1107 @yujuhong

Previously, GetPodStatus() will return error if the pod is never
created. However we've never seen the sync loop fail because in the
beginning of the loop, if the pod is not found, it will be created.

This works fine except the pod that keeps crashing. Because the above
logic will keep restarting the pod as if it's never created.

This PR fixes the bug.
@k8s-bot
Copy link

k8s-bot commented Sep 29, 2015

Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist")

If this message is too spammy, please complain to ixdy.

@k8s-github-robot k8s-github-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 29, 2015
@k8s-github-robot
Copy link

Labelling this PR as size/S

@yujuhong yujuhong assigned yujuhong and unassigned dchen1107 Sep 29, 2015
@yujuhong
Copy link
Contributor

This makes the code behaves more like the docker counterpart.. :)
Kicked off shippable again.

@yujuhong
Copy link
Contributor

@k8s-bot ok to test

@yujuhong yujuhong added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 29, 2015
@k8s-bot
Copy link

k8s-bot commented Sep 29, 2015

Unit, integration and GCE e2e test build/test passed for commit 4309caf.

@k8s-bot
Copy link

k8s-bot commented Sep 29, 2015

Unit, integration and GCE e2e test build/test passed for commit 4309caf.

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Oct 1, 2015

Unit, integration and GCE e2e build/test failed for commit 4309caf.

@yujuhong
Copy link
Contributor

yujuhong commented Oct 1, 2015

rkt is not tested in e2e yet.

@yifan-gu
Copy link
Contributor Author

yifan-gu commented Oct 1, 2015

Anyway will need to rebase after #14686

@k8s-github-robot
Copy link

Automatic merge from submit-queue

k8s-github-robot pushed a commit that referenced this pull request Oct 2, 2015
@k8s-github-robot k8s-github-robot merged commit 1b158fc into kubernetes:master Oct 2, 2015
@yifan-gu yifan-gu deleted the rkt_get_status branch October 2, 2015 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants