Giter Club home page Giter Club logo

Comments (4)

cmoulliard avatar cmoulliard commented on July 3, 2024

I ran again the command and vm has been created. I can ssh even if the playbook is still running/waiting ....

TASK [snowdrop.cloud_infra.openstack_vm : Create VM instance] ****************************************************************************************************************************************************************
task path: /Users/cmoullia/.ansible/collections/ansible_collections/snowdrop/cloud_infra/roles/openstack_vm/tasks/vm_create.yml:67
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cmoullia
<127.0.0.1> EXEC /bin/sh -c 'echo ~cmoullia && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /Users/cmoullia/.ansible/tmp `"&& mkdir "` echo /Users/cmoullia/.ansible/tmp/ansible-tmp-1701419632.3215659-13254-3921258540975 `" && echo ansible-tmp-1701419632.3215659-13254-3921258540975="` echo /Users/cmoullia/.ansible/tmp/ansible-tmp-1701419632.3215659-13254-3921258540975 `" ) && sleep 0'
Using module file /Users/cmoullia/.ansible/collections/ansible_collections/openstack/cloud/plugins/modules/server.py
<127.0.0.1> PUT /Users/cmoullia/.ansible/tmp/ansible-local-1126686fh7uml/tmpi02lpf3r TO /Users/cmoullia/.ansible/tmp/ansible-tmp-1701419632.3215659-13254-3921258540975/AnsiballZ_server.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /Users/cmoullia/.ansible/tmp/ansible-tmp-1701419632.3215659-13254-3921258540975/ /Users/cmoullia/.ansible/tmp/ansible-tmp-1701419632.3215659-13254-3921258540975/AnsiballZ_server.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/Users/cmoullia/.pyvirt/bin/python /Users/cmoullia/.ansible/tmp/ansible-tmp-1701419632.3215659-13254-3921258540975/AnsiballZ_server.py && sleep 0'

NOTE: Floating_IP is not saved as I got such a wazrning message

passstore-vm-ssh.sh openstack charles-vm
Error: openstack/charles-vm/floating_ip is not in the password store.
### SSH COMMAND: ssh -i /Users/cmoullia/.ssh/id_rsa_snowdrop_openstack [email protected] -p 22
Last login: Fri Dec  1 08:48:28 2023 from 10.39.193.161
[snowdrop@charles-vm ~]$

from k8s-infra.

cmoulliard avatar cmoulliard commented on July 3, 2024

According to the discussion on slack, the problem is related to

so as sivel mentioned, your issue is that you are setting the interpreter for the remote to match the local one, hence the error of not finding it. You just need to find where you set ansible_python_interpreter

@jacobdotcosta

from k8s-infra.

cmoulliard avatar cmoulliard commented on July 3, 2024

Could the problem be what we set here:

ansible_python_interpreter=/usr/bin/python3
@jacobdotcosta

from k8s-infra.

cmoulliard avatar cmoulliard commented on July 3, 2024

Does that help what I collected here using a more verbose mode ?

TASK [Store optional Host information on passwordstore] ************************
...
TASK [Refresh the inventory so the newly added host is available] **************
...
TASK [Wait for connection to host] *********************************************
task path: /Users/cmoullia/code/snowdrop/k8s-infra/ansible/playbook/openstack/openstack_vm_create_passwordstore.yml:84
redirecting (type: lookup) ansible.builtin.passwordstore to community.general.passwordstore
Loading collection community.general from /Users/cmoullia/.pyvirt/lib/python3.11/site-packages/ansible_collections/community/general
redirecting (type: lookup) ansible.builtin.passwordstore to community.general.passwordstore
<10.0.76.28> ESTABLISH LOCAL CONNECTION FOR USER: cmoullia
<10.0.76.28> EXEC /bin/sh -c 'echo ~cmoullia && sleep 0'
<10.0.76.28> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /Users/cmoullia/.ansible/tmp `"&& mkdir "` echo /Users/cmoullia/.ansible/tmp/ansible-tmp-1701937981.608011-62757-26170930869139 `" && echo ansible-tmp-1701937981.608011-62757-26170930869139="` echo /Users/cmoullia/.ansible/tmp/ansible-tmp-1701937981.608011-62757-26170930869139 `" ) && sleep 0'
<macos-test> Attempting python interpreter discovery
<10.0.76.28> EXEC /bin/sh -c 'echo PLATFORM; uname; echo FOUND; command -v '"'"'python3.11'"'"'; command -v '"'"'python3.10'"'"'; command -v '"'"'python3.9'"'"'; command -v '"'"'python3.8'"'"'; command -v '"'"'python3.7'"'"'; command -v '"'"'python3.6'"'"'; command -v '"'"'python3.5'"'"'; command -v '"'"'/usr/bin/python3'"'"'; command -v '"'"'/usr/libexec/platform-python'"'"'; command -v '"'"'python2.7'"'"'; command -v '"'"'/usr/bin/python'"'"'; command -v '"'"'python'"'"'; echo ENDFOUND && sleep 0'
<macos-test> Python interpreter discovery fallback (unsupported platform for extended discovery: darwin)
Using module file /Users/cmoullia/.pyvirt/lib/python3.11/site-packages/ansible/modules/wait_for.py
<10.0.76.28> PUT /Users/cmoullia/.ansible/tmp/ansible-local-590139v0wkebt/tmpebdzjwmi TO /Users/cmoullia/.ansible/tmp/ansible-tmp-1701937981.608011-62757-26170930869139/AnsiballZ_wait_for.py
<10.0.76.28> EXEC /bin/sh -c 'chmod u+x /Users/cmoullia/.ansible/tmp/ansible-tmp-1701937981.608011-62757-26170930869139/ /Users/cmoullia/.ansible/tmp/ansible-tmp-1701937981.608011-62757-26170930869139/AnsiballZ_wait_for.py && sleep 0'
<10.0.76.28> EXEC /bin/sh -c '/Users/cmoullia/.pyvirt/bin/python3.11 /Users/cmoullia/.ansible/tmp/ansible-tmp-1701937981.608011-62757-26170930869139/AnsiballZ_wait_for.py && sleep 0'
<10.0.76.28> EXEC /bin/sh -c 'rm -f -r /Users/cmoullia/.ansible/tmp/ansible-tmp-1701937981.608011-62757-26170930869139/ > /dev/null 2>&1 && sleep 0'
ok: [macos-test] => {
    "ansible_facts": {
        "discovered_interpreter_python": "/Users/cmoullia/.pyvirt/bin/python3.11"
    },
    "changed": false,
    "elapsed": 0,
    "invocation": {
        "module_args": {
            "active_connection_states": [
                "ESTABLISHED",
                "FIN_WAIT1",
                "FIN_WAIT2",
                "SYN_RECV",
                "SYN_SENT",
                "TIME_WAIT"
            ],
            "connect_timeout": 5,
            "delay": 0,
            "exclude_hosts": null,
            "host": "10.0.76.28",
            "msg": null,
            "path": null,
            "port": 22,
            "search_regex": null,
            "sleep": 1,
            "state": "started",
            "timeout": 120
        }
...

from k8s-infra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.