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

Incremental repository export fails on syncable content unless --format syncable is passed

XMLWordPrintable

    • 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:

       

              rhn-engineering-qjames Quinn James
              rhn-support-risantam Ricardo Santamaria
              Vladimír Sedmík Vladimír Sedmík
              Ian Ballou Ian Ballou
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: