Project

General

Profile

Actions

Bug #36724

open

hammer (json) missing CV and Lifecycle environment in 'host list'

Added by Ludwig Bayerlein 8 months ago. Updated 8 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Hammer core
Target version:
-
Difficulty:
Triaged:
No
Team Backlog:
Hammer
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Hi,

on our old katello (version 3.8), the command hammer host list also output the lifecycle environment and content view. With the up2date version, this informations are missing. Here an example:

hammer --output json -s 'https://foreman' -u 'user' -p 'pass' host list
[
  {
    "Id": 83,
    "Name": "host.example.net",
    "Operating System": {
      "Name": "RedHat 8.8",
      "Id": 63
    },
    "Host Group": {
      "Name": "Default",
      "Id": 12
    },
    "IP": "192.168.1.5",
    "MAC": "00:00:00:00:00:00",
    "Global Status": "Error" 
  }
]

or with simple host list

hamemr> host list --fields=name,lifecycle_environments,content_views
---------------------
NAME
---------------------
host.example.net

On the old version of katello, this was the output:

hammer -s 'https://foreman' -u 'user' -p 'pass' host list
-----|---------------------------------------------|------------------|---------------------------|-----------------|-------------------|---------------|--------------------------|----------------------
ID   | NAME                                        | OPERATING SYSTEM | HOST GROUP                | IP              | MAC               | GLOBAL STATUS | CONTENT VIEW             | LIFECYCLE ENVIRONMENT
-----|---------------------------------------------|------------------|---------------------------|-----------------|-------------------|---------------|--------------------------|----------------------
83   | host.example.net                            | RedHat-8.8       | Default                   | 192.168.1.5     | 00:00:00:00:00:00 | Error         | Default_RHEL8            | Default-Prod
-----|---------------------------------------------|------------------|---------------------------|-----------------|-------------------|---------------|--------------------------|----------------------

Is this missing in the newest hammer package?

Thanks very much.

Actions #1

Updated by Ludwig Bayerlein 8 months ago

  • Tracker changed from Support to Bug
Actions #2

Updated by Ludwig Bayerlein 8 months ago

  • Subject changed from hammer json missing CV and Lifecycle environment to hammer (json) missing CV and Lifecycle environment in 'host list'
Actions #3

Updated by Ludwig Bayerlein 8 months ago

  • Fixed in Releases deleted (hammer-cli-foreman-3.9.0)
Actions

Also available in: Atom PDF