Project

Profile

Help

Issue #7208

Error during sync : Path is duplicated

Added by ipanova@redhat.com 3 months ago. Updated 2 months ago.

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

Description

Sync repo http://ftp.cs.stanford.edu/centos/7/opstools/x86_64/ and observe traceback

$ http GET $BASE_ADDR/pulp/api/v3/tasks/91ae8e5d-bb4f-4151-a5c3-d24a3c04d81e/
HTTP/1.1 200 OK
Allow: GET, PATCH, DELETE, HEAD, OPTIONS
Connection: close
Content-Length: 2558
Content-Type: application/json
Date: Fri, 24 Jul 2020 10:42:54 GMT
Server: gunicorn/20.0.4
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "child_tasks": [],
    "created_resources": [],
    "error": {
        "description": "Cannot create repository version. Path is duplicated: rubygem-elasticsearch-doc-1.0.8-1.el7.noarch.rpm.",
        "traceback": "  File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/worker.py\", line 886, in perform_job\n    rv = job.perform()\n  File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py\", line 664, in perform\n    self._result = self._execute()\n  File \"/usr/local/lib/pulp/lib64/python3.6/site-packages/rq/job.py\", line 670, in _execute\n    return self.func(*self.args, **self.kwargs)\n  File \"/home/vagrant/devel/pulp_rpm/pulp_rpm/app/tasks/synchronizing.py\", line 206, in synchronize\n    dv.create()\n  File \"/home/vagrant/devel/pulpcore/pulpcore/plugin/stages/declarative_version.py\", line 148, in create\n    loop.run_until_complete(pipeline)\n  File \"/home/vagrant/devel/pulpcore/pulpcore/app/models/repository.py\", line 775, in __exit__\n    repository.finalize_new_version(self)\n  File \"/home/vagrant/devel/pulp_rpm/pulp_rpm/app/models/repository.py\", line 145, in finalize_new_version\n    validate_repo_version(new_version)\n  File \"/home/vagrant/devel/pulpcore/pulpcore/plugin/repo_version_utils.py\", line 141, in validate_repo_version\n    validate_version_paths(version)\n  File \"/home/vagrant/devel/pulpcore/pulpcore/plugin/repo_version_utils.py\", line 128, in validate_version_paths\n    raise ValueError(_(\"Cannot create repository version. {err}.\").format(err=e))\n"
    },
    "finished_at": "2020-07-24T10:40:27.431030Z",
    "name": "pulp_rpm.app.tasks.synchronizing.synchronize",
    "parent_task": null,
    "progress_reports": [
        {
            "code": "downloading.metadata",
            "done": 4,
            "message": "Downloading Metadata Files",
            "state": "completed",
            "suffix": null,
            "total": null
        },
        {
            "code": "downloading.artifacts",
            "done": 0,
            "message": "Downloading Artifacts",
            "state": "completed",
            "suffix": null,
            "total": null
        },
        {
            "code": "associating.content",
            "done": 1069,
            "message": "Associating Content",
            "state": "completed",
            "suffix": null,
            "total": null
        },
        {
            "code": "parsing.packages",
            "done": 1069,
            "message": "Parsed Packages",
            "state": "completed",
            "suffix": null,
            "total": 1069
        }
    ],
    "pulp_created": "2020-07-24T10:40:14.425149Z",
    "pulp_href": "/pulp/api/v3/tasks/91ae8e5d-bb4f-4151-a5c3-d24a3c04d81e/",
    "reserved_resources_record": [
        "/pulp/api/v3/remotes/rpm/rpm/57f994cf-4caf-4c37-b631-0eefdab2b8a1/",
        "/pulp/api/v3/repositories/rpm/rpm/9da9008b-937b-468a-bbaa-f3786b4b7b15/"
    ],
    "started_at": "2020-07-24T10:40:14.597862Z",
    "state": "failed",
    "task_group": null,
    "worker": "/pulp/api/v3/workers/9ab80819-e321-4187-83ef-4d8adafd3d80/"
}

(pulp) [vagrant@pulp2-nightly-pulp3-source-centos7 _scripts]$ 

History

#1 Updated by ttereshc 3 months ago

There are 2 of them indeed, different by location_href and checksum :/

<package type="rpm">
  <name>rubygem-elasticsearch-doc</name>
  <arch>noarch</arch>
  <version epoch="0" ver="1.0.8" rel="1.el7"/>
  <checksum type="sha256" pkgid="YES">beb1c816b3df53b53e544865eb4a823989522627ac905db6c5061b45bc2f4de0</checksum>
  <summary>Documentation for rubygem-elasticsearch</summary>
  <description>Documentation for rubygem-elasticsearch.</description>
  <packager>CBS &lt;cbs@centos.org&gt;</packager>
  <url>http://github.com/elasticsearch/elasticsearch-ruby</url>
  <time file="1493661231" build="1460639359"/>
  <size package="72024" installed="177000" archive="187056"/>
<location href="fluentd/rubygem-elasticsearch-doc-1.0.8-1.el7.noarch.rpm"/>
...
<package type="rpm">
  <name>rubygem-elasticsearch-doc</name>
  <arch>noarch</arch>
  <version epoch="0" ver="1.0.8" rel="1.el7"/>
  <checksum type="sha256" pkgid="YES">5be0c906ff3c21e2755c1b60da5011cb771147dfa27e817f12a7488803e71d0c</checksum>
  <summary>Documentation for rubygem-elasticsearch</summary>
  <description>Documentation for rubygem-elasticsearch.</description>
  <packager>CBS &lt;cbs@centos.org&gt;</packager>
  <url>http://github.com/elasticsearch/elasticsearch-ruby</url>
  <time file="1497443660" build="1460639359"/>
  <size package="72024" installed="177000" archive="187056"/>
<location href="logging/rubygem-elasticsearch-doc-1.0.8-1.el7.noarch.rpm"/>

#2 Updated by ttereshc 3 months ago

as for dnf behaviour, so far I got " ttereshc: When choices are identical, then solver could pick random option."

#3 Updated by ttereshc 2 months ago

  • Triaged changed from No to Yes

Please register to edit this issue

Also available in: Atom PDF