Bug 1827023
| Summary: | OSP16 | Collectd Sensubility | sensubility fails on parsing current container-health-check | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Leonid Natapov <lnatapov> | 
| Component: | collectd-sensubility | Assignee: | Martin Magr <mmagr> | 
| Status: | CLOSED ERRATA | QA Contact: | Leonid Natapov <lnatapov> | 
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 16.0 (Train) | CC: | csibbitt, mrunge, rmccabe, shrjoshi | 
| Target Milestone: | z2 | Keywords: | Triaged, ZStream | 
| Target Release: | 16.1 (Train on RHEL 8.2) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | collectd-sensubility-0.1.5-1.el8ost | Doc Type: | If docs needed, set a value | 
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-10-28 15:36:49 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: | |||
Upstream build: https://cbs.centos.org/koji/buildinfo?buildID=30022 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. 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 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days  | 
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]