Project

General

Profile

Bug #9669

need way to attach a subscription to a content host w/ hammer

Added by Thomas McKay over 4 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
medium
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

hammer subscription attach --content-host-id $id --subscription-id $id

-or-

hammer content-host subscription --attach --subscription-id $id

Although subscriptions are normally added to content hosts by running subscription-manager directly on the host itself, there are cases where being able to do it via scripting w/ hammer is better.

This would move towards parity between hammer and the UI


Related issues

Blocked by Katello - Bug #16001: need way to attach a subscription to a content host - controller changesRejected2016-08-05

Associated revisions

Revision 14c96768 (diff)
Added by Partha Aji almost 3 years ago

Fixes #9669 - Attach/Remove sub actions for host (#437)

This commit adds functionality for the following calls
hammer host subscription attach --subscription-id=1000 --quantity=333
--host-id=1000
hammer host subscription remove --subscription-id=1000 --host-id=1000
hammer host subscription auto-attach --host-id=1000

History

#1 Updated by Thomas McKay over 4 years ago

  • Bugzilla link set to 1199515

#2 Updated by Eric Helms over 4 years ago

  • Category set to Hammer
  • Legacy Backlogs Release (now unused) set to 31
  • Triaged changed from No to Yes

#3 Updated by Eric Helms about 4 years ago

  • Legacy Backlogs Release (now unused) changed from 31 to 70

#4 Updated by Thomas McKay almost 4 years ago

  • Status changed from New to Assigned
  • Assignee set to Thomas McKay

#5 Updated by The Foreman Bot almost 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5323 added
  • Pull request deleted ()

#6 Updated by Eric Helms over 3 years ago

  • Legacy Backlogs Release (now unused) changed from 70 to 86

#7 Updated by Eric Helms over 3 years ago

  • Legacy Backlogs Release (now unused) changed from 86 to 114

#8 Updated by Partha Aji almost 3 years ago

  • Blocked by Bug #16001: need way to attach a subscription to a content host - controller changes added

#9 Updated by The Foreman Bot almost 3 years ago

  • Legacy Backlogs Release (now unused) deleted (114)
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/437 added

#10 Updated by Partha Aji almost 3 years ago

  • Assignee changed from Thomas McKay to Partha Aji
  • Pull request deleted (https://github.com/Katello/katello/pull/5323)

#11 Updated by Anonymous almost 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#12 Updated by Justin Sherrill almost 3 years ago

  • Legacy Backlogs Release (now unused) set to 162
  • Difficulty set to medium

Also available in: Atom PDF