-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
deploy: remove deployer pods on cancellation #9291
deploy: remove deployer pods on cancellation #9291
Conversation
Opened #9296 which is related |
[test] |
The failure is real but I think it has to do with the way the deployer pods are listed in one shot in the extended utilities for the deployments. Looking... |
Worth noting that I don't see anywhere in the output the defered function that dumps the dc and its rcs and deployer pods. |
Ok, so we cannot just transition the deployment to Failed when we delete the deployers because the deployment config controller will notice it and create a new deployment maybe before the previous deployer pod is deleted. We can transition to Failed once we make sure the deployer pod does not exist. I think we will need a pod cache to requeue on DELETE events (we will need to requeue on every event for #9296 anyway). |
Green on the extended test, broken unit test |
return err | ||
case err != nil: | ||
// We'll try again later on resync. Continue to process cancellations. | ||
glog.V(2).Infof("Error getting deployer pod %s for deployment %s: %#v", deployerPodName, deployutil.LabelForDeployment(deployment), err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v(4) probably.
Changes look ok |
yum flake, repushed to fix the glog level |
Evaluated for origin test up to 7a7770e |
Lgtm [merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/4829/) (Image: devenv-rhel7_4371) |
Evaluated for origin merge up to 7a7770e |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/4829/) |
Fixes #8439
Fixes #8500
Fixes #9289
@smarterclayton @ironcladlou @mfojtik PTAL