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

incremental exports broken when using destination server and no history id

XMLWordPrintable

    • None
    • None
    • None
    • Automated

      Description of problem:

      Passing a history_id when creating an incremental export is optional and we have code to find the "parent" export for us in this case.
      This code was refactored as part of SAT-32715 and now fails to find a parent when the user passes a "destination_server" when creating the base export 

      How reproducible:

      100%
       

      Is this issue a regression from an earlier version:

       Yes this is a regression.

      Steps to Reproduce:

      1. hammer content-export complete library --destination-server satellite.example.com --organization "Test Organization"

      2. hammer content-export incremental library --destination-server satellite.example.com --organization "Test Organization"

      Actual behavior:

      # hammer content-export incremental library --destination-server satellite.example.com --organization "Test Organization"
      Could not export the library:
        Unable to find a base content view to use for incremental export. Please run a complete export instead.
      

      Expected behavior:
      The complete export is found and the incremental one is created based off that.

      Additional info:

       

       hammer content-export list
      ---|-----------------------|----------------------------------------------------------------------------------|----------|------------------------------------------|-------------------------|-------------------------|------------------------
      ID | DESTINATION SERVER    | PATH                                                                             | TYPE     | CONTENT VIEW VERSION                     | CONTENT VIEW VERSION ID | CREATED AT              | UPDATED AT             
      ---|-----------------------|----------------------------------------------------------------------------------|----------|------------------------------------------|-------------------------|-------------------------|------------------------
      1  | airgapped.example.com | /var/lib/pulp/exports/Test_Organization/Export-Library-airgapped_example_com/... | complete | Export-Library-airgapped.example.com 1.0 | 8                       | 2025-09-23 10:30:31 UTC | 2025-09-23 10:30:31 UTC
      2  | satellite.example.com | /var/lib/pulp/exports/Test_Organization/Export-Library-satellite_example_com/... | complete | Export-Library-satellite.example.com 1.0 | 9                       | 2025-09-23 10:55:05 UTC | 2025-09-23 10:55:05 UTC
      ---|-----------------------|----------------------------------------------------------------------------------|----------|------------------------------------------|-------------------------|-------------------------|------------------------
      
      

      As you can see, the CVs have the destination server in their name, but the code only looks for "Export-Library" when searching for the parent.

              iballou@redhat.com Ian Ballou
              egolov@redhat.com Evgeni Golov
              Vladimír Sedmík Vladimír Sedmík
              Quinn James Quinn James
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: