https://pulp.plan.io/https://pulp.plan.io/favicon.ico2016-11-14T19:05:25ZPulpPulp - Issue #2422: pulp-admin 2.7 does not work with pulp-server 2.10 (pulp-rpm to be more specific)https://pulp.plan.io/issues/2422?journal_id=157802016-11-14T19:05:25Zmihai.ibanescu@gmail.commihai.ibanescu@gmail.com
<ul></ul><p>As a suggestion:</p>
<p><a href="https://github.com/pulp/pulp_rpm/blob/2.10-release/plugins/pulp_rpm/plugins/importers/yum/upload.py#L398" class="external">https://github.com/pulp/pulp_rpm/blob/2.10-release/plugins/pulp_rpm/plugins/importers/yum/upload.py#L398</a></p>
<p>That's one of the problem - it should at least filter it though self._fields.</p>
<p>It is also where checksum_type could be rewritten as checkumtype since the plugin developer knew it has changed.</p> Pulp - Issue #2422: pulp-admin 2.7 does not work with pulp-server 2.10 (pulp-rpm to be more specific)https://pulp.plan.io/issues/2422?journal_id=158312016-11-15T17:53:59Zbmbouterbmbouter@redhat.com
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/15831/diff?detail_id=16552">diff</a>)</li></ul><p>The API is governed by semver so what you've identified is an unexpected backwards incompatible change. Semver was adopted after the Pulp 2.4 release.</p>
<p>In theory features offered in older clients (2.4+) should work with newer Pulp server 2.4+ instances. In changing field names, care was taken to prevent regressions but apparently some aspect of this endpoint did regress.</p>
<p>To help us resolve this issue can you provide a curl or httpie reproducer. Or at a minimum could you paste the `-vv` output of pulp-admin 2.7 during that upload call. It would make the issue a lot easier to resolve than trying to bring back a vintage pulp-admin in a dev environment.</p> Pulp - Issue #2422: pulp-admin 2.7 does not work with pulp-server 2.10 (pulp-rpm to be more specific)https://pulp.plan.io/issues/2422?journal_id=158332016-11-15T17:59:16Zmihai.ibanescu@gmail.commihai.ibanescu@gmail.com
<ul></ul><pre><code>2016-11-15 12:43:02,455 - DEBUG - sending POST request to /pulp/api/v2/repositories/yocto-x86_64/actions/import_upload/
2016-11-15 12:43:02,601 - INFO - POST request to /pulp/api/v2/repositories/yocto-x86_64/actions/import_upload/ with parameters {"override_config": {}, "unit_type_id": "rpm", "upload_id": "c9ed44ea-65da-4764-b74b-f8061d341546", "unit_key": {}, "unit_metadata": {"checksum_type": null}}
2016-11-15 12:43:02,601 - INFO - Response status : 202
2016-11-15 12:43:02,601 - INFO - Response body :
{
"spawned_tasks": [
{
"_href": "/pulp/api/v2/tasks/21a81a9f-f662-4908-84e0-30686fd6d4c2/",
"task_id": "21a81a9f-f662-4908-84e0-30686fd6d4c2"
}
],
"result": null,
"error": null
}
This command may be exited via ctrl+c without affecting the request.
[-]
Running...
2016-11-15 12:43:03,602 - DEBUG - sending GET request to /pulp/api/v2/tasks/21a81a9f-f662-4908-84e0-30686fd6d4c2/
2016-11-15 12:43:03,739 - INFO - GET request to /pulp/api/v2/tasks/21a81a9f-f662-4908-84e0-30686fd6d4c2/ with parameters None
2016-11-15 12:43:03,739 - INFO - Response status : 200
2016-11-15 12:43:03,739 - INFO - Response body :
{
"exception": null,
"task_type": "pulp.server.managers.content.upload.import_uploaded_unit",
"_href": "/pulp/api/v2/tasks/21a81a9f-f662-4908-84e0-30686fd6d4c2/",
"task_id": "21a81a9f-f662-4908-84e0-30686fd6d4c2",
"tags": [
"pulp:repository:yocto-x86_64",
"pulp:action:import_upload"
],
"finish_time": "2016-11-15T17:57:59Z",
"_ns": "task_status",
"start_time": "2016-11-15T17:57:59Z",
"traceback": "Traceback (most recent call last):\n File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 240, in trace_task\n R = retval = fun(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 488, in __call__\n return super(Task, self).__call__(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 103, in __call__\n return super(PulpTask, self).__call__(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 437, in __protected_call__\n return self.run(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/managers/content/upload.py\", line 223, in import_uploaded_unit\n unit_type=unit_type_id, summary=result['summary'], details=result['details']\nPulpCodedException: The importer yum_importer indicated a failed response when uploading rpm unit to repository yocto-x86_64.\n",
"spawned_tasks": [],
"progress_report": {},
"queue": "reserved_resource_worker-0@pulp-dev-win.unx.sas.com.dq",
"state": "error",
"worker_name": "reserved_resource_worker-0@pulp-dev-win.unx.sas.com",
"result": null,
"error": {
"code": "PLP0047",
"data": {
"unit_type": "rpm",
"importer_id": "yum_importer",
"repo_id": "yocto-x86_64",
"details": {
"errors": [
"unexpected error occurred importing uploaded file: The field 'checksum_type' does not exist on the document 'RPM'"
]
},
"summary": ""
},
"description": "The importer yum_importer indicated a failed response when uploading rpm unit to repository yocto-x86_64.",
"sub_errors": []
},
"_id": {
"$oid": "582b4ca77f5187661abe7e67"
},
"id": "582b4ca77f5187661abe7e67"
[\]
Running...
Task Failed
The importer yum_importer indicated a failed response when uploading rpm unit to
repository yocto-x86_64.
Deleting the upload request...
2016-11-15 12:43:03,740 - DEBUG - sending DELETE request to /pulp/api/v2/content/uploads/c9ed44ea-65da-4764-b74b-f8061d341546/
2016-11-15 12:43:03,868 - INFO - DELETE request to /pulp/api/v2/content/uploads/c9ed44ea-65da-4764-b74b-f8061d341546/ with parameters None
2016-11-15 12:43:03,868 - INFO - Response status : 200
2016-11-15 12:43:03,868 - INFO - Response body :
null
... completed
</code></pre> Pulp - Issue #2422: pulp-admin 2.7 does not work with pulp-server 2.10 (pulp-rpm to be more specific)https://pulp.plan.io/issues/2422?journal_id=158342016-11-15T18:00:37Zbizhangbizhang@redhat.com
<ul><li><strong>Severity</strong> changed from <i>2. Medium</i> to <i>3. High</i></li><li><strong>Groomed</strong> changed from <i>No</i> to <i>Yes</i></li></ul> Pulp - Issue #2422: pulp-admin 2.7 does not work with pulp-server 2.10 (pulp-rpm to be more specific)https://pulp.plan.io/issues/2422?journal_id=158372016-11-15T18:02:35Zbizhangbizhang@redhat.com
<ul><li><strong>Triaged</strong> changed from <i>No</i> to <i>Yes</i></li><li><strong>Groomed</strong> changed from <i>Yes</i> to <i>No</i></li></ul> Pulp - Issue #2422: pulp-admin 2.7 does not work with pulp-server 2.10 (pulp-rpm to be more specific)https://pulp.plan.io/issues/2422?journal_id=158402016-11-15T18:12:59Zmihai.ibanescu@gmail.commihai.ibanescu@gmail.com
<ul></ul><pre><code>rpm -q pulp-admin-client
pulp-admin-client-2.7.1-1.el7.noarch
</code></pre> Pulp - Issue #2422: pulp-admin 2.7 does not work with pulp-server 2.10 (pulp-rpm to be more specific)https://pulp.plan.io/issues/2422?journal_id=370272019-04-12T19:43:11Zbmbouterbmbouter@redhat.com
<ul><li><strong>Status</strong> changed from <i>NEW</i> to <i>CLOSED - WONTFIX</i></li></ul> Pulp - Issue #2422: pulp-admin 2.7 does not work with pulp-server 2.10 (pulp-rpm to be more specific)https://pulp.plan.io/issues/2422?journal_id=371552019-04-12T19:51:28Zbmbouterbmbouter@redhat.com
<ul></ul><p>Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the <a href="https://www.redhat.com/mailman/listinfo/pulp-dev" class="external">developer mailing list</a>.</p> Pulp - Issue #2422: pulp-admin 2.7 does not work with pulp-server 2.10 (pulp-rpm to be more specific)https://pulp.plan.io/issues/2422?journal_id=385602019-04-15T20:23:24Zbmbouterbmbouter@redhat.com
<ul><li><strong>Tags</strong> <i>Pulp 2</i> added</li></ul>