Project

Profile

Help

Issue #8098

pulp-ansible 0.6.0 requires Python 3.7

Added by iballou 9 months ago. Updated 9 months 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/"
  ]
}

Associated revisions

Revision 04c71d5b View on GitHub
Added by gerrod 9 months ago

asyncio create_tasks now work for Python 3.6

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

History

#1 Updated by fao89 9 months ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 88

#2 Updated by fao89 9 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to gerrod

#3 Updated by pulpbot 9 months ago

  • Status changed from ASSIGNED to POST

#4 Updated by gerrod 9 months ago

  • Status changed from POST to MODIFIED

#5 Updated by fao89 9 months ago

  • Sprint/Milestone set to 0.6.1

#6 Updated by pulpbot 9 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

#7 Updated by fao89 9 months ago

  • Status changed from CLOSED - CURRENTRELEASE to MODIFIED

#8 Updated by fao89 9 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF