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

Exporting the Library environment incrementally fails with error "Incremental export can only be requested when there is a previous export or start_versions= has been specified."

XMLWordPrintable

    • Sprint 113, Sprint 114, Sprint 115, Sprint 116
    • Important

      Description of problem:

      Running "# hammer content-export incremental library --organization="RedHat"" command on Satellite server fails with below error.
      ~~~
      Error: Error message: the server returns an error
      HTTP status code: 400
      Response headers:

      {"Date"=>"Tue, 14 Feb 2023 20:55:40 GMT", "Server"=>"gunicorn", "Content-Type"=>"application/json", "Vary"=>"Accept,Cookie", "Allow"=>"GET, POST, HEAD, OPTIONS", "X-Frame-Options"=>"DENY", "Content-Length"=>"136", "X-Content-Type-Options"=>"nosniff", "Referrer-Policy"=>"same-origin", "Correlation-ID"=>"b4463ab7-828a-4bf8-9839-eafcc3634cb0", "Access-Control-Expose-Headers"=>"Correlation-ID", "Via"=>"1.1 satellite.example.com", "Connection"=>"close"}

      Response body:

      {"non_field_errors":["Incremental export can only be requested when there is a previous export or start_versions= has been specified."]}

      undefined method `output_file_info' for nil:NilClass
      ~~~

      Version-Release number of selected component (if applicable): satellite-6.13.0-4.el8sat.noarch

      How reproducible: Always

      Steps to Reproduce:

      1. Run below command on Satellite to export the Library environment.

      1. hammer content-export complete library --organization="My_Organization

      2. The required directory is created within "/var/lib/pulp/exports/My_Organization/Export-Library"

      3. Run following command to export Library environment incrementally:

      1. hammer content-export incremental library --organization="My_Organization"

      Actual results: The command fails with below error:

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

      {"Date"=>"Tue, 14 Feb 2023 20:55:40 GMT", "Server"=>"gunicorn", "Content-Type"=>"application/json", "Vary"=>"Accept,Cookie", "Allow"=>"GET, POST, HEAD, OPTIONS", "X-Frame-Options"=>"DENY", "Content-Length"=>"136", "X-Content-Type-Options"=>"nosniff", "Referrer-Policy"=>"same-origin", "Correlation-ID"=>"b4463ab7-828a-4bf8-9839-eafcc3634cb0", "Access-Control-Expose-Headers"=>"Correlation-ID", "Via"=>"1.1 dhcp131-67.gsslab.pnq2.redhat.com", "Connection"=>"close"}

      Response body:

      {"non_field_errors":["Incremental export can only be requested when there is a previous export or start_versions= has been specified."]}

      undefined method `output_file_info' for nil:NilClass

      Expected results: The command should get executed successfully.

      Additional info: Following steps as per Section-8.2 and Section-8.4 from following documentation: https://dxp-docp-prod.apps.ext-waf.spoke.prod.us-west-2.aws.paas.redhat.com/documentation/en-us/red_hat_satellite/6.13/html-single/managing_content/index?lb_target=preview

      This issue is not observed on Satellite 6.12.

            rhn-engineering-paji Partha Aji
            jira-bugzilla-migration RH Bugzilla Integration
            Samir Jha Samir Jha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: