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.

Bug 1402767

Summary: hammer erratum list --product-id return all products erratum
Product: Red Hat Satellite Reporter: Djebran Lezzoum <dlezzoum>
Component: Errata ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.5CC: dhlavacd, dlezzoum, dlobatog, mhulan, tstrachota
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-03 07:42:25 UTC 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 Djebran Lezzoum 2016-12-08 10:10:58 UTC
Description of problem:
hammer erratum list --product-id return all products erratum

Version-Release number of selected component (if applicable):
* candlepin-0.9.54.14-1.el7.noarch
* candlepin-selinux-0.9.54.14-1.el7.noarch
* foreman-1.11.0.59-1.el7sat.noarch
* foreman-compute-1.11.0.59-1.el7sat.noarch
* foreman-debug-1.11.0.59-1.el7sat.noarch
* foreman-discovery-image-3.1.1-18.el7sat.noarch
* foreman-ec2-1.11.0.59-1.el7sat.noarch
* foreman-gce-1.11.0.59-1.el7sat.noarch
* foreman-installer-1.11.0.10-1.el7sat.noarch
* foreman-installer-katello-3.0.0.65-1.el7sat.noarch
* foreman-libvirt-1.11.0.59-1.el7sat.noarch
* foreman-openstack-1.11.0.59-1.el7sat.noarch
* foreman-ovirt-1.11.0.59-1.el7sat.noarch
* foreman-postgresql-1.11.0.59-1.el7sat.noarch
* foreman-proxy-1.11.0.7-1.el7sat.noarch
* foreman-rackspace-1.11.0.59-1.el7sat.noarch
* foreman-selinux-1.11.0.2-1.el7sat.noarch
* foreman-vmware-1.11.0.59-1.el7sat.noarch
* katello-3.0.0-14.el7sat.noarch
* katello-certs-tools-2.4.0-1.el7sat.noarch
* katello-client-bootstrap-1.2.2-1.el7sat.noarch
* katello-common-3.0.0-14.el7sat.noarch
* katello-debug-3.0.0-14.el7sat.noarch
* katello-default-ca-1.0-1.noarch
* katello-installer-base-3.0.0.65-1.el7sat.noarch
* katello-selinux-3.0.1.2-1.el7sat.noarch
* katello-server-ca-1.0-1.noarch
* katello-service-3.0.0-14.el7sat.noarch
* openldap-2.4.40-13.el7.x86_64
* pulp-client-1.0-1.noarch
* pulp-docker-plugins-2.0.3-1.el7sat.noarch
* pulp-katello-1.0.1-1.el7sat.noarch
* pulp-ostree-plugins-1.1.3.1-1.el7sat.noarch
* pulp-puppet-plugins-2.8.7.1-1.el7sat.noarch
* pulp-puppet-tools-2.8.7.1-1.el7sat.noarch
* pulp-rpm-plugins-2.8.7.5-1.el7sat.noarch
* pulp-selinux-2.8.7.3-1.el7sat.noarch
* pulp-server-2.8.7.3-1.el7sat.noarch
* python-ldap-2.4.15-2.el7.x86_64
* tfm-rubygem-ldap_fluff-0.4.3-1.el7sat.noarch
* tfm-rubygem-net-ldap-0.13.0-1.el7sat.noarch


How reproducible:
Always

Steps to Reproduce:
1. Create two organizations - Org1 and Org2.
2. Create a repository and product in both the organizations and synchronize them.
   Make sure both the repositories have some erratum.
   the product name of Org1: Org1Product
   the product name of Org2: Org2Product
   hammer return the id of each product:
   the product id of Org1Product: Org1Product-id
   the product id of Org2Product: Org2Product-id

3. Now run the cli command:
   hammer erratum list --product-id="Org1Product-id"

Actual results:
The command runs without errors but displays all errata info from all products repositories,
 (as well as from product-id Org2Product-id repository) 

Expected results:
return only the erratum info list of product id Org1Product-id

Additional info:
The command works as expected under satellite version 6.3

Comment 1 Daniel Lobato Garcia 2017-01-03 07:42:25 UTC
Shouldn't this be closed as CURRENT_RELEASE if the command works on 6.3? This is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1283173 , the problem happened also for `package list --organization-id` `package-group list --organization-id` `puppet-module list --organization-id`

*** This bug has been marked as a duplicate of bug 1283173 ***

Comment 2 Daniel Lobato Garcia 2017-01-03 07:57:44 UTC
Actually I'm seeing some problems with the organizatino_id parameter on errata on nighly now.. I'll reopen once I find out what is causing it

Comment 3 Daniel Lobato Garcia 2017-01-03 09:37:28 UTC
Nothing actually - let us know if that fixes your problem

Comment 4 Djebran Lezzoum 2017-04-10 16:46:04 UTC
Till now the problem still persist on sat 6.2.9