pulp / pulp/pulpcore

RFE - ignore repositories on Import

Open
#2,168 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Katello
Dominant language
Python
Stars
598
Forks
168
Avg merge
1d 4h
Merged PRs (30d)
86

Description

Topic
Import/Export

Problem
Katello needs the ability to restrict repositories that can be imported. Idea here is that the export archive can contain repositories that need special subscriptions that the user may not have. Ideally instead of failing on import katello should be able to tell pulp "Please only import these repositories". In a disconnected environment this can be particularly painful to fix.

Suggestion

https://docs.pulpproject.org/pulpcore/restapi.html#operation/importers_core_pulp_create
When we create an Importer, Katello provides a repository mapping. Given this Pulp should

  • Either add an additional repo_mapping_only or restricted parameter in the importer. If this is true pulp will only import things that are provided in the repo_mapping and ignore the rest. This could be an application wide setting also (alternatively)
  • OR Provide an exclude_repositories or include_repositories that takes a list of repository ids and ignores mapping those.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Pulp REST API Importers operation linked in the issue and trace how an Importer consumes the repository mapping during import. Clarify whether the intended completion criteria are mapping-only imports or an explicit include/exclude repository option, then verify the chosen behavior in the import flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.