Actions
Bug #37135
openhammer produces ambiguous results for Trace Status
Description
If i use hammer to list traces the output differs or is missing in some cases:
Here is the host displayed that requires a reboot:
# LANG=C hammer --output json host list --fields "Id,Name,Trace status,Operating system" | grep -A 1 -B 7 "Reboot required"
{
"Id": 3,
"Name": "alma8-test.corp.pe",
"Operating System": {
"Name": "AlmaLinux 8.9",
"Id": 3
},
"Trace Status": "Reboot required"
},
The host traces list also shows the actions required for the above host:
# hammer host traces list --host-id 3
---------|----------------|---------------------------------------|--------
TRACE ID | APPLICATION | HELPER | TYPE
---------|----------------|---------------------------------------|--------
4 | dbus | systemctl restart dbus | systemd
5 | firewalld | systemctl restart firewalld | systemd
10 | kernel | You will have to reboot your computer | static
7 | puppet | systemctl restart puppet | systemd
8 | salt-minion | systemctl restart salt-minion | systemd
9 | systemd-logind | systemctl restart systemd-logind | systemd
---------|----------------|---------------------------------------|--------
But the option "--search trace_status=reboot_needed" does not find any hosts:
# LANG=C hammer --output json host list --search trace_status=reboot_needed
[
]
# LANG=C hammer host list --search trace_status=reboot_needed
---|------|------------------|------------|----|-----|---------------|--------------|-----------------------|-------------
ID | NAME | OPERATING SYSTEM | HOST GROUP | IP | MAC | GLOBAL STATUS | CONTENT VIEW | LIFECYCLE ENVIRONMENT | TRACE STATUS
---|------|------------------|------------|----|-----|---------------|--------------|-----------------------|-------------
The column "Trace status" is not displayed:
# LANG=C hammer host list --fields "Id,Name,Trace status,Operating system"
---|---------------------------------|------------------------------------
ID | NAME | OPERATING SYSTEM
---|---------------------------------|------------------------------------
3 | alma8-test.corp.pe | AlmaLinux 8.9
---|---------------------------------|------------------------------------
# LANG=C hammer host list
---|---------------------------------|-------------------------------------|---------------------------------|----------------|-------------------|---------------|---------------------|----------------------
ID | NAME | OPERATING SYSTEM | HOST GROUP | IP | MAC | GLOBAL STATUS | CONTENT VIEW | LIFECYCLE ENVIRONMENT
---|---------------------------------|-------------------------------------|---------------------------------|----------------|-------------------|---------------|---------------------|----------------------
3 | alma8-test.corp.pe | AlmaLinux 8.9 | AlmaLinux 8.9 Library | 192.168.x.x | xxx | Error | Composite AlmaLinux 8.9 | Library
---|---------------------------------|-------------------------------------|---------------------------------|----------------|-------------------|---------------|---------------------|----------------------
#
Updated by Chris Roberts 11 months ago
- Category set to katello-tracer
- Target version set to Katello 4.13.0
- Triaged changed from No to Yes
Updated by Partha Aji 6 months ago
- Target version changed from Katello 4.13.0 to Katello 4.14.0
Updated by Chris Roberts 4 months ago
- Target version changed from Katello 4.14.0 to Katello 4.16.0
Actions