Module service false fail

121 views
Skip to first unread message

Andrew Pashkin

unread,
May 23, 2014, 4:39:17 AM5/23/14
to ansible...@googlegroups.com
I have the problem with service module - it sometimes (!) throws an error, when restarting supervisor.
I tried to reproduce this bug in a sandbox project, but wasnt succeed. But in my sandbox supervisor was not handled any processes.
So - my guess, when supervisor supervising some processes - it restarts longer, and because of it Ansible's service module fails because it has some kind of timeout.

Here is the output with fail:
TASK: [supervisor | restart service] ******************************************
failed: [default] => {"failed": true, "item": ""}
msg: Stopping supervisor: supervisord.
Starting supervisor:                                                                 
...ignoring

TASK: [supervisor | debug var=restart_supervisord_result] *********************
ok: [default] => {
    "item": "",                                                                      
    "restart_supervisord_result": {                                                  
        "failed": true,                                                              
        "invocation": {                                                              
            "module_args": "name=supervisord state=restarted enabled=yes",           
            "module_name": "service"                                                 
        },                                                                           
        "item": "",                                                                  
        "msg": "Stopping supervisor: supervisord.\nStarting supervisor: "            
    }                                                                                

-- 
With kind regards, Andrew Pashkin.
cell phone - +7 (985) 898 57 59
Skype - waves_in_fluids
e-mail - andrew....@gmx.co.uk

Andrew Pashkin

unread,
May 23, 2014, 6:51:13 AM5/23/14
to ansible...@googlegroups.com
No timeout has nothing to do with it. Its seems like supervisor's upstart script returns an error if supervisor itself was restarted successfully, but processes under which it controls failed to start.
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/537F092C.2010400%40gmx.co.uk.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages