Skip to content
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

ksvc should have ready condition status eq 'False' and reason eq 'ErrorConfig' if failing #12149

Closed
cardil opened this issue Oct 18, 2021 · 11 comments · Fixed by #15082
Closed
Labels
kind/bug Categorizes issue or PR as related to a bug. triage/accepted Issues which should be fixed (post-triage)
Milestone

Comments

@cardil
Copy link

cardil commented Oct 18, 2021

This follow up on #11477. The error message is propagated, but the status isn't fully updated.

What version of Knative?

>= v0.24.0

Expected Behavior

When error such as dealt in #11477 occurs, the Ready condition (probably RoutesReady as well) should have status == 'False' and reason == 'ErrorConfig'

Example condition should look like:

{
  "lastTransitionTime": "2021-10-18T19:09:22Z",
  "message": "invalid domain name \"wathola-receiver-test-continuous-events-propagation-with-prober-zxmkp.apps.ksuszyns-325-ocp4x-aws-clean.openshift-aws.rhocf-dev.net\": url: Invalid value: \"wathola-receiver-test-continuous-events-propagation-with-prober-zxmkp\": must be no more than 63 characters",
  "reason": "ErrorConfig",
  "status": "False",
  "type": "Ready"
}

The kubectl should report:

$ kubectl get ksvc wathola-receiver
NAME               URL   LATESTCREATED            LATESTREADY              READY     REASON
wathola-receiver         wathola-receiver-00001   wathola-receiver-00001   False     ErrorConfig

Actual Behavior

Ready condition despite having full error message still shows reason and status as Unknown. That may lead to confusion.

Current, ready condition:

{
  "lastTransitionTime": "2021-10-18T19:09:22Z",
  "message": "invalid domain name \"wathola-receiver-test-continuous-events-propagation-with-prober-zxmkp.apps.ksuszyns-325-ocp4x-aws-clean.openshift-aws.rhocf-dev.net\": url: Invalid value: \"wathola-receiver-test-continuous-events-propagation-with-prober-zxmkp\": must be no more than 63 characters",
  "reason": "Unknown",
  "status": "Unknown",
  "type": "Ready"
}

The kubectl reports:

$ kubectl get ksvc wathola-receiver
NAME               URL   LATESTCREATED            LATESTREADY              READY     REASON
wathola-receiver         wathola-receiver-00001   wathola-receiver-00001   Unknown   Unknown

Steps to Reproduce the Problem

Same as in #11476

@cardil cardil added the kind/bug Categorizes issue or PR as related to a bug. label Oct 18, 2021
@cardil
Copy link
Author

cardil commented Oct 18, 2021

/cc @nak3

@github-actions
Copy link

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 17, 2022
@cardil
Copy link
Author

cardil commented Jan 17, 2022

/remove-lifecycle stale

@knative-prow-robot knative-prow-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 17, 2022
@github-actions
Copy link

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 18, 2022
@nak3 nak3 removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 18, 2022
@github-actions
Copy link

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 18, 2022
@skonto
Copy link
Contributor

skonto commented May 11, 2023

/remove-lifecycle stale

@knative-prow knative-prow bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 11, 2023
@skonto
Copy link
Contributor

skonto commented May 11, 2023

/reopen

@knative-prow knative-prow bot reopened this May 11, 2023
@knative-prow
Copy link

knative-prow bot commented May 11, 2023

@skonto: Reopened this issue.

In response to this:

/reopen

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.

@skonto
Copy link
Contributor

skonto commented May 11, 2023

/triage accepted

@knative-prow knative-prow bot added the triage/accepted Issues which should be fixed (post-triage) label May 11, 2023
@skonto
Copy link
Contributor

skonto commented May 11, 2023

In general I am in favor improving status messages to help users with debugging so I am re-opening this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. triage/accepted Issues which should be fixed (post-triage)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants