Skip to content

Document foremanctl impact on Pulp import/export paths - #4905

Merged
aneta-petrova merged 4 commits into
theforeman:masterfrom
aneta-petrova:foremanctl-pulp-import-export-path
Jun 24, 2026
Merged

Document foremanctl impact on Pulp import/export paths#4905
aneta-petrova merged 4 commits into
theforeman:masterfrom
aneta-petrova:foremanctl-pulp-import-export-path

Conversation

@aneta-petrova

@aneta-petrova aneta-petrova commented Jun 4, 2026

Copy link
Copy Markdown
Member

What changes are you introducing?

  • Updating existing information on allowed import paths for foremanctl
  • Adding a snippet with information on export paths

Why are you introducing these changes? (Explanation, links to references, issues, etc.)

theforeman/foremanctl#455
https://github.com/theforeman/foremanctl/blob/744ba31fd0ee4e4a74eef97e2c705acca1b2961d/src/roles/pulp/defaults/main.yaml#L29-L30
theforeman/foremanctl#445

Anything else to add? (Considerations, potential downsides, alternative solutions you have explored, etc.)

Assisted-by: Cursor

Contributor checklists

  • I am okay with my commits getting squashed when you merge this PR.
  • I am familiar with the contributing guidelines.

Please cherry-pick my commits into:

  • Foreman 3.19/Katello 4.21
  • Foreman 3.18/Katello 4.20 (Satellite 6.19)
  • Foreman 3.17/Katello 4.19
  • Foreman 3.16/Katello 4.18 (Satellite 6.18; orcharhino 7.6, 7.7, and 7.8)
  • Foreman 3.15/Katello 4.17
  • Foreman 3.14/Katello 4.16 (Satellite 6.17; orcharhino 7.4; orcharhino 7.5)
  • Foreman 3.13/Katello 4.15 (EL9 only)
  • Foreman 3.12/Katello 4.14 (Satellite 6.16; orcharhino 7.2 on EL9 only; orcharhino 7.3)
  • We do not accept PRs for Foreman older than 3.12.

@github-actions github-actions Bot added Needs tech review Requires a review from the technical perspective Needs style review Requires a review from docs style/grammar perspective Needs testing Requires functional testing labels Jun 4, 2026
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

The PR preview for d8df5b5 is available at theforeman-foreman-documentation-preview-pr-4905.surge.sh

No diff compared to the current base

show diff

@aneta-petrova

Copy link
Copy Markdown
Member Author

Hi @aidenfine, can you please take a look at this PR and let me know if you think these are the changes needed to cover theforeman/foremanctl#455?

Note that the preview links in #4905 (comment) include containerized and non-containerized docs preview builds. So for example to review the foremanctl changes, the right HTML builds to look at would be mainly https://theforeman-foreman-documentation-preview-pr-4905.surge.sh/nightly/Managing_Content/index-containerized-katello.html.

@aneta-petrova aneta-petrova changed the title Foremanctl pulp import export path Document foremanctl impact on Pulp import/export paths Jun 4, 2026

@vsedmik vsedmik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left one note bellow which is going to be addressed by another PR I have been told, so ACK here, looks good to me. 👍

@maximiliankolb maximiliankolb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two minor suggestion, overall LGTM style-wise.

I also suggest to swap the order in the snippet file name:

$ fd snip_ | rg prereq
guides/common/modules/snip_prerequisite-activation-key-available.adoc
guides/common/modules/snip_prerequisite-configured-smart-proxy-registration-provisioning.adoc
guides/common/modules/snip_prerequisite-networking-for-provisioning.adoc
guides/common/modules/snip_prerequisite-project-client-repository-ak.adoc
guides/common/modules/snip_prerequisite-project-client-repository-enabled.adoc
guides/common/modules/snip_prerequisite-repositories-with-oscap.adoc
guides/common/modules/snip_prerequisites-common-compute-resource.adoc
guides/common/modules/snip_prerequisites-configuring-smartproxyservers-for-load-balancing.adoc
guides/common/modules/snip_prerequisites-deploying-ca-cert-rex.adoc
guides/common/modules/snip_registering-a-host-prerequisites.adoc

So maybe "snip_prerequisite-allowed-export-paths.adoc`.

Comment thread guides/common/modules/snip_allowed-export-paths-prerequisite.adoc
@maximiliankolb

Copy link
Copy Markdown
Contributor

Tech wise, I think that foreman-installer can already configure those paths in some cases, so I would appreciated it someone double-checked this:

# foreman-installer --full-help | grep -i import
    --foreman-proxy-puppet                                                               Enable Puppet module for environment imports and Puppet runs (current: true)
    --foreman-proxy-content-pulpcore-additional-import-paths                             Additional allowed paths that Pulpcore can use for content imports, or sync from using file:// protocol (current: [])
    --reset-foreman-proxy-content-pulpcore-additional-import-paths                       Reset pulpcore_additional_import_paths to the default value ([])
    --foreman-proxy-content-pulpcore-import-workers-percent                              What percentage of available-workers will pulpcore use for import tasks at a time (current: UNDEF)
    --reset-foreman-proxy-content-pulpcore-import-workers-percent                        Reset pulpcore_import_workers_percent to the default value (UNDEF)
# foreman-installer --full-help | grep -i export
    --foreman-proxy-content-pulpcore-additional-export-paths                             Additional allowed paths that Pulpcore can use for content exports (current: [])
    --reset-foreman-proxy-content-pulpcore-additional-export-paths                       Reset pulpcore_additional_export_paths to the default value ([])

Tested on Foreman 3.18/Katello 4.20.

@ekohl ekohl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep the installer and foremanctl commands in sync as much as possible. I realize it was already wrong before, but this is a good opportunity to fix it. Note that users who manually modify settings.py will lose the value on the next installer run and we also can't migrate them from non-containerized to containerized. For that latter part is exactly why we maintain the parameter mapping.

Comment thread guides/common/modules/proc_importing-syncable-exports.adoc Outdated
Comment thread guides/common/modules/proc_importing-syncable-exports.adoc Outdated
Comment thread guides/common/modules/snip_allowed-export-paths-prerequisite.adoc Outdated
@pr-processor pr-processor Bot added the Waiting on contributor Requires an action from the author label Jun 5, 2026
@aidenfine

Copy link
Copy Markdown

Hi @aidenfine, can you please take a look at this PR and let me know if you think these are the changes needed to cover theforeman/foremanctl#455?

Note that the preview links in #4905 (comment) include containerized and non-containerized docs preview builds. So for example to review the foremanctl changes, the right HTML builds to look at would be mainly https://theforeman-foreman-documentation-preview-pr-4905.surge.sh/nightly/Managing_Content/index-containerized-katello.html.

Sorry for late reply. I would agree with what @ekohl is saying.

@aneta-petrova
aneta-petrova force-pushed the foremanctl-pulp-import-export-path branch from 2b1e51d to 01a5f7a Compare June 12, 2026 14:24
@pr-processor pr-processor Bot added Needs re-review and removed Waiting on contributor Requires an action from the author labels Jun 12, 2026
@aneta-petrova
aneta-petrova force-pushed the foremanctl-pulp-import-export-path branch 2 times, most recently from 92cda25 to 40cc4da Compare June 12, 2026 14:47
@aneta-petrova

Copy link
Copy Markdown
Member Author

The Unused modules failure is probably due to https://github.com/theforeman/foreman-documentation/pull/4899/changes having been merged: Because the containerized guide's preview is empty, the new module seems unused. And it is unused right now, but won't be when we start exposing and publishing the containerized contents.

@aneta-petrova aneta-petrova added testing done No issues from the functional perspective and removed Needs testing Requires functional testing labels Jun 12, 2026
@aneta-petrova

aneta-petrova commented Jun 12, 2026

Copy link
Copy Markdown
Member Author

The Unused modules failure is probably due to https://github.com/theforeman/foreman-documentation/pull/4899/changes having been merged: Because the containerized guide's preview is empty, the new module seems unused. And it is unused right now, but won't be when we start exposing and publishing the containerized contents.

By the way, this is also the reason why the diff in #4905 (comment) is empty, so to review this type of change, there is no preview and looking at the changed lines should be enough.

@aneta-petrova

Copy link
Copy Markdown
Member Author

Hi @aidenfine and/or @ekohl, can you please re-review?

@aidenfine aidenfine left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM matches PR I created. Please have @ekohl also review since he may know in depth details about this :)

@maximiliankolb maximiliankolb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style-wise LGTM

@maximiliankolb maximiliankolb added style review done No issues from docs style/grammar perspective and removed Needs style review Requires a review from docs style/grammar perspective labels Jun 16, 2026
@aneta-petrova
aneta-petrova force-pushed the foremanctl-pulp-import-export-path branch from 40cc4da to 5d976d2 Compare June 23, 2026 08:46
Comment thread guides/common/modules/snip_allowed-export-paths-prerequisite.adoc
@aneta-petrova aneta-petrova added tech review done No issues from the technical perspective and removed Needs tech review Requires a review from the technical perspective labels Jun 23, 2026
@aneta-petrova

Copy link
Copy Markdown
Member Author

@maximiliankolb I extended the script and raised #4964 to track the exception. Can you please re-review?

@maximiliankolb maximiliankolb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Anet, LGTM!

Comment thread guides/scripts/find_unused_modules Outdated

# containerized content build isn't published
# https://github.com/theforeman/foreman-documentation/issues/....
unused.delete('guides/common/modules/snip_allowed-export-paths-prerequisite.adoc')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noting down my thought and don't feel you need to implement this now. I wondered if we could force the cleanup of this somehow. Should be relatively straight forward by checking it actually deleted something.

Suggested change
unused.delete('guides/common/modules/snip_allowed-export-paths-prerequisite.adoc')
unless unused.delete('guides/common/modules/snip_allowed-export-paths-prerequisite.adoc')
puts "Close https://github.com/theforeman/foreman-documentation/issues/4964"
exit 1
end

@aneta-petrova
aneta-petrova force-pushed the foremanctl-pulp-import-export-path branch from f4dc8b7 to d8df5b5 Compare June 24, 2026 07:37
@aneta-petrova
aneta-petrova merged commit 28dbec9 into theforeman:master Jun 24, 2026
12 checks passed
@aneta-petrova
aneta-petrova deleted the foremanctl-pulp-import-export-path branch June 24, 2026 07:47
@aneta-petrova

Copy link
Copy Markdown
Member Author

Thanks, everyone!

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

Labels

style review done No issues from docs style/grammar perspective tech review done No issues from the technical perspective testing done No issues from the functional perspective

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants