Bug 697859

Summary: scheduled repo sync doesn't start on specified "next sync" time
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: Sachin Ghai <sghai>
Component: ToolsAssignee: Jason Connor <jconnor>
Status: CLOSED NOTABUG QA Contact: wes hayutin <whayutin>
Severity: high Docs Contact:
Priority: high    
Version: 2.0CC: jason.dobies, mmccune, tsanders
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-20 13:41:40 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:
Bug Depends On:    
Bug Blocks: 688298    

Description Sachin Ghai 2011-04-19 13:19:15 UTC
Description of problem:
Scheduled a repo sync and default "next sync time" was set after 6 hours from current time. Then I triggered the individual repo sync so that schedule to be synchronized before its scheduled time. The time has changed but repo sync didn't start 

Version-Release number of selected component (if applicable):
pulp 0.166
RHUI tools : 2.0.15

How reproducible:
Always


Steps to Reproduce:
1. add a repo
2. schedule repo sync so that sync start as soon as possible
Actual results:

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= Repository Synchronization Status =-

Last Refreshed: 18:19:58
(updated every 5 seconds, ctrl+c to exit)

Next Sync                    Last Sync                    Last Result         
------------------------------------------------------------------------------
Red Hat Enterprise Linux Server 6 Releases (SRPMS) (6Server-x86_64)
04-19-2011 18:59             Never                        scheduled  

Red Hat Enterprise Linux Server 6 Updates (RPMs) (6Server-i386)
04-19-2011 17:55             Never                        scheduled  


                                         Connected: pulp-server.pnq.redhat.com



Sync doesn't start at scheduled time.

Expected results:

sync should start at specified "Next sync" time


Additional info:

[root@pulp-server ~]# cd /var/lib/pulp/repos/content/dist/rhel/rhui/server-6/updates/6Server/i386/os/
[root@pulp-server os]# ls
[root@pulp-server os]# 


[root@pulp-server ~]# tail -f /var/log/pulp/pulp.log 
2011-04-19 17:54:57,361 [INFO][Dummy-5] _write_cert_bundle() @ repo_cert_utils.py:351 - Storing repo cert file [/etc/pki/content/rhel-server-6-updates-6Server-i386/feed-rhel-server-6-updates-6Server-i386.ca]
2011-04-19 17:54:57,361 [INFO][Dummy-5] _write_cert_bundle() @ repo_cert_utils.py:351 - Storing repo cert file [/etc/pki/content/rhel-server-6-updates-6Server-i386/feed-rhel-server-6-updates-6Server-i386.cert]
2011-04-19 17:54:57,361 [INFO][Dummy-5] _write_cert_bundle() @ repo_cert_utils.py:351 - Storing repo cert file [/etc/pki/content/rhel-server-6-updates-6Server-i386/feed-rhel-server-6-updates-6Server-i386.key]
2011-04-19 17:54:57,362 [INFO][Dummy-5] _write_cert_bundle() @ repo_cert_utils.py:351 - Storing repo cert file [/etc/pki/content/rhel-server-6-updates-6Server-i386/consumer-rhel-server-6-updates-6Server-i386.ca]
2011-04-19 17:54:57,362 [INFO][Dummy-5] _write_cert_bundle() @ repo_cert_utils.py:351 - Storing repo cert file [/etc/pki/content/rhel-server-6-updates-6Server-i386/consumer-rhel-server-6-updates-6Server-i386.cert]
2011-04-19 17:54:57,362 [INFO][Dummy-5] _write_cert_bundle() @ repo_cert_utils.py:351 - Storing repo cert file [/etc/pki/content/rhel-server-6-updates-6Server-i386/consumer-rhel-server-6-updates-6Server-i386.key]
2011-04-19 17:55:30,755 [INFO][Dummy-8] sync() @ repositories.py:559 - sync timeout passed : None
2011-04-19 17:59:44,478 [INFO][Dummy-5] _write_cert_bundle() @ repo_cert_utils.py:351 - Storing repo cert file [/etc/pki/content/rhel-server-6-releases-srpms-6Server-x86_64/feed-rhel-server-6-releases-srpms-6Server-x86_64.ca]
2011-04-19 17:59:44,478 [INFO][Dummy-5] _write_cert_bundle() @ repo_cert_utils.py:351 - Storing repo cert file [/etc/pki/content/rhel-server-6-releases-srpms-6Server-x86_64/feed-rhel-server-6-releases-srpms-6Server-x86_64.cert]
2011-04-19 17:59:44,479 [INFO][Dummy-5] _write_cert_bundle() @ repo_cert_utils.py:351 - Storing repo cert file [/etc/pki/content/rhel-server-6-releases-srpms-6Server-x86_64/feed-rhel-server-6-releases-srpms-6Server-x86_64.key]
2011-04-19 17:59:44,479 [INFO][Dummy-5] _write_cert_bundle() @ repo_cert_utils.py:351 - Storing repo cert file [/etc/pki/content/rhel-server-6-releases-srpms-6Server-x86_64/consumer-rhel-server-6-releases-srpms-6Server-x86_64.ca]
2011-04-19 17:59:44,479 [INFO][Dummy-5] _write_cert_bundle() @ repo_cert_utils.py:351 - Storing repo cert file [/etc/pki/content/rhel-server-6-releases-srpms-6Server-x86_64/consumer-rhel-server-6-releases-srpms-6Server-x86_64.cert]
2011-04-19 17:59:44,480 [INFO][Dummy-5] _write_cert_bundle() @ repo_cert_utils.py:351 - Storing repo cert file [/etc/pki/content/rhel-server-6-releases-srpms-6Server-x86_64/consumer-rhel-server-6-releases-srpms-6Server-x86_64.key]
2011-04-19 17:59:44,483 [WARNING][Dummy-5] schedule() @ task.py:191 - Task b4ebdcba-6a80-11e0-9ca2-5254009b5116: RepoApi._sync(rhel-server-6-releases-srpms-6Server-x86_64, synchronizer=<pulp.server.api.repo_sync.YumSynchronizer object at 0x7f65a0748290>) missed 1 scheduled runs
2011-04-19 18:00:07,770 [INFO][Dummy-5] sync() @ repositories.py:559 - sync timeout passed : None

Comment 1 Sachin Ghai 2011-04-20 13:41:40 UTC
Tested scheduled repo sync with :
pulp build 0.168
rhui tool 2.0.15

this time I can schedule the repo sync and status is also changing as expected from scheduled to 'running"