Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-36551

Generated OLM bundle fails to deploy with install strategy failed .. Duplicate value: "keystore"

    XMLWordPrintableJSON

Details

    Description

      I am using tools/olm/generate-olm-bundle.sh to create a fresh OLM bundle from main.

      Working around FLINK-36544 (using the PR), I hit another problem after creating the Subscription resource.  The CSV resource is looping, reporting Failed.

      % oc get csv  -w
      NAME                                DISPLAY                     VERSION   REPLACES                           PHASE
      flink-kubernetes-operator.v1.10.0   Flink Kubernetes Operator   1.10.0    flink-kubernetes-operator.v1.2.0   Failed

      Examining the CSV resource, I can see a validation error in the status section.

       message: 'install strategy failed: Deployment.apps "flink-kubernetes-operator" is invalid: [spec.template.spec.volumes[2].name: Duplicate value: "keystore", spec.template.spec.containers[0].volumeMounts[1].name: Not found: "flink-artifacts-volume"]'

      The issue is that the deployment within the CSV does indeed have a duplicate volume.

      docker_entry.sh creates a empty volume called keystore.

      https://github.com/apache/flink-kubernetes-operator/blob/d72e3ce294e3902cf041811e0fcf2ba50880cc31/tools/olm/docker-entry.sh#L88

      The template generated by Helm also creates a keystore volume (backed by the secret).

       

       

       

       

       

      Attachments

        Issue Links

          Activity

            People

              kwall Keith Wall
              kwall Keith Wall
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: