Project

General

Profile

Actions

Bug #16644

closed

Parsing error of agent output when it contains warn of info logs

Added by Alexis Mousset almost 5 years ago. Updated over 4 years ago.

Status:
Released
Priority:
N/A
Category:
Relay server or API
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
To do
Regression:

Description

2020-01-29T22:04:21+00:00 R: @@Common@@control@@rudder@@run@@0@@start@@20200129-215835-6418a830@@2020-01-29 22:04:20+00:00##2f4e4400-3206-4fb3-ae7f-16d1192e38ac@#Start execution
2020-01-29T22:04:21+00:00 rudder     info: Automatically promoting context scope for 'heartbeat_sent' to namespace visibility, due to persistence
2020-01-29T22:04:21+00:00 R: [INFO] Starting CFEngine 3.12.3 on host hypervisor02.rudder.local (centos_7 x86_64)
2020-01-29T22:04:21+00:00 R: @@Common@@result_success@@hasPolicyServer-root@@common-root@@0@@ncf Initialization@@None@@2020-01-29 22:04:20+00:00##2f4e4400-3206-4fb3-ae7f-16d1192e38ac@#Configuration library initialization was correct
2020-01-29T22:04:21+00:00 R: @@Common@@log_repaired@@hasPolicyServer-root@@common-root@@0@@Update@@None@@2020-01-29 22:04:20+00:00##2f4e4400-3206-4fb3-ae7f-16d1192e38ac@#Configuration policy updated
2020-01-29T22:04:21+00:00 R: @@Common@@result_repaired@@hasPolicyServer-root@@common-root@@0@@Update@@None@@2020-01-29 22:04:20+00:00##2f4e4400-3206-4fb3-ae7f-16d1192e38ac@#Policy or configuration library were updated
2020-01-29T22:04:21+00:00 R: @@Common@@result_success@@hasPolicyServer-root@@common-root@@0@@Security parameters@@None@@2020-01-29 22:04:20+00:00##2f4e4400-3206-4fb3-ae7f-16d1192e38ac@#The internal environment security is acceptable
2020-01-29T22:04:21+00:00 R: @@Common@@result_success@@hasPolicyServer-root@@common-root@@0@@CRON Daemon@@None@@2020-01-29 22:04:20+00:00##2f4e4400-3206-4fb3-ae7f-16d1192e38ac@#Cron daemon status was correct
2020-01-29T22:04:21+00:00 R: @@Common@@result_success@@hasPolicyServer-root@@common-root@@0@@Log system for reports@@None@@2020-01-29 22:04:20+00:00##2f4e4400-3206-4fb3-ae7f-16d1192e38ac@#Reports forwarding to policy server was correct
2020-01-29T22:04:21+00:00 R: @@Common@@log_info@@hasPolicyServer-root@@common-root@@0@@None@@/var/rudder/tmp/rudder_monitoring.csv@@2020-01-29 22:04:20+00:00##2f4e4400-3206-4fb3-ae7f-16d1192e38ac@#Remove file /var/rudder/tmp/rudder_monitoring.csv was correct
2020-01-29T22:04:21+00:00 R: @@Inventory@@result_success@@inventory-all@@inventory-all@@0@@inventory@@None@@2020-01-29 22:04:20+00:00##2f4e4400-3206-4fb3-ae7f-16d1192e38ac@#Next inventory scheduled between 00:00 and 06:00
2020-01-29T22:04:21+00:00 R: @@osquery_installation_and_configuration@@result_success@@32377fd7-02fd-43d0-aab7-28460a91347b@@de4435a0-b5db-401a-aba1-a685d8a937e1@@0@@File from HTTP server@@/etc/pki/rpm-gpg/RPM-GPG-KEY-osquery@@2020-01-29 22:04:20+00:00##2f4e4400-3206-4fb3-ae7f-16d1192e38ac@#File /etc/pki/rpm-gpg/RPM-GPG-KEY-osquery already downloaded was correct
2020-01-29T22:04:21+00:00 R: @@osquery_installation_and_configuration@@result_success@@32377fd7-02fd-43d0-aab7-28460a91347b@@de4435a0-b5db-401a-aba1-a685d8a937e1@@0@@File from HTTP server@@/etc/yum.repos.d/osquery-s3-rpm.repo@@2020-01-29 22:04:20+00:00##2f4e4400-3206-4fb3-ae7f-16d1192e38ac@#File /etc/yum.repos.d/osquery-s3-rpm.repo already downloaded was correct
2020-01-29T22:04:22+00:00 R: @@osquery_installation_and_configuration@@result_success@@32377fd7-02fd-43d0-aab7-28460a91347b@@de4435a0-b5db-401a-aba1-a685d8a937e1@@0@@Package present@@osquery@@2020-01-29 22:04:20+00:00##2f4e4400-3206-4fb3-ae7f-16d1192e38ac@#Presence of package osquery in any version was correct
2020-01-29T22:04:22+00:00 rudder     info: Executing 'no timeout' ... 'code=`/opt/rudder/bin/curl https://server/rudder/relay-api/shared-files/root/2f4e4400-3206-4fb3-ae7f-16d1192e38ac/blob?hash=adb7647d077f8e3389a6c7eebdff15ffabc1b94d65f0ea94784e720d787779c96e1c50e83e775e62862d85aff1374d0f2b366ce3673a33a7cf366223b7104a71 --insecure --tlsv1 --location --head --output /dev/null --silent --fail --write-out %{http_code}` || if [ $code -eq 404 ]; then exit 22; elif [ $code -eq 200 ]; then exit 0; else exit 254; fi'
2020-01-29T22:04:22+00:00 rudder     info: Command related to promiser 'code=`/opt/rudder/bin/curl https://server/rudder/relay-api/shared-files/root/2f4e4400-3206-4fb3-ae7f-16d1192e38ac/blob?hash=adb7647d077f8e3389a6c7eebdff15ffabc1b94d65f0ea94784e720d787779c96e1c50e83e775e62862d85aff1374d0f2b366ce3673a33a7cf366223b7104a71 --insecure --tlsv1 --location --head --output /dev/null --silent --fail --write-out %{http_code}` || if [ $code -eq 404 ]; then exit 22; elif [ $code -eq 200 ]; then exit 0; else exit 254; fi' returned code defined as promise repaired 22
2020-01-29T22:04:22+00:00 rudder     info: Completed execution of 'code=`/opt/rudder/bin/curl https://server/rudder/relay-api/shared-files/root/2f4e4400-3206-4fb3-ae7f-16d1192e38ac/blob?hash=adb7647d077f8e3389a6c7eebdff15ffabc1b94d65f0ea94784e720d787779c96e1c50e83e775e62862d85aff1374d0f2b366ce3673a33a7cf366223b7104a71 --insecure --tlsv1 --location --head --output /dev/null --silent --fail --write-out %{http_code}` || if [ $code -eq 404 ]; then exit 22; elif [ $code -eq 200 ]; then exit 0; else exit 254; fi'
2020-01-29T22:04:22+00:00 rudder     info: Executing 'no timeout' ... 'echo | cat /etc/hosts.sign - /etc/hosts | /opt/rudder/bin/curl https://server/rudder/relay-api/shared-files/root/2f4e4400-3206-4fb3-ae7f-16d1192e38ac/blob?ttl=1d --insecure --tlsv1 --location --request PUT --output /dev/null --silent --fail --header 'Content-Type: application/octet-stream' --data-binary @-'
2020-01-29T22:04:22+00:00    error: Command related to promiser 'echo | cat /etc/hosts.sign - /etc/hosts | /opt/rudder/bin/curl' returned code defined as promise failed 22
2020-01-29T22:04:22+00:00 rudder     info: Completed execution of 'echo | cat /etc/hosts.sign - /etc/hosts | /opt/rudder/bin/curl https://server/rudder/relay-api/shared-files/root/2f4e4400-3206-4fb3-ae7f-16d1192e38ac/blob?ttl=1d --insecure --tlsv1 --location --request PUT --output /dev/null --silent --fail --header 'Content-Type: application/octet-stream' --data-binary @-'
2020-01-29T22:04:22+00:00 R: @@Test_share@@result_repaired@@32377fd7-02fd-43d0-aab7-28460a91347b@@5281551a-9da0-457a-8dac-c7dba180fa15@@0@@Sharedfile to node@@blob@@2020-01-29 22:04:20+00:00##2f4e4400-3206-4fb3-ae7f-16d1192e38ac@#Sharing /etc/hosts with root under the name blob for 1d was repaired
2020-01-29T22:04:22+00:00    error: Method 'sharedfile_to_node' failed in some repairs
2020-01-29T22:04:22+00:00    error: Method 'Test_share' failed in some repairs
2020-01-29T22:04:22+00:00    error: Method 'run_5281551a_9da0_457a_8dac_c7dba180fa15' failed in some repairs
2020-01-29T22:04:22+00:00 R: @@Common@@result_na@@hasPolicyServer-root@@common-root@@0@@Monitoring@@None@@2020-01-29 22:04:20+00:00##2f4e4400-3206-4fb3-ae7f-16d1192e38ac@#No Rudder monitoring information to share with the server
2020-01-29T22:04:22+00:00 R: @@Common@@control@@rudder@@run@@0@@end@@20200129-215835-6418a830@@2020-01-29 22:04:20+00:00##2f4e4400-3206-4fb3-ae7f-16d1192e38ac@#End execution

gives:

Presence of package osquery in any version was correct rudder info: Executing 'no timeout' ... 'code=`/opt/rudder/bin/curl https://server/rudder/relay-api/shared-files/root/2f4e4400-3206-4fb3-ae7f-16d1192e38ac/blob?hash=adb7647d077f8e3389a6c7eebdff15ffabc1b94d65f0ea94784e720d787779c96e1c50e83e775e62862d85aff1374d0f2b366ce3673a33a7cf366223b7104a71 --insecure --tlsv1 --location --head --output /dev/null --silent --fail --write-out %{http_code}` || if [ $code -eq 404 ]; then exit 22; elif [ $code -eq 200 ]; then exit 0; else exit 254; fi' rudder info: Command related to promiser 'code=`/opt/rudder/bin/curl https://server/rudder/relay-api/shared-files/root/2f4e4400-3206-4fb3-ae7f-16d1192e38ac/blob?hash=adb7647d077f8e3389a6c7eebdff15ffabc1b94d65f0ea94784e720d787779c96e1c50e83e775e62862d85aff1374d0f2b366ce3673a33a7cf366223b7104a71 --insecure --tlsv1 --location --head --output /dev/null --silent --fail --write-out %{http_code}` || if [ $code -eq 404 ]; then exit 22; elif [ $code -eq 200 ]; then exit 0; else exit 254; fi' returned code defined as promise repaired 22 rudder info: Completed execution of 'code=`/opt/rudder/bin/curl https://server/rudder/relay-api/shared-files/root/2f4e4400-3206-4fb3-ae7f-16d1192e38ac/blob?hash=adb7647d077f8e3389a6c7eebdff15ffabc1b94d65f0ea94784e720d787779c96e1c50e83e775e62862d85aff1374d0f2b366ce3673a33a7cf366223b7104a71 --insecure --tlsv1 --location --head --output /dev/null --silent --fail --write-out %{http_code}` || if [ $code -eq 404 ]; then exit 22; elif [ $code -eq 200 ]; then exit 0; else exit 254; fi' rudder info: Executing 'no timeout' ... 'echo | cat /etc/hosts.sign - /etc/hosts | /opt/rudder/bin/curl https://server/rudder/relay-api/shared-files/root/2f4e4400-3206-4fb3-ae7f-16d1192e38ac/blob?ttl=1d --insecure --tlsv1 --location --request PUT --output /dev/null --silent --fail --header 'Content-Type: application/octet-stream' --data-binary @-'

for message of the osquery package installation

Actions

Also available in: Atom PDF