Actions
Bug #27807
closedUnable to import content view when there are more than 20 of enabled repositories in the target Satellite
Status:
Closed
Priority:
High
Assignee:
Category:
Inter Server Sync
Target version:
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Description
Description of problem:
- hammer content-view version import --export-tar /var/lib/pulp/katello-export/export-sat-tool-only-32.tar --organization-id 1
Could not import the content view:
Error: Unable to sync repositories, no library repository found for Red_Hat_Satellite_Tools_6_4_for_RHEL_7_Server_RPMs_x86_64
In "/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_katello-0.16.0.11/lib/hammer_cli_katello/content_view_version.rb"
def sync_repositories(repositories, organization_id, options)
export_tar_dir = options[:dirname]
export_tar_prefix = options[:prefix]
repositories.each do |repo|
- This call is going to fetch all library repos and by default only 20 entries will be returned if "per_page" is not given ##############
library_repos = index(
:repositories,
'organization_id' => organization_id,
'library' => true
)
<snip>
This issue can workaround by increase the "entries_per_page" setting temporary.
hammer settings set --name entries_per_page --value 1000
hammer content-view version import --export-tar /var/lib/pulp/katello-export/export-my-cv-34.tar --organization-id 1
hammer settings set --name entries_per_page --value 20
Actions