Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-23493

EAP 2.3 Operator Upgrade Fails on new .status.selector: Required value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • OP-2.3.1.GA
    • OP-2.3.0.GA
    • OpenShift
    • None
    • False
    • None
    • False
    • Regression
    • Hide
      • Install the EAP Operator 2.2.2 with:
        apiVersion: operators.coreos.com/v1alpha1
        kind: Subscription
        metadata:
          name: eap
          namespace: openshift-operators
        spec:
          channel: stable
          installPlanApproval: Manual
          name: eap
          source:  redhat-operators
          sourceNamespace: openshift-marketplace
          # latest
          #startingCSV: eap-operator.v2.3.0
          startingCSV: eap-operator.v2.2.2
        
      • Approve the installation in the OpenShift console (or patch the InstallPlan to set .spec.approved to true)
      • Create a CR with
        apiVersion: wildfly.org/v1alpha1
        kind: WildFlyServer
        metadata:
          name: quickstart
        spec:
          applicationImage: "quay.io/wildfly-quickstarts/wildfly-operator-quickstart:18.0"
          replicas: 2
        
      • Attempt to upgrade to the EAP Operator 2.3 from the OpenShift console
        (or update the sub to set the startingCVS to eap-operator.v2.3.0)
        -> the install plan fails
      Show
      Install the EAP Operator 2.2.2 with: apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: name: eap namespace: openshift-operators spec: channel: stable installPlanApproval: Manual name: eap source: redhat-operators sourceNamespace: openshift-marketplace # latest #startingCSV: eap- operator .v2.3.0 startingCSV: eap- operator .v2.2.2 Approve the installation in the OpenShift console (or patch the InstallPlan to set .spec.approved to true) Create a CR with apiVersion: wildfly.org/v1alpha1 kind: WildFlyServer metadata: name: quickstart spec: applicationImage: "quay.io/wildfly-quickstarts/wildfly- operator -quickstart:18.0" replicas: 2 Attempt to upgrade to the EAP Operator 2.3 from the OpenShift console (or update the sub to set the startingCVS to eap-operator.v2.3.0) -> the install plan fails

      Upgrading from EAP Operator 2.2.2 to 2.3.0 is failing due to missing '.status.selector: Required value' on existing CRs.

        conditions:
        - lastTransitionTime: "2022-04-07T16:13:24Z"
          lastUpdateTime: "2022-04-07T16:13:24Z"
          message: 'error validating existing CRs against new CRD''s schema for "wildflyservers.wildfly.org":
            error validating custom resource against new schema for WildFlyServer 288e51-dev/cdds-app:
            [].status.selector: Required value'
          reason: InstallComponentFailed
          status: "False"
          type: Installed
        message: 'error validating existing CRs against new CRD''s schema for "wildflyservers.wildfly.org":
          error validating custom resource against new schema for WildFlyServer 288e51-dev/cdds-app:
          [].status.selector: Required value'
        phase: Failed
      

      If you look at the install plan, the CSV is created but it fails at the CustomResourceDefinition:

        - resolving: eap-operator.v2.3.0
          resource:
            group: operators.coreos.com
            kind: ClusterServiceVersion
            manifest: '{"kind":"ConfigMap","name":"ca4e1896710caa5d06708085027bc5045c6af19ec37348ab8d2c6d1f2e959e1","namespace":"openshift-marketplace","catalogSourceName":"redhat-operators","catalogSourceNamespace":"openshift-marketplace","replaces":"eap-operator.v2.2.2","properties":"{\"properties\":[{\"type\":\"olm.gvk\",\"value\":{\"group\":\"wildfly.org\",\"kind\":\"WildFlyServer\",\"version\":\"v1alpha1\"}},{\"type\":\"olm.package\",\"value\":{\"packageName\":\"eap\",\"version\":\"2.3.0\"}}]}"}'
            name: eap-operator.v2.3.0
            sourceName: redhat-operators
            sourceNamespace: openshift-marketplace
            version: v1alpha1
          status: Created
        - resolving: eap-operator.v2.3.0
          resource:
            group: apiextensions.k8s.io
            kind: CustomResourceDefinition
            manifest: '{"kind":"ConfigMap","name":"ca4e1896710caa5d06708085027bc5045c6af19ec37348ab8d2c6d1f2e959e1","namespace":"openshift-marketplace","catalogSourceName":"redhat-operators","catalogSourceNamespace":"openshift-marketplace","replaces":"eap-operator.v2.2.2","properties":"{\"properties\":[{\"type\":\"olm.gvk\",\"value\":{\"group\":\"wildfly.org\",\"kind\":\"WildFlyServer\",\"version\":\"v1alpha1\"}},{\"type\":\"olm.package\",\"value\":{\"packageName\":\"eap\",\"version\":\"2.3.0\"}}]}"}'
            name: wildflyservers.wildfly.org
            sourceName: redhat-operators
            sourceNamespace: openshift-marketplace
            version: v1
          status: Unknown
      

              jmesnil1@redhat.com Jeff Mesnil
              jmesnil1@redhat.com Jeff Mesnil
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: