Bug 1727042

Summary: [4.2] ClusterOperator operator-lifecycle-manager-packageserver missing ClusterStatusConditionType Upgradeable
Product: OpenShift Container Platform Reporter: Liang Xia <lxia>
Component: OLMAssignee: Evan Cordell <ecordell>
OLM sub component: OLM QA Contact: Bruno Andrade <bandrade>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: bandrade, chuo, ecordell, jfan, scolange
Version: 4.2.0   
Target Milestone: ---   
Target Release: 4.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1743786 (view as bug list) Environment:
Last Closed: 2019-10-16 06:33:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1740044, 1743786    

Description Liang Xia 2019-07-04 10:02:37 UTC
Description of problem:
Check clusteroperator operator-lifecycle-manager-packageserver, the Upgradeable ClusterStatusConditionType is missing.
https://github.com/openshift/api/blob/master/config/v1/types_cluster_operator.go#L135


Version-Release number of selected component (if applicable):
4.2.0-0.nightly-2019-06-30-221852

How reproducible:
Always

Steps to Reproduce:
1.Check clusteroperator operator-lifecycle-manager-packageserver's detail.
oc get co operator-lifecycle-manager-packageserver -o yaml

Actual results:
ClusterOperator operator-lifecycle-manager-packageserver missing ClusterStatusConditionType Upgradeable

Expected results:
ClusterStatusConditionType Upgradeable is there with proper value.

Additional info:
$ oc get co operator-lifecycle-manager-packageserver -o yaml
apiVersion: config.openshift.io/v1
kind: ClusterOperator
metadata:
  creationTimestamp: "2019-07-03T03:52:38Z"
  generation: 1
  name: operator-lifecycle-manager-packageserver
  resourceVersion: "271313"
  selfLink: /apis/config.openshift.io/v1/clusteroperators/operator-lifecycle-manager-packageserver
  uid: fff3ede1-9d45-11e9-945d-023561f97408
spec: {}
status:
  conditions:
  - lastTransitionTime: "2019-07-03T03:52:38Z"
    status: "False"
    type: Degraded
  - lastTransitionTime: "2019-07-03T22:57:23Z"
    status: "True"
    type: Available
  - lastTransitionTime: "2019-07-03T22:57:23Z"
    message: Deployed version 0.10.1
    status: "False"
    type: Progressing
  extension: null
  relatedObjects:
  - group: ""
    name: openshift-operator-lifecycle-manager
    resource: namespaces
  - group: operators.coreos.com
    name: packageserver.v0.10.1
    namespace: openshift-operator-lifecycle-manager
    resource: ClusterServiceVersion
  versions:
  - name: operator
    version: 4.2.0-0.nightly-2019-06-30-221852
  - name: packageserver.v0.10.1
    version: 0.10.1

Comment 3 Liang Xia 2019-08-13 06:21:31 UTC
Still does not show Upgradeable status.

$ oc get co operator-lifecycle-manager-packageserver -o yaml
apiVersion: config.openshift.io/v1
kind: ClusterOperator
metadata:
  creationTimestamp: "2019-08-13T05:58:52Z"
  generation: 1
  name: operator-lifecycle-manager-packageserver
  resourceVersion: "7047"
  selfLink: /apis/config.openshift.io/v1/clusteroperators/operator-lifecycle-manager-packageserver
  uid: 6d2d9c70-bd8f-11e9-979a-000d3a91359c
spec: {}
status:
  conditions:
  - lastTransitionTime: "2019-08-13T05:58:52Z"
    status: "False"
    type: Degraded
  - lastTransitionTime: "2019-08-13T06:02:36Z"
    status: "True"
    type: Available
  - lastTransitionTime: "2019-08-13T06:02:36Z"
    message: Deployed version 0.11.0
    status: "False"
    type: Progressing
  extension: null
  relatedObjects:
  - group: ""
    name: openshift-operator-lifecycle-manager
    resource: namespaces
  - group: operators.coreos.com
    name: packageserver
    namespace: openshift-operator-lifecycle-manager
    resource: ClusterServiceVersion
  versions:
  - name: operator
    version: 4.2.0-0.nightly-2019-08-12-204658
  - name: packageserver
    version: 0.11.0

Comment 4 Evan Cordell 2019-08-27 14:27:15 UTC
*** Bug 1743786 has been marked as a duplicate of this bug. ***

Comment 7 Bruno Andrade 2019-08-28 03:05:40 UTC
Upgradeable status was shown as expected on version 4.2.0-0.nightly-2019-08-27-222856.

oc get co operator-lifecycle-manager-packageserver -o yaml
apiVersion: config.openshift.io/v1
kind: ClusterOperator
metadata:
  creationTimestamp: "2019-08-28T02:04:06Z"
  generation: 1
  name: operator-lifecycle-manager-packageserver
  resourceVersion: "6701"
  selfLink: /apis/config.openshift.io/v1/clusteroperators/operator-lifecycle-manager-packageserver
  uid: 1d94feb6-c938-11e9-bdaa-02ca4cdf8176
spec: {}
status:
  conditions:
  - lastTransitionTime: "2019-08-28T02:04:06Z"
    status: "False"
    type: Degraded
  - lastTransitionTime: "2019-08-28T02:07:01Z"
    status: "True"
    type: Available
  - lastTransitionTime: "2019-08-28T02:07:01Z"
    message: Deployed version 0.11.0
    status: "False"
    type: Progressing
  - lastTransitionTime: "2019-08-28T02:04:06Z"
    message: Safe to upgrade
    status: "True"
    type: Upgradeable
  extension: null
  relatedObjects:
  - group: ""
    name: openshift-operator-lifecycle-manager
    resource: namespaces
  - group: operators.coreos.com
    name: packageserver
    namespace: openshift-operator-lifecycle-manager
    resource: ClusterServiceVersion
  versions:
  - name: operator
    version: 4.2.0-0.nightly-2019-08-27-222856
  - name: packageserver
    version: 0.11.0

Considering that, marking as VERIFIED

Comment 8 errata-xmlrpc 2019-10-16 06:33:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:2922