Project

General

Profile

Actions

Bug #14043

closed

hammer activation key product-content does not filter content based on organization

Added by Zach Huntington-Meath about 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Hammer
Target version:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1250610
Description of problem:
hammer activation key product-content does not filter content based on organization

Version-Release number of selected component (if applicable):
Sat 6.1 GA Snap 15

How reproducible:
Always

Steps to Reproduce:
1. Create two Orgs - enable, sync different RH content on both the orgs
2. Create an activation key, attach subscription and navigate to web ui -> select the activation key -> Product Content tab -> See that the enabled/synced repos are displayed there - this works as expected
3. Check the same in hammer cli:

hammer> activation-key product-content --id=1
-----|-----------------------------------------------------------|------|-----|---------|------------------------------------------
ID | NAME | TYPE | URL | GPG KEY | LABEL
-----|-----------------------------------------------------------|------|-----|---------|------------------------------------------
2456 | Red Hat Enterprise Linux 7 Server (RPMs) | | | | rhel-7-server-rpms
4362 | Red Hat Satellite Tools 6 Beta (for RHEL 6 Server) (RPMs) | | | | rhel-6-server-satellite-tools-6-beta-rpms
168 | Red Hat Enterprise Linux 6 Server (RPMs) | | | | rhel-6-server-rpms
3455 | MRG Grid (for RHEL 6 Server) (RPMs) | | | | rhel-6-server-mrg-grid-rpms
4362 | Red Hat Satellite Tools 6 Beta (for RHEL 6 Server) (RPMs) | | | | rhel-6-server-satellite-tools-6-beta-rpms
168 | Red Hat Enterprise Linux 6 Server (RPMs) | | | | rhel-6-server-rpms
3455 | MRG Grid (for RHEL 6 Server) (RPMs) | | | | rhel-6-server-mrg-grid-rpms
4362 | Red Hat Satellite Tools 6 Beta (for RHEL 6 Server) (RPMs) | | | | rhel-6-server-satellite-tools-6-beta-rpms
-----|-----------------------------------------------------------|------|-----|---------|------------------------------------------

hammer> activation-key product-content --id=1 --organization-id=3
-----|-----------------------------------------------------------|------|-----|---------|------------------------------------------
ID | NAME | TYPE | URL | GPG KEY | LABEL
-----|-----------------------------------------------------------|------|-----|---------|------------------------------------------
2456 | Red Hat Enterprise Linux 7 Server (RPMs) | | | | rhel-7-server-rpms
4362 | Red Hat Satellite Tools 6 Beta (for RHEL 6 Server) (RPMs) | | | | rhel-6-server-satellite-tools-6-beta-rpms
168 | Red Hat Enterprise Linux 6 Server (RPMs) | | | | rhel-6-server-rpms
3455 | MRG Grid (for RHEL 6 Server) (RPMs) | | | | rhel-6-server-mrg-grid-rpms
4362 | Red Hat Satellite Tools 6 Beta (for RHEL 6 Server) (RPMs) | | | | rhel-6-server-satellite-tools-6-beta-rpms
168 | Red Hat Enterprise Linux 6 Server (RPMs) | | | | rhel-6-server-rpms
3455 | MRG Grid (for RHEL 6 Server) (RPMs) | | | | rhel-6-server-mrg-grid-rpms
4362 | Red Hat Satellite Tools 6 Beta (for RHEL 6 Server) (RPMs) | | | | rhel-6-server-satellite-tools-6-beta-rpms
-----|-----------------------------------------------------------|------|-----|---------|------------------------------------------

Actual results:
Both the hammer commands listed above lists all the enabled/synced repos across all the organizations of this satellite

Expected results:
Both the above commands should list the enabled/sync repos corresponding to the current organization (selected activation key's organization) only.

Additional info:


Related issues 1 (0 open1 closed)

Has duplicate Katello - Bug #14194: activation key product content is not shown when multiple orgs share contentDuplicateChristine Fouant03/14/2016Actions
Actions #1

Updated by The Foreman Bot about 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5839 added
Actions #2

Updated by Zach Huntington-Meath about 8 years ago

  • Status changed from Ready For Testing to Rejected
Actions #3

Updated by Zach Huntington-Meath about 8 years ago

  • Status changed from Rejected to Closed
Actions #4

Updated by Eric Helms about 8 years ago

  • translation missing: en.field_release set to 86
Actions #5

Updated by The Foreman Bot about 8 years ago

  • Pull request https://github.com/Katello/katello/pull/5919 added
Actions #6

Updated by Thomas McKay about 8 years ago

  • Status changed from Closed to Assigned

Still broken.

Actions #7

Updated by Thomas McKay about 8 years ago

  • Status changed from Assigned to Closed

Confirmed fixed

Actions #8

Updated by Eric Helms about 8 years ago

  • Has duplicate Bug #14194: activation key product content is not shown when multiple orgs share content added
Actions

Also available in: Atom PDF