Skip to content

Bug 1702087: install/0000_00_cluster-version-operator_01_clusteroperator.crd: Failing -> Degraded#172

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
wking:failing-to-degraded-in-crd
Apr 23, 2019
Merged

Bug 1702087: install/0000_00_cluster-version-operator_01_clusteroperator.crd: Failing -> Degraded#172
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
wking:failing-to-degraded-in-crd

Conversation

@wking
Copy link
Copy Markdown
Member

@wking wking commented Apr 22, 2019

Fix:

$ oc get clusteroperators kube-apiserver
NAME             VERSION                             AVAILABLE   PROGRESSING   FAILING   SINCE
kube-apiserver   4.1.0-0.nightly-2019-04-22-005054   True        False                   20m

when the ClusterOperator only sets Degraded. This should have happened in 94c4e57 (#165).

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Apr 22, 2019
@wking
Copy link
Copy Markdown
Member Author

wking commented Apr 22, 2019

CC @eparis, @smarterclayton, since I'm blaming #165 ;)

@smarterclayton
Copy link
Copy Markdown
Contributor

/lgtm

We need to add a cli e2e for this

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 22, 2019
@abhinavdahiya
Copy link
Copy Markdown
Contributor

/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 22, 2019
@wking
Copy link
Copy Markdown
Member Author

wking commented Apr 22, 2019

If we want to support both Failing and Degraded during the transition, I'm fine with that. I'm not quite clear on how though. We can certainly retain two columns here, and I can update the PR accordingly. But if we wanted to collapse both into the same column (with the collapsing logic like we have in Go in #165), I'll need some pointers for JSONPath syntax. Since I have a pod listing handy, I've been experimenting there without success to try to find a boolean or expression supported by oc:

$ oc get -o jsonpath='{.items[*].status.conditions[?(@.type == "Initialized" or @.Type == "Ready")]}' pods
error: error parsing jsonpath {.items[*].status.conditions[?(@.type == "Initialized" or @.Type == "Ready")]}, unrecognized character in action: U+003D '='
$ oc get -o jsonpath='{.items[*].status.conditions[?(@.type == "Initialized"), ?(@.Type == "Ready")]}' pods
error: error parsing jsonpath {.items[*].status.conditions[?(@.type == "Initialized"), ?(@.Type == "Ready")]}, unclosed array expect ]
$ oc get -o jsonpath='{.items[*].status.conditions[?(@.type == "Initialized" || @.Type == "Ready")]}' pods
error: error parsing jsonpath {.items[*].status.conditions[?(@.type == "Initialized" || @.Type == "Ready")]}, unrecognized character in action: U+007C '|'

@wking wking force-pushed the failing-to-degraded-in-crd branch from 7f743ef to df68d7b Compare April 23, 2019 00:09
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Apr 23, 2019
@wking
Copy link
Copy Markdown
Member Author

wking commented Apr 23, 2019

I've pushed 7f743ef -> df68d7b to go with the two-column approach until I get more feedback ;).

@wking wking changed the title Bug 1702087: install/0000_00_cluster-version-operator_01_clusteroperator.crd: Failing -> Degraded Bug 1702087: install/0000_00_cluster-version-operator_01_clusteroperator.crd: Add Degraded Apr 23, 2019
@smarterclayton
Copy link
Copy Markdown
Contributor

smarterclayton commented Apr 23, 2019 via email

…aded -> Failing

Fix [1]:

  $ oc get clusteroperators kube-apiserver
  NAME             VERSION                             AVAILABLE   PROGRESSING   FAILING   SINCE
  kube-apiserver   4.1.0-0.nightly-2019-04-22-005054   True        False                   20m

when the ClusterOperator only sets Degraded.  This should have
happened in 94c4e57 (Use the new degraded condition is available,
2019-04-16, openshift#165).  There may be some JSONPath syntax to collapse both
into a single column:

  .status.conditions[?(@.type IN ["Degraded", "Failing"])].status

but if it exists, I haven't discovered it.  We're hopefully going to
fix the operators that are still using Failing soon, so just skip to
the new field without supporting both [2].

[1]: https://bugzilla.redhat.com/show_bug.cgi?id=1702087
[2]: openshift#172 (comment)
@wking wking force-pushed the failing-to-degraded-in-crd branch from df68d7b to 3142181 Compare April 23, 2019 01:06
@wking wking changed the title Bug 1702087: install/0000_00_cluster-version-operator_01_clusteroperator.crd: Add Degraded Bug 1702087: install/0000_00_cluster-version-operator_01_clusteroperator.crd: Failing -> Degraded Apr 23, 2019
@wking
Copy link
Copy Markdown
Member Author

wking commented Apr 23, 2019

Ok, back to Failing -> Degraded (instead of supporting both) with df68d7b -> 3142181.

@eparis
Copy link
Copy Markdown
Member

eparis commented Apr 23, 2019

/lgtm
/hold cancel
Agree, one column, bugs for anything not reporting

@openshift-ci-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Apr 23, 2019
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: eparis, smarterclayton, wking

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [smarterclayton,wking]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 23, 2019
@eparis
Copy link
Copy Markdown
Member

eparis commented Apr 23, 2019

/retest
/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 23, 2019
@openshift-merge-robot openshift-merge-robot merged commit 882fec1 into openshift:master Apr 23, 2019
@wking wking deleted the failing-to-degraded-in-crd branch April 23, 2019 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants