RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2058655 - Metrics role, with "metrics_from_mssql" option does not configure /var/lib/pcp/pmdas/mssql/mssql.conf on first run
Summary: Metrics role, with "metrics_from_mssql" option does not configure /var/lib/pc...
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: rhel-system-roles
Version: 8.5
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: Noriko Hosoi
QA Contact: David Jež
Gabi Fialová
Whiteboard: role:metrics
Depends On:
Blocks: 2058777 2060377 2060523
TreeView+ depends on / blocked
Reported: 2022-02-25 14:33 UTC by Brian Smith
Modified: 2022-05-10 14:42 UTC (History)
8 users (show)

Fixed In Version: rhel-system-roles-1.15.1-1.el8
Doc Type: Bug Fix
Doc Text:
.Configuration by the Metrics role now follows symbolic links correctly When the `mssql pcp` package is installed, the `mssql.conf` file is located in `/etc/pcp/mssql/` and is targeted by the symbolic link `/var/lib/pcp/pmdas/mssql/mssql.conf`. Previously, however, the Metrics role overwrote the symbolic link instead of following it and configuring `mssql.conf`. Consequently, running the Metrics role changed the symbolic link to a regular file and the configuration therefore only affected the `/var/lib/pcp/pmdas/mssql/mssql.conf` file. This resulted in a failed symbolic link, and the main configuration file `/etc/pcp/mssql/mssql.conf` was not affected by the configuration. The issue is now fixed and the `follow: yes` option to follow the symbolic link has been added to the Metrics role. As a result, the Metrics role preserves the symbolic links and correctly configures the main configuration file.
Clone Of:
: 2058777 2060377 (view as bug list)
Last Closed: 2022-05-10 14:13:20 UTC
Type: Bug
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github performancecopilot ansible-pcp pull 32 0 None Merged Add "follow: yes" to the template task in the mssql and elasticsearch subrole. 2022-03-01 17:22:49 UTC
Red Hat Issue Tracker RHELPLAN-113852 0 None None None 2022-02-25 14:38:10 UTC
Red Hat Product Errata RHBA-2022:1896 0 None None None 2022-05-10 14:14:46 UTC

Description Brian Smith 2022-02-25 14:33:31 UTC
Description of problem:
The metrics role, when used with the  "metrics_from_mssql" option does not configure /var/lib/pcp/pmdas/mssql/mssql.conf on the first playbook run.  This file still appears to have its default settings after the first playbook/role run.  If I run the playbook/role again, the file is properly updated on the second run. 

Version-Release number of selected component (if applicable):

How reproducible:
Every time

Steps to Reproduce:
1.  Run metrics role with the "metrics_from_mssql" option
2.  Check the  /var/lib/pcp/pmdas/mssql/mssql.conf on the hosts

Actual results:
/var/lib/pcp/pmdas/mssql/mssql.conf was not configured on the hosts, even though the "Ensure PCP SQL Server agent is configured" task ran.  If the playbook/role is run again, the task runs again, and the mssql.conf file is updated as expected.

Expected results:
The /var/lib/pcp/pmdas/mssql/mssql.conf should be updated on the first run of the role

Additional info:
After the first run, /var/lib/pcp/pmdas/mssql/mssql.conf is a symlink:

[root@rhel8-server2 ~]# ls -al /var/lib/pcp/pmdas/mssql/mssql.conf
lrwxrwxrwx. 1 root root 39 Jan  7 14:40 /var/lib/pcp/pmdas/mssql/mssql.conf -> ../../../../../etc/pcp/mssql/mssql.conf
After the second run, /var/lib/pcp/pmdas/mssql/mssql.conf is a file:

[ansible@rhel8-server2 ~]$ ls -al /var/lib/pcp/pmdas/mssql/mssql.conf 
-rw-------. 1 root root 370 Jan  7 15:02 /var/lib/pcp/pmdas/mssql/mssql.conf

Comment 21 errata-xmlrpc 2022-05-10 14:13:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (rhel-system-roles bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.