Code Monkey home page Code Monkey logo

Comments (6)

jacobwagner avatar jacobwagner commented on July 21, 2024

reopening, the authorized key file is not getting laid down on the computes

from ansible-lxc-rpc.

jacobwagner avatar jacobwagner commented on July 21, 2024

more info

(.venv)root@569037-ctrl01:~/ansible-lxc-rpc/rpc_deployment# ll ~/.ssh/
authorized_keys  id_rsa           id_rsa.pub       known_hosts      nova             nova.pub         
TASK: [nova_compute_sshkey_setup | Set nova users shell to /bin/bash and generate ssh_key] *** 
changed: [compute1]
changed: [compute5]
changed: [compute4]
changed: [compute3]
changed: [compute8]
changed: [compute2]
changed: [compute7]
changed: [compute6]
changed: [compute10]
changed: [compute11]
changed: [compute9]
changed: [compute13]
changed: [compute12]
changed: [compute16]
changed: [compute18]
changed: [compute15]
changed: [compute14]
changed: [compute17]

TASK: [nova_compute_sshkey_setup | Copy private key up to nova nodes] ********* 
ok: [compute5]
ok: [compute7]
ok: [compute1]
ok: [compute4]
ok: [compute3]
ok: [compute2]
ok: [compute6]
ok: [compute10]
ok: [compute9]
ok: [compute11]
ok: [compute13]
ok: [compute12]
ok: [compute8]
ok: [compute18]
ok: [compute16]
ok: [compute15]
ok: [compute14]
ok: [compute17]

TASK: [nova_compute_sshkey_setup | Copy public key up to nova nodes] ********** 
ok: [compute1]
ok: [compute5]
ok: [compute4]
ok: [compute3]
ok: [compute2]
ok: [compute6]
ok: [compute11]
ok: [compute9]
ok: [compute13]
ok: [compute12]
ok: [compute8]
ok: [compute7]
ok: [compute16]
ok: [compute15]
ok: [compute14]
ok: [compute17]
ok: [compute10]
ok: [compute18]

TASK: [nova_compute_sshkey_setup | Add key to authorized_keys file] *********** 
ok: [compute2]
ok: [compute3]
ok: [compute5]
ok: [compute6]
ok: [compute9]
ok: [compute11]
ok: [compute8]
ok: [compute13]
ok: [compute1]
ok: [compute12]
ok: [compute4]
ok: [compute14]
ok: [compute17]
ok: [compute7]
ok: [compute10]
ok: [compute16]
ok: [compute15]
ok: [compute18]

TASK: [nova_compute_sshkey_setup | Prevent known_hosts from causing an issue] *** 
ok: [compute5]
ok: [compute1]
ok: [compute4]
ok: [compute3]
ok: [compute2]
ok: [compute6]
ok: [compute11]
ok: [compute9]
ok: [compute13]
ok: [compute12]
ok: [compute8]
ok: [compute7]
ok: [compute16]
ok: [compute15]
ok: [compute14]
ok: [compute17]
ok: [compute10]
ok: [compute18]

after run, on a compute box

nova@573960-compute12:~$ cat .ssh/
config       id_rsa       id_rsa.pub   known_hosts

from ansible-lxc-rpc.

andymcc avatar andymcc commented on July 21, 2024

@jacobwagner can you rerun the nova-compute play with increased verbosity to see what its doing on the authorized keys section?

I've literally just done a clean run now (based off the ansible-lxc-rpc repo) and it worked ok for me on both my compute nodes:

root@node11:~# ls /var/lib/nova/.ssh/
authorized_keys config id_rsa id_rsa.pub

root@node15:~# ls /var/lib/nova/.ssh/
authorized_keys config id_rsa id_rsa.pub

from ansible-lxc-rpc.

andymcc avatar andymcc commented on July 21, 2024

Since the id_rsa.pub file is present, its odd that the authorized_keys file wasn't created. All the authorized_keys task does is copy that using the "authorized_key" ansible module.

from ansible-lxc-rpc.

andymcc avatar andymcc commented on July 21, 2024

I've made a "second" patch (andymcc@b716213) which just does a straight copy instead of using the "authorized_key" ansible module so if you are still having trouble that will work, but it would definitely be better to figure out why this didn't work for you - I can see all the appropriate files are created on the host which you ran the ansible playbooks from and copied up to the compute nodes - so the only task that can be failing is the "Add key to authorized_keys file"

from ansible-lxc-rpc.

jacobwagner avatar jacobwagner commented on July 21, 2024

fix in PR #72, closing

from ansible-lxc-rpc.

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.