Project

General

Profile

Bug #15589

Remove `hammer content-host update` - New command is `hammer host update`

Added by Andrew Kofink over 2 years ago. Updated 9 months ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1338780
Description of problem:
Unable to update content host name via 'hammer content-host update' command - operation succeeds but name is not updating.

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

How reproducible:
Always

Steps to Reproduce:
1. Create any content host:
hammer host subscription register --content-view-id="30" --organization-id="31" --name="XehsTnSPdubYUBECpJJq" --lifecycle-environment-id="30"
2. Get content host info:
hammer content-host info --id="2"
3. Update content-host name via hammer:
hammer content-host update --id="f2cef045-2381-4700-8013-ebbea6a2f141" --new-name="mjbhe8gnp34ihmtocyuusqfk8nzvbokn"
4. Get content-host info again, check its name
hammer content-host info --id="f2cef045-2381-4700-8013-ebbea6a2f141"

Actual results:
Content host name was not updated (although 'Content host updated' message received):
hammer content-host info --id="f2cef045-2381-4700-8013-ebbea6a2f141"
Name: XehsTnSPdubYUBECpJJq
ID: f2cef045-2381-4700-8013-ebbea6a2f141
Katello Agent Installed: no
Location: None
Lifecycle Environment: Library
Content View: Default Organization View
Entitlement Status: valid
Release Version:
Autoheal: true
Security Errata: 0
Bugfix Errata: 0
Enhancement Errata: 0

Expected results:
Content host name should be updated. And if it wasn't updated for some reason - 'hammer content-host update' should return error message with non-zero return code.

Additional info:


Related issues

Blocked by Katello - Bug #15593: Remove Ruby 1.9.3 support from hammer-cli-katello Travis testsClosed2016-07-06

Associated revisions

Revision 2597aaef (diff)
Added by Andrew Kofink over 2 years ago

Fixes #15589 - Remove content-host update command

The new command is `hammer host update ...`

Revision 4b823a00
Added by Andrew Kofink over 2 years ago

Merge pull request #416 from akofink/15589

Fixes #15589 - Remove content-host update command

History

#1 Updated by Andrew Kofink over 2 years ago

  • Subject changed from Unable to update content host name via hammer to Remove `hammer content-host update` - New command is `hammer host update`

#2 Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/416 added

#3 Updated by Andrew Kofink over 2 years ago

  • Blocked by Bug #15593: Remove Ruby 1.9.3 support from hammer-cli-katello Travis tests added

#4 Updated by The Foreman Bot over 2 years ago

  • Assignee set to Andrew Kofink

#5 Updated by Andrew Kofink over 2 years ago

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

#6 Updated by Justin Sherrill over 2 years ago

  • Legacy Backlogs Release (now unused) set to 162

Also available in: Atom PDF