Actions
Issue #1722
closedOSTree sync test fails
Start date:
Due date:
Estimated time:
Severity:
3. High
Version - OSTree:
Platform Release:
Target Release - OSTree:
1.1.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
While running pulp-smash tests for OSTree, I see the following output. As
pulp.server.async.tasks:INFO: Task failed : [52eee922-6b24-497e-b473-27d9197a0bf4]
celery.worker.job:ERROR: (13311-23488) Task pulp.server.managers.repo.sync.sync[52eee922-6b24-497e-b473-27d9197a0bf4] raised unexpected: LibError("GLib.Error('Failed to parse url 'd02d8fc9-28cf-4ace-bdc3-424b746ba01f'', 'g-io-error-quark', 0)",)
celery.worker.job:ERROR: (13311-23488) Traceback (most recent call last):
celery.worker.job:ERROR: (13311-23488) File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
celery.worker.job:ERROR: (13311-23488) R = retval = fun(*args, **kwargs)
celery.worker.job:ERROR: (13311-23488) File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 473, in __call__
celery.worker.job:ERROR: (13311-23488) return super(Task, self).__call__(*args, **kwargs)
celery.worker.job:ERROR: (13311-23488) File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 103, in __call__
celery.worker.job:ERROR: (13311-23488) return super(PulpTask, self).__call__(*args, **kwargs)
celery.worker.job:ERROR: (13311-23488) File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 437, in __protected_call__
celery.worker.job:ERROR: (13311-23488) return self.run(*args, **kwargs)
celery.worker.job:ERROR: (13311-23488) File "/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py", line 757, in sync
celery.worker.job:ERROR: (13311-23488) sync_report = sync_repo(transfer_repo, conduit, call_config)
celery.worker.job:ERROR: (13311-23488) File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 658, in wrap_f
celery.worker.job:ERROR: (13311-23488) return f(*args, **kwargs)
celery.worker.job:ERROR: (13311-23488) File "/usr/lib/python2.7/site-packages/pulp_ostree/plugins/importers/web.py", line 91, in sync_repo
celery.worker.job:ERROR: (13311-23488) report = step.process_lifecycle()
celery.worker.job:ERROR: (13311-23488) File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 562, in process_lifecycle
celery.worker.job:ERROR: (13311-23488) super(PluginStep, self).process_lifecycle()
celery.worker.job:ERROR: (13311-23488) File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 159, in process_lifecycle
celery.worker.job:ERROR: (13311-23488) step.process()
celery.worker.job:ERROR: (13311-23488) File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 249, in process
celery.worker.job:ERROR: (13311-23488) self._process_block()
celery.worker.job:ERROR: (13311-23488) File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 293, in _process_block
celery.worker.job:ERROR: (13311-23488) self.process_main()
celery.worker.job:ERROR: (13311-23488) File "/usr/lib/python2.7/site-packages/pulp_ostree/plugins/importers/steps.py", line 116, in process_main
celery.worker.job:ERROR: (13311-23488) refs = [r.dict() for r in remote.list_refs()]
celery.worker.job:ERROR: (13311-23488) File "/usr/lib/python2.7/site-packages/pulp_ostree/plugins/lib.py", line 30, in _fn
celery.worker.job:ERROR: (13311-23488) raise LibError(repr(ge))
celery.worker.job:ERROR: (13311-23488) LibError: GLib.Error('Failed to parse url 'd02d8fc9-28cf-4ace-bdc3-424b746ba01f'', 'g-io-error-quark', 0)
celery.worker.job:INFO: Task pulp.server.async.tasks._release_resource[406afdba-e6ba-4290-a63c-49763aa660e2] succeeded in 0.014632966002s: None
Pulp-smash produces the following traceback:
Traceback (most recent call last):
File "/home/jenkins/workspace/pulp-smash-runner/pulp-smash/pulp_smash/tests/ostree/api_v2/test_sync_publish.py", line 201, in setUpClass
repo_href, cls.report, cls.tasks = _create_sync_repo(cls.cfg, body)
File "/home/jenkins/workspace/pulp-smash-runner/pulp-smash/pulp_smash/tests/ostree/api_v2/test_sync_publish.py", line 89, in _create_sync_repo
tasks = tuple(api.poll_spawned_tasks(server_config, response.json()))
File "/home/jenkins/workspace/pulp-smash-runner/pulp-smash/pulp_smash/api.py", line 316, in poll_spawned_tasks
for final_task_state in poll_task(server_config, href):
File "/home/jenkins/workspace/pulp-smash-runner/pulp-smash/pulp_smash/api.py", line 353, in poll_task
'Task {} is ongoing after {} polls.'.format(href, poll_limit)
TaskTimedOutError: Task /pulp/api/v2/tasks/903f697c-7e59-4348-9a44-9a99041b0541/ is ongoing after 24 polls.
Actions
Better handling of GLib.Error raised when fetching the summary. closes #1722