Project

Profile

Help

Issue #6482

closed

repository content repair feature does not work on Python 3.6.8

Added by dkliban@redhat.com about 4 years ago. Updated almost 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 70
Quarter:

Description

Apr 10 13:25:49 localhost rq[19460]: pulp: rq.worker:INFO: resource-manager: Job OK (7ec86e5e-7884-449b-a5e2-e58d8e349deb)
Apr 10 13:25:49 localhost rq[19458]: pulp: pulpcore.app.tasks.repository:INFO: Repairing version 1 of repository dbae0043-e065-4bea-b4b9-0c86623bb356
Apr 10 13:25:49 localhost rq[19458]: pulp: rq.worker:ERROR: AttributeError: module 'asyncio' has no attribute 'get_running_loop'
Apr 10 13:25:49 localhost rq[19458]: Traceback (most recent call last):
Apr 10 13:25:49 localhost rq[19458]: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/worker.py", line 886, in perform_job
Apr 10 13:25:49 localhost rq[19458]: rv = job.perform()
Apr 10 13:25:49 localhost rq[19458]: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py", line 664, in perform
Apr 10 13:25:49 localhost rq[19458]: self._result = self._execute()
Apr 10 13:25:49 localhost rq[19458]: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py", line 670, in _execute
Apr 10 13:25:49 localhost rq[19458]: return self.func(*self.args, **self.kwargs)
Apr 10 13:25:49 localhost rq[19458]: File "/home/vagrant/devel/pulpcore/pulpcore/app/tasks/repository.py", line 140, in repair_version
Apr 10 13:25:49 localhost rq[19458]: loop.run_until_complete(_repair_repository_version(version))
Apr 10 13:25:49 localhost rq[19458]: File "/usr/lib64/python3.6/asyncio/base_events.py", line 484, in run_until_complete
Apr 10 13:25:49 localhost rq[19458]: return future.result()
Apr 10 13:25:49 localhost rq[19458]: File "/home/vagrant/devel/pulpcore/pulpcore/app/tasks/repository.py", line 100, in _repair_repository_version
Apr 10 13:25:49 localhost rq[19458]: loop = asyncio.get_running_loop()
Apr 10 13:25:49 localhost rq[19458]: AttributeError: module 'asyncio' has no attribute 'get_running_loop'
Apr 10 13:25:49 localhost rq[19458]: Traceback (most recent call last):
Apr 10 13:25:49 localhost rq[19458]: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/worker.py", line 886, in perform_job
Apr 10 13:25:49 localhost rq[19458]: rv = job.perform()
Apr 10 13:25:49 localhost rq[19458]: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py", line 664, in perform
Apr 10 13:25:49 localhost rq[19458]: self._result = self._execute()
Apr 10 13:25:49 localhost rq[19458]: File "/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py", line 670, in _execute
Apr 10 13:25:49 localhost rq[19458]: return self.func(*self.args, **self.kwargs)
Apr 10 13:25:49 localhost rq[19458]: File "/home/vagrant/devel/pulpcore/pulpcore/app/tasks/repository.py", line 140, in repair_version
Apr 10 13:25:49 localhost rq[19458]: loop.run_until_complete(_repair_repository_version(version))
Apr 10 13:25:49 localhost rq[19458]: File "/usr/lib64/python3.6/asyncio/base_events.py", line 484, in run_until_complete
Apr 10 13:25:49 localhost rq[19458]: return future.result()
Apr 10 13:25:49 localhost rq[19458]: File "/home/vagrant/devel/pulpcore/pulpcore/app/tasks/repository.py", line 100, in _repair_repository_version
Apr 10 13:25:49 localhost rq[19458]: loop = asyncio.get_running_loop()
Apr 10 13:25:49 localhost rq[19458]: AttributeError: module 'asyncio' has no attribute 'get_running_loop'

Added by dkliban@redhat.com about 4 years ago

Revision 13004778 | View on GitHub

Makes repository repair task compatible with Python 3.6

closes: #6482 https://pulp.plan.io/issues/6482

Actions #1

Updated by pulpbot about 4 years ago

  • Status changed from NEW to POST
Actions #2

Updated by dkliban@redhat.com about 4 years ago

  • Status changed from POST to MODIFIED
Actions #3

Updated by ttereshc about 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF