Bug #38775
closedincremental exports broken when using destination server and no history id
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}- 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.
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
Updated by Anonymous 11 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|1316a10e282c4f222d28c80e2fcf85f593f6b562.
Updated by Pavan Soma Shekar 11 months ago
- Fixed in Releases Katello 4.18.1 added
Updated by The Foreman Bot 10 months ago
- Pull request https://github.com/Katello/katello/pull/11551 added