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.

Bug 2192369

Summary: pulp-manifest command not available
Product: Red Hat Satellite Reporter: Taft Sanders <tasander>
Component: PackagingAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.11.4CC: ahumbe, bkielhol, dalley, ehelms, rlavi, wpinheir
Target Milestone: UnspecifiedKeywords: Documentation
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-07 19:13:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Taft Sanders 2023-05-01 17:27:36 UTC
Description of problem:
Following the directions from the documentation for creating a custom file type repository in a local directory[1] results in the `pulp-manifest` command not being available like in RHEL 8 Satellite 6.11

[1]: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.11/html-single/managing_content/index#Creating_a_Remote_File_Type_Repository_content-management
Version-Release number of selected component (if applicable):
satellite-6.11.4.1-1.el7sat.noarch
tfm-pulpcore-python3-pulp_manifest-3.0.0-2.el7pc.noarch

How reproducible:
Every time

Steps to Reproduce:
1. Follow the steps from the documentation to install the tfm-pulpcore-python3-pulp_manifest package. NOTE: The package comes from 'rhel-7-server-satellite-6.11-rpms' or 'rhel-7-server-satellite-capsule-6.11-rpms' and not the 'rhel-7-server-rpms' or the 'rhel-7-server-satellite-utils-6.11-rpms' as the documentation states.
2. Try running the command `pulp-manifest`
3.

Actual results:
ON RHEL7:
[root@bombsat611-rhel7 ~]# yum install tfm-pulpcore-python3-pulp_manifest --disableplugin foreman-protector
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package tfm-pulpcore-python3-pulp_manifest.noarch 0:3.0.0-2.el7pc will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================
 Package                                              Arch                     Version                            Repository                                           Size
============================================================================================================================================================================
Installing:
 tfm-pulpcore-python3-pulp_manifest                   noarch                   3.0.0-2.el7pc                      rhel-7-server-satellite-6.11-rpms                    16 k

Transaction Summary
============================================================================================================================================================================
Install  1 Package

Total download size: 16 k
Installed size: 25 k
Is this ok [y/d/N]: y
Downloading packages:
tfm-pulpcore-python3-pulp_manifest-3.0.0-2.el7pc.noarch.rpm                                                                                          |  16 kB  00:00:01     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : tfm-pulpcore-python3-pulp_manifest-3.0.0-2.el7pc.noarch                                                                                                  1/1 
  Verifying  : tfm-pulpcore-python3-pulp_manifest-3.0.0-2.el7pc.noarch                                                                                                  1/1 

Installed:
  tfm-pulpcore-python3-pulp_manifest.noarch 0:3.0.0-2.el7pc                                                                                                                 

Complete!

[root@bombsat611-rhel7 ~]# which pulp-manifest
/usr/bin/which: no pulp-manifest in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/puppetlabs/bin:/root/bin)


Expected results:
# pulp-manifest 
usage: pulp-manifest [-h] directory
pulp-manifest: error: the following arguments are required: directory


Additional info:
On RHEL 8, the RPM `python38-pulp_manifest` contains the binary for the command:
# rpm -ql python38-pulp_manifest
/usr/bin/pulp-manifest
/usr/lib/python3.8/site-packages/pulp_manifest
/usr/lib/python3.8/site-packages/pulp_manifest-3.0.0-py3.8.egg-info
/usr/lib/python3.8/site-packages/pulp_manifest-3.0.0-py3.8.egg-info/PKG-INFO
/usr/lib/python3.8/site-packages/pulp_manifest-3.0.0-py3.8.egg-info/SOURCES.txt
/usr/lib/python3.8/site-packages/pulp_manifest-3.0.0-py3.8.egg-info/dependency_links.txt
/usr/lib/python3.8/site-packages/pulp_manifest-3.0.0-py3.8.egg-info/entry_points.txt
/usr/lib/python3.8/site-packages/pulp_manifest-3.0.0-py3.8.egg-info/top_level.txt
/usr/lib/python3.8/site-packages/pulp_manifest/__init__.py
/usr/lib/python3.8/site-packages/pulp_manifest/__pycache__
/usr/lib/python3.8/site-packages/pulp_manifest/__pycache__/__init__.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pulp_manifest/__pycache__/__init__.cpython-38.pyc
/usr/lib/python3.8/site-packages/pulp_manifest/__pycache__/build_manifest.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pulp_manifest/__pycache__/build_manifest.cpython-38.pyc
/usr/lib/python3.8/site-packages/pulp_manifest/build_manifest.py
/usr/share/doc/python38-pulp_manifest
/usr/share/doc/python38-pulp_manifest/README.md
/usr/share/licenses/python38-pulp_manifest
/usr/share/licenses/python38-pulp_manifest/LICENSE


On RHEL 7, the binary is placed inside of `/opt/theforeman/tfm-pulpcore/root/usr/bin/pulp-manifest` which is not accessible to the shell without changing configurations.

A workaround for this on RHEL 7 Satellite 6.11 is:
# yum install tfm-pulpcore-python3-pulp_manifest --disableplugin foreman-protector -y
# ln -s /opt/theforeman/tfm-pulpcore/root/usr/bin/pulp-manifest /usr/bin/
# mkdir /test
# PYTHONPATH='/opt/theforeman/tfm-pulpcore/root/usr/lib/python3.8/site-packages/' /usr/bin/pulp-manifest /test
# ls /test
PULP_MANIFEST