Bug 2126502

Summary: [Pulp 3] Not able to use `--tabular` flag with `pulpcore-manager analyze-publication` due to missing prettytable module
Product: Red Hat Satellite Reporter: Sayan Das <saydas>
Component: PackagingAssignee: Odilon Sousa <osousa>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.12.0CC: ehelms, iballou
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Sayan Das 2022-09-13 15:57:29 UTC
Description of problem:

This is a child of BZ https://bugzilla.redhat.com/show_bug.cgi?id=2124637 .

As reported there, We can't use  "--tabular" option as Pulp uses python 3.9 but the RHEL 8 ships python3-prettytable-0.7.2-14.el8.noarch which has the prettytable module python 3.6


Version-Release number of selected component (if applicable):

Satellite 6.12

python39-pulpcore-3.18.6-2.el8pc.noarch / rubygem-pulpcore_client-3.18.5-1.el8sat.noarch / rubygem-pulp_rpm_client-3.17.4-1.el8sat.noarch


How reproducible:


Steps to Reproduce:

Same as https://bugzilla.redhat.com/show_bug.cgi?id=2124637 


Actual results:

# PULP_SETTINGS=/etc/pulp/settings.py pulpcore-manager analyze-publication --distribution-base-path 'RedHat/Library/content/dist/rhel/server/7/7.9/x86_64/kickstart' --tabular

System check identified some issues:


CommandError: 'prettytable' package must be installed.


Expected results:

Since we ship this feature in the Pulpcore and Satellite 6.12 can run on RHEL only, We should support the --tabular option as well and no such dependency error should be raised.


Additional info: