Bug 1731235
Summary: | [RFE] Create Report Template to list inactive hosts | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Dylan Gross <dgross> |
Component: | Reporting | Assignee: | satellite6-bugs <satellite6-bugs> |
Status: | CLOSED ERRATA | QA Contact: | Lukáš Hellebrandt <lhellebr> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 6.5.0 | CC: | bkearney, dmatoule, egolov, gscarbor, inecas, jamiewbutler, mhulan, oprazak |
Target Milestone: | 6.8.0 | Keywords: | EasyFix, FutureFeature, Triaged |
Target Release: | Unused | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | tfm-rubygem-katello-3.15.0 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-10-27 12:58:49 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Dylan Gross
2019-07-18 17:33:08 UTC
Created redmine issue https://projects.theforeman.org/issues/28211 from this bug The behavior of requested can partially achieved by included reports. In the "Host statuses" is possible to filter hosts by name and other attributes like "last_checkin". So if you want to list hosts where last_checkin was 3 hours ago until now, you can simply filter by "last_checkin < 3 hours ago" at the hosts input. The little problem is that is not possible to include to report a last_checkin value for given host. This improvement will be in the next release. After that, you will be able to add to report (ie. "Host statuses") last_checkin value for host also. The only drawback is make own report type. 1. You have to clone "Host statuses" report 2. Add to end of line 18 character "," (without quotes) 3. Create new row after line 18 and write " 'last_checking': last_checkin(host)" with indentation that respect line 18 4. Save and use it. Dylan, does comment 5 resolved the issue? Or should we keep this RFE to track "making last_checking information available in report templates"? Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28211 has been resolved. Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28211 has been resolved. Verified with Sat 6.8 snap 3.0. 1) Clone "Host - Statuses" 2) To "Host - Statuses clone", add field last_checkin: ``` 'Global': host.global_status, 'Last check-in': last_checkin(host) }.merge(all_host_statuses_hash(host))) -%> ``` 3) Generate "Host - Statuses clone" => List with last checkins of content hosts. This is sufficient as per comment 11. Non-content hosts have last_checkin==0. This is expected because last_checkin only maps checkins with subscription-manager. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Satellite 6.8 release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:4366 |