Bug 1131062
| Summary: | Cancellation of the puppet repo sync task during metadata retrieval leads to the failure | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Ina Panova <ipanova> |
| Component: | async/tasks | Assignee: | Chris Duryee <cduryee> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Ina Panova <ipanova> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | unspecified | CC: | cduryee, rbarlow |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | 2.5.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-11-24 21:33:36 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Ina Panova
2014-08-18 12:49:39 UTC
Version-Release number of selected component (if applicable): 2.4.1-0.1.alpha Same traceback when a worker is gracefully shut down during metadata retrieval:
# systemctl stop pulp_worker-0
# pulp-admin -u admin -p admin tasks list
+----------------------------------------------------------------------+
Tasks
+----------------------------------------------------------------------+
Operations: sync
Resources: pup1 (repository)
State: Failed
Start Time: 2014-08-20T12:55:44Z
Finish Time: 2014-08-20T12:56:09Z
Task Id: 945afdcb-3d69-4e1a-af5a-163766b474a4
# pulp-admin -u admin -p admin tasks details --task-id 945afdcb-3d69-4e1a-af5a-163766b474a4
+----------------------------------------------------------------------+
Task Details
+----------------------------------------------------------------------+
Operations: sync
Resources: pup1 (repository)
State: Failed
Start Time: 2014-08-20T12:55:44Z
Finish Time: 2014-08-20T12:56:09Z
Result: N/A
Task Id: 945afdcb-3d69-4e1a-af5a-163766b474a4
Progress Report:
Puppet Importer:
Metadata:
Current Query: https://forge.puppetlabs.com/modules.json
Error: FileRetrievalException: None
Error Message: Error downloading metadata
Execution Time: 24
Query Finished Count: 0
Query Total Count: 1
State: failed
Traceback: [[u'/usr/lib/python2.7/site-packages/pulp_puppet/plu
gins/importers/forge.py', 123, u'_parse_metadata',
u'metadata_json_docs =
downloader.retrieve_metadata(self.progress_report)']
,
[u'/usr/lib/python2.7/site-packages/pulp_puppet/plug
ins/importers/downloaders/web.py', 71,
u'retrieve_metadata', u'raise
exceptions.FileRetrievalException(report.error_msg)'
]]
Modules:
Error: None
Error Count: None
Error Message: None
Execution Time: None
Finished Count: None
Individual Errors:
State: not-started
Total Count: None
Traceback: None
Traceback: Traceback (most recent call last): File
"/usr/lib/python2.7/site-packages/celery/app/trace.py", line
240, in trace_task R = retval = fun(*args, **kwargs)
File
"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py",
line 305, in __call__ return super(Task,
self).__call__(*args, **kwargs) File
"/usr/lib/python2.7/site-packages/celery/app/trace.py", line
437, in __protected_call__ return self.run(*args,
**kwargs) File
"/usr/lib/python2.7/site-packages/pulp/server/tasks/repository
.py", line 210, in sync_with_auto_publish sync_result =
managers.repo_sync_manager().sync(repo_id,
sync_config_override=overrides) File
"/usr/lib/python2.7/site-packages/pulp/server/managers/repo/sy
nc.py", line 113, in sync raise
PulpExecutionException(_('Importer indicated a failed
response')) PulpExecutionException: Importer indicated a
failed response
merged to 2.4-dev and master also, good catch on this bz:) build: 2.5.0-0.6.beta Tested in pulp-2.5.0-0.6.beta
1)created puppet repo with feed
2) initiated sync
3) cancelled sync during metadata retrieval:
# pulp-admin -u admin -p admin tasks list
+----------------------------------------------------------------------+
Tasks
+----------------------------------------------------------------------+
Operations: sync
Resources: pup (repository)
State: Running
Start Time: 2014-10-01T09:48:54Z
Finish Time: Incomplete
Task Id: f6022510-7180-42d2-b3d7-03377229d5d6
# pulp-admin -u admin -p admin tasks cancel --task-id f6022510-7180-42d2-b3d7-03377229d5d6
Task cancel is successfully initiated.
[root@ec2-54-217-44-62 ~]# pulp-admin -u admin -p admin repo list
+----------------------------------------------------------------------+
Repositories
+----------------------------------------------------------------------+
Id: pup
Display Name: pup
Description: None
Content Unit Counts:
[root@ec2-54-217-44-62 ~]# pulp-admin -u admin -p admin tasks details --task-id f6022510-7180-42d2-b3d7-03377229d5d6
+----------------------------------------------------------------------+
Task Details
+----------------------------------------------------------------------+
Operations: sync
Resources: pup (repository)
State: Cancelled
Start Time: 2014-10-01T09:48:54Z
Finish Time: Incomplete
Result: N/A
Task Id: f6022510-7180-42d2-b3d7-03377229d5d6
Progress Report:
Puppet Importer:
Metadata:
Current Query: https://forge.puppetlabs.com/modules.json
Error: None
Error Message: None
Execution Time: None
Query Finished Count: 0
Query Total Count: 1
State: running
Traceback: None
Modules:
Error: None
Error Count: None
Error Message: None
Execution Time: None
Finished Count: None
Individual Errors:
State: not-started
Total Count: None
Traceback: None
Moving to Verified.
|