Bug 1827023 - OSP16 | Collectd Sensubility | sensubility fails on parsing current container-health-check
Summary: OSP16 | Collectd Sensubility | sensubility fails on parsing current container...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: collectd-sensubility
Version: 16.0 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z2
: 16.1 (Train on RHEL 8.2)
Assignee: Martin Magr
QA Contact: Leonid Natapov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-23 04:52 UTC by Leonid Natapov
Modified: 2023-09-14 05:55 UTC (History)
4 users (show)

Fixed In Version: collectd-sensubility-0.1.5-1.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-28 15:36:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2020:4284 0 None None None 2020-10-28 15:37:17 UTC

Description Leonid Natapov 2020-04-23 04:52:43 UTC
OSP16 | Collectd Sensubility | sensubility fails on parsing current container-health-check

Getting error message in sensubility.log
----------------------------------------

[ERROR] Failed to spawn check scheduler. [error: unexpected end of JSON input]
[ERROR] Failed to spawn check scheduler. [error: unexpected end of JSON input]
[ERROR] Failed to spawn check scheduler. [error: unexpected end of JSON input]
[ERROR] Failed to spawn check scheduler. [error: unexpected end of JSON input]

Currently the conf file looks like this:
----------------------------------------

[default]
log_level=WARNING
 
[sensu]
connection=amqp://sensu:sensu.lab.eng.rdu2.redhat.com//sensu
subscriptions=overcloud-cinder-api,overcloud-cinder-scheduler,overcloud-cinder-volume,overcloud-glance-api,overcloud-haproxy,overcloud-heat-api,overcloud-heat-api-cfn,overcloud-heat-engine,overcloud-horizon,overcloud-keystone,overcloud-memcached,overcloud-qdr,overcloud-neutron-server,overcloud-nova-api,overcloud-nova-conductor,overcloud-nova-metadata,overcloud-nova-scheduler,overcloud-pacemaker,overcloud-swift-proxy
client_name=controller-0.internalapi.redhat.local
client_address=172.17.1.33
keepalive_interval=20
tmp_base_dir=/var/tmp/collectd-sensubility-checks
shell_path=/usr/bin/sh
worker_count=2
checks={"check-container-health":{"command":"output=\"\"\nwhile read line ; do\n  i=$(echo $line | awk '//{gsub(/:/, \"\", $0); print $5}')\n  log=$(echo $line | awk '{split($0,a,/:\\s+Error:\\s+/); print a[2]}')\n  log=${log:0:-1}\n  output+=\" ; ${i}: ${log}\"\ndone < <(egrep \"^[a-zA-Z]{3}\\s+[0-9]{2}\\s+[0-9\\:]{8}\\s+.*\\s+.*:\\s+[Ee]rror\\:\" /var/log/collectd/healthchecks.log)\ntruncate -s0 /var/log/collectd/healthchecks.log\nif [ ! -z \"${output}\" ]; then\n  echo ${output:3} && exit 2;\nfi\n","handlers":[],"interval":10,"occurrences":3,"refresh":90,"standalone":true}}
 
[amqp]

Comment 3 Martin Magr 2020-05-12 13:29:26 UTC
Upstream build: https://cbs.centos.org/koji/buildinfo?buildID=30022

Comment 9 Leonid Natapov 2020-09-23 19:29:34 UTC
issue solved. no errors described in the bug appear in the log.
sensubility works correctly except wrong health check that causes to error appear in uchiwa. Will open a new BZ about it. This one is verified.

Comment 15 errata-xmlrpc 2020-10-28 15:36:49 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 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/RHEA-2020:4284

Comment 16 Red Hat Bugzilla 2023-09-14 05:55:46 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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