-
Task
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
None
Goal:
- We want to identify whether the metered system has been through the convert2RHEL conversion process. This will help us better differentiate the metered product offerings.
When the convert2RHEL process is accomplished several facts will be available in the subscripton-manager facts output:
=========
conversions.activity: conversion
conversions.activity_ended: 2023-10-06T14:32:44.223365Z
conversions.activity_started: 2023-10-06T14:16:45.898768Z
conversions.env: null
conversions.executed: /usr/bin/convert2rhel -serverurl subscription.rhsm.stage.redhat.com -username ***** --password ***** --pool 2c946d8a865d8e2601865f2e77b4103a --no-rpm-va --debug -y
conversions.packages.0.nevra: 0:convert2rhel-1.4.1-2.20231006110822847106.main.29.g7df4403.el7.noarch
conversions.packages.0.signature: RSA/SHA256, Fri Oct 6 11:11:33 2023, Key ID 175e6797ecf2dde9
conversions.run_id: null
conversions.source_os.id: Core
conversions.source_os.name: CentOS Linux
conversions.source_os.version: 7.9
conversions.success: True
conversions.target_os.id: Maipo
conversions.target_os.name: Red Hat Enterprise Linux Server
conversions.target_os.version: 7.9
conversions.version: 1
========
The host-metering tool needs to check for the "conversions.success: True" key/value pair. If present then the associated VCPU count metrics should be labeled with `conversions_success="true"`. This label would not be present otherwise.
Acceptance Criteria:
- Verify that the conversions_success="true" label is present on metrics if the system has the "conversions.success: True" subscription-manager fact