Red Hat Bugzilla – 823890 – Test case failure: SAM: headpin cli product list appears to return products from cp_product, where some products are not currently available to consumers.
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.
Test case failure: SAM: headpin cli product list appears to return products from cp_product, where some products are not currently available to consumers.
There are two issues here:
1) The CLI is listing out both marketing products (w/ id RH1316844) as well as engineering products (w/ id 69).
2) The CLI is also listing both previously imported inactive subscriptions as well as the active ones.
+++ This bug was initially created as a clone of Bug #822665 +++
https://tcms.engineering.redhat.com/case/127976/?from_plan=5985
Version-Release number of selected component (if applicable):
2012-05-16.2
katello-common-0.3.1-1.el6_2.noarch
katello-cli-common-0.3.2-3.el6_2.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
thumbslug-0.0.24-1.el6_2.noarch
katello-glue-candlepin-0.3.1-1.el6_2.noarch
katello-cli-headpin-0.2.0-1.el6_2.noarch
katello-certs-tools-1.1.5-1.el6_2.noarch
katello-configure-0.3.3-2.el6_2.noarch
katello-headpin-0.2.6-4.el6_2.noarch
candlepin-0.6.2-1.el6_2.noarch
candlepin-tomcat6-0.6.2-1.el6_2.noarch
katello-selinux-0.2.4-1.el6_2.noarch
katello-headpin-all-0.2.6-4.el6_2.noarch
Steps to Reproduce:
1. On your SAM server login to get a shell.
Login: username
Password: password
2. Run headpin cli:
$ headpin -u [admin] -p [password] product list --org [ORG]
Actual results:
# headpin -u admin -p admin product list --org ACME_Corporation
--------------------------------------------------------------------------------
Product List For Organization ACME_Corporation, Environment 'Library'
Id Name Provider Id Provider Name Sync Plan Name Last Sync GPG key
--------------------------------------------------------------------------------
69 Red Hat Enterprise Linux Server 1 Red Hat
90 Red Hat Enterprise Linux Resilient Storage for RHEL Server 1 Red Hat
83 Red Hat Enterprise Linux High Availability for RHEL Server 1 Red Hat
RH1316844 Resilient Storage 8 sockets 1 Red Hat
RH1149049 High-Availability 8 sockets 1 Red Hat
RH0197181 Red Hat Enterprise Linux Server Self-support 1-2 sockets Up to 1 guest 1 Red Hat
DOES NOT Match the webui, see screen shot
Expected results:
Product list is displayed.