Project

General

Profile

Actions

Bug #38920

closed

Add Cloud Billing Metadata inclusion options to Host - Installed Products report template

Added by Chris Roberts 5 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Reporting
Target version:
Fixed in Releases:
Found in Releases:

Description

Description

Add support for optionally including cloud billing metadata (AWS, Azure, GCP) in the "Host - Installed Products" report template to help users segment systems by billing requirements.

Requirements
New Input Fields
Add three new input fields to the report generation options:
'Include AWS'
'Include GCP'
'Include Azure'
All three inputs must be set to false by default
Azure Columns

When 'Include Azure' is checked, include these columns for Azure hosts:

Azure Subscription ID: host.facts['azure_subscription_id']
Azure Offer: host.facts['azure_offer']
AWS Columns

When 'Include AWS' is checked, include these columns for AWS hosts:

AWS Account ID: host.facts['aws_account_id']
AWS Billing Product: host.facts['aws_billing_products']
AWS Instance Type: host.facts['aws_instance_type']
AWS Marketplace Product: host.facts['aws_marketplace_product_codes']
GCP Columns

When 'Include GCP' is checked, include this column for GCP hosts:

GCP License Code: host.facts['gcp_license_codes']
Business Value

Users must be able to use the cloud billing columns to effectively segment their systems into two groups:

Systems that require payment to Red Hat
Systems already covered by the cloud provider
Acceptance Criteria
[ ] 'Include AWS', 'Include GCP', and 'Include Azure' input fields are available in report template parameters
[ ] Default value is false for all three cloud provider options
[ ] When 'Include Azure' is enabled, Azure-specific columns appear with correct data mapping
[ ] When 'Include AWS' is enabled, AWS-specific columns appear with correct data mapping
[ ] When 'Include GCP' is enabled, GCP-specific columns appear with correct data mapping
[ ] Cloud billing columns enable effective system segmentation by billing responsibility
QE Acceptance Criteria
Cloud Billing Metadata Features (SAT-39184)

Input Fields Testing:

[ ] Verify 'Include AWS', 'Include GCP', and 'Include Azure' input fields exist in report template parameters
[ ] Verify all three cloud provider options default to false for new report templates
[ ] Verify each field can be toggled independently

Azure Report Generation Testing:

[ ] When 'Include Azure' is false, verify Azure columns do NOT appear
[ ] When 'Include Azure' is true, verify these columns appear:
'Azure Subscription ID' with data from host.facts['azure_subscription_id']
'Azure Offer' with data from host.facts['azure_offer']
[ ] Test with Azure hosts and non-Azure hosts

AWS Report Generation Testing:

[ ] When 'Include AWS' is false, verify AWS columns do NOT appear
[ ] When 'Include AWS' is true, verify these columns appear:
'AWS Account ID' with data from host.facts['aws_account_id']
'AWS Billing Product' with data from host.facts['aws_billing_products']
'AWS Instance Type' with data from host.facts['aws_instance_type']
'AWS Marketplace Product' with data from host.facts['aws_marketplace_product_codes']
[ ] Test with AWS hosts and non-AWS hosts

GCP Report Generation Testing:

[ ] When 'Include GCP' is false, verify GCP columns do NOT appear
[ ] When 'Include GCP' is true, verify this column appears:
'GCP License Code' with data from host.facts['gcp_license_codes']
[ ] Test with GCP hosts and non-GCP hosts

Actions #1

Updated by The Foreman Bot 5 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/10782 added
Actions #2

Updated by The Foreman Bot 4 months ago

  • Fixed in Releases 3.18.0 added
Actions #3

Updated by Chris Roberts 4 months ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by The Foreman Bot 2 months ago

  • Pull request https://github.com/theforeman/foreman/pull/10743 added
Actions

Also available in: Atom PDF