Bug 2227903 - Can't rerun a failed content-import task if it was exported using chunks
Summary: Can't rerun a failed content-import task if it was exported using chunks
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.12.1
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: 6.12.5
Assignee: satellite6-bugs
QA Contact: Vladimír Sedmík
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-31 19:30 UTC by Odilon Sousa
Modified: 2023-08-11 21:18 UTC (History)
9 users (show)

Fixed In Version: pulpcore-3.18.19
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2173757
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github pulp pulpcore issues 3737 0 None closed Can't rerun a failed content-import task if it was exported using chunks 2023-07-31 19:30:14 UTC
Red Hat Issue Tracker SAT-16258 0 None None None 2023-07-31 19:30:14 UTC
Red Hat Issue Tracker SAT-19288 0 None None None 2023-07-31 19:31:30 UTC

Comment 2 Vladimír Sedmík 2023-08-08 14:06:06 UTC
Verified in 6.12.5 snap 2 (python39-pulpcore-3.18.25-1.el8pc.noarch)

Steps to verify:

On export SAT:
1) Set immediate download policy, uploaded manifest.
2) Synced RH repo big enough to be chunked (rhel-9-for-x86_64-baseos-rpms).
3) Exported complete Library using chunks:
# hammer content-export complete library --organization-id 1 --chunk-size-gb 1

On import SAT:
1) Set immediate download policy, uploaded manifest, set "Export Sync" in CDN configuration.
2) Created import dir, copied the content from the export SAT, updated owner. 
# rsync -aPz root@$EXP_SAT:/var/lib/pulp/exports/Default_Organization/Export-Library/1.0/$TIME/ /var/lib/pulp/imports/$TIME/
# chown -R pulp:pulp /var/lib/pulp/imports/
3) Started the import and once the chunks were gone (merged into single tar.gz), restarted the services:
# hammer content-import library --organization="Default Organization" --path="/var/lib/pulp/imports/$TIME/"
# foreman-maintain service restart
4) Started the import again and let it finish -> the task succeeded.
5) Checked that the imported content matched the export.


Note You need to log in before you can comment on or make changes to this bug.