Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Comment 5Lukáš Hellebrandt
2021-03-10 14:18:52 UTC
Verified with Sat 6.9.0 snap 12.
It's now possible to use `erratum.title` in the report template, which contains synopsis of the erratum, e.g. "Important: freetype security update", and 'erratum.summary' which contains errata summary text. Example based on Applicable Errata report template:
```
<%#
name: Host - Applicable Errata
snippet: false
template_inputs:
- name: Hosts filter
required: false
input_type: user
description: Limit the report only on hosts found by this search query. Keep empty
for report on all available hosts.
advanced: false
value_type: search
resource_type: Host
- name: Errata filter
required: false
input_type: user
description: Limit the report only on errata found by this search query. Keep empty
for report on all available errata.
advanced: false
model: ReportTemplate
require:
- plugin: katello
 version: 3.16.0
-%>
<%- report_headers 'Host', 'Operating System', 'Environment', 'Erratum', 'Type', 'Published', 'Applicable since', 'Severity', 'Packages', 'CVEs', 'Reboot suggested', 'Synopsis', 'Summary'-%>
<%- load_hosts(search: input('Hosts filter'), preload: [:operatingsystem, :lifecycle_environment]).each_record do |host| -%>
<%- host_applicable_errata_filtered(host, input('Errata filter')).each do |erratum| -%>
<%- report_row(
'Host': host.name,
'Operating System': host.operatingsystem,
'Environment': host.lifecycle_environment,
'Erratum': erratum.errata_id,
'Type': erratum.errata_type,
'Published': erratum.issued,
'Applicable since': erratum.created_at,
'Severity': erratum.severity,
'Packages': erratum.package_names,
'CVEs': erratum.cves.map { |c| c.cve_id },
'Reboot suggested': erratum.reboot_suggested,
'Synopsis': erratum.title,
'Summary': erratum.summary
) -%>
<%- end -%>
<%- end -%>
<%= report_render -%>
```
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 (Satellite 6.8.5 Async Bug Fix Update), 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/RHBA-2021:1057
Verified with Sat 6.9.0 snap 12. It's now possible to use `erratum.title` in the report template, which contains synopsis of the erratum, e.g. "Important: freetype security update", and 'erratum.summary' which contains errata summary text. Example based on Applicable Errata report template: ``` <%# name: Host - Applicable Errata snippet: false template_inputs: - name: Hosts filter required: false input_type: user description: Limit the report only on hosts found by this search query. Keep empty for report on all available hosts. advanced: false value_type: search resource_type: Host - name: Errata filter required: false input_type: user description: Limit the report only on errata found by this search query. Keep empty for report on all available errata. advanced: false model: ReportTemplate require: - plugin: katello  version: 3.16.0 -%> <%- report_headers 'Host', 'Operating System', 'Environment', 'Erratum', 'Type', 'Published', 'Applicable since', 'Severity', 'Packages', 'CVEs', 'Reboot suggested', 'Synopsis', 'Summary'-%> <%- load_hosts(search: input('Hosts filter'), preload: [:operatingsystem, :lifecycle_environment]).each_record do |host| -%> <%- host_applicable_errata_filtered(host, input('Errata filter')).each do |erratum| -%> <%- report_row( 'Host': host.name, 'Operating System': host.operatingsystem, 'Environment': host.lifecycle_environment, 'Erratum': erratum.errata_id, 'Type': erratum.errata_type, 'Published': erratum.issued, 'Applicable since': erratum.created_at, 'Severity': erratum.severity, 'Packages': erratum.package_names, 'CVEs': erratum.cves.map { |c| c.cve_id }, 'Reboot suggested': erratum.reboot_suggested, 'Synopsis': erratum.title, 'Summary': erratum.summary ) -%> <%- end -%> <%- end -%> <%= report_render -%> ```