Project

General

Custom queries

Profile

Actions

Bug #37696

closed

Convert2rhel env facts are getting filtered due to env ethernet regex

Added by Chris Roberts 8 months ago. Updated 8 months ago.

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

Description

Convert2rhel creates a custom fact with an env variable if it got converted through Satellite or through the customer portal. It looks like this:

[root@toledo8 ~]# cat /etc/rhsm/facts/convert2rhel.facts {
"conversions.version": "1",
"conversions.activity": "conversion",
"conversions.packages.0.nevra": "convert2rhel-0:2.0.0-1.el8.noarch",
"conversions.packages.0.signature": "RSA/SHA256, Thu May 30 13:31:33 2024, Key ID 199e2f91fd431d51",
"conversions.executed": "/usr/bin/convert2rhel",
"conversions.success": true,
"conversions.activity_started": "2024-07-11T17:28:54.281664Z",
"conversions.activity_ended": "2024-07-11T17:48:47.026664Z",
"conversions.source_os.id": "Cerulean Leopard",
"conversions.source_os.name": "AlmaLinux",
"conversions.source_os.version": "8.10",
"conversions.target_os.id": "Ootpa",
"conversions.target_os.name": "Red Hat Enterprise Linux",
"conversions.target_os.version": "8.10",
"conversions.env.CONVERT2RHEL_THROUGH_FOREMAN": "1",
"conversions.run_id": "null"
}

The convert2rhel team wants that fact reported through RH cloud so they know if they should keep working on enhancing this process and to see how many people are using it.

Once this is in, I will make a PR to RH Cloud to add that into the report we send off.

Added by Chris Roberts 8 months ago

Revision 4bd1489e (diff)

Fixes #37696 - Add convert2rhel env fact to host subscription facet

Added by Evgeni Golov 8 months ago

Revision 763e72dc (diff)

Refs #37696 - only create sub-facet for c2r hosts

We do have hosts that have no subscription facet, and should not have
one. Adjust the logic for the c2r fact to only create the missing facet
if the fact was sent, and leave hosts w/o the facet and w/o the fact
alone.

Actions

Also available in: Atom PDF