Bug #19435
closed
[Katello 3.3] Repositories not syncing according to sync-plan
Added by Alan Evans over 7 years ago.
Updated over 6 years ago.
Description
I have been using a script to build/tear down my katello infrastructure for testing/planning.
After upgrading to 3.3 I noticed my repos weren't syncing. I ignored it for a while because I was working with other components. But I have come to believe it's a bug.
Attached you will find the Vagrantfile I have been testing with. If I bring up a box w/ Katello 3.2/Foreaman 1.13 the automatically created repo will sync automatically (not exactly on schedule... not sure what's up w/ that, but it works.) If I switch to Katello 3.3 and Foreaman 1.14 then the created repo never syncs automatically.
I posted on the foreman-users list a bit back. I think I was mistaken about the behavior I described at the time though.
https://groups.google.com/d/msg/foreman-users/ZODFm2ektM0/hj5av1hSAwAJ
Files
- Related to Feature #19406: Sync plans does not allow sync per-repo added
- Related to deleted (Feature #19406: Sync plans does not allow sync per-repo)
- Description updated (diff)
- Category set to Repositories
- Assignee set to Justin Sherrill
Got distracted. Forgot to attach my Vagrantfile.
Most relevant bits.
Katello installation¶
The only change I make between tests is to change katello/foreman versions.
84 yum -y localinstall http://fedorapeople.org/groups/katello/releases/yum/3.3/katello/el7/x86_64/katello-repos-latest.rpm
85 yum -y localinstall http://yum.theforeman.org/releases/1.14/el7/x86_64/foreman-release.rpm
Configuration¶
Here's how I am creating the sync-plan, product and repo.
105 hammer sync-plan create --organization-id 1 --name Daily --interval daily --sync-date "$(date +'%F %T' --date '-23 hours -58 minutes')" --enabled true
106 hammer sync-plan info --id 1
107 sleep 20
108
109 hammer product create --organization-id 1 --name CentOS --label centos
110 hammer product set-sync-plan --id 1 --sync-plan-id 1
111 hammer product info --id 1
112 sleep 20
113
114 hammer repository create --organization-id 1 --product CentOS --name "CentOS 7 x86_64 OS" --label "centos-7-x86_64-os" --content-type yum --download-policy on_demand --publish-via-http 1 --url "http://mirror.centos.org/centos/7/os/x86_64"
115 hammer repository info --id 1
- Target version set to 193
- Related to Bug #19643: Sync plans have not worked (ever) added
- Translation missing: en.field_release set to 228
- Related to deleted (Bug #19643: Sync plans have not worked (ever))
- Has duplicate Bug #19643: Sync plans have not worked (ever) added
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/6802 added
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Also available in: Atom
PDF