Bug #15162
closedUnable to remove host collection from activation key via hammer
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1336716
Description of problem:
Can't remove host collection from activation key using hammer - operation succeeds but host collection remains associated.
Version-Release number of selected component (if applicable):
Sat 6.2.0 GA SNAP11
How reproducible:
Always
Steps to Reproduce:
1. Associate host collection with activation key.
2. Try to remove host collection from activation key via 'hammer activation-key remove-host-collection' command.
3. Check whether host collection was actually removed.
Actual results:
remove-host-collection command succeeds, but host collection remains associated:
2016-05-17 12:33:07 - robottelo.ssh - DEBUG - >>> [dell-t320-01.khw.lab.eng.bos.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme activation-key remove-host-collection --host-collection-id="1" --name="v6ncdpkpdL" --organization="X25dny"
2016-05-17 12:33:13 - robottelo.ssh - DEBUG - <<< stdout
The host collection has been removed
2016-05-17 12:33:13 - robottelo.ssh - DEBUG - >>> [dell-t320-01.khw.lab.eng.bos.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme activation-key info --id="1"
2016-05-17 12:33:18 - robottelo.ssh - DEBUG - <<< stdout
Name: v6ncdpkpdL
ID: 1
Description:
Host Limit: Unlimited
Auto Attach: true
Lifecycle Environment:
Content View:
Host Collections:
1) ID: 1
Name: FMpDVYKxmh
Expected results:
Host collection should be removed from activation key.
Also some validation for `activation-key remove-host-collection` command should be present - it shouldn't say 'The host collection has been removed' and finish with 0 return code when operation's failed.
Additional info:
Works as expected via UI (and, basically, 'activation-key info' reflects the changes, so it's an issue with `activation-key remove-host-collection`, not `activation-key info` command)
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/6063 added
Updated by David Davis over 8 years ago
- Related to Refactor #15168: Refactor content_views method view_params added
Updated by Eric Helms over 8 years ago
- Translation missing: en.field_release set to 143
Updated by Anonymous over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|bb7362231f550310181495c5026b1192bdc4179d.