Bug 697971
Summary: | pulp-admin cancel_sync always return sync complete on the subsequent syncs. | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
Component: | z_other | Assignee: | Sayli Karmarkar <skarmark> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | unspecified | CC: | cperry, dgao |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | Sprint 23 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-08-16 12:09:03 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: | 647488 |
Description
Preethi Thomas
2011-04-19 19:37:19 UTC
[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. Closing with Community Release 15 pulp-0.0.223-4. |