root@bootstrap:~# service mcollective start
root@bootstrap:~# service mcollective status
● mcollective.service - The Marionette Collective
Loaded: loaded (/lib/systemd/system/mcollective.service; enabled;
vendor preset: enabled)
Active: active (running) since Wed 2017-02-01 01:26:48 UTC; 4s ago
Process: 7521 ExecStart=/usr/sbin/mcollectived
--config=/etc/mcollective/server.cfg --pidfile=/var/run/mcollective.pid
(code=exited, status=0/SUCCESS)
Main PID: 7527 (ruby)
CGroup: /system.slice/mcollective.service
└─7527 ruby /usr/sbin/mcollectived
--config=/etc/mcollective/server.cfg --pidfile=/var/run/mcollective.pid
Feb 01 01:26:48 bootstrap systemd[7521]: mcollective.service: Executing:
/usr/sbin/mcollectived --config=/etc/mcollective/server.cfg
--pidfile=/var/run/mcollective.pid
Feb 01 01:26:48 bootstrap systemd[1]: mcollective.service: Child 7521
belongs to mcollective.service
Feb 01 01:26:48 bootstrap systemd[1]: mcollective.service: Control
process exited, code=exited status=0
Feb 01 01:26:48 bootstrap systemd[1]: mcollective.service: Got final
SIGCHLD for state start.
Feb 01 01:26:48 bootstrap systemd[1]: mcollective.service: Main PID
loaded: 7527
Feb 01 01:26:48 bootstrap systemd[1]: mcollective.service: Supervising
process 7527 which is not our child. We'll most likely not notice when
it exits.
Feb 01 01:26:48 bootstrap systemd[1]: mcollective.service: Changed start
-> running
Feb 01 01:26:48 bootstrap systemd[1]: mcollective.service: Job
mcollective.service/start finished, result=done
Feb 01 01:26:48 bootstrap systemd[1]: Started The Marionette Collective.
Feb 01 01:26:48 bootstrap systemd[1]: mcollective.service: Child 7524
belongs to mcollective.service
-- AND THE SERVICE STARTED CORRECTLY (pingable via mco ping)
2) the second box:
root@bootstrap:~# service mcollective status
● mcollective.service
Loaded: masked (/dev/null; bad)
Active: inactive (dead)
Feb 01 01:18:34 bootstrap systemd[1]: mcollective.service: Trying to
enqueue job mcollective.service/restart/replace
Warning: mcollective.service changed on disk. Run 'systemctl
daemon-reload' to reload units.
root@bootstrap:~# service mcollective start
Failed to start mcollective.service: Unit mcollective.service is masked.
--- but if I run manually the fix config it can be started manually.
root@bootstrap:~# fix-configs-on-startup
Removed symlink /etc/systemd/system/mcollective.service.
Failed to execute operation: Connection timed out
root@bootstrap:~# sleep 2m; service mcollective start
root@bootstrap:~# service mcollective status
● mcollective.service - The Marionette Collective
Loaded: loaded (/lib/systemd/system/mcollective.service; enabled;
vendor preset: enabled)
Active: active (running) since Wed 2017-02-01 01:33:45 UTC; 3min 52s ago
Process: 12371 ExecStart=/usr/sbin/mcollectived
--config=/etc/mcollective/server.cfg --pidfile=/var/run/mcollective.pid
(code=exited, status=0/SUCCESS)
Main PID: 12377 (ruby)
CGroup: /system.slice/mcollective.service
└─12377 ruby /usr/sbin/mcollectived
--config=/etc/mcollective/server.cfg --pidfile=/var/run/mcollective.pid
Feb 01 01:33:45 bootstrap systemd[12371]: mcollective.service:
Executing: /usr/sbin/mcollectived --config=/etc/mcollective/server.cfg
--pidfile=/var/run/mcollective.pid
Feb 01 01:33:45 bootstrap systemd[1]: mcollective.service: Child 12371
belongs to mcollective.service
Feb 01 01:33:45 bootstrap systemd[1]: mcollective.service: Control
process exited, code=exited status=0
Feb 01 01:33:45 bootstrap systemd[1]: mcollective.service: Got final
SIGCHLD for state start.
Feb 01 01:33:45 bootstrap systemd[1]: mcollective.service: Main PID
loaded: 12377
Feb 01 01:33:45 bootstrap systemd[1]: mcollective.service: Supervising
process 12377 which is not our child. We'll most likely not notice when
it exits.
Feb 01 01:33:45 bootstrap systemd[1]: mcollective.service: Changed start
-> running
Feb 01 01:33:45 bootstrap systemd[1]: mcollective.service: Job
mcollective.service/start finished, result=done
Feb 01 01:33:45 bootstrap systemd[1]: Started The Marionette Collective.
Feb 01 01:33:45 bootstrap systemd[1]: mcollective.service: Child 12374
belongs to mcollective.service
On 31/01/17 16:56, Georgy Kibardin wrote:
> Ok, lets start with path issue first. On master node edit
> /usr/share/fuel_bootstrap_cli/files/xenial/etc/rc.local add
>
> export PATH=$PATH:/bin:/usr/bin
>
> before fix-configs-on-startup line. Then rebuild a bootstrap:
>
> fuel-bootstrap build --activate
>
> Then reboot problem nodes and check whether mcollective is started. If
> not, lets check, at least its config is correct.
>
So, after rebuilding the bootstrap, the export is correctly in the
/etc/rc.local but still mcollective does not start.
1) in the first box (same hardware):
root@bootstrap:~# service mcollective status system/ mcollective. service; enabled;
● mcollective.service - The Marionette Collective
Loaded: loaded (/lib/systemd/
vendor preset: enabled)
Active: inactive (dead)
root@bootstrap:~# echo $PATH sbin:/usr/ local/bin: /usr/sbin: /usr/bin: /sbin:/ bin
/usr/local/
root@bootstrap:~# service mcollective start system/ mcollective. service; enabled; /usr/sbin/ mcollectived /etc/mcollectiv e/server. cfg --pidfile= /var/run/ mcollective. pid slice/mcollecti ve.service mcollectived /etc/mcollectiv e/server. cfg --pidfile= /var/run/ mcollective. pid
root@bootstrap:~# service mcollective status
● mcollective.service - The Marionette Collective
Loaded: loaded (/lib/systemd/
vendor preset: enabled)
Active: active (running) since Wed 2017-02-01 01:26:48 UTC; 4s ago
Process: 7521 ExecStart=
--config=
(code=exited, status=0/SUCCESS)
Main PID: 7527 (ruby)
CGroup: /system.
└─7527 ruby /usr/sbin/
--config=
Feb 01 01:26:48 bootstrap systemd[7521]: mcollective. service: Executing: mcollectived --config= /etc/mcollectiv e/server. cfg /var/run/ mcollective. pid service: Child 7521 service: Control service: Got final service: Main PID service: Supervising service: Changed start service: Job service/ start finished, result=done service: Child 7524
/usr/sbin/
--pidfile=
Feb 01 01:26:48 bootstrap systemd[1]: mcollective.
belongs to mcollective.service
Feb 01 01:26:48 bootstrap systemd[1]: mcollective.
process exited, code=exited status=0
Feb 01 01:26:48 bootstrap systemd[1]: mcollective.
SIGCHLD for state start.
Feb 01 01:26:48 bootstrap systemd[1]: mcollective.
loaded: 7527
Feb 01 01:26:48 bootstrap systemd[1]: mcollective.
process 7527 which is not our child. We'll most likely not notice when
it exits.
Feb 01 01:26:48 bootstrap systemd[1]: mcollective.
-> running
Feb 01 01:26:48 bootstrap systemd[1]: mcollective.
mcollective.
Feb 01 01:26:48 bootstrap systemd[1]: Started The Marionette Collective.
Feb 01 01:26:48 bootstrap systemd[1]: mcollective.
belongs to mcollective.service
-- AND THE SERVICE STARTED CORRECTLY (pingable via mco ping)
2) the second box:
root@bootstrap:~# service mcollective status
● mcollective.service
Loaded: masked (/dev/null; bad)
Active: inactive (dead)
Feb 01 01:18:34 bootstrap systemd[1]: mcollective. service: Trying to service/ restart/ replace
enqueue job mcollective.
Warning: mcollective.service changed on disk. Run 'systemctl
daemon-reload' to reload units.
root@bootstrap:~# echo $PATH sbin:/usr/ local/bin: /usr/sbin: /usr/bin: /sbin:/ bin
/usr/local/
root@bootstrap:~# service mcollective start service: Unit mcollective.service is masked.
Failed to start mcollective.
--- but if I run manually the fix config it can be started manually.
root@bootstrap:~# fix-configs- on-startup system/ mcollective. service. system/ mcollective. service; enabled; /usr/sbin/ mcollectived /etc/mcollectiv e/server. cfg --pidfile= /var/run/ mcollective. pid slice/mcollecti ve.service mcollectived /etc/mcollectiv e/server. cfg --pidfile= /var/run/ mcollective. pid
Removed symlink /etc/systemd/
Failed to execute operation: Connection timed out
root@bootstrap:~# sleep 2m; service mcollective start
root@bootstrap:~# service mcollective status
● mcollective.service - The Marionette Collective
Loaded: loaded (/lib/systemd/
vendor preset: enabled)
Active: active (running) since Wed 2017-02-01 01:33:45 UTC; 3min 52s ago
Process: 12371 ExecStart=
--config=
(code=exited, status=0/SUCCESS)
Main PID: 12377 (ruby)
CGroup: /system.
└─12377 ruby /usr/sbin/
--config=
Feb 01 01:33:45 bootstrap systemd[12371]: mcollective. service: mcollectived --config= /etc/mcollectiv e/server. cfg /var/run/ mcollective. pid service: Child 12371 service: Control service: Got final service: Main PID service: Supervising service: Changed start service: Job service/ start finished, result=done service: Child 12374
Executing: /usr/sbin/
--pidfile=
Feb 01 01:33:45 bootstrap systemd[1]: mcollective.
belongs to mcollective.service
Feb 01 01:33:45 bootstrap systemd[1]: mcollective.
process exited, code=exited status=0
Feb 01 01:33:45 bootstrap systemd[1]: mcollective.
SIGCHLD for state start.
Feb 01 01:33:45 bootstrap systemd[1]: mcollective.
loaded: 12377
Feb 01 01:33:45 bootstrap systemd[1]: mcollective.
process 12377 which is not our child. We'll most likely not notice when
it exits.
Feb 01 01:33:45 bootstrap systemd[1]: mcollective.
-> running
Feb 01 01:33:45 bootstrap systemd[1]: mcollective.
mcollective.
Feb 01 01:33:45 bootstrap systemd[1]: Started The Marionette Collective.
Feb 01 01:33:45 bootstrap systemd[1]: mcollective.
belongs to mcollective.service
mcollective server.cfg (if this what you want)
main_collective = mcollective mcollective/ plugins mcollective. log
collectives = mcollective
libdir = /usr/share/
logfile = /var/log/
loglevel = debug
direct_addressing = 1
daemonize = 1
# Set TTL to 1.5 hours
ttl = 5400
# Plugins
securityprovider = psk
plugin.psk = unset
connector = rabbitmq rabbitmq. vhost = mcollective rabbitmq. pool.size = 1 rabbitmq. pool.1. host = 146.118.52.2 rabbitmq. pool.1. port = 61613 rabbitmq. pool.1. user = mcollective rabbitmq. pool.1. password= 24RuZorKwTIJruY ZAFQFJx03 rabbitmq. heartbeat_ interval = 30 rabbitmq. max_hbrlck_ fails = 0
plugin.
plugin.
plugin.
plugin.
plugin.
plugin.
plugin.
plugin.
# Facts e/facts. yaml
factsource = yaml
plugin.yaml = /etc/mcollectiv
identity = 32
On 31/01/17 16:56, Georgy Kibardin wrote: fuel_bootstrap_ cli/files/ xenial/ etc/rc. local add /bin:/usr/ bin on-startup line. Then rebuild a bootstrap:
> Ok, lets start with path issue first. On master node edit
> /usr/share/
>
> export PATH=$PATH:
>
> before fix-configs-
>
> fuel-bootstrap build --activate
>
> Then reboot problem nodes and check whether mcollective is started. If
> not, lets check, at least its config is correct.
>