-
Sub-task
-
Resolution: Done
-
Undefined
-
None
-
None
-
False
-
-
False
-
0
-
Phoenix
-
-
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
~~~
- 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
state changed: pending
2024-04-09T14:22:00 [I|bac|f2ed5aee] Task
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:
~~~
- hammer content-export complete repository \
--organization="My_Organization" \
--product="My_Product" \
--name="My_Repository" \
--format=syncable
~~~
QE Tracker for https://issues.redhat.com/browse/SAT-24479
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2274152