Bug 2209200
| Summary: | rhc system role does not apply Insights tags | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Benjamin Blasco <bblasco> | |
| Component: | rhel-system-roles | Assignee: | Rich Megginson <rmeggins> | |
| Status: | VERIFIED --- | QA Contact: | Jakub Haruda <jharuda> | |
| Severity: | low | Docs Contact: | ||
| Priority: | high | |||
| Version: | 9.2 | CC: | bblasco, briasmit, cdonnell, djez, fkrska, jharuda, pkettman, ptoscano, rmeggins, spetrosi, vdanek | |
| Target Milestone: | rc | Keywords: | Triaged, ZStream | |
| Target Release: | 9.3 | Flags: | rmeggins:
needinfo?
(djez) rmeggins: needinfo? (vdanek) rmeggins: needinfo? (cdonnell) fkrska: needinfo+ rmeggins: needinfo? (pkettman) |
|
| Hardware: | All | |||
| OS: | All | |||
| Whiteboard: | role:rhc | |||
| Fixed In Version: | rhel-system-roles-1.22.0-0.7.el9 | Doc Type: | Bug Fix | |
| Doc Text: |
Cause:
The `rhc` system role did not write the tags for Insights in the correct file.
Consequence:
The tags were not sent to Insights, and thus not applied for the systems in the Host Based Inventory (HBI).
Fix:
The `rhc` system role now writes the tags for Insights in the correct file.
Result:
The tags are applied correctly for the systems, and thus they are visible in HBI.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 2209441 2214284 (view as bug list) | Environment: | ||
| Last Closed: | Type: | Bug | ||
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 2209441, 2214284 | |||
|
Description
Benjamin Blasco
2023-05-23 05:16:30 UTC
Also worth noting that there's an indentation discrepancy between the documentation on the tags in the following two locations: https://github.com/linux-system-roles/rhc vs. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html-single/automating_system_administration_by_using_rhel_system_roles/index#configuring-insights-tags-using-rhc-system-role_using-the-rhc-system-role-to-register-the-system I have found the issue. The role is templating out a file called tags.yml when insights expects it to be tags.yaml (YAML not YML). The code that does this can be found on line 15 here: https://github.com/linux-system-roles/rhc/blob/main/tasks/insights-client.yml (In reply to Benjamin Blasco from comment #2) > I have found the issue. > > The role is templating out a file called tags.yml when insights expects it > to be tags.yaml (YAML not YML). The code that does this can be found on > line 15 here: > https://github.com/linux-system-roles/rhc/blob/main/tasks/insights-client.yml d'oh, thanks! hopefully easy fix for this: https://github.com/linux-system-roles/rhc/pull/102 |