Comments (4)
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.
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
from k8s-infra.
Could the problem be what we set here:
Line 14 in 5fd021c
from k8s-infra.
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)
- Wrong command logged to delete a VM from inventory HOT 3
- Some parameters should become optional when we create a new VM on RHOS HOT 3
- Failed to connect to the host via ssh: no such identity: /Users/cmoullia/.ssh/id_rsa_snowdrop_openstack: No such file or directory HOT 3
- Remove information from the hosts file HOT 1
- Should we move the cloud_infra Ansible collection to it's own repository HOT 5
- kind.sh - invalid portMapping: port mapping with same listen address, port and protocol already configured: 0.0.0.0:0/TCP
- Support to patch/provide another kind config HOT 2
- Improper commands showed !
- Rename the RHOS test-adm-key
- Replace the Calico Operator based installation with the kubernetes manifests HOT 1
- Add support for floating_ip in the Ansible Inventory
- Check if community.hrobot ansible collection is required
- OCP installation
- ERROR! the role 'passstore/ansible_inventory' was not found HOT 3
- Support the parameter clusterOSImage for ocp openstack installation
- VM with Fedora-38-latest doesn't allow ssh
- Improve docs for OCP installation
- Find a way to grab the new certificate generated by Lets'encrypt to update our cluster (or a cluster)
- Remove sudo when kind script to create a kind cluster runs on macos
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k8s-infra.