Comment 10 for bug 1656150

Revision history for this message
Luca Cervigni (cervigni) wrote : Re: [Bug 1656150] Re: Mcollective fails to start in bootstrap of baremetal servers

It did,

I am in the middle of the provisioning though, I paste it anyway:

root@bootstrap:~# cat /etc/send2syslog.conf
{
"watchlist": [
     {"servers": [ {"host": "146.118.52.2"} ],
         "watchfiles": [
             {"tag": "bootstrap/kern.log", "files": ["/var/log/kern.log"]},
             {"tag": "bootstrap/udev", "files": ["/var/log/udev"]},
             {"tag": "bootstrap/dmesg", "files": ["/var/log/dmesg"]},
             {"tag": "bootstrap/secure", "files": ["/var/log/secure"]},
             {"tag": "bootstrap/messages", "files": ["/var/log/messages"]},
             {"tag": "bootstrap/fuel-agent", "files":
["/var/log/fuel-agent.log"]},
             {"tag": "bootstrap/syslog", "files": ["/var/log/syslog"]},
             {"tag": "bootstrap/auth", "files": ["/var/log/auth.log"]},
             {"tag": "bootstrap/mcollective", "log_type": "ruby",
                 "files": ["/var/log/mcollective.log"]},
             {"tag": "bootstrap/agent", "log_type": "ruby",
                 "files": ["/var/log/nailgun-agent.log"]},
             {"tag": "bootstrap/netprobe_sender", "log_type": "netprobe",
                 "files": ["/var/log/netprobe_sender.log"]},
             {"tag": "bootstrap/netprobe_listener", "log_type": "netprobe",
                 "files": ["/var/log/netprobe_listener.log"]}
         ]
     }
]
}
root@bootstrap:~#
root@bootstrap:~# bash -x /etc/send2syslog.conf
+ watchlist: '['
/etc/send2syslog.conf: line 2: watchlist:: command not found
+ '{servers:' '[' '{host:' '146.118.52.2}' '],'
/etc/send2syslog.conf: line 3: {servers:: command not found
+ watchfiles: '['
/etc/send2syslog.conf: line 4: watchfiles:: command not found
+ '{tag:' bootstrap/kern.log, files: '[/var/log/kern.log]},'
/etc/send2syslog.conf: line 5: {tag:: command not found
+ '{tag:' bootstrap/udev, files: '[/var/log/udev]},'
/etc/send2syslog.conf: line 6: {tag:: command not found
+ '{tag:' bootstrap/dmesg, files: '[/var/log/dmesg]},'
/etc/send2syslog.conf: line 7: {tag:: command not found
+ '{tag:' bootstrap/secure, files: '[/var/log/secure]},'
/etc/send2syslog.conf: line 8: {tag:: command not found
+ '{tag:' bootstrap/messages, files: '[/var/log/messages]},'
/etc/send2syslog.conf: line 9: {tag:: command not found
+ '{tag:' bootstrap/fuel-agent, files: '[/var/log/fuel-agent.log]},'
/etc/send2syslog.conf: line 10: {tag:: command not found
+ '{tag:' bootstrap/syslog, files: '[/var/log/syslog]},'
/etc/send2syslog.conf: line 11: {tag:: command not found
+ '{tag:' bootstrap/auth, files: '[/var/log/auth.log]},'
/etc/send2syslog.conf: line 12: {tag:: command not found
+ '{tag:' bootstrap/mcollective, log_type: ruby,
/etc/send2syslog.conf: line 13: {tag:: command not found
+ files: '[/var/log/mcollective.log]},'
/etc/send2syslog.conf: line 14: files:: command not found
+ '{tag:' bootstrap/agent, log_type: ruby,
/etc/send2syslog.conf: line 15: {tag:: command not found
+ files: '[/var/log/nailgun-agent.log]},'
/etc/send2syslog.conf: line 16: files:: command not found
+ '{tag:' bootstrap/netprobe_sender, log_type: netprobe,
/etc/send2syslog.conf: line 17: {tag:: command not found
+ files: '[/var/log/netprobe_sender.log]},'
/etc/send2syslog.conf: line 18: files:: command not found
+ '{tag:' bootstrap/netprobe_listener, log_type: netprobe,
/etc/send2syslog.conf: line 19: {tag:: command not found
+ files: '[/var/log/netprobe_listener.log]}'
/etc/send2syslog.conf: line 20: files:: command not found
+ ']'
/etc/send2syslog.conf: line 21: ]: command not found
+ ']'
/etc/send2syslog.conf: line 23: ]: command not found
/etc/send2syslog.conf: line 24: syntax error near unexpected token `}'
/etc/send2syslog.conf: line 24: `}'

On 20/01/17 15:54, Georgy Kibardin wrote:
> bash -x /etc/send2syslog.conf