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

ci job failling on "policy-generator-plugin" package download

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.15
    • GitOps ZTP
    • None
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

        The ztp/gitops-subscriptions tests are failling to download the open-cluster-management.io/policy-generator-plugin/cmd/PolicyGenerator package's latest version.  There is a temporary fix to peg the version to v1.12.4 but we need a more permanent solution

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

          

      How reproducible:

          100%

      Steps to Reproduce:

          1. run make test under ztp/gitops-subscriptions
          2.
          3.
          

      Actual results:

        make[2]: Entering directory '/home/dahir/tmp/cnf-features-deploy/ztp/policygenerator'
      go build ./
      make[2]: Leaving directory '/home/dahir/tmp/cnf-features-deploy/ztp/policygenerator'
      mkdir -p /home/dahir/tmp/cnf-features-deploy/ztp/.config/kustomize/plugin/ran.openshift.io/v1/policygentemplate
      cp -r ../source-crs ./argocd/example/policygentemplates/
      cp ../policygenerator/policygenerator /home/dahir/tmp/cnf-features-deploy/ztp/.config/kustomize/plugin/ran.openshift.io/v1/policygentemplate/PolicyGenTemplate
      ZTP: setup ACM policyGenerator kustomize plugin
      mkdir -p /home/dahir/tmp/cnf-features-deploy/ztp/.config/kustomize/plugin/policy.open-cluster-management.io/v1/policygenerator
      cp -r ../source-crs ./argocd/example/acmpolicygenerator
      GOBIN=/home/dahir/tmp/cnf-features-deploy/ztp/.config/kustomize/plugin/policy.open-cluster-management.io/v1/policygenerator go install open-cluster-management.io/policy-generator-plugin/cmd/PolicyGenerator@latest
      go: open-cluster-management.io/policy-generator-plugin/cmd/PolicyGenerator@latest (in open-cluster-management.io/policy-generator-plugin@v1.13.0):
              The go.mod file for the module providing named packages contains one or
              more replace directives. It must not contain directives that would cause
              it to be interpreted differently than if it were the main module.
      make[1]: *** [Makefile:27: build] Error 1
      make[1]: Leaving directory '/home/dahir/tmp/cnf-features-deploy/ztp/gitops-subscriptions'
      make: *** [Makefile:35: test-acm-ztp-generated-policies] Error 2

      Expected results:

      The test passes    

      Additional info:

          

            sahasan@redhat.com Sabbir Hasan
            dosman@redhat.com Dahir Osman
            Yang Liu Yang Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: