Project

General

Profile

Bug #19435

[Katello 3.3] Repositories not syncing according to sync-plan

Added by Alan Evans about 5 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Repositories
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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

Vagrantfile.txt Vagrantfile.txt 36 Bytes Alan Evans, 05/04/2017 03:45 PM

Related issues

Has duplicate Katello - Bug #19643: Sync plans have not worked (ever)Duplicate2017-05-23

Associated revisions

Revision a606c0ab (diff)
Added by Justin Sherrill about 5 years ago

Fixes #19435 - ensure sync notif on product create

normally we create this sync notification when a sync plan has
products added to it, but it also needs to be done on product
creation

History

#1 Updated by Alan Evans about 5 years ago

  • Related to Feature #19406: Sync plans does not allow sync per-repo added

#2 Updated by Alan Evans about 5 years ago

  • Related to deleted (Feature #19406: Sync plans does not allow sync per-repo)

#3 Updated by Alan Evans about 5 years ago

  • Description updated (diff)

#4 Updated by Justin Sherrill about 5 years ago

  • Category set to Repositories
  • Assignee set to Justin Sherrill

#5 Updated by Alan Evans about 5 years ago

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

#6 Updated by Justin Sherrill about 5 years ago

  • Target version set to 193

#7 Updated by Justin Sherrill about 5 years ago

  • Related to Bug #19643: Sync plans have not worked (ever) added

#8 Updated by Justin Sherrill about 5 years ago

  • Legacy Backlogs Release (now unused) set to 228

#9 Updated by Justin Sherrill about 5 years ago

  • Related to deleted (Bug #19643: Sync plans have not worked (ever))

#10 Updated by Justin Sherrill about 5 years ago

  • Has duplicate Bug #19643: Sync plans have not worked (ever) added

#11 Updated by The Foreman Bot about 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6802 added

#12 Updated by Justin Sherrill about 5 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF