I actually got a problem even in the nodes from the hardware models that
seemed always ok.
root@bootstrap:~# bash -x fix-configs-on-startup
+ set -e
++ sed -rn 's/^.*url=http:\/\/(([0-9]{1,3}\.){3}[0-9]{1,3}).*$/\1/ p'
/proc/cmdline
+ masternode_ip=146.118.52.2
++ sed 's/\ /\n/g' /proc/cmdline
++ grep mco_user
++ awk -F= '{print $2}'
+ mco_user=mcollective
++ sed 's/\ /\n/g' /proc/cmdline
++ grep mco_pass
++ awk -F= '{print $2}'
+ mco_pass=XozR2WWv4yHltFIYZF7N3Nem
+ '[' -z mcollective ']'
+ '[' -z XozR2WWv4yHltFIYZF7N3Nem ']'
+ cat
+ /usr/bin/send2syslog.py -i
+ sed -i '/^\s*tinker panic/ d' /etc/ntp.conf
+ sed -i '1 i tinker panic 0' /etc/ntp.conf
+ mkdir -p /var/lib/ntp
+ chown ntp: /var/lib/ntp
+ echo 0
+ chown ntp: /var/lib/ntp/ntp.drift
+ sed -i '/^\s*server\b/ d' /etc/ntp.conf
+ echo 'server 146.118.52.2 burst iburst'
+ service ntp restart
+ sed -i
's/^plugin.rabbitmq.pool.1.host\b.*$/plugin.rabbitmq.pool.1.host =
146.118.52.2/' /etc/mcollective/server.cfg
+ sed -i
's/^plugin.rabbitmq.pool.1.user\b.*$/plugin.rabbitmq.pool.1.user =
mcollective/' /etc/mcollective/server.cfg
+ sed -i
's/^plugin.rabbitmq.pool.1.password\b.*$/plugin.rabbitmq.pool.1.password=
XozR2WWv4yHltFIYZF7N3Nem/' /etc/mcollective/server.cfg
+ systemctl unmask mcollective
Failed to execute operation: Connection timed out
On 23/01/17 17:58, Georgy Kibardin wrote:
>> The script, in the "problematic boxes" is not "linked" properly and I have to execute it with the absolute path /usr/bin/fix-configs-on-startup
> That puzzles me a bit - if /usr/bin is not in PATH, something must be broken badly. Figuring what could have affected that.
>
>> + systemctl unmask mcollective
>> Failed to execute operation: Connection timed out
> Systemd also seems to not function properly.
>
I actually got a problem even in the nodes from the hardware models that
seemed always ok.
root@bootstrap:~# bash -x fix-configs- on-startup http:\/ \/(([0- 9]{1,3} \.){3}[ 0-9]{1, 3}).*$/ \1/ p' ip=146. 118.52. 2 mcollective XozR2WWv4yHltFI YZF7N3Nem YZF7N3Nem ']' send2syslog. py -i ntp/ntp. drift rabbitmq. pool.1. host\b. *$/plugin. rabbitmq. pool.1. host = e/server. cfg rabbitmq. pool.1. user\b. *$/plugin. rabbitmq. pool.1. user = e/server. cfg rabbitmq. pool.1. password\ b.*$/plugin. rabbitmq. pool.1. password= YZF7N3Nem/ ' /etc/mcollectiv e/server. cfg
+ set -e
++ sed -rn 's/^.*url=
/proc/cmdline
+ masternode_
++ sed 's/\ /\n/g' /proc/cmdline
++ grep mco_user
++ awk -F= '{print $2}'
+ mco_user=
++ sed 's/\ /\n/g' /proc/cmdline
++ grep mco_pass
++ awk -F= '{print $2}'
+ mco_pass=
+ '[' -z mcollective ']'
+ '[' -z XozR2WWv4yHltFI
+ cat
+ /usr/bin/
+ sed -i '/^\s*tinker panic/ d' /etc/ntp.conf
+ sed -i '1 i tinker panic 0' /etc/ntp.conf
+ mkdir -p /var/lib/ntp
+ chown ntp: /var/lib/ntp
+ echo 0
+ chown ntp: /var/lib/
+ sed -i '/^\s*server\b/ d' /etc/ntp.conf
+ echo 'server 146.118.52.2 burst iburst'
+ service ntp restart
+ sed -i
's/^plugin.
146.118.52.2/' /etc/mcollectiv
+ sed -i
's/^plugin.
mcollective/' /etc/mcollectiv
+ sed -i
's/^plugin.
XozR2WWv4yHltFI
+ systemctl unmask mcollective
Failed to execute operation: Connection timed out
On 23/01/17 17:58, Georgy Kibardin wrote: fix-configs- on-startup
>> The script, in the "problematic boxes" is not "linked" properly and I have to execute it with the absolute path /usr/bin/
> That puzzles me a bit - if /usr/bin is not in PATH, something must be broken badly. Figuring what could have affected that.
>
>> + systemctl unmask mcollective
>> Failed to execute operation: Connection timed out
> Systemd also seems to not function properly.
>