Project

General

Profile

Feature #34120

Identify host Build Token using hammer

Added by Oleh Fedorenko 5 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Category:
Hosts
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

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

  1. 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.

Associated revisions

Revision 5b80e168 (diff)
Added by Adi Abramovich 5 months ago

Fixes #34120 - Add token to host info command (#586)

History

#1 Updated by The Foreman Bot 5 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/586 added

#2 Updated by Adi Abramovitch 5 months ago

  • Assignee set to Adi Abramovitch

#3 Updated by The Foreman Bot 5 months ago

  • Fixed in Releases hammer-cli-foreman-3.2.0 added

#4 Updated by Anonymous 5 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF