Project

General

Profile

Bug #31955

Need a dry run option to see content is importable

Added by Partha Aji almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Inter Server Sync
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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

Revision b41dfa2d (diff)
Added by Partha Aji over 1 year ago

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.

History

#1 Updated by Jonathon Turel almost 2 years ago

  • Triaged changed from No to Yes
  • Target version set to Katello 4.1.0

#2 Updated by The Foreman Bot over 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 over 1 year ago

  • Fixed in Releases Katello 4.2.0 added

#4 Updated by Partha Aji over 1 year ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF