Comment 15 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

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.
>