Bug 1902681

Summary: ceilometer_agent_central and ceilometer_agent_notification healthchecks are broken
Product: Red Hat OpenStack Reporter: Alex Stupnikov <astupnik>
Component: openstack-tripleo-commonAssignee: Martin Magr <mmagr>
Status: CLOSED ERRATA QA Contact: Leonid Natapov <lnatapov>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: cylopez, jwang, lmadsen, lrobinson, mburns, michal.vasko, mrunge, renich, slinaber
Target Milestone: z7Keywords: Triaged, ZStream
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: openstack-tripleo-common-11.4.1-1.20210412113429.75bd92a.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-09 20:17:29 UTC 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:

Description Alex Stupnikov 2020-11-30 11:58:04 UTC
Description of problem:

ceilometer_agent_central and ceilometer_agent_notification healthchecks are broken and fail with error [1]. In my understanding this error is generated because get_user_from_process function [2] doesn't return correct username (it returns ceilome+ instead of ceilometer)

I get the same outcome when running the following command manually: https://github.com/openstack/tripleo-common/blob/stable/train/healthcheck/common.sh#L32

[1]
Oct 28 07:25:23 controller-1 healthcheck_ceilometer_agent_notification[971681]: + sudo -u ceilome+ ss -ntuap
Oct 28 07:25:23 controller-1 healthcheck_ceilometer_agent_notification[971681]: sudo: unknown user: ceilome+
Oct 28 07:25:23 controller-1 healthcheck_ceilometer_agent_notification[971681]: sudo: unable to initialize policy plugin

[2]
https://github.com/openstack/tripleo-common/blob/stable/train/healthcheck/common.sh#L15

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 4 lrobinson 2020-12-10 19:57:25 UTC
Can confirm we are also experiencing this bug.

Comment 24 errata-xmlrpc 2021-12-09 20:17:29 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 (Red Hat OpenStack Platform 16.1.7 (Train) bug fix and enhancement advisory), and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHBA-2021:3762