serving icon indicating copy to clipboard operation
serving copied to clipboard

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

Open cardil opened this issue 4 years ago • 6 comments

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 https://github.com/knative/serving/issues/11476

cardil avatar Oct 18 '21 19:10 cardil

/cc @nak3

cardil avatar Oct 18 '21 19:10 cardil

After https://github.com/kubernetes/community/blob/4c9ef2d/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties

cardil avatar Oct 18 '21 19:10 cardil

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[bot] avatar Jan 17 '22 01:01 github-actions[bot]

/remove-lifecycle stale

cardil avatar Jan 17 '22 11:01 cardil

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[bot] avatar Apr 18 '22 01:04 github-actions[bot]

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[bot] avatar Jul 18 '22 01:07 github-actions[bot]

/remove-lifecycle stale

skonto avatar May 11 '23 12:05 skonto

/reopen

skonto avatar May 11 '23 12:05 skonto

@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.

knative-prow[bot] avatar May 11 '23 12:05 knative-prow[bot]

/triage accepted

skonto avatar May 11 '23 12:05 skonto

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

skonto avatar May 11 '23 12:05 skonto