Comment 0 for bug 1763533

Revision history for this message
Sameer Goel (sameergoel) wrote :

Kolla - Dev tip 04/09
Kolla-Ansible - Dev tip 04/09

Linaro ERP 17.12

Kolla Images - https://hub.docker.com/r/linaro tag: queens-20180412
Eg: https://hub.docker.com/r/linaro/debian-source-mariadb/tags/

While deploying using kolla-ansible I see random error with the same signature:
"msg": "Can not parse the inner module output: rpc error: code = 14 desc = grpc: the connection is unavailable\r\n"

The above seems to happen at different tasks. But when I execute this manually after a failure the command works fine.
If I put sleep in kolla_toolbox.py, I do not see this failure anymore. I added a 1s timeout here:

===================================================
for exp in [JSON_REG, NON_JSON_REG]:
        m = exp.match(output)
        if m:
            inner_output = m.groupdict().get('stdout')
            break
    else:
        module.fail_json(
            msg='Can not parse the inner module output: %s' % output)
    >>>> time.sleep(1)
==================================================

I checked and made sure that the kolla_toolbox container is running and I can start a shell in it after the above failure. As seen in the log other commands before this have run fine. Usually this failure is an issue with the docker container. So, I'm wondering why would kolla_toolbox return random failures.