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

Cannot perform an incremental syncable export after doing a full importable Library export - RHEL9 Satellite 6.16

XMLWordPrintable

    • Sprint 132, Sprint 133
    • Important

      Description of problem:
      ----------------------

      Incremental export of Library in regular format is not possible after a syncable full

      Version-Release number of selected component (if applicable):
      ------------------------------------------------------------

      Red Hat Satellite 6.16 on RHEL-9

      How reproducible:
      ----------------

      Steps to Reproduce:
      ------------------

      1. Ensure that you set the download policy to Immediate for the repository within the Library lifecycle environment you export. .

      2. Synchronize the repository.

      3. Execute this command

      ~~~

      1. hammer content-export complete repository --name="Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server" --organization-id=1 --product="Red Hat Enterprise Linux Server" --format=syncable
        ~~~

      Actual results:
      --------------

      Could not export the repository:
      500 Internal Server Error

      Expected results:
      ----------------

      Generated /var/lib/pulp/exports/<ORG>/Export-SYNCABLE-Red_Hat_Enterprise_Linux_7_Server_RPMs_x86_64_7Server-176/1.0/2024-04-09T17-07-52-02-00/metadata.json

      Additional info:
      ---------------

      Log message from /var/log/foreman/production.log

      =========================
      2024-04-09T14:21:59 [I|app|f2ed5aee] Started POST "/katello/api/content_exports/repository" for 10.37.195.22 at 2024-04-09 14:21:59 +0200
      2024-04-09T14:21:59 [I|app|f2ed5aee] Processing by Katello::Api::V2::ContentExportsController#repository as /
      2024-04-09T14:21:59 [I|app|f2ed5aee] Parameters: {"id"=>6, "api_version"=>"v2", "content_export"=>{"format"=>"syncable", "id"=>6}}
      2024-04-09T14:21:59 [I|app|f2ed5aee] Authorized user admin(Admin User)
      2024-04-09T14:22:00 [I|bac|f2ed5aee] Task

      {label: , execution_plan_id: 5cba365c-30db-4a51-8b90-e3aac884841e}

      state changed: pending
      2024-04-09T14:22:00 [I|bac|f2ed5aee] Task

      {label: Actions::Pulp3::Orchestration::ContentViewVersion::ExportRepository, id: 95fba8f1-1465-4431-a13e-c5c5cbf93c72, execution_plan_id: 5cba365c-30db-4a51-8b90-e3aac884841e}

      state changed: planning
      2024-04-09T14:22:00 [E|bac|f2ed5aee] wrong number of arguments (given 2, expected 1) (ArgumentError)
      f2ed5aee | /usr/share/gems/gems/katello-4.13.0.pre.master/app/lib/actions/pulp3/orchestration/content_view_version/export_repository.rb:6:in `plan'
      f2ed5aee | /usr/share/gems/gems/dynflow-1.8.3/lib/dynflow/action.rb:534:in `block (3 levels) in execute_plan'
      f2ed5aee | /usr/share/gems/gems/dynflow-1.8.3/lib/dynflow/middleware/stack.rb:28:in `pass'
      f2ed5aee | /usr/share/gems/gems/dynflow-1.8.3/lib/dynflow/middleware.rb:20:in `pass'
      =========================

      From the documentation this is the command to execute:

      ~~~

      1. hammer content-export complete repository \
        --organization="My_Organization" \
        --product="My_Product" \
        --name="My_Repository" \
        --format=syncable
        ~~~

            rhn-support-chrobert Chris Roberts
            satellite-focaccia-bot Focaccia Bot
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: