You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Garbage collector deleted deployer pod prematurely #13995
In at least 1 CI run, the kube garbage collector controller decided to delete the ipfailover-1-deploy pod shortly after it was created and scheduled to a node. It looks like it fell through to here which resulted in the deletion.
IIUC, the problem wasn't that we were setting the wrong Kind in the owner reference since the GC only cares about the UID. If that's correct, then this issue is not fixed?
@Kargakis yes that is the problem we seeing in free-int, rolling back will at least allow us to proceed with upgrade (not sure in what state that will leave the prod)
@mfojtik not sure that's helpful. Do you have controller logs somewhere and the actual manifests? router-384 doesn't seem to be included in Justin's link.
@Kargakis was answering the question of previous deployment needs to exists :-)
my question is why the automatic rollback on failure had not kicked in...
don't have controller/api master logs, but it is easy to reproduce locally, just delete deployer pod in middle of the deployment. what @smarterclayton is saying is that in such case we should rollback automatically and not leave the deployment in failed state (in this case with 0 pods running).
Two out of three controller manager instaces fail on leader election for more than 2 hours, from 18:10 up until 20:38(EOF) and there is an unusual amount of dropped watches and TLS handshake errors in the API servers.
I wonder if we can enable more verbose logging in free-int, to see the REST requests at least which will give us timeline of events (why and by whom the RC/deployer was deleted)
Which RC? I deleted docker-registry RC in this environment before to force a redeployment. On June 8th sometime. This problem observed in free-int appears to be affecting all DCs, not just docker-registry.
Activity
ncdc commentedon May 2, 2017
Log file: https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin_integration/1618/s3/download/scripts/test-end-to-end/logs/containers/origin.log
0xmichalis commentedon May 2, 2017
@mfojtik probably unrelated but I just realized that you set the DC ref into the deployer pods.. Should be the RC.
mfojtik commentedon May 2, 2017
hrm. i thought the deployer pods already have owner ref set.
ncdc commentedon May 2, 2017
It does, but GC couldn't find it?
ncdc commentedon May 2, 2017
I ran
oc delete ...; oadm ipfailoverin a loop and was not able to reproduce locally.mfojtik commentedon May 29, 2017
@ncdc the #13996 should properly set the owner reference for the deployer pod and also for the lifecycle pods.
@Kargakis ok to close this or is there something left (besides dc->rc) ?
0xmichalis commentedon Jun 2, 2017
IIUC, the problem wasn't that we were setting the wrong Kind in the owner reference since the GC only cares about the UID. If that's correct, then this issue is not fixed?
liggitt commentedon Jun 2, 2017
I don't think that is correct... GC cares about kind as well, right @deads2k ?
0xmichalis commentedon Jun 2, 2017
I am pretty sure we (@mfojtik and I) tested this and it was just the UID.
deads2k commentedon Jun 2, 2017
If its just the UID, that sounds like a bug.
31 remaining items
mfojtik commentedon Jun 9, 2017
@Kargakis yes that is the problem we seeing in free-int, rolling back will at least allow us to proceed with upgrade (not sure in what state that will leave the prod)
0xmichalis commentedon Jun 9, 2017
In order for automatic rollback to work, a complete deployment needs to exist in the history of a DC.
mfojtik commentedon Jun 9, 2017
@Kargakis
router-384doesn't seems like an initial deployement.0xmichalis commentedon Jun 9, 2017
@mfojtik not sure that's helpful. Do you have controller logs somewhere and the actual manifests? router-384 doesn't seem to be included in Justin's link.
smarterclayton commentedon Jun 9, 2017
All of the DCs already existed.
mfojtik commentedon Jun 9, 2017
@Kargakis was answering the question of previous deployment needs to exists :-)
my question is why the automatic rollback on failure had not kicked in...
don't have controller/api master logs, but it is easy to reproduce locally, just delete deployer pod in middle of the deployment. what @smarterclayton is saying is that in such case we should rollback automatically and not leave the deployment in failed state (in this case with 0 pods running).
jupierce commentedon Jun 9, 2017
@Kargakis Here is a snapshot of logs: http://file.rdu.redhat.com/~jupierce/share/free-int-logs.tgz
smarterclayton commentedon Jun 9, 2017
Let's spawn the "didn't rollback" as a separate high priority issue.
0xmichalis commentedon Jun 10, 2017
That's what I was going to suggest - opened #14561
0xmichalis commentedon Jun 10, 2017
Two out of three controller manager instaces fail on leader election for more than 2 hours, from 18:10 up until 20:38(EOF) and there is an unusual amount of dropped watches and TLS handshake errors in the API servers.
mfojtik commentedon Jun 11, 2017
I wonder if we can enable more verbose logging in free-int, to see the REST requests at least which will give us timeline of events (why and by whom the RC/deployer was deleted)
jupierce commentedon Jun 11, 2017
Which RC? I deleted docker-registry RC in this environment before to force a redeployment. On June 8th sometime. This problem observed in free-int appears to be affecting all DCs, not just docker-registry.
mfojtik commentedon Jun 12, 2017
Seems like the wrong apiVersion in ownerRef was used: #14582
stevekuznetsov commentedon Jun 12, 2017
Router/registry rollout confirmation for Ansible is here: openshift/openshift-ansible#4402