Project

General

Profile

Actions

Bug #15589

closed

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

Added by Andrew Kofink almost 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
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 1 (0 open1 closed)

Blocked by Katello - Bug #15593: Remove Ruby 1.9.3 support from hammer-cli-katello Travis testsClosedAndrew Kofink07/06/2016Actions
Actions #1

Updated by Andrew Kofink almost 8 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`
Actions #2

Updated by The Foreman Bot almost 8 years ago

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

Updated by Andrew Kofink almost 8 years ago

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

Updated by The Foreman Bot almost 8 years ago

  • Assignee set to Andrew Kofink
Actions #5

Updated by Andrew Kofink almost 8 years ago

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

Updated by Justin Sherrill almost 8 years ago

  • translation missing: en.field_release set to 162
Actions

Also available in: Atom PDF