Feature #34120
closedIdentify host Build Token using hammer
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2025926
[RFE] Identify host Build Token using hammer
1. Proposed title of this feature request
Unable to get the host build token using hammer when the host is in 'build mode'
2. What is the nature and description of the request?
Currently the following command gives almost all details about the host when it is in 'build mode'. However the 'Token' which is valid for 360 minutes is not listed. Token is visible from Satellite webui All hosts ---> host.example.com ---> Properties
- hammer host info --id NN --show-hidden-parameters true
For example:
=================================================
[root@sat ~]# hammer host info --id 25 --show-hidden-parameters true
Id: 25
Name: host.example.com
Organization: RedHat
Location: GSS
Puppet Environment: production
Cert name: host.example.com
Managed: yes
Installed at:
Last report:
Status:
Global Status: Warning
Build Status: Pending installation
Network:
IPv4 address: 192.168.xx.xxx
IPv6 address:
MAC: 00:50:xx:xx:xx:xx
Subnet ipv4: satellite-subnet
Domain: sat.example.com
Network interfaces:
1) Id: 27
Identifier:
Type: interface (primary, provision, execution)
MAC address: 00:50:xx:xx:xx:xx
IPv4 address: 192.168.xx.xxx
IPv6 address:
FQDN: host.example.com
Operating system:
Architecture: x86_64
Operating System: RedHat-7.7
Build: yes
Partition Table: Kickstart default
PXE Loader: PXELinux BIOS
Custom partition table:
Parameters:
All parameters:
host_registration_remote_execution => true
host_registration_insights => true
enable-puppet5 => true
enable-epel => false
Additional info:
Owner: Admin User
Owner Id: 4
Owner Type: User
Enabled: yes
Comment:
OpenSCAP Proxy:
Content Information:
Content View:
ID: 1
Name: Default Organization View
Lifecycle Environment:
ID: 1
Name: Library
Content Source:
ID: 1
Name: rhsat.example.com
Kickstart Repository:
ID: 18
Name: 18
Applicable Packages: 0
Upgradable Packages: 0
Applicable Errata:
Enhancement: 0
Bug Fix: 0
Security: 0
Subscription Information:
UUID:
Last Checkin:
Release Version:
Autoheal:
Registered To:
Registered At:
Host Collections:
====================================
"Build Token' section needs to be added in the above parameters and should be able to list while running the hammer command.
Updated by The Foreman Bot about 3 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/hammer-cli-foreman/pull/586 added
Updated by The Foreman Bot about 3 years ago
- Fixed in Releases hammer-cli-foreman-3.2.0 added
Updated by Anonymous about 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset hammer-cli-foreman|5b80e168857fa0fe616cbd952a40d12e8dc77bad.