Description of problem: pulp-admin cancel_sync always return sync complete on the subsequent syncs. pasting the irc conversation with sayli for reference <preethi> sayli, cancel sync seems to be working for me in 168 <sayli> preethi, if this is the first sync on the repo, it will work <preethi> oh ok <preethi> sayli, yes <preethi> sayli, I see what you are saying <preethi> [root@preethi ~]# pulp-admin -u admin -p admin repo cancel_sync --id=f14-original <preethi> Sync has completed <sayli> preethi, ya, I think I know the issue..it's the same issue I was seeing in repo delete bug fix..sync_list is not returning latest sync first <preethi> on my second attempt <sayli> so we shd not be checking tasks[0] but checking tasks[len(tasks) - 1] <preethi> sayli, i guess you will write it up then :) <sayli> preethi, cool and assign it to me..
[root@pulp-nightly ~]# pulp-admin repo create --id=foo --feed=yum:http://download.devel.redhat.com/released/F-14/GOLD/Fedora/x86_64/os/ Successfully created repository [ foo ] [root@pulp-nightly ~]# pulp-admin repo sync --id=foo -F Sync for repository foo started Step: Downloading Items or Verifying [= ] 4% Tree_Files: 0/7 Rpms: 219/2766 Total: 219/2773 items ^C [root@pulp-nightly ~]# pulp-admin repo cancel_sync --id=foo Sync has completed ... wait about 30seconds [root@pulp-nightly ~]# nethogs NetHogs version 0.7.0 PID USER PROGRAM DEV SENT RECEIVED 29051 apache (wsgi:pulp) eth0 62.723 2633.438 KB/sec
Fixed in commit 0940904f255330b6242d3202480d91794f560eff
build: 0.170
[root@pulp-qe ~]# pulp-admin repo create --id=foo --feed=yum:http://download.devel.redhat.com/released/F-14/GOLD/Fedora/x86_64/os/ Successfully created repository [ foo ] [root@pulp-qe ~]# pulp-admin repo sync --id=foo -F Sync for repository foo started Step: Downloading Items or Verifying [ ] 0% Tree_Files: 0/7 Rpms: 29/2766 Total: 29/2773 items ^C [root@pulp-qe ~]# pulp-admin repo cancel_sync --id=foo Sync for repository foo canceled ... waited about 30seconds [root@pulp-qe ~]# pulp-admin repo sync --id=foo -F Sync for repository foo started Step: Downloading Items or Verifying [ ] 2% Tree_Files: 0/7 Rpms: 98/2766 Total: 98/2773 items ^C [root@pulp-qe ~]# pulp-admin repo cancel_sync --id=foo Sync for repository foo canceled [root@pulp-qe ~]# nethogs PID USER PROGRAM DEV SENT RECEIVED 27927 qpidd /usr/sbin/qpidd eth0 0.087 0.079 KB/sec
[root@preethi ~]# rpm -q pulp pulp-0.0.170-1.fc14.noarch Reopening this as I a see a similar issue 1. Sync a repo 2. run cancel_sync 3. run cancel sync again See the sync completed message the second time [root@preethi ~]# pulp-admin repo sync --id=f14-original Sync for repository f14-original started Use "repo status" to check on the progress [root@preethi ~]# pulp-admin repo cancel_sync --id=f14-original Sync for repository f14-original canceled [root@preethi ~]# pulp-admin repo cancel_sync --id=f14-original Sync has completed [root@preethi ~]# pulp-admin repo cancel_sync --id=f14-original Sync has completed
Changed error message to a non-confusing one: $ sudo pulp-admin repo cancel_sync --id=foo1 There is no sync in progress for this repository
Fixed in Pulp 0.172, grinder 0.96.
verified [root@preethi ~]# rpm -q pulp pulp-0.0.172-1.fc14.noarch [root@preethi ~]# pulp-admin repo cancel_sync --id=f14-original Sync for repository f14-original canceled [root@preethi ~]# pulp-admin repo cancel_sync --id=f14-original There is no sync in progress for this repository [root@preethi ~]#
Closing with Community Release 15 pulp-0.0.223-4.