Project

General

Profile

Actions

Bug #15272

closed

'hammer activation-key subscriptions' shows already removed subscriptions

Added by Andrew Kofink almost 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
easy
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1339211
Description of problem:
After successful subscription removal from activation key, hammer's 'activation-key subscriptions' command still shows subscription is associated to activation key.
It's not an issue with removal, as changes are reflected correctly via WebUI (and subscription will be shown by 'activation-key subscriptions' command even if you removed it via WebUI)

Version-Release number of selected component (if applicable):
Satellite 6.2.0 GA SNAP 12.1

How reproducible:
Always

Steps to Reproduce:
1. Add subscription to activation key:
hammer activation-key add-subscription --subscription-id="10" --id="2"
2. Make sure subscription was added:
hammer activation-key subscriptions --id="2" --organization-id="47"
3. Remove subscription:
hammer activation-key remove-subscription --subscription-id="10" --id="2"
4. Ensure subscription was removed with 'hammer activation-key subscriptions' command:
hammer activation-key subscriptions --id="2" --organization-id="47"

Actual results:
Subscription is still listed:

---|-----------------------------------------------------------|----------|----------|---------------------|---------------------|--------------|----------|--------
ID | NAME | ATTACHED | QUANTITY | START DATE | END DATE | SUPPORT | CONTRACT | ACCOUNT
---|-----------------------------------------------------------|----------|----------|---------------------|---------------------|--------------|----------|--------
10 | Red Hat Enterprise Linux Server Entry Level, Self-support | 0 of 25 | | 2015/10/14 04:00:00 | 2016/10/14 03:59:59 | Self-Support | 10800893 | 477931
---|-----------------------------------------------------------|----------|----------|---------------------|---------------------|--------------|----------|--------

Expected results:
'hammer activation-key subscriptions' should not show the subscription, which was removed from activation key.

Additional info:


Related issues 1 (0 open1 closed)

Related to Katello - Refactor #15410: Move activation_keys#subscriptions to subscriptions#indexClosedAndrew Kofink06/14/2016Actions
Actions

Also available in: Atom PDF