Actions
Task #7221
closedStory #6134: [EPIC] Pulp import/export
Add 'toc' info to the core export task
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 80
Quarter:
Description
Pulp generates a toc json file for every export, however the location of the file cannot be inferred from reading the export. This RFE is a request to add that info
Check the output of https://docs.pulpproject.org/restapi.html#operation/exporters_core_pulp_exports_read
{
"pulp_href": "http://example.com",
"pulp_created": "2019-08-24T14:15:22Z",
"task": "http://example.com",
"exported_resources": [
{}
],
"params": {},
"output_file_info": {}
}
Would be ideal if the ouput file info had the toc information.
Updated by daviddavis over 4 years ago
- Tracker changed from Issue to Task
- % Done set to 0
- Severity deleted (
2. Medium) - Triaged deleted (
No)
Updated by ggainey about 4 years ago
@paji - currently the toc-file is available from output_file_info
like so :
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"exported_resources": [
"/pulp/api/v3/repositories/rpm/rpm/56fb0b02-e590-4d03-9a8e-2c84c622d3ba/versions/1/",
"/pulp/api/v3/repositories/file/file/5ad15206-94d5-468c-ad89-5441d746bbfc/versions/1/"
],
"output_file_info": {
"/tmp/exports/export-8c44b66b-3145-4657-b718-759c04953ed7-20200825_1307-toc.json": "a104174f3bfd92002d9806b8bd3b05668944538eb5573077bb179d09443a1f58",
"/tmp/exports/export-8c44b66b-3145-4657-b718-759c04953ed7-20200825_1307.tar.gz.0000": "466d3ae843c4f89d9c41554c297d24312f1d5c753de7003ff0e049971477a296",
"/tmp/exports/export-8c44b66b-3145-4657-b718-759c04953ed7-20200825_1307.tar.gz.0001": "00c9d49453113d9ef00db8fd204b6541fc54380632e136f65dbae6385735f559",
"/tmp/exports/export-8c44b66b-3145-4657-b718-759c04953ed7-20200825_1307.tar.gz.0002": "12ddea172a6ea65c8a081b2957b03aec6d810ff82e56ea931c3b4c5a530ca9cb",
"/tmp/exports/export-8c44b66b-3145-4657-b718-759c04953ed7-20200825_1307.tar.gz.0003": "097a291ea503691a08a816ee608200428465d92dc63cdd462cb8d8279161605d",
"/tmp/exports/export-8c44b66b-3145-4657-b718-759c04953ed7-20200825_1307.tar.gz.0004": "4a0b8a194ae7af21b6c8a46cd207c0e709206021c4b0a6fd72b37a6bb51a28d2",
"/tmp/exports/export-8c44b66b-3145-4657-b718-759c04953ed7-20200825_1307.tar.gz.0005": "9fe0f4d74eade9cbcb2026c3a2a8e54bf26e88a1739915f5f7a201a0f3c9ca76",
"/tmp/exports/export-8c44b66b-3145-4657-b718-759c04953ed7-20200825_1307.tar.gz.0006": "ce82174e859be2c2a29d97427f3a25a26498fbdedd467d489bc66211ec39b4b1",
"/tmp/exports/export-8c44b66b-3145-4657-b718-759c04953ed7-20200825_1307.tar.gz.0007": "b81e1f78068b5f66c56d93ce35105a3766ff6fc83be8e0cfa377f206c6881bda",
"/tmp/exports/export-8c44b66b-3145-4657-b718-759c04953ed7-20200825_1307.tar.gz.0008": "2248e90892bbbdcb7b0ca04d1e0d306753424abb302b63f6eae3a0d4b541078c",
"/tmp/exports/export-8c44b66b-3145-4657-b718-759c04953ed7-20200825_1307.tar.gz.0009": "fc139b1702dcfdee021de29b16885632ace1ccf9ef8fce89e7bde90ccae4c6ce",
"/tmp/exports/export-8c44b66b-3145-4657-b718-759c04953ed7-20200825_1307.tar.gz.0010": "2c2b8b8dc00b80019a013c4712cd101f061052b0c9d36ef4e067934994824b74",
"/tmp/exports/export-8c44b66b-3145-4657-b718-759c04953ed7-20200825_1307.tar.gz.0011": "42a66a5d5bd22b7d9f1af4c80c57f4b974dc45356ba9c000b185612f00bc024b"
},
"params": {
"chunk_size": "5Kb"
},
"pulp_created": "2020-08-25T13:07:36.083820Z",
"pulp_href": "/pulp/api/v3/exporters/core/pulp/9cb0bf06-fa5b-4163-9b97-dc89a53192e2/exports/8c44b66b-3145-4657-b718-759c04953ed7/",
"task": "/pulp/api/v3/tasks/919a7ff0-8dea-4be2-83e6-971214302bfb/"
}
]
}
IIRC, with this issue you were looking to have the TOC explicitly available as its own attribute - something like "toc_file": (full-path-to-table-of-contents)
, correct?
Updated by ggainey about 4 years ago
Proposing JSON such as
"toc_info": {
"file": "/tmp/exports/export-8c44b66b-3145-4657-b718-759c04953ed7-20200825_1307-toc.json",
"sha256": "a104174f3bfd92002d9806b8bd3b05668944538eb5573077bb179d09443a1f58",
}
Updated by ggainey about 4 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ggainey
- Groomed changed from No to Yes
- Sprint set to Sprint 80
Updated by ggainey about 4 years ago
- Status changed from ASSIGNED to POST
Added by ggainey about 4 years ago
Updated by ggainey about 4 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulpcore|2b053796e477dc62581cf31ef37057aa68cbd727.
Updated by pulpbot about 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Store toc_info as a separate attribute on PulpExport.
Updated/corrected Field comments on PulpExport. Added a line to test for toc_info to tests.
closes #7221