-
Notifications
You must be signed in to change notification settings - Fork 40k
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
[k8s.io] Deployment paused deployment should be ignored by the controller #32710
Comments
Current observation: using 1.3 kubectl vs. 1.4 cluster, when you pause a deployment, and then delete its new RS, the pod is gone with the new RS, but a new pod will be created by that new RS. |
It's likely due to proportional scale https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/deployment/sync.go#L321 After the rs reaper scales the rs down to 0, the deployment will scale it up back to 1 before the rs is deleted... that's why we get a new pod. |
But this doesn't happen on 1.4 kubectl vs. 1.4 cluster |
Adding these three lines in rs reaper will fix the error https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/stop.go#L289-L291 |
Per discussion with @pwittrock, closing the issue since the fix won't be targeting 1.4 |
Automatic merge from submit-queue Fix 1.3 paused deployment test failure against >1.4 cluster <!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md 2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md 3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes --> **What this PR does / why we need it**: Fixing upgrade test kubernetes-e2e-gke-1.3-1.4-upgrade-cluster Proportionally scale deployments was introduced in v1.4 (#20273), which caused this 1.3 test to fail on 1.4 clusters. This is cherrypicked into 1.3 merely for fixing test failues on kubernetes-e2e-gke-1.3-1.4-upgrade-cluster **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #32710 **Special notes for your reviewer**: **Release note**: <!-- Steps to write your release note: 1. Use the release-note-* labels to set the release note state (if you have access) 2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. --> ```release-note ```
…-deployment Automatic merge from submit-queue Fix 1.3 paused deployment test failure against >1.4 cluster <!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md 2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md 3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes --> **What this PR does / why we need it**: Fixing upgrade test kubernetes-e2e-gke-1.3-1.4-upgrade-cluster Proportionally scale deployments was introduced in v1.4 (kubernetes#20273), which caused this 1.3 test to fail on 1.4 clusters. This is cherrypicked into 1.3 merely for fixing test failues on kubernetes-e2e-gke-1.3-1.4-upgrade-cluster **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes kubernetes#32710 **Special notes for your reviewer**: **Release note**: <!-- Steps to write your release note: 1. Use the release-note-* labels to set the release note state (if you have access) 2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. --> ```release-note ```
[k8s.io] Deployment paused deployment should be ignored by the controller
https://k8s-testgrid.appspot.com/release-1.4-blocking#gke-1.3-1.4-upgrade-cluster
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke-1.3-1.4-upgrade-cluster/559
The text was updated successfully, but these errors were encountered: