Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in sync task #241

Open
jdmAtP opened this issue Oct 24, 2023 · 0 comments
Open

Error in sync task #241

jdmAtP opened this issue Oct 24, 2023 · 0 comments

Comments

@jdmAtP
Copy link

jdmAtP commented Oct 24, 2023

Version
pulp status { "versions": [ { "component": "core", "version": "3.38.0", "package": "pulpcore", "domain_compatible": true }, { "component": "ansible", "version": "0.20.1", "package": "pulp-ansible", "domain_compatible": false }, { "component": "certguard", "version": "1.7.0", "package": "pulp-certguard", "domain_compatible": true }, { "component": "container", "version": "2.16.2", "package": "pulp-container", "domain_compatible": false }, { "component": "deb", "version": "3.0.0", "package": "pulp_deb", "domain_compatible": false }, { "component": "file", "version": "1.15.0", "package": "pulp-file", "domain_compatible": true }, { "component": "gem", "version": "0.3.0", "package": "pulp-gem", "domain_compatible": false }, { "component": "maven", "version": "0.6.0", "package": "pulp-maven", "domain_compatible": false }, { "component": "npm", "version": "0.1.0a5.dev", "package": "pulp-npm", "domain_compatible": false }, { "component": "ostree", "version": "2.1.3", "package": "pulp-ostree", "domain_compatible": false }, { "component": "python", "version": "3.10.0", "package": "pulp-python", "domain_compatible": false }, { "component": "rpm", "version": "3.23.0", "package": "pulp-rpm", "domain_compatible": true } ], "online_workers": [ { "pulp_href": "/pulp/api/v3/workers/018b5b70-eac6-7db9-a34f-97d4708ede9d/", "pulp_created": "2023-10-23T07:30:08.712720Z", "name": "378@3bc88b3c988c", "last_heartbeat": "2023-10-24T08:49:56.604019Z", "versions": { "deb": "3.0.0", "gem": "0.3.0", "npm": "0.1.0a5.dev", "rpm": "3.23.0", "core": "3.38.0", "file": "1.15.0", "maven": "0.6.0", "ostree": "2.1.3", "python": "3.10.0", "ansible": "0.20.1", "certguard": "1.7.0", "container": "2.16.2" }, "current_task": null }, { "pulp_href": "/pulp/api/v3/workers/018b5b70-eac1-7057-81eb-6b069c0abbf0/", "pulp_created": "2023-10-23T07:30:08.707717Z", "name": "424@3bc88b3c988c", "last_heartbeat": "2023-10-24T08:49:56.607787Z", "versions": { "deb": "3.0.0", "gem": "0.3.0", "npm": "0.1.0a5.dev", "rpm": "3.23.0", "core": "3.38.0", "file": "1.15.0", "maven": "0.6.0", "ostree": "2.1.3", "python": "3.10.0", "ansible": "0.20.1", "certguard": "1.7.0", "container": "2.16.2" }, "current_task": null } ], "online_api_apps": [ { "name": "434@3bc88b3c988c", "last_heartbeat": "2023-10-24T08:50:04.484467Z", "versions": { "deb": "3.0.0", "gem": "0.3.0", "npm": "0.1.0a5.dev", "rpm": "3.23.0", "core": "3.38.0", "file": "1.15.0", "maven": "0.6.0", "ostree": "2.1.3", "python": "3.10.0", "ansible": "0.20.1", "certguard": "1.7.0", "container": "2.16.2" } }, { "name": "433@3bc88b3c988c", "last_heartbeat": "2023-10-24T08:50:04.481176Z", "versions": { "deb": "3.0.0", "gem": "0.3.0", "npm": "0.1.0a5.dev", "rpm": "3.23.0", "core": "3.38.0", "file": "1.15.0", "maven": "0.6.0", "ostree": "2.1.3", "python": "3.10.0", "ansible": "0.20.1", "certguard": "1.7.0", "container": "2.16.2" } } ], "online_content_apps": [ { "name": "453@3bc88b3c988c", "last_heartbeat": "2023-10-24T08:49:57.837476Z", "versions": { "deb": "3.0.0", "gem": "0.3.0", "npm": "0.1.0a5.dev", "rpm": "3.23.0", "core": "3.38.0", "file": "1.15.0", "maven": "0.6.0", "ostree": "2.1.3", "python": "3.10.0", "ansible": "0.20.1", "certguard": "1.7.0", "container": "2.16.2" } }, { "name": "455@3bc88b3c988c", "last_heartbeat": "2023-10-24T08:49:57.837555Z", "versions": { "deb": "3.0.0", "gem": "0.3.0", "npm": "0.1.0a5.dev", "rpm": "3.23.0", "core": "3.38.0", "file": "1.15.0", "maven": "0.6.0", "ostree": "2.1.3", "python": "3.10.0", "ansible": "0.20.1", "certguard": "1.7.0", "container": "2.16.2" } } ], "database_connection": { "connected": true }, "redis_connection": { "connected": false }, "storage": { "total": 241367408640, "used": 191815774208, "free": 37216292864 }, "content_settings": { "content_origin": "http://jdariva:8282", "content_path_prefix": "/pulp/content/" }, "domain_enabled": false }

Describe the bug
The task created to sync a repository with a remote returns an error

{ "pulp_href": "/pulp/api/v3/tasks/018b6091-5e28-700e-8474-1bdc53907803/", "pulp_created": "2023-10-24T07:23:41.480849Z", "state": "failed", "name": "pulp_npm.app.tasks.synchronizing.synchronize", "logging_cid": "7832d0b6647e4518b872523ad53d0e28", "created_by": "/pulp/api/v3/users/1/", "started_at": "2023-10-24T07:23:41.521178Z", "finished_at": "2023-10-24T07:23:42.059580Z", "error": { "traceback": " File \"/usr/local/lib/python3.8/site-packages/pulpcore/tasking/tasks.py\", line 61, in _execute_task\n result = func(*args, **kwargs)\n File \"/tmp/pulp_npm/pulp_npm/app/tasks/synchronizing.py\", line 43, in synchronize\n return DeclarativeVersion(first_stage, repository, mirror=mirror).create()\n File \"/usr/local/lib/python3.8/site-packages/pulpcore/plugin/stages/declarative_version.py\", line 161, in create\n loop.run_until_complete(pipeline)\n File \"/usr/lib64/python3.8/asyncio/base_events.py\", line 616, in run_until_complete\n return future.result()\n File \"/usr/local/lib/python3.8/site-packages/pulpcore/plugin/stages/api.py\", line 220, in create_pipeline\n await asyncio.gather(*futures)\n File \"/usr/local/lib/python3.8/site-packages/pulpcore/plugin/stages/api.py\", line 41, in __call__\n await self.run()\n File \"/tmp/pulp_npm/pulp_npm/app/tasks/synchronizing.py\", line 101, in run\n package = Package(name=pkg[\"name\"], version=pkg[\"version\"])\n", "description": "'name'" }, "worker": "/pulp/api/v3/workers/018b5b70-eac6-7db9-a34f-97d4708ede9d/", "parent_task": null, "child_tasks": [], "task_group": null, "progress_reports": [ { "message": "Downloading Artifacts", "code": "sync.downloading.artifacts", "state": "canceled", "total": null, "done": 0, "suffix": null }, { "message": "Associating Content", "code": "associating.content", "state": "canceled", "total": null, "done": 0, "suffix": null } ], "created_resources": [], "reserved_resources_record": [ "/pulp/api/v3/repositories/npm/npm/018b5bef-14cb-7e68-877a-41e2e4ffc1b2/", "shared:/pulp/api/v3/remotes/npm/npm/018b5bd3-c6c6-72b9-9b2b-79432ad49900/", "shared:/pulp/api/v3/domains/018b1a00-f516-7f38-88ae-0099f0cd84af/" ] }

To Reproduce
I used an Ansible playbook to create the scenario using the pulp_npm API:

Create a npm remote with this data:
name: any name
url: https://registry.npmjs.org/
username: my npm username
password: my npm password

Create a npm repository with this data:
name: any name
description: a short description of the repo

Create a sync task linking the remote and the repository created.

Expected behavior
The synchronization works

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant