molecule cleanup fails

74 views
Skip to first unread message

cmou...@redhat.com

unread,
Jun 26, 2020, 10:11:33 AM6/26/20
to molecule-users
Hi

How can I fix such a molecule config problem which occurs when I execute molecule cleanup ?

    PLAY [Cleanup] *****************************************************************
    
    TASK [Gathering Facts] *********************************************************
    task path: /Users/cmoullia/code/ch007m/ansible-kind/molecule/resources/cleanup.yml:2
[WARNING]: unable to retrieve default user from docker container:   Error: No
such object: instance
    <instance> ESTABLISH DOCKER CONNECTION FOR USER: ?
    <instance> EXEC ['/usr/local/bin/docker', b'exec', b'-i', 'instance', '/bin/sh', '-c', "/bin/sh -c 'echo ~ && sleep 0'"]
    <instance> EXEC ['/usr/local/bin/docker', b'exec', b'-i', 'instance', '/bin/sh', '-c', '/bin/sh -c \'echo "`pwd`" && sleep 0\'']
    <instance> EXEC ['/usr/local/bin/docker', b'exec', b'-i', 'instance', '/bin/sh', '-c', '/bin/sh -c \'( umask 77 && mkdir -p "` echo ~/.ansible/tmp `"&& mkdir ~/.ansible/tmp/ansible-tmp-1593180594.5659342-51503-113158845411594 && echo ansible-tmp-1593180594.5659342-51503-113158845411594="` echo ~/.ansible/tmp/ansible-tmp-1593180594.5659342-51503-113158845411594 `" ) && sleep 0\'']
fatal: [instance]: UNREACHABLE! => {
    "changed": false,
    "msg": "Failed to create temporary directory.In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in \"/tmp\", for more error information use -vvv. Failed command was: ( umask 77 && mkdir -p \"` echo ~/.ansible/tmp `\"&& mkdir ~/.ansible/tmp/ansible-tmp-1593180594.5659342-51503-113158845411594 && echo ansible-tmp-1593180594.5659342-51503-113158845411594=\"` echo ~/.ansible/tmp/ansible-tmp-1593180594.5659342-51503-113158845411594 `\" ), exited with result 1",
    "unreachable": true
}
    
    PLAY RECAP *********************************************************************
    instance                   : ok=0    changed=0    unreachable=1    failed=0    skipped=0    rescued=0    ignored=0
    
ERROR: 

Best

Charles
Reply all
Reply to author
Forward
0 new messages