Pulp in an Offline Environment

I am looking at utilising pulp in an offline setting and wanted to ask some questions about its feasibility for this.

Would anyone be able to help answer the following:

  • Is there an export function to pull, either all repos, or specified ones?
  • If this is possible, are partial exports a possibility so that only smaller subsets of data are transferred?
  • Would any functionality break in pulp without connection to the internet?

Any help with the above questions would be greatly appreciated.

1 Like

Good questions to start, I’ll attempt at briefly answering them here, but I urge you to scan the documentation on https://pulpproject.org/ .

  • Pulp Import Export (PIE) is there and can be used to transfer a subset (or all, but you need to list all) of repositories from one instance to another.
  • There is a concept of incremental export. It may or may not be exactly what you outlined there.
  • Pulp is perfectly able to run on an “air gaped” isolated network.

Support for PIE however varies from plugin to plugin.

Thank you very much for your swift response :grinning:

A followup question given your feedback, is it supported for both RPM and APT repos?

Think of it this way: You can use the full functionality of Pulp to manipulate repositories on your exporting Pulp instance before you export them. Also you may choose to export just a subset of repositories. So for example you might choose not to export the repositories you synchronize to on your exporting Pulp instance, but instead copy a subset of what was synchronized to a new repository and then export that.

Both pulp_rpm and pulp_deb have the export/import feature, but I am not 100% sure if there are any limitations on what can and cannot be exported.

1 Like

Thank you both very much for your help.

I have created both Rocky (RPM) and Ubuntu (DEB) repositories. Whilst I’ve had no issues with the Rocky repo, I got this error whilst trying to export the Ubuntu repo:

Could I be missing a dependency, made a mistake or are Ubuntu repos not supported?

I am afraid I don’t have a full answer of the top of my head, and I don’t have time to investigate, which is why I will simply post what I do know for now: I know Ubuntu repositories can be exported. I don’t know if they can be exported via Pulp CLI or what the correct CLI syntax for doing so is.

1 Like

I would guess, that the cli support is simply missing.
(“Capability” is a cli/glue concept.)

I did attempt using curl to create the exporter but got the same error.

I used the repo href and the error was identical :frowning:

Can you post a reproducer workflow (exact API commands you ran)?

And also what core/plugin versions do you have installed (can be found by running pulp status using the CLI)?

1 Like