Bug 1112755 - passing organization_id and environment_id into system index action does not filter by environment_id when org_id is also passed in
Summary: passing organization_id and environment_id into system index action does not ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Dustin Tsang
QA Contact: Kedar Bidarkar
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-24 15:51 UTC by Eric Helms
Modified: 2023-09-14 02:10 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-11 12:24:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 6147 0 None None None 2016-04-22 16:22:07 UTC

Description Eric Helms 2014-06-24 15:51:13 UTC
passing environment_id and organization_id only filters by organization and does not filter by environment_id

Comment 1 Eric Helms 2014-06-24 15:51:15 UTC
Created from redmine issue http://projects.theforeman.org/issues/6147

Comment 2 Eric Helms 2014-06-24 15:51:20 UTC
Upstream bug assigned to dtsang

Comment 3 Bryan Kearney 2014-06-24 16:05:25 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6147 has been closed

Comment 6 Kedar Bidarkar 2014-08-18 12:22:20 UTC
please provide the verification steps for this bug.

Specifically for which entities are we supposed to check this against. sounds too generic for now.

Comment 7 Kedar Bidarkar 2014-08-18 12:31:49 UTC
I am assuming system here refers to content-hosts.

so as per the above assumption.

[root@xxx ~]# hammer -u admin -p changeme lifecycle-environment list --organization Default_Organization
---|---------|--------
ID | NAME    | PRIOR  
---|---------|--------
2  | Dev     | Library
1  | Library |        
5  | Prod    | Test   
4  | Test    | Dev    


[root@xxx ~]# hammer -u admin -p changeme content-host list --organization-id 1 --lifecycle-environment-id 1
No data.
[root@xxxx ~]# hammer -u admin -p changeme content-host list --organization-id 1 --lifecycle-environment-id 2
-------------------------------------|----------------------------
ID                                   | NAME                       
-------------------------------------|----------------------------
f2d79b7d-5061-49aa-b6c5-68a8592527a6 | bestluck007.katellolabs.org
-------------------------------------|----------------------------
[root@xxxx ~]# hammer -u admin -p changeme content-host list --organization-id 1 --lifecycle-environment-id 4
No data.

So with using org-id and lifecycle-env-id we can now filter content-hosts, as shown above.

Tested with : sat6-GA-snap4


Installed Packages

    candlepin-0.9.19-1.el6_5.noarch
    candlepin-scl-1-5.el6_4.noarch
    candlepin-scl-quartz-2.1.5-5.el6_4.noarch
    candlepin-scl-rhino-1.7R3-1.el6_4.noarch
    candlepin-scl-runtime-1-5.el6_4.noarch
    candlepin-selinux-0.9.19-1.el6_5.noarch
    candlepin-tomcat6-0.9.19-1.el6_5.noarch
    createrepo-0.9.9-21.2.pulp.el6sat.noarch
    elasticsearch-0.90.10-4.el6sat.noarch
    katello-1.5.0-28.el6sat.noarch
    katello-ca-1.0-1.noarch
    katello-certs-tools-1.5.6-1.el6sat.noarch
    katello-installer-0.0.57-1.el6sat.noarch
    m2crypto-0.21.1.pulp-10.el6sat.x86_64
    mod_wsgi-3.4-1.pulp.el6sat.x86_64
    pulp-katello-0.3-3.el6sat.noarch
    pulp-nodes-common-2.4.0-0.30.beta.el6sat.noarch
    pulp-nodes-parent-2.4.0-0.30.beta.el6sat.noarch
    pulp-puppet-plugins-2.4.0-0.30.beta.el6sat.noarch
    pulp-puppet-tools-2.4.0-0.30.beta.el6sat.noarch
    pulp-rpm-plugins-2.4.0-0.30.beta.el6sat.noarch
    pulp-selinux-2.4.0-0.30.beta.el6sat.noarch
    pulp-server-2.4.0-0.30.beta.el6sat.noarch
    python-gofer-qpid-1.3.0-1.el6sat.noarch
    python-isodate-0.5.0-1.pulp.el6sat.noarch
    python-kombu-3.0.15-12.pulp.el6sat.noarch
    python-pulp-bindings-2.4.0-0.30.beta.el6sat.noarch
    python-pulp-common-2.4.0-0.30.beta.el6sat.noarch
    python-pulp-puppet-common-2.4.0-0.30.beta.el6sat.noarch
    python-pulp-rpm-common-2.4.0-0.30.beta.el6sat.noarch
    python-qpid-0.22-14.el6sat.noarch
    python-qpid-qmf-0.22-33.el6.x86_64
    qpid-cpp-client-0.22-42.el6.x86_64
    qpid-cpp-server-0.22-42.el6.x86_64
    qpid-cpp-server-linearstore-0.22-42.el6.x86_64
    qpid-java-client-0.22-6.el6.noarch
    qpid-java-common-0.22-6.el6.noarch
    qpid-proton-c-0.7-1.el6.x86_64
    qpid-qmf-0.22-33.el6.x86_64
    qpid-tools-0.22-12.el6.noarch
    ruby193-rubygem-katello-1.5.0-78.el6sat.noarch
    rubygem-hammer_cli_katello-0.0.4-10.el6sat.noarch

Comment 8 Bryan Kearney 2014-09-11 12:24:30 UTC
This was delivered with Satellite 6.0 which was released on 10 September 2014.

Comment 9 Red Hat Bugzilla 2023-09-14 02:10:34 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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