Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE - ignore repositories on Import #2168

Open
parthaa opened this issue Jan 28, 2022 · 3 comments
Open

RFE - ignore repositories on Import #2168

parthaa opened this issue Jan 28, 2022 · 3 comments

Comments

@parthaa
Copy link
Contributor

parthaa commented Jan 28, 2022

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.
@parthaa
Copy link
Contributor Author

parthaa commented Jan 28, 2022

parthaa added a commit to parthaa/pulpcore that referenced this issue Jan 31, 2022
Customers want the flexibility in their import archive (since they tend
to be in disconnected environments.) This patch introduces a
IMPORT_MAPPED_REPOS_ONLY application wide setting that allows pulp to
turn on the "leniency" mode and import only the repositories specified
in the importer repository mapping and ignore the rest. The default
behavior remains the same (IMPORT_MAPPED_REPOS_ONLY is false by
default)
parthaa added a commit to parthaa/pulpcore that referenced this issue Jan 31, 2022
Fixes pulp#2168
Customers want flexibility in their import archive (since they tend
to be in disconnected environments.) This patch introduces a
IMPORT_MAPPED_REPOS_ONLY application wide setting that allows pulp to
turn on the "leniency" mode and import only the repositories specified
in the importer repository mapping and ignore the rest. The default
behavior remains the same (IMPORT_MAPPED_REPOS_ONLY is false by
default)
parthaa added a commit to parthaa/pulpcore that referenced this issue Jan 31, 2022
Fixes pulp#2168
Customers want flexibility in their import archive (since they tend
to be in disconnected environments.) This patch introduces a
IMPORT_MAPPED_REPOS_ONLY application wide setting that allows pulp to
turn on the "leniency" mode and import only the repositories specified
in the importer repository mapping and ignore the rest. The default
behavior remains the same (IMPORT_MAPPED_REPOS_ONLY is false by
default)
@dralley dralley added Feature and removed Story labels Feb 2, 2022
@stale
Copy link

stale bot commented May 24, 2022

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

@stale stale bot added the stale label May 24, 2022
@dralley dralley removed the stale label May 25, 2022
@stale
Copy link

stale bot commented May 25, 2022

This issue is no longer marked for closure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants