Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 788073

Summary: Sync doesn't start at its scheduled interval
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: APIAssignee: Tomas Strachota <tstrachota>
Status: CLOSED CURRENTRELEASE QA Contact: Og Maciel <omaciel>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: bkearney, gkhachik, omaciel
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: katello-0.1.241-1, katello-cli-0.1.55-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:25:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sachin Ghai 2012-02-07 11:45:51 UTC
Description of problem:
I synced a rhel61 repo. later defined a sync plan from cli as below:

katello> sync_plan create --org ACME_Corporation --name rhel_hourly --date 2012-02-07 --time 17:00:00+05:30

katello> product set_plan --name "Red Hat Enterprise Linux Server" --org ACME_Corporation --plan rhel_hourly

sync_plan list was showing correct time:
=========================================

katello> sync_plan list --org ACME_Corporation
-------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                       Sync Plan List

 Id   Name          Description   Start Date            Interval  
-------------------------------------------------------------------------------------------------------------------------------------------------------------
 1    rhel_hourly   None          2012/02/07 17:00:00   none      

however when I checked the sync status at 17:26, it wasn't started.

-------------
[root@scalpel ~]# date
Tue Feb  7 17:00:26 IST 2012
[root@scalpel ~]# katello -u admin -p admin shell
katello> repo status --name "Red Hat Enterprise Linux 6 Server RPMs x86_64 6Server" --org ACME_Corporation --product "Red Hat Enterprise Linux Server"
-------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                      Repository Status
-------------------------------------------------------------------------------------------------------------------------------------------------------------

Package Count: 6806
Last Sync:     2012/02/07 03:58:34
Sync State:    Waiting
Progress:      0% done (0 of 0 packages downloaded)
-----------------


at 17:07:
========

root@scalpel ~]# date
Tue Feb  7 17:07:27 IST 2012
[root@scalpel ~]# katello --username admin --password admin repo status --name "Red Hat Enterprise Linux 6 Server RPMs x86_64 6Server" --org ACME_Corporation --product "Red Hat Enterprise Linux Server"
-------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                      Repository Status
-------------------------------------------------------------------------------------------------------------------------------------------------------------

Package Count: 6806
Last Sync:     2012/02/07 03:58:34
Sync State:    Waiting
Progress:      0% done (0 of 0 packages downloaded)

[root@scalpel ~]# 

Version-Release number of selected component (if applicable):
katello-cli-0.1.44-2.el6.noarch
katello-0.1.211-2.el6.noarch
pulp-0.0.263-1.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. create a sync plan as in description
2. Apply on a product
3.
  
Actual results:
Sync doesn't start at it scheduled interval, shows 0% progress at it schedule interval. 

Expected results:
sync should start at it defined interval of time

Additional info:

Comment 1 Sachin Ghai 2012-02-07 11:46:55 UTC
I guess following bz are related to this defect:

https://bugzilla.redhat.com/show_bug.cgi?id=783124
https://bugzilla.redhat.com/show_bug.cgi?id=786098

Comment 2 Tomas Strachota 2012-02-17 10:23:30 UTC
It was actually caused by combination of issues including displaying incorrect time format at some places and not updating information in pulp after a plan changed.

Fixed in katello-0.1.241-1, katello-cli-0.1.55-1

Comment 3 Og Maciel 2012-02-29 19:58:07 UTC
Validated:
* candlepin-0.5.22-1.el6.noarch
* candlepin-tomcat6-0.5.22-1.el6.noarch
* katello-0.1.300-1.el6.noarch
* katello-all-0.1.300-1.el6.noarch
* katello-certs-tools-1.0.2-2.el6.noarch
* katello-cli-0.1.100-2.el6.noarch
* katello-cli-common-0.1.100-2.el6.noarch
* katello-common-0.1.300-1.el6.noarch
* katello-configure-0.1.100-7.el6.noarch
* katello-glue-candlepin-0.1.300-1.el6.noarch
* katello-glue-foreman-0.1.300-1.el6.noarch
* katello-glue-pulp-0.1.300-1.el6.noarch
* katello-httpd-ssl-key-pair-1.0-1.noarch
* katello-qpid-broker-key-pair-1.0-1.noarch
* katello-repos-0.1.5-1.el6.noarch
* katello-selinux-0.1.7-1.el6.noarch
* katello-trusted-ssl-cert-1.0-1.noarch
* pulp-0.0.267-2.el6.noarch
* pulp-admin-0.0.267-2.el6.noarch
* pulp-client-lib-0.0.267-2.el6.noarch
* pulp-common-0.0.267-2.el6.noarch
* pulp-selinux-server-0.0.267-2.el6.noarch