Description of problem: Steps to reproduce 1.On one window, run repo sync -F 2. Open another command line window and cancel the above sync by running cancel_sync 3. you get the Sync for repository canceled message. 4. On the first window see that the sync progress is stalled indicating the canceled sync 5. Now run the repo status for the above repo on the second window 6. See that the repo status is hanging 7. Ctrl+C on the first window to exit from the stalled sync 9. Run repo status on the above repo again 10. See that its hanging Additional info:
Please re-test, I think this is fixed now. sync -F was cancelled and returned as soon as I issued the cancel. repo status returned promptly and did not hang. $ sudo pulp-admin -u admin -p admin repo sync --id cancel_test -F Sync for repository cancel_test started You can safely CTRL+C this current command and it will continue [ ] 0% Sync: Canceled $ sudo pulp-admin -u admin -p admin repo status --id cancel_test +------------------------------------------+ Status for cancel_test +------------------------------------------+ Repository: cancel_test Number of Packages: 0 Last Sync: never
This still happens. I did not see the repo status hanging.But cancel_sync never relays to the first window. [root@10 ~]# pulp-admin repo cancel_sync --id=f13 Sync for repository f13 canceled [root@10 ~]# pulp-admin repo sync --id=f13 -F Sync for repository f13 already in progress You can safely CTRL+C this current command and it will continue [ ] 0%
I'm moving this to MODIFIED so we can re-test with the next build. Might be this was recently fixed and not in the available QE build. When testing with latest git master the sync -F is interrupted and exists immediately after issuing a "cancel_sync" from another window.
Fixed in 0.120.
Looks like this is working [root@preethi ~]# rpm -q pulp pulp-0.0.120-1.fc14.noarch [root@preethi ~]# pulp-admin repo cancel_sync --id=f13 Sync for repository f13 canceled [root@preethi ~]# pulp-admin repo sync --id=f13 -F Sync for repository f13 started You can safely CTRL+C this current command and it will continue [============= ] 26% (940 of 3111 pkgs) Sync: Canceled [root@preethi ~]# pulp-admin repo status --id=f13 +------------------------------------------+ Status for f13 +------------------------------------------+ Repository: f13 Number of Packages: 0 Last Sync: never
Closing with Community Release 15 pulp-0.0.223-4.