Project

General

Profile

Feature #14829

- "hammer content-host info" command should have information related to "Content Host Status"

Added by Bryan Kearney almost 3 years ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
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=1317614
Description of problem:
"hammer content-host info" command should have information related to "Content Host Status" such as below

Registered 12/4/15 12:29 PM
Registered By Activation Key
RHEL7-key
Checkin 12/4/15 12:33 PM

Version-Release number of selected component (if applicable):
Satellite 6.1.7
foreman-1.7.2.53-1.el7sat.noarch
katello-2.2.0.18-1.el7sat.noarch

Steps to Reproduce:
1. Execute "hammer content-host info" command

hammer content-host info --id ab449a97-805b-448e-b5c5-ea859445e9e9
Name: capsule.example.com
ID: ab449a97-805b-448e-b5c5-ea859445e9e9
Katello Agent Installed: yes
Description: Initial Registration Params
Location: None
Lifecycle Environment: Library
Content View: Default Organization View
Entitlement Status: valid
Release Version:
Autoheal: true
Security Errata: 25
Bugfix Errata: 40
Enhancement Errata: 10

Actual results:
It doesn't display some useful information such as registered time, registered either with a username/password or activation key so on.

Expected results:
we could extract some useful registration info with hammer would nice.

Additional info:

Associated revisions

Revision 29520f64 (diff)
Added by Tomas Strachota over 2 years ago

Fixes #14829 - Add activation keys to host info (#447)

History

#1 Updated by Eric Helms almost 3 years ago

  • Legacy Backlogs Release (now unused) set to 114

#2 Updated by Tomáš Strachota over 2 years ago

I checked with the current master and it seems that only the activation key information is missing. The API sends necessary data so it's just matter of adding it to the CLI oputput.

> hammer host info --id 3
...
Content Information:      
    Content View:          Default Organization View
    Lifecycle Environment: Library
    Applicable Errata:     
        Enhancement: 0
        Bug Fix:     0
        Security:    0
Subscription Information: 
    UUID:            5346d24b-a2de-41f6-b0e0-e3454a9a9c7d
    Last Checkin:    2016-08-25 15:00:32 UTC
    Service Level:   
    Release Version: 
    Autoheal:        true
    Registered At:   2016-08-25 15:00:27 UTC

#3 Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Tomáš Strachota
  • Legacy Backlogs Release (now unused) deleted (114)
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/447 added

#4 Updated by Marek Hulán over 2 years ago

  • Target version set to 1.5.3

#5 Updated by Anonymous 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