-
Notifications
You must be signed in to change notification settings - Fork 264
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
Intermittent issues with --tag #383
Comments
I dont think if this is something we control, seems like revision Also this is not re-producible easily as you mentioned.
In kn, when user ran |
I haven’t had a chance to look at the code yet, do you do two requests to the server or just one? I think if you did a request then it would always work. |
@duglin : We do only one request. |
I created this script to reproduce it w/o
however, I noticed that after I got the error, eventually the server did end up in good state. This makes me wonder whether this is really a serving issue or a Of course, even if that's the case, it does make it kind of hard for any client to know when the error it's seeing is "real" vs "temporary". @mattmoor what do you think? Should this error ever be the |
Server contract says ready shouldn't go false if it's going to be true once it settles. Come to think of it, I seem to recall dangerd tracking an issue like this. Next I'm working at a real computer I'll go look if you don't get to it first.
… On Aug 25, 2019, at 4:16 PM, Doug Davis ***@***.***> wrote:
I created this script to reproduce it w/o kn so I could open an issue on serving:
#!/bin/bash
set -ex
kubectl delete ksvc/echo || true
sleep 5
kubectl apply -f - <<EOF
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: echo
spec:
template:
metadata:
name: echo-v1
spec:
containers:
- image: duglin/echo
traffic:
- revisionname: echo-v1
percent: 100
EOF
sleep 5
while true ; do
val=$RANDOM
kubectl apply -f - <<EOF
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: echo
spec:
template:
metadata:
name: echo-v$val
spec:
containers:
- image: duglin/echo
env:
- name: MSG
value: val$RANDOM
traffic:
- revisionName: echo-v1
percent: 90
- revisionName: echo-v$val
tag: test
percent: 10
EOF
if kubectl get ksvc/echo -o yaml | grep "not found" ; then
exit 1
fi
sleep 10
done
however, I noticed that after I got the error, eventually the server did end up in good state. This makes me wonder whether this is really a serving issue or a kn issue. Meaning, should kn do a better job of detecting this intermediate error state and then wait bit more for things to settle down before it decides to return an error to the user?
Of course, even if that's the case, it does make it kind of hard for any client to know when the error it's seeing is "real" vs "temporary".
@mattmoor what do you think? Should this error ever be the conditions section at all?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Just FYI so we have it, when the error happens the status section looks like this:
|
Sure sounds like it. |
knative/serving#5547 is in now - will retest soon |
@duglin Let me know if you have any further problems here. |
@navidshaikh: Closing this issue. 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. |
In what area(s)?
What version of Knative Client?
master
What version of Knative Serving running on your cluster?
0.8.x
Issue
Maybe 10% of the time when I run this command I see this:
What's odd is that it only fails some of the time, so there must be a timing issue involved here.
Will try to do more debugging but wanted to let @navidshaikh know that something's up...
The text was updated successfully, but these errors were encountered: