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.
On 23.05.2014 12:39, Andrew Pashkin wrote:
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 [email protected]
--
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 [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/537F092C.2010400%40gmx.co.uk <https://groups.google.com/d/msgid/ansible-project/537F092C.2010400%40gmx.co.uk?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
With kind regards, Andrew Pashkin.
cell phone - +7 (985) 898 57 59
Skype - waves_in_fluids
e-mail - [email protected]

--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/537F281B.3060900%40gmx.co.uk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to