Repository navigation
Closed
Labels
area/APIAPI objects and controllersarea/autoscalekind/bugCategorizes issue or PR as related to a bug.
Milestone
Description
In what area(s)?
/area API
/area autoscale
What version of Knative?
0.20.1
Expected Behavior
Revision state set to "failed" after progressDeadline with error like ProgressDeadlineExceeded
Actual Behavior
This happens not all the time, but still quite often. For unhealthy user-container - for example with application that listens on wrong port (let's say port 3000 when it should listen on port 8080) - queue-proxy never reaches "ready" state because of failed readiness probes. After ~10 minutes (time of progressDeadline) replicaset is scaled down and revision state is set to "ready".
Steps to Reproduce the Problem
- Prepare testing environment: minikube v1.20.0 and Knative v0.20.1 + Istio v0.21.0 as networking layer (Knative and Istio installed according to official docs page). Do not modify any default Knative configuration.
- Deploy ksvc (as described here) with unhealthy user-container - for example with application that listens on wrong port (let's say port 3000 when it should listen on port 8080)
- Wait until
progressDeadlineis reached. If revision is correctly set to "failed" with errorProgressDeadlineExceededupdate ksvc so deployment of second revision will start, repeat this until incorrect behaviour can be noticed (in my case I usually get incorrect behaviour after first, second try)
Events from my recent test:
0s Warning Unhealthy pod/helloworld-go-inv-port-00002-deployment-79cf444b89-7tgpv Readiness probe failed:
0s Warning Unhealthy pod/helloworld-go-inv-port-00002-deployment-79cf444b89-7tgpv Readiness probe failed:
0s Normal ScalingReplicaSet deployment/helloworld-go-inv-port-00002-deployment Scaled down replica set helloworld-go-inv-port-00002-deployment-79cf444b89 to 0
0s Normal SuccessfulDelete replicaset/helloworld-go-inv-port-00002-deployment-79cf444b89 Deleted pod: helloworld-go-inv-port-00002-deployment-79cf444b89-7tgpv
0s Warning InternalError revision/helloworld-go-inv-port-00002 failed to update deployment "helloworld-go-inv-port-00002-deployment": Operation cannot be fulfilled on deployments.apps "helloworld-go-inv-port-00002-deployment": the object has been modified; please apply your changes to the latest version and try again
0s Normal RevisionReady revision/helloworld-go-inv-port-00002 Revision becomes ready upon all resources being ready
0s Normal ConfigurationReady configuration/helloworld-go-inv-port Configuration becomes ready
0s Normal LatestReadyUpdate configuration/helloworld-go-inv-port LatestReadyRevisionName updated to "helloworld-go-inv-port-00002"
0s Normal Created route/helloworld-go-inv-port Created placeholder service "helloworld-go-inv-port"
0s Normal Created route/helloworld-go-inv-port Created Ingress "helloworld-go-inv-port"
0s Normal FinalizerUpdate ingress/helloworld-go-inv-port Updated "helloworld-go-inv-port" finalizers
0s Normal RevisionReady revision/helloworld-go-inv-port-00002 Revision becomes ready upon all resources being ready
0s Normal Created ingress/helloworld-go-inv-port Created VirtualService "helloworld-go-inv-port-mesh"
0s Normal Created ingress/helloworld-go-inv-port Created VirtualService "helloworld-go-inv-port-ingress"
Ksvc description:
kn services describe helloworld-go-inv-port
Name: helloworld-go-inv-port
Namespace: default
Age: 31m
URL: http://helloworld-go-inv-port.default.10.100.162.25.xip.io
Revisions:
100% @latest (helloworld-go-inv-port-00002) [2] (20m)
Image: docker.io/... (at a35c37)
Conditions:
OK TYPE AGE REASON
++ Ready 9m
++ ConfigurationsReady 9m
++ RoutesReady 9m
Two revisions for the same invalid user-container:
kn revisions describe helloworld-go-inv-port-00001
Name: helloworld-go-inv-port-00001
Namespace: default
Age: 33m
Image: docker.io/... (at a35c37)
Env: TARGET=Go Sample v1
Service: helloworld-go-inv-port
Conditions:
OK TYPE AGE REASON
!! Ready 22m ProgressDeadlineExceeded
?? ContainerHealthy 33m Deploying
!! ResourcesAvailable 22m ProgressDeadlineExceeded
I Active 22m NoTraffic
kn revisions describe helloworld-go-inv-port-00002
Name: helloworld-go-inv-port-00002
Namespace: default
Age: 22m
Image: docker.io/... (at a35c37)
Env: TARGET=Go Sample v11
Service: helloworld-go-inv-port
Conditions:
OK TYPE AGE REASON
++ Ready 12m
++ ContainerHealthy 12m
++ ResourcesAvailable 12m
I Active 12m NoTraffic
Metadata
Metadata
Assignees
Labels
area/APIAPI objects and controllersarea/autoscalekind/bugCategorizes issue or PR as related to a bug.
Activity
dprotaso commentedon Jun 3, 2021
Thanks for the report - this falls into a few class of errors I'll be tackling
dprotaso commentedon Jun 3, 2021
/assign @dprotaso
nader-ziada commentedon Mar 8, 2022
Can't seem to repro this issue,
I get
False ProgressDeadlineExceededon the revisionpsschwei commentedon Mar 8, 2022
Possibly some overlap with #12691
psschwei commentedon Apr 5, 2022
Confirming @nader-ziada 's inability to reproduce the issue, using the following kservice on HEAD (to use the per-revision progress-deadline annotation, mostly to not have to wait too long):
results in a status of:
@dprotaso think we can probably close this one (though the failure message could probably be better, but that's covered in #9326 )
arbogast commentedon Apr 6, 2022
It seems that problem disappeared in Knative 0.21 - I don't understand why, though.
Thank you!
psschwei commentedon Apr 14, 2022
Closing since the issue seems to be resolved, can reopen if it's still an issue.
/close
knative-prow commentedon Apr 14, 2022
@psschwei: Closing this issue.
Details
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.