Project

General

Profile

Actions

Feature #31803

open

Add content host fact (subscription_facet_attributes) attributes in safemode jail

Added by Dominik Matoulek almost 4 years ago. Updated almost 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1897911

Description of problem:
In the default condition (parameter `safemode_rendering` set to 'yes') we cannot use host subscription attributes (for example host.subscription_facet_attributes.service_level) in the report templates.

Reported error : There was an error rendering the Registered hosts clone template: undefined method '#subscription_facet_attributes' for Host::Managed::Jail (Host::Managed)

How reproducible:
Deterministic

Steps to Reproduce:
1. Clone report template 'Registered hosts' to 'Registered hosts clone'
2. Add attribute `host.subscription_facet_attributes.service_level` in the cloned template (Registered hosts clone).
3. Set safemode_rendering to NO # hammer settings set --name "safemode_render" --value 0

Actual results:

On step 2, if we render the template, system will report error

There was an error rendering the Registered hosts clone template: undefined method '#subscription_facet_attributes' for Host::Managed::Jail (Host::Managed)

On step 3, after toggling safemode_render variable report is generated successfully

Expected results:
subscription_facet_attributes should be accessible within safemode

Additional info:

reference link > https://github.com/Katello/katello/blob/9c17faa3045b22dcf8df898601d4162a0e1405e8/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html

Actions

Also available in: Atom PDF