Bug 824069 - katello CLI 'product list' should show marketing and engineering product relationships
Summary: katello CLI 'product list' should show marketing and engineering product rela...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Og Maciel
URL:
Whiteboard:
: 795525 (view as bug list)
Depends On:
Blocks: sam12-tracker 829759
TreeView+ depends on / blocked
 
Reported: 2012-05-22 16:43 UTC by Tom McKay
Modified: 2019-09-26 15:53 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
The command 'katello product list' displayed both engineering and marketing products. This fix changes the default behavior to display only engineering products. Use the "--all" option to view all the products. Additionally, marketing products from the subscriptions are accessed via the "subscriptions" CLI command.
Clone Of:
: 829759 (view as bug list)
Environment:
Last Closed: 2012-12-04 19:46:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 823890 0 unspecified CLOSED Test case failure: SAM: headpin cli product list appears to return products from cp_product, where some products are not... 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHSA-2012:1543 0 normal SHIPPED_LIVE Important: CloudForms System Engine 1.1 update 2012-12-05 00:39:57 UTC

Internal Links: 823890

Description Tom McKay 2012-05-22 16:43:26 UTC
Description of problem:

There are two types of products, marketing and engineering. The CLI 'product list' should show their relationship and not display them all in a flat list.


Actual results:
[tomckay@tomckay katello{master}]$ cli/bin/katello -u admin -p admin product list --org BZ822665
--------------------------------------------------------------------------------
        Product List For Organization BZ822665, Environment 'Library'

 Id          Name                                                                     Provider Id   Provider Name   Sync Plan Name   Last Sync   GPG key
--------------------------------------------------------------------------------
 69          Red Hat Enterprise Linux Server                                          2             Red Hat         None             never
 RH0197181   Red Hat Enterprise Linux Server Self-support 1-2 sockets Up to 1 guest   2             Red Hat         None             never

Expected results:
[tomckay@tomckay katello{master}]$ cli/bin/katello -u admin -p admin product list --org BZ822665
--------------------------------------------------------------------------------
        Product List For Organization BZ822665, Environment 'Library'

 Id          Name                                                                     Provider Id   Provider Name   Sync Plan Name   Last Sync   GPG key
--------------------------------------------------------------------------------
 + RH0197181   Red Hat Enterprise Linux Server Self-support 1-2 sockets Up to 1 guest   2             Red Hat         None             never
 | 69          Red Hat Enterprise Linux Server                                          2             Red Hat         None             never

Not sure how to represent hierarchy relationships in text table, but that's the idea.  69 is a child engr product of RH0197181.

Comment 2 Ivan Necas 2012-05-23 12:53:31 UTC
the marketing products are shown with listing subscriptions. Therefore it could probably be possible to exclude them from products list, that is needed mainly for changesets (to know what proudcts can be promoted etc.)

Comment 3 Lukas Zapletal 2012-05-23 13:22:43 UTC
Taking, need pm ack.

Comment 5 Lukas Zapletal 2012-05-24 08:29:43 UTC
In the 

katello product list

we show both marketing and engineering products. This is very confusing, so by default we now show only engineering products. To see them all use --all option.

Marketing product from the subscriptions point of view can be accessed via "subscriptions" cli commands.

https://github.com/Katello/katello/pull/142

Comment 6 Ivan Necas 2012-05-24 09:13:10 UTC
Merged in commits:
cdbc4fd7
857bf989

Comment 12 Lukas Zapletal 2012-08-27 15:53:08 UTC
*** Bug 795525 has been marked as a duplicate of this bug. ***

Comment 14 Og Maciel 2012-09-16 12:54:32 UTC
# katello -u admin -p admin product list --org PepsiCo
--------------------------------------------------------------------------------------------------------------------
                           Product List For Organization PepsiCo, Environment 'Library'

 Id              Name                              Provider Id   Provider Name   Sync Plan Name   Last Sync             GPG key  
--------------------------------------------------------------------------------------------------------------------
 1347797081009   Zoo                               5             Animals         None             2012/09/16 08:12:30            
 69              Red Hat Enterprise Linux Server   2             Red Hat         None             2012/09/14 20:55:30            
 180             Red Hat Beta                      2             Red Hat         None             never                          


# katello -u admin -p admin product list --org PepsiCo --all
--------------------------------------------------------------------------------------------------------------------
                           Product List For Organization PepsiCo, Environment 'Library'

 Id              Name                                                                     Provider Id   Provider Name   Sync Plan Name   Last Sync             GPG key  
--------------------------------------------------------------------------------------------------------------------
 1347797081009   Zoo                                                                      5             Animals         None             2012/09/16 08:12:30            
 RH0101594       Red Hat Enterprise Linux Server Standard 1-2 sockets Up to 1 guest       2             Red Hat         None             never                          
 RH0149709F3     Red Hat Enterprise Linux Server Standard 1-2 sockets Up to 4 guests      2             Red Hat         None             never                          
 RH0197181       Red Hat Enterprise Linux Server Self-support 1-2 sockets Up to 1 guest   2             Red Hat         None             never                          
 69              Red Hat Enterprise Linux Server                                          2             Red Hat         None             2012/09/14 20:55:30            
 180             Red Hat Beta                                                             2             Red Hat         None             never

Comment 15 Og Maciel 2012-09-16 12:55:30 UTC
Verified using:

* candlepin-0.7.8-1.el6cf.noarch
* candlepin-selinux-0.7.8-1.el6cf.noarch
* candlepin-tomcat6-0.7.8-1.el6cf.noarch
* katello-1.1.12-7.el6cf.noarch
* katello-all-1.1.12-7.el6cf.noarch
* katello-candlepin-cert-key-pair-1.0-1.noarch
* katello-certs-tools-1.1.8-1.el6cf.noarch
* katello-cli-1.1.8-4.el6cf.noarch
* katello-cli-common-1.1.8-4.el6cf.noarch
* katello-common-1.1.12-7.el6cf.noarch
* katello-configure-1.1.9-3.el6cf.noarch
* katello-glue-candlepin-1.1.12-7.el6cf.noarch
* katello-glue-pulp-1.1.12-7.el6cf.noarch
* katello-qpid-broker-key-pair-1.0-1.noarch
* katello-qpid-client-key-pair-1.0-1.noarch
* katello-selinux-1.1.1-1.el6cf.noarch
* pulp-1.1.12-1.el6cf.noarch
* pulp-common-1.1.12-1.el6cf.noarch
* pulp-selinux-server-1.1.12-1.el6cf.noarch

Comment 18 errata-xmlrpc 2012-12-04 19:46:04 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2012-1543.html


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