Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-18132

pulp-manifest command not available

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 6.11.4
    • None
    • None
    • 0
    • False
    • Important
    • None
    • None
    • None
    • None

      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:

      1. 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:

      1. 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:

      1. yum install tfm-pulpcore-python3-pulp_manifest --disableplugin foreman-protector -y
      2. ln -s /opt/theforeman/tfm-pulpcore/root/usr/bin/pulp-manifest /usr/bin/
      3. mkdir /test
      4. PYTHONPATH='/opt/theforeman/tfm-pulpcore/root/usr/lib/python3.8/site-packages/' /usr/bin/pulp-manifest /test
      5. ls /test
        PULP_MANIFEST

              jira-bugzilla-migration RH Bugzilla Integration
              jira-bugzilla-migration RH Bugzilla Integration
              RH Bugzilla Integration RH Bugzilla Integration
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: