Project

General

Profile

Actions

Bug #36237

closed

hammer does not show the how many times the activation key still can be used, also does not show the content host associated with the key

Added by Chris Roberts over 1 year ago. Updated over 1 year ago.

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

Description

Description of problem:
hammer does not show the how many times the activation key still can be used, also does not show the content host associated with the key

Version-Release number of selected component (if applicable):
tfm-rubygem-hammer_cli_katello-1.3.1.2-1.el7sat.noarch
tfm-rubygem-hammer_cli-3.1.0.1-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_azure_rm-0.2.2-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman-3.1.0-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_templates-0.2.0-2.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_ansible-0.3.4-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_bootdisk-0.3.0-2.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_tasks-0.0.17-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_virt_who_configure-0.0.9-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_webhooks-0.0.2-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_admin-1.1.0-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_discovery-1.1.0-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_remote_execution-0.2.2-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_openscap-0.1.13-1.el7sat.noarch

How reproducible:
always

Steps to Reproduce:
1. Create an activation key(host limit is 3) in sca org on Satellite6.11.

2. Register RHEL-8.6.0-20220420.3 against Satellite6.11 by this key:

[root@hpe-dl380pgen8-02-vm-7 ~]# subscription-manager register --org="sca_org" --activationkey="hostlimit"
The system has been registered with ID: beec3692-1b7a-465e-8e1f-cce3514e987c
The registered system name is: hpe-dl380pgen8-02-vm-7.hpe2.lab.eng.bos.redhat.com

3. Check the satellite UI:
1) Host limit shows '1 out of 3'. Please check attachment 'hostlimit_shows_correctly_on_satellite_UI.png'
2) The registered rhel shows in the associations on this activation key. Please check attachment 'associations_shows_correctly_on_satellite_UI.png'

4. Check the activaiton key info by hammer:

[root@ent-01-vm-02 ~]# hammer activation-key info --name=hostlimit --organization-label=sca_org
Name: hostlimit
Id: 2
Description:
Host Limit: 3
Auto Attach: true
Release Version:
Lifecycle Environment: Library
Content View: Default Organization View
Host Collections:

System Purpose:
Service Level:
Purpose Usage:
Purpose Role:
Purpose Addons:

[root@ent-01-vm-02 ~]#

Actual results:
As step 4, hammer does not show the how many times the activation key still can be used, also does not show the content host associated with the key.

Expected results:
hammer should notice the customer how many times this key can be used, and which hosts are associated with the key.

Actions #1

Updated by The Foreman Bot over 1 year ago

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

Updated by The Foreman Bot over 1 year ago

  • Pull request https://github.com/Katello/hammer-cli-katello/pull/884 added
Actions #3

Updated by Chris Roberts over 1 year ago

  • Triaged changed from No to Yes
Actions #4

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases Katello 4.9.0 added
Actions #5

Updated by Chris Roberts over 1 year ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF