-
Bug
-
Resolution: Done
-
Normal
-
None
-
2
-
False
-
Moderate
-
Artemis Sprint 153, Artemis Sprint 154, Artemis Sprint 155
-
sat-artemis
-
None
-
None
-
None
-
Automated
When running an incremental export on a repository, the --format flag is required for syncable content. Currently, the content type (syncable or importable) is inferred from the default export type when a --format flag is not passed. Change this behavior so that incremental exports infer their format from the previous export.
Description of problem:
When exporting content in syncable format via hammer and use '{}from-history-id' get error unless '{-}-format syncable' option is passed
How reproducible:
Attempt to export content thats in syncable format via hammer in CLI without --format get below message:
Could not export the repository: Unable to incrementally export. Do a Full Export on the repository content.
Steps to Reproduce:
Using 'hammer content-export' when content is syncable format requires '–format syncable' to be stated else get error.
Actual behavior:
]# hammer content-export incremental repository --name="Red Hat Satellite Client 6 for RHEL 9 x86_64 RPMs" --organization-id=1 --product="Red Hat Enterprise Linux for x86_64" --from-history-id 13 Could not export the repository: Unable to incrementally export. Do a Full Export on the repository content.
OR
]# hammer content-export incremental repository --id=15 --organization-id=1 --product=235 --from-history-id 13 Could not export the repository: Unable to incrementally export. Do a Full Export on the repository content.
Expected behavior:
]# hammer content-export incremental repository --name="Red Hat Satellite Client 6 for RHEL 9 x86_64 RPMs" --organization-id=1 --product="Red Hat Enterprise Linux for x86_64" --from-history-id 13 --format syncable
[..................................................................................................................................................] [100%]
Generated /var/lib/pulp/exports/Default_Organization/Export-SYNCABLE-Red_Hat_Satellite_Client_6_for_RHEL_9_x86_64_RPMs-15/5.0/2025-04-15T17-19-42-00-00/metadata.json
OR
]# hammer content-export incremental repository --id=15 --organization-id=1 --product=235 --from-history-id=13 --format syncable
[..................................................................................................................................................] [100%]
Generated /var/lib/pulp/exports/Default_Organization/Export-SYNCABLE-Red_Hat_Satellite_Client_6_for_RHEL_9_x86_64_RPMs-15/4.0/2025-04-15T17-16-51-00-00/metadata.json
Business Impact / Additional info:
- is duplicated by
-
SAT-24163 Incremental export of Library in regular format is not possible after a syncable full export in Red Hat Satellite 6
-
- Closed
-