Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-2299

[RFE] Add content host fact (subscription_facet_attributes) attributes in safemode jail

XMLWordPrintable

      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)

      Version-Release number of selected component (if applicable):
      Satellite server 6.6.3

      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

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

              jira-bugzilla-migration RH Bugzilla Integration
              jira-bugzilla-migration RH Bugzilla Integration
              RH Bugzilla Integration RH Bugzilla Integration
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: