Problem:
Pulp repositories on immediate or on_demand cannot be easily put into “offline” mode.
More specifically, Pulp will download every requested artifacts (when possible) if it can, and this behaviour does not seem to be easily configured.
Expected outcome:
Pulp repositories in immediate or on_demand should be always able to be put in “offline” mode in which
Pulpcore version:
3.43.1
Pulp plugins installed and their versions:
pulp_deb: 3.1.1
pulp_file: 1.16.0
pulp_container: 2.17.0
Operating system - distribution and version:
GNU/Linux - Ubuntu 22.04 (jammy)
Other relevant data:
This is more of a question than an actual problem. Some tools similar to Pulp (e.g. JFrog’s artifactory) have an easy way to put repositories (mirrors) in “offline” mode, which disables downloading from a remote. I wonder if Pulp has something similar.
This is particularly useful to prevent accidental, large downloads, that could waste a large amount of resources (e.g. network, time). Also, as the setting of online/offline is easy to toggle, temporarily the repository online for acquiring new artifacts and syncing is not a demanding task.
I am also open for suggestions on how to workaround the lack of this feature, if it is not really implemented. For reference, I am setting up pulp using the OCI images.