Bug #36990
closed
Investigation: RefreshRepos from a repository sync causes updates of all repositories on smart proxy
Added by Ian Ballou over 1 year ago.
Updated over 1 year ago.
Category:
Foreman Proxy Content
|
Description
A user reported Katello 4.10 smart proxy syncs after repo syncs are much slower. They also reported an increased number of Pulp tasks in RefreshRepos. We should check if Katello stopped sending over repository / content view / environment information for automatic smart proxy syncs.
Files
From the reporter:
"Basically it is triggered by a repo sync. The way we have it setup is.
1) Devs are pushing the rpm to a local repository.
2) The repository see a new package arrive and using the Foreman API to trigger a repo sync of the local repo.
3) Foreman/Katello start the repo sync and finds a the new rpm in our local repo and then triggers a “Sync Repository on Smart Proxy(ies)” task that sync the new meta data to all proxies since the Library is configured in the Lifecycle Environment configurations for all proxies.
"
Potentially related to the upload scenario?
- Status changed from New to Need more information
I'm unable to reproduce this on Katello 4.10. Steps:
1) Sync 2 repositories
2) Assign a smart proxy to sync Library
3) Upload and RPM to one of the 2 repositories
4) See that the repository sync tasks only syncs and refreshes (RefreshRepos) the repository that received the upload.
Going to leave this open if more information becomes available in the community thread.
- Category set to Foreman Proxy Content
- Status changed from Need more information to New
- Target version set to Katello 4.10.1
- Triaged changed from No to Yes
Main question now:
In app/lib/actions/katello/capsule_content/sync_capsule.rb, how can RefreshRepos not get a repository_id, when CapsuleContent::Sync does?
- Status changed from New to Resolved
- Target version deleted (
Katello 4.10.1)
Fixed by an update to:
Old:
pulpcore-selinux-1.3.3-1.el8.x86_64
rubygem-foreman-tasks-8.2.0-1.fm3_8.el8.noarch
rubygem-foreman_remote_execution-11.1.0-1.fm3_8.el8.noarch
rubygem-smart_proxy_remote_execution_ssh-0.10.1-1.fm3_6.el8.noarch
puppet7-release-7.0.0-14.el8.noarch
New:
pulpcore-selinux-2.0.0-1.el8.x86_64
rubygem-foreman-tasks-8.3.3-1.fm3_8.el8.noarch
rubygem-foreman_remote_execution-11.1.1-1.fm3_8.el8.noarch
rubygem-smart_proxy_remote_execution_ssh-0.10.3-1.fm3_8.el8.noarch
puppet7-release-7.0.0-15.el8.noarch
Also available in: Atom
PDF