Project

General

Profile

Actions

Bug #38775

closed

incremental exports broken when using destination server and no history id

Added by Ian Ballou 11 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Inter Server Sync
Target version:
Found in Releases:

Description

incremental exports broken when using destination server and no history id
Cloned from 17416463

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:

{noformat}
  1. 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. {noformat}

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

Additional info:

  {noformat}
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
---|-----------------------|----------------------------------------------------------------------------------|----------|------------------------------------------|-------------------------|-------------------------|------------------------

{noformat}

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.
Actions #1

Updated by The Foreman Bot 11 months ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ian Ballou
  • Pull request https://github.com/Katello/katello/pull/11509 added
Actions #2

Updated by The Foreman Bot 11 months ago

  • Fixed in Releases Katello 4.19.0 added
Actions #3

Updated by Anonymous 11 months ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Samir Jha 11 months ago

  • Category set to Inter Server Sync
  • Target version changed from Katello 4.20.0 to Katello 4.18.1
  • Triaged changed from No to Yes
Actions #5

Updated by The Foreman Bot 11 months ago

  • Fixed in Releases Katello 4.18.2 added
Actions #6

Updated by Pavan Soma Shekar 11 months ago

  • Fixed in Releases Katello 4.18.1 added
Actions #7

Updated by The Foreman Bot 10 months ago

  • Pull request https://github.com/Katello/katello/pull/11551 added
Actions

Also available in: Atom PDF