Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-18296

Receiving error while uploading RPMs (multiple RPMs) using hammer command

XMLWordPrintable

    • Sprint 124, Sprint 125, Sprint 126, Sprint 127, Sprint 128
    • Moderate

      Description of problem:

      Receiving error while uploading RPMs (multiple RPMs) using hammer command

      Or rpm will upload to random repositories.

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

      ~~~
      satellite-6.10.5.1-1.el7sat.noarch

      tfm-rubygem-hammer_cli-2.5.1-1.el7sat.noarch
      tfm-rubygem-hammer_cli_foreman-2.5.1.1-1.el7sat.noarch
      ~~~

      How reproducible:

      ~~~
      $ hammer repository upload-content --content-type rpm --path ~/test-package-1-3.el8.noarch.rpm --product-id 32 --organization-id 3 --id 52268

      Successfully uploaded file 'test-package-1-3.el8.noarch.rpm'.

      --> test-package-1-3.el8.noarch.rpm is now in the RHEL8_MAX_CustomPkgs repo and not the RHEL7_MAX_CustomPkgs repo.

      $ hammer repository upload-content --content-type rpm --path ~/test-package-1-4.el7.noarch.rpm --product-id 32 --organization-id 3 --id 105
      Failed to upload file 'test-package-1-4.el7.noarch.rpm' to repository. Please check the file and try again.

      --> test-package-1-3.el8.noarch.rpm is now in both the RHEL8_MAX_CustomPkgs and RHEL7_MAX_CustomPkgs repos. test-package-1-4.el7.noarch.rpm is not in either repo.
      ~~~

      Actual results:

      Task was failed with error:

      ~~~

      PulpcoreClient::ApiError

      Error message: the server returns an error HTTP status code: 404 Response headers:

      {"Date"=>"Wed, 15 Jun 2022 13:16:35 GMT", "Server"=>"gunicorn", "Content-Type"=>"application/json", "Vary"=>"Accept,Cookie", "Allow"=>"GET, HEAD, PUT, DELETE", "X-Frame-Options"=>"SAMEORIGIN", "Content-Length"=>"23", "Correlation-ID"=>"c3b83150-e915-4d92-a48c-6fe4b532b3c1", "Access-Control-Expose-Headers"=>"Correlation-ID", "Via"=>"1.1 satellite.example.com"}

      Response body:

      {"detail":"Not found."}

      ~~~

      Expected results:

      RPM should upload without any error.

            rhn-engineering-sajha Samir Jha
            jira-bugzilla-migration RH Bugzilla Integration
            RH Bugzilla Integration RH Bugzilla Integration
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: