-
Bug
-
Resolution: Done
-
Normal
-
6.12.0
-
False
-
-
False
-
CLOSED
-
900
-
Phoenix - Content
-
-
-
Sprint 111, Overflow
-
Moderate
-
None
Description of problem:
In Satellite GUI, under Administer setting, Updating/Setting a new Pulp 3 export destination filepath does not work and fails when exporting the content to the new path with the below error:-
[.............................................................................................................................................]
Response body:
[.............................................................................................................................................]
Version-Release number of selected component (if applicable):
6.11 and 6.12
How reproducible:
100%
Steps to Reproduce:
1. Create a new export destination path in the satellite CLI
- mkdir -p /var/lib/pulp/test && chown pulp:pulp /var/lib/pulp/test
2. Next Update the Pulp 3 export destination filepath in the Satellite GUI:-
Navigate to Satellite GUI > Administer settings > Content > Pulp 3 export destination filepath
3. Export the content using hammer:-
hammer content-export complete version --id 2
Actual results:
[.............................................................................................................................................] [100%]
Error: Error message: the server returns an error
HTTP status code: 400
Response headers:
Response body:
{"path":["Path '/var/lib/pulp/test/RedHat/Test/1.0/2023-01-04T19-40-44-05-30' is not an allowed export path"]}Expected results:
Should export to new destination without any errors.
Additional info:
====================================
Workaround to fix the issue.
-
-
-
- update the file with the below change:-
-
-
- vi /etc/pulp/settings.py // Look for the ALLOWED_EXPORT_PATHS and update the path
ALLOWED_EXPORT_PATHS = ["/var/lib/pulp/exports", "/var/lib/pulp/test"]
- save and exit
Next restart the services of the Red Hat Satellite server.
- satellite-maintain service restart
Next tried to export and it works:-
- hammer content-export complete version --id 2
[.............................................................................................................................................] [100%]
Generated /var/lib/pulp/test/RedHat/Test/1.0/2023-01-04T19-45-03-05-30/metadata.json
====================================
- external trackers