Project

Profile

Help

Issue #8098

closed

pulp-ansible 0.6.0 requires Python 3.7

Added by iballou almost 4 years ago. Updated almost 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Sprint 88
Quarter:

Description

It seems I hit an error that points to Python being out of date.

module 'asyncio' has no attribute 'create_task'

https://stackoverflow.com/a/53247626

Traceback:

{
  "pulp_href": "/pulp/api/v3/tasks/5b3ccf7c-152e-421f-9189-e753ec8b81c4/",
  "pulp_created": "2021-01-14T20:32:35.176071Z",
  "state": "failed",
  "name": "pulp_ansible.app.tasks.collections.sync",
  "logging_cid": "05a4a5ac8ca54ecdb964bcf0b0a2c57a",
  "started_at": "2021-01-14T20:32:35.331192Z",
  "finished_at": "2021-01-14T20:32:35.408906Z",
  "error": {
    "traceback": "  File \"/usr/local/lib/python3.6/site-packages/rq/worker.py\", line 975, in perform_job\n    rv = job.perform()\n  File \"/usr/local/lib/python3.6/site-packages/rq/job.py\", line 696, in perform\n    self._result = self._execute()\n  File \"/usr/local/lib/python3.6/site-packages/rq/job.py\", line 719, in _execute\n    return self.func(*self.args, **self.kwargs)\n  File \"/usr/local/lib/python3.6/site-packages/pulp_ansible/app/tasks/collections.py\", line 85, in sync\n    d_version.create()\n  File \"/usr/local/lib/python3.6/site-packages/pulpcore/plugin/stages/declarative_version.py\", line 148, in create\n    loop.run_until_complete(pipeline)\n  File \"/usr/lib64/python3.6/asyncio/base_events.py\", line 484, in run_until_complete\n    return future.result()\n  File \"/usr/local/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py\", line 225, in create_pipeline\n    await asyncio.gather(*futures)\n  File \"/usr/local/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py\", line 43, in __call__\n    await self.run()\n  File \"/usr/local/lib/python3.6/site-packages/pulp_ansible/app/tasks/collections.py\", line 504, in run\n    asyncio.create_task(self._fetch_collection_metadata(requirement_entry))\n",
    "description": "module 'asyncio' has no attribute 'create_task'"
  },
  "worker": "/pulp/api/v3/workers/96b47704-b1f4-4072-af1e-5ba914db8e97/",
  "parent_task": null,
  "child_tasks": [],
  "task_group": null,
  "progress_reports": [
    {
      "message": "Downloading Artifacts",
      "code": "downloading.artifacts",
      "state": "canceled",
      "total": null,
      "done": 0,
      "suffix": null
    },
    {
      "message": "Downloading Artifacts",
      "code": "downloading.artifacts",
      "state": "canceled",
      "total": null,
      "done": 0,
      "suffix": null
    },
    {
      "message": "Associating Content",
      "code": "associating.content",
      "state": "canceled",
      "total": null,
      "done": 0,
      "suffix": null
    },
    {
      "message": "Un-Associating Content",
      "code": "unassociating.content",
      "state": "canceled",
      "total": null,
      "done": 0,
      "suffix": null
    }
  ],
  "created_resources": [],
  "reserved_resources_record": [
    "/pulp/api/v3/repositories/ansible/ansible/c5784a4d-1fc5-42ac-803a-6a58e27971ea/",
    "/pulp/api/v3/remotes/ansible/collection/f67f87c5-db92-45df-b350-23393f30a69c/"
  ]
}
Actions #1

Updated by fao89 almost 4 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 88
Actions #2

Updated by fao89 almost 4 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to gerrod
Actions #3

Updated by pulpbot almost 4 years ago

  • Status changed from ASSIGNED to POST

Added by gerrod almost 4 years ago

Revision 04c71d5b | View on GitHub

asyncio create_tasks now work for Python 3.6

fixes: #8098 https://pulp.plan.io/issues/8098

Actions #4

Updated by gerrod almost 4 years ago

  • Status changed from POST to MODIFIED
Actions #5

Updated by fao89 almost 4 years ago

  • Sprint/Milestone set to 0.6.1
Actions #6

Updated by pulpbot almost 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions #7

Updated by fao89 almost 4 years ago

  • Status changed from CLOSED - CURRENTRELEASE to MODIFIED
Actions #8

Updated by fao89 almost 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF