-
Bug
-
Resolution: Done
-
Minor
-
6.11.5
Description of problem:
Attempting to import a content view version on a disconnected satellite server with the incorrect user/group permissions results in an error output that describes the "directory <dir> does not exist". The actual issue is due to lack of permissions.
Version-Release number of selected component (if applicable):
Satellite Versions Tested
- 6.13.0
- 6.12
- 6.11.5.4
How reproducible:
100%
Steps to Reproduce:
1. Create a Content View as per the documentation for the specified version of Satellite. Verifying that the `Import_Only` value is set to True.
2. Verify that repositories to be added are set to `Immediate` download policy.
3. Sync repositories to be added to the Content View.
4. Add the repositories to the Content View and Publish version.
5. Export the CV version
6. When importing the CV, do not change the user/group permissions to pulp:pulp (In testing, I used root:root)
7. Attempt to import the CV version
Actual results:
[root@sat613 ~]# hammer content-import version --path /var/lib/pulp/imports/Org/CVDiscTesting/1.0/2023-08-17T10-59-50-04-00/ --organization-id 1
Could not import the archive.:
directory /var/lib/pulp/imports/Org/CVDiscTesting/1.0/2023-08-17T10-59-50-04-00 does not exist
Verifying content present:
[root@sat613 ~]# ls -l /var/lib/pulp/imports/Org/CVDiscTesting/1.0/2023-08-17T10-59-50-04-00/
total 483444
rw-rr-. 1 root root 495035182 Aug 17 11:04 export-739832e8-8163-481e-85d4-244beab02bc5-20230817_1459.tar.gz
rw-rr-. 1 root root 333 Aug 17 11:04 export-739832e8-8163-481e-85d4-244beab02bc5-20230817_1459-toc.json
rw-rr-. 1 root root 1129 Aug 17 11:04 metadata.json
Expected results:
[root@sat613 ~]# hammer content-import version --path /var/lib/pulp/imports/Org/CVDiscTesting/1.0/2023-08-17T10-59-50-04-00/ --organization-id 1
The above command should notify via an output that the user/group permissions are not set correctly (as in pulp:pulp) and that the user should verify.
Regards,
Benjamin