Bug 2126502 - [Pulp 3] Not able to use `--tabular` flag with `pulpcore-manager analyze-publication` due to missing prettytable module
Summary: [Pulp 3] Not able to use `--tabular` flag with `pulpcore-manager analyze-publ...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Packaging
Version: 6.12.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: Unspecified
Assignee: Odilon Sousa
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-13 15:57 UTC by Sayan Das
Modified: 2023-08-03 12:33 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-19364 0 None None None 2023-08-03 12:33:58 UTC

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:


Note You need to log in before you can comment on or make changes to this bug.