Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionGanesh Payelkar
2021-12-02 12:17:07 UTC
Description of problem:
[RFE] Add options to change the import and export path in /etc/pulp/settings.py
Version-Release number of selected component (if applicable):
satellite-6.10
How reproducible:
New installation
Actual results:
There is no option available through custom-hiera.yaml or satellite-installer to change the below directories to custom path
# cat /etc/pulp/settings.py
ALLOWED_IMPORT_PATHS = ["/var/lib/pulp/sync_imports", "/var/lib/pulp/imports"]
ALLOWED_EXPORT_PATHS = ["/var/lib/pulp/exports"]
It seems to be a hard-coded in the configuration :
# cat /usr/share/foreman-installer/modules/foreman_proxy_content/manifests/init.pp |grep -iE "sync_imports|imports"
$pulpcore_allowed_import_path = ['/var/lib/pulp/sync_imports']
$pulpcore_allowed_import_path = ['/var/lib/pulp/sync_imports', '/var/lib/pulp/imports']
# cat /usr/share/foreman-installer/modules/pulpcore/templates/settings.py.erb
ALLOWED_IMPORT_PATHS = <%= scope['pulpcore::allowed_import_path'] %>
ALLOWED_EXPORT_PATHS = <%= scope['pulpcore::allowed_export_path'] %>
Expected results:
If changing the import and export path is allowed, then we will need a module for custom-hiera.yaml and satellite-installer parameter
Additional info:
Tried the below parameters in hiera but not work after running the installer.
# cat /etc/foreman-installer/custom-hiera.yaml
pulpcore::allowed_import_path: ['/mnt/test5', '/mnt/test6']
pulpcore::allowed_export_path: ['/mnt/test7']
Can we get this re-reviewed to see if this is something we supported in 6.9 and prior? if so, I'd say this is not an RFE and more of a bug that we can't support configuring export location
I believe the reason custom hiera didn't work here is that the parameter values are specified by puppet-foreman_proxy_content in its resource like declaration of the pulpcore class: https://github.com/theforeman/puppet-foreman_proxy_content/blob/master/manifests/init.pp#L259-L260
Meanwhile the order of precedence for setting class parameters is
1. Parameter values are explicitly set with a resource-like class declaration.
2. Puppet performs a Hiera lookup in the style of <CLASS NAME>::<PARAMETER NAME>.
3. The default value set in the class definition.
So #1 will take the highest priority in this case, and the hiera lookup (#2) will never get performed.
What would be required in order to make this work, would be a parameter in the foreman_proxy_content module that could be overridden (currently it is conditionally hardcoded based on the scenario).
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (Moderate: Satellite 6.11 Release), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHSA-2022:5498
Description of problem: [RFE] Add options to change the import and export path in /etc/pulp/settings.py Version-Release number of selected component (if applicable): satellite-6.10 How reproducible: New installation Actual results: There is no option available through custom-hiera.yaml or satellite-installer to change the below directories to custom path # cat /etc/pulp/settings.py ALLOWED_IMPORT_PATHS = ["/var/lib/pulp/sync_imports", "/var/lib/pulp/imports"] ALLOWED_EXPORT_PATHS = ["/var/lib/pulp/exports"] It seems to be a hard-coded in the configuration : # cat /usr/share/foreman-installer/modules/foreman_proxy_content/manifests/init.pp |grep -iE "sync_imports|imports" $pulpcore_allowed_import_path = ['/var/lib/pulp/sync_imports'] $pulpcore_allowed_import_path = ['/var/lib/pulp/sync_imports', '/var/lib/pulp/imports'] # cat /usr/share/foreman-installer/modules/pulpcore/templates/settings.py.erb ALLOWED_IMPORT_PATHS = <%= scope['pulpcore::allowed_import_path'] %> ALLOWED_EXPORT_PATHS = <%= scope['pulpcore::allowed_export_path'] %> Expected results: If changing the import and export path is allowed, then we will need a module for custom-hiera.yaml and satellite-installer parameter Additional info: Tried the below parameters in hiera but not work after running the installer. # cat /etc/foreman-installer/custom-hiera.yaml pulpcore::allowed_import_path: ['/mnt/test5', '/mnt/test6'] pulpcore::allowed_export_path: ['/mnt/test7']