Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-8710

Unable to upload a new release using rhpkg

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • Istio Integration
    • None
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      In Red Hat's internal gist of the threescale integration (ssh://pkgs.devel.redhat.com/containers/3scale-auth-wasm), there is a make target called `sources` that uploads the latest sources. This target uses `rhpkg new-sources` internally which is failing for me. Not sure if it's just me or for everyone.

      Changes were done on top of the last commit inside `rhossm-2.1-rhel-8` branch.

       

      diff --git a/Dockerfile b/Dockerfile
      index f896ab0..0019ca5 100644
      — a/Dockerfile
      +++ b/Dockerfile
      @@ -56,7 +56,7 @@ RUN cd threescale-wasm-auth \
      && cp servicemesh/manifest.yaml /app/ \
      && cd /app \
      && sed -i -e 's/threescale_wasm_auth/3scale_auth_wasm/g' manifest.yaml \
      
      && mv threescale_wasm_auth.wasm 3scale_auth_wasm.wasm \
      + && mv threescale_wasm_auth.wasm plugin.wasm \
      && rm -rf "/tmp/${TARBALL}"
      FROM scratch
      diff --git a/sources b/sources
      index fa5f296..f751356 100644
      — a/sources
      +++ b/sources
      @@ -1 +1 @@
      -SHA512 (threescale-wasm-auth-v0.0.2.tar.gz) = 53fb841109240d8ea1a415039c8f987aa4a76ff00846c1c70572697c8cf03cd21f3a1bfa2e3ac76d4c37248c340bc013b4f48b925573519087bb5c30fffe62ee
      +SHA512 (threescale-wasm-auth-v0.0.2.tar.gz) = c72769ea16f01ed32589cfd92b03a6873e2cea4169f8cb54c4b8bd99136f8dd0173f3d309fb5d17da05e1c8bdfe3362f9f46ed8e8c18149fa6c87629e2649a66
      

       

      Error after running `make sources`.

      test -r "/home/rahul/3scale-auth-wasm/threescale-wasm-auth-v0.0.2.tar.gz" || make -f /home/rahul/3scale-auth-wasm/Makefile vendor-sources
      rhpkg new-sources "/home/rahul/3scale-auth-wasm/threescale-wasm-auth-v0.0.2.tar.gz"
      Could not execute new_sources: Fail to upload files. Server returns status 301
      make: *** [Makefile:88: sources] Error 1

            Unassigned Unassigned
            rahanand@redhat.com Rahul Anand (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: