I had a sync going with the CDN, and I canceled it about 1 minute after it started, while it was still in the "Downloading metadata" phase. The logs included a traceback related to the cancellation several minutes later: 2012-12-13 14:10:05,340 pulp.plugins.yum_importer.importer_rpm:INFO: Begin sync of repo <rhel-6-server> from feed_url <https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os> 2012-12-13 14:12:13,380 pulp.plugins.yum_importer.importer_rpm:INFO: cancel_sync invoked 2012-12-13 14:12:13,381 pulp.plugins.yum_importer.importer_rpm:INFO: Telling grinder to stop syncing 2012-12-13 14:12:28,912 pulp.plugins.yum_importer.importer_rpm:INFO: Sync of rhel-6-server has been canceled. 2012-12-13 14:12:28,964 pulp.server.managers.repo.sync:ERROR: Repo sync exited with unknown dispatch task state, setting sync result code to: failed 2012-12-13 14:12:28,966 pulp.server.dispatch.task:ERROR: Importer indicated a failed response Traceback (most recent call last): File "/home/rbarlow/devel/pulp/platform/src/pulp/server/dispatch/task.py", line 123, in _run result = call(*args, **kwargs) File "/home/rbarlow/devel/pulp/platform/src/pulp/server/managers/repo/sync.py", line 158, in sync raise PulpExecutionException(_('Importer indicated a failed response')) PulpExecutionException: Importer indicated a failed response Might this be the importer failing to return a report? I don't know much about it, so that's my wild guess.
Stopped relying on the dispatch system to glean the state when a sync or publish is cancelled. Instead rely on the returned report. Pushed to origin in both the pulp and pulp_rpm repos in branches named: jconnor-887000-sync-no-dispatch
build: 2.2.0-0.2.beta. Some of these were likely included in an earlier build but found them this time with a better BZ query.
verified [root@ibm-x3550m3-13 ~]# rpm -q pulp-server pulp-server-2.2.0-0.4.beta.fc18.noarch [root@ibm-x3550m3-13 ~]# [root@ibm-x3550m3-13 ~]# pulp-admin rpm repo sync run --repo-id rhel6-2 +----------------------------------------------------------------------+ Synchronizing Repository [rhel6-2] +----------------------------------------------------------------------+ This command may be exited by pressing ctrl+c without affecting the actual operation on the server. Downloading metadata... [-] Operation cancelled. [root@ibm-x3550m3-13 ~]# pulp-admin rpm repo sync run --repo-id rhel6-2 +----------------------------------------------------------------------+ Synchronizing Repository [rhel6-2] +----------------------------------------------------------------------+ This command may be exited by pressing ctrl+c without affecting the actual operation on the server. Downloading metadata... [\] ... completed Downloading repository content... [==================================================] 100% RPMs: 0/0 items Delta RPMs: 0/0 items Operation cancelled. [root@ibm-x3550m3-13 ~]#
2.2 released http://repos.fedorapeople.org/repos/pulp/pulp/stable/2.2/