Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-13945

Two operator group generated when subscribe to an operator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Undefined
    • None
    • 4.14.0
    • OLM
    • Moderate
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      There are two operator group generated when subscribing to etcd operator on the Web console. But, it's not always happening.

      E0523 07:54:54.528253       1 queueinformer_operator.go:298] sync {"update" "openshift-marketplace/certified-operators"} failed: Operation cannot be fulfilled on catalogsources.operators.coreos.com "certified-operators": the object has been modified; please apply your changes to the latest version and try again
      E0523 08:03:11.555095       1 queueinformer_operator.go:298] sync "yapei" failed: found 2 operatorGroups, expected 1
      E0523 08:03:11.560031       1 queueinformer_operator.go:298] sync "yapei" failed: found 2 operatorGroups, expected 1

      one generated at "2023-05-23T08:03:10Z", and another at "2023-05-23T08:03:11Z". It leads to fail to subscribe to this operator.

      [cloud-user@preserve-olm-env2 must-gather]$ oc get og -n yapei yapei-lr5d5 -o yaml
      apiVersion: operators.coreos.com/v1
      kind: OperatorGroup
      metadata:
        creationTimestamp: "2023-05-23T08:03:10Z"
        generateName: yapei-
        generation: 1
        name: yapei-lr5d5
        namespace: yapei
        resourceVersion: "222383"
        uid: 4ee97008-e99d-477f-a71a-57740abf290d
      spec:
        targetNamespaces:
        - yapei
        upgradeStrategy: Default
      status:
        conditions:
        - lastTransitionTime: "2023-05-23T08:03:11Z"
          message: Multiple OperatorGroup found in the same namespace
          reason: MultipleOperatorGroupsFound
          status: "True"
          type: MultipleOperatorGroup
        lastUpdated: "2023-05-23T08:03:10Z"
        namespaces:
        - yapei
      
      [cloud-user@preserve-olm-env2 must-gather]$ oc get og -n yapei yapei-zsk28 -o yaml
      apiVersion: operators.coreos.com/v1
      kind: OperatorGroup
      metadata:
        creationTimestamp: "2023-05-23T08:03:11Z"
        generateName: yapei-
        generation: 1
        name: yapei-zsk28
        namespace: yapei
        resourceVersion: "222384"
        uid: 1e93db67-1da3-4dcb-aee1-f0aad09cb1fe
      spec:
        targetNamespaces:
        - yapei
        upgradeStrategy: Default
      status:
        conditions:
        - lastTransitionTime: "2023-05-23T08:03:11Z"
          message: Multiple OperatorGroup found in the same namespace
          reason: MultipleOperatorGroupsFound
          status: "True"
          type: MultipleOperatorGroup
        lastUpdated: "2023-05-23T08:03:11Z"
        namespaces:
        - yapei 

      Version-Release number of selected component (if applicable):

      Cluster version is 4.14.0-0.nightly-2023-05-22-222829

      How reproducible:

      Not always

      Steps to Reproduce:

      1. Install a fresh cluster.
      2. Create a project.
      3. Subscribe to etcd operator on the Web console.
      

      Actual results:

      There are two operator group generated, leads to fail.

      Expected results:

      Should only one operator group generated.

      Additional info:

      I tried to subscribe to more operator in other projects, but fail to reproduce this issue.

      Attachments

        Activity

          People

            agreene1991 Alexander Greene
            rhn-support-jiazha Jian Zhang
            Jian Zhang Jian Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: