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

Conflicting job name when unpacking Prometheus Operator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Normal Normal
    • None
    • 4.15.z
    • OLM
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • No
    • None
    • None
    • Rejected
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

          Installing 

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

          4.15.11

      How reproducible:

          

      Steps to Reproduce:

          1. Create an `openshift-customer-monitoring` namespace and install the Prometheus Operator using the following subscription and operator group below
      
          2. Check the unpack job in the openshift-marketplace ns, it will be called `8dadcd4e49a1312f71c2886fc5b7043a4d1fcca18f7deb8fccda626826e6a06`
           
          
      ---
      apiVersion: operators.coreos.com/v1
      kind: OperatorGroup
      metadata:
        name: openshift-customer-monitoring
        namespace: openshift-customer-monitoring
      spec:
        targetNamespaces:
          - openshift-customer-monitoring
      ---
      apiVersion: operators.coreos.com/v1alpha1
      kind: Subscription
      metadata:
        name: prometheus
        namespace: openshift-customer-monitoring
      spec:
        channel: beta
        installPlanApproval: Automatic
        name: prometheus
        source: community-operators
        sourceNamespace: openshift-marketplace
      

      Actual results:

          If there was no previous job with the same name, everything will be fine, but if there was a previous job with the same name, the catalog-source pod in the `openshift-operator-lifecycle-manager` namespace will report the following error:
      
      E0517 07:11:44.513051       1 queueinformer_operator.go:319] sync {"update" "openshift-customer-monitoring"} failed: bundle unpacking failed with an error: jobs.batch "8dadcd4e49a1312f71c2886fc5b7043a4d1fcca18f7deb8fccda626826e6a06" already exists
      

      Expected results:

          The installation should always succeed, no matter if there was a previous installation or not.

      Additional info:

          A follow-up of https://issues.redhat.com/browse/OCPBUGS-31872 

              lmohanty@redhat.com Lalatendu Mohanty
              xcoulon@redhat.com Xavier Coulon
              None
              None
              Jian Zhang Jian Zhang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: