Bug 746659

Summary: Sync status remains in 'Queued' state for scheduled sync
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: WebUIAssignee: Shannon Hughes <shughes>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: low    
Version: 6.0.0CC: mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:01:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
sync status set as 'queued' none

Description Sachin Ghai 2011-10-17 12:48:28 UTC
Description of problem:
I started a scheduled sync for a repo. The defined sync plan is to start the sync on daily at 5:30 PM IST.

As per pulp logs sync initiated at its correct time.

-----
2011-10-17 17:30:01,401 3524:140224499803904: pulp.server.api.repo_sync:INFO: repo_sync:244 Sync invoked for repo <sghai_org-aeolus-aeolus_x86_64>
2011-10-17 17:30:01,467 3524:140224499803904: pulp.server.api.repo_sync:INFO: repo_sync:258 Sync of sghai_org-aeolus-aeolus_x86_64 starting, skip_dict = {}
2011-10-17 17:30:01,476 3524:140224499803904: pulp.server.api.synchronizers:INFO: synchronizers:540 cacert = <None>, cert = <None>
2011-10-17 17:30:01,476 3524:140224499803904: pulp.server.api.synchronizers:INFO: synchronizers:588 Fetching repo to </var/lib/pulp//repos/sghai_org/Locker/aeolus/aeolus_x86_64> with verify_options <{'checksum': True, 'size': True}>
2011-10-17 17:30:43,921 3524:140224499803904: pulp.server.api.synchronizers:INFO: synchronizers:608 Running createrepo, this may take a few minutes to complete.
-----

 However Katello UI is showing the sync status as 'queued'. and this remains in queued state. See the attachement1. 


I checked from katello-cli, CLI showing the state as 'waiting'.
katello> repo status --name=aeolus_x86_64 --product=aeolus --org=sghai_org
--------------------------------------------------------------------------------
                               Repository Status
--------------------------------------------------------------------------------

Id:            sghai_org-aeolus-aeolus_x86_64
Name:          aeolus_x86_64
Package Count: 226
Last Sync:     2011/10/17 17:31:24
Sync State:    Waiting
Progress:      0% done (0 of 0 packages downloaded)



Version-Release number of selected component (if applicable):
[root@dhcp201-158 ~]# rpm -qa | grep katello
katello-cli-0.1.10-1.git.712.be6830e.fc15.noarch
katello-0.1.93-1.git.0.6934d37.fc15.noarch
katello-all-0.1.93-1.git.0.6934d37.fc15.noarch
katello-configure-0.1.6-1.git.5.76ba627.fc15.noarch
katello-repos-0.1.3-1.git.0.db2bd1d.fc15.noarch
[root@dhcp201-158 ~]# rpm -qa | grep pulp
pulp-common-0.0.237-5.fc15.noarch
pulp-0.0.237-5.fc15.noarch
m2crypto-0.21.1.pulp-5.fc15.x86_64


How reproducible:
always

Steps to Reproduce:
1. Define a sync plan ( daily sync at specified time)
2. Applied this sync plan to product
3. Now check the sync status when sync initiated at specified scheduled time
  
Actual results:
Sync staus remains in 'Queued' state

Expected results:
Sync should run and status should be automatically changed from queued ==> running ==> finish

Additional info:

Comment 1 Sachin Ghai 2011-10-17 12:49:21 UTC
Created attachment 528529 [details]
sync status set as 'queued'

Comment 2 Mike McCune 2012-01-26 19:38:03 UTC
mass move to CFSE product.

Comment 3 Shannon Hughes 2012-01-30 19:12:57 UTC
can you retest this one. i was not seeing queued state, rather ui was showing sync progress as zero. when the sync kicked in, the status bar jumped quickly since the gap between the check and the sync complete occured. then subsequent checks on the status shows as finished.

my guess is this was fixed since october.

Comment 4 Sachin Ghai 2012-02-01 08:51:37 UTC
Yes, I retested this again on new katello build.

And now I'm not getting the sync status as 'queued' however UI is showing a empty progress bar. This needs to be fixed. I'll file another bug for this issue.

Moving this to verified.