Bug #31955
Need a dry run option to see content is importable
Status:
Closed
Priority:
Normal
Assignee:
Category:
Inter Server Sync
Target version:
Description
Pulp3 as of https://pulp.plan.io/issues/7549 added functionality to do dry run import-checks.
More documentation here -> https://docs.pulpproject.org/pulpcore/workflows/import-export.html#pre-validating-import-parameters
This will check if
- Paths are in ALLOWED_IMPORT_PATHS
- Containing directory exists
- Containing directory is readable
- Path/toc file(s) exist and are readable
- For TOC, containing directory is writeable
- repo_mapping is valid JSON
The import task needs to call this api and verify its response before starting the actual import.
(We are passing the toc location in params since repo mapping isn't generated yet)
Associated revisions
History
#1
Updated by Jonathon Turel about 1 year ago
- Triaged changed from No to Yes
- Target version set to Katello 4.1.0
#2
Updated by The Foreman Bot about 1 year ago
- Assignee set to Partha Aji
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/9248 added
#3
Updated by The Foreman Bot about 1 year ago
- Fixed in Releases Katello 4.2.0 added
#4
Updated by Partha Aji about 1 year ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|b41dfa2de87641028fcbbaa90409de6bfb4cd4ef.
Fixes #31955 - Pulp3 check for import path (#9248)
This commit adds code to check if the path provided in the hammer
content-import command is valid and useful by making use of the pulp
dry run api.