Hide Forgot
Description of problem: ----------------------- One of the cu following the below document to configure the system role which will be executed by the ansible - https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/administration_and_configuration_tasks_using_system_roles_in_rhel_7.9/monitoring-performance-using-rhel-system-roles_administration-and-configuration-tasks-using-system-roles-in-rhel-7.9#using-the-metrics-role-to-monitor-a-fleet-of-machines-centrally-via-your-local-machine_monitoring-performance-using-rhel-system-roles. Version-Release number of selected component (if applicable): ------------------------------------------------------------- rhel-system-roles-1.7.3-4.el7_9.noarch How reproducible: ----------------- Always Steps to Reproduce: ------------------- 1. Install below ansible & rhel-system-roles package - - rhel-system-roles-1.7.3-4.el7_9.noarch - ansible-2.9.27-1.el7ae.noarch 2. Create the playbook with below content - --- - hosts: localhost vars: metrics_graph_service: yes metrics_query_service: yes metrics_retention_days: 10 metrics_monitored_hosts: - rhel-t4.hrz.uni-bielefeld.de - uhrz-rhel-t3.hrz.uni-bielefeld.de roles: - rhel-system-roles.metrics 3. Run the playbook as per below - ---------------------------------- # ansible-playbook -vvv -i hosts -u root deploy_rhel_system_role_metrics.yml >/tmp/ansible-output_20220525.txt 2>1 Actual results: --------------- - Fails with below messages - "msg": "No package matching 'redis-doc' found available, installed or updated", "rc": 126, "results": [ "redis-3.2.12-2.el7.x86_64 providing redis is already installed", "No package matching 'redis-doc' found available, installed or updated" Workaround - ------------ Downgrade the rhel-system-roles to version 1.0-12.el7_8.
These options are not going to work on RHEL7 using the bits we ship: metrics_graph_service: yes metrics_query_service: yes because there is no grafana in RHEL7 (first option) and the Redis in RHEL7 is far too old (Redis v3, minimum is v5). However, the rest of the metrics role being used here is functional. The downgrade described as a workaround is not really, it doesn't "fix" anything just fails differently (the requested Grafana and Redis packages are still not installed at the end of the process). I think the only thing we can do here is close this out with WONTFIX since these missing packages will never exist on RHEL7. Thoughts? Customers could provide their own yum repo with latest Grafana and Redis (EPEL doesn't have sufficiently recent versions either FWIW).
(In reply to Nathan Scott from comment #3) > These options are not going to work on RHEL7 using the bits we ship: > > metrics_graph_service: yes > metrics_query_service: yes > > because there is no grafana in RHEL7 (first option) and the Redis in RHEL7 > is far too old (Redis v3, minimum is v5). > > However, the rest of the metrics role being used here is functional. > > The downgrade described as a workaround is not really, it doesn't "fix" > anything just fails differently (the requested Grafana and Redis packages > are still not installed at the end of the process). > > I think the only thing we can do here is close this out with WONTFIX since > these missing packages will never exist on RHEL7. Thoughts? > Customers could provide their own yum repo with latest Grafana and Redis > (EPEL doesn't have sufficiently recent versions either FWIW). We should definitely document in the README and official Red Hat docs that redis is not supported on RHEL7. But I think we will have to change https://github.com/performancecopilot/ansible-pcp/blob/main/roles/redis/meta/main.yml#L16 to be platforms: - name: EL versions: - 8 - 9 because `all` is misleading.
OK, thanks Rich - I'll make that change (and a similar one for grafana).
Actually, it is already documented in the README: https://github.com/linux-system-roles/metrics#requirements I'll document it again within the sections describing the metrics_graph_service and metrics_query_service options.
(In reply to Rich Megginson from comment #4) > We should definitely document in the README and official Red Hat docs that > redis is not supported on RHEL7. I agree with that. Some info in chapter 15 would be helpful - https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/administration_and_configuration_tasks_using_system_roles_in_rhel_7.9/monitoring-performance-using-rhel-system-roles_administration-and-configuration-tasks-using-system-roles-in-rhel-7.9#introduction-to-the-metrics-role_monitoring-performance-using-rhel-system-roles. (In reply to Nathan Scott from comment #3) > The downgrade described as a workaround is not really, it doesn't "fix" > anything just fails differently (the requested Grafana and Redis packages > are still not installed at the end of the process). > > I think the only thing we can do here is close this out with WONTFIX since > these missing packages will never exist on RHEL7. Thoughts? When it's documented in official docs as well as the README.md it would suffice and I can understand that Red Hat won't fix it for RHEL 7 which is closer to its EoL than being a new release. Thanks for being so transparent about it. Regards, Jörg
Thanks for the feedback Jörg and Rich for opening the official docs BZs. Docs changes have been merged in the roles upstream now: https://github.com/performancecopilot/ansible-pcp/pull/38 https://github.com/linux-system-roles/metrics/pull/116 re-assigning to Rich for future RHEL builds pulling these changes in.