first time user - having ssh eror while trying to run a playbook

63 views
Skip to first unread message

Eugene Goldberg

unread,
Dec 15, 2014, 7:04:02 PM12/15/14
to ansible...@googlegroups.com
Greetings,
For my first time use of Ansible, I have attempted to run a playbook, which installs OpenStack to a local computer.
My target computer has a fresh Fedora 20 install, is all up to date, and has an IP of 10.0.0.32
The computer, from which I ran this playbook is a Ubuntu 14 VM, and has an IP of 10.0.0.50.
A regular command line ssh from Ubunti to Fedora works fine.
my hosts file contents:

 [noclab]
10.0.0.32

[gluster_loopback]
10.0.0.32

[gluster_master]
10.0.0.32

[gluster_nodes]
10.0.0.32

[openstack_controller]
10.0.0.32

[openstack_keystone]
10.0.0.32

[openstack_glance]
10.0.0.32

[openstack_cinder]
10.0.0.32

[openstack_neutron]
10.0.0.32

[openstack_neutron_l3]
10.0.0.32

[openstack_neutron_dhcp]
10.0.0.32

[openstack_neutron_meta]
10.0.0.32

[openstack_horizon]
10.0.0.32

[openstack_heat]
10.0.0.32

[openstack_trove]
10.0.0.32

[openstack_compute]
10.0.0.32

[swift_proxy_nodes]
10.0.0.32

[swift_storage_nodes]
10.0.0.32

[nfs_nodes]
10.0.0.32


My site.yml file contents:

---
# The main openstack site deployment playbook

- hosts: all
  roles:
   - huit-accessible
   - common
   - networking-setup
   - pre-tweaks

- hosts: gluster_nodes
  roles: [gluster]

- hosts: gluster_master
  roles: [gluster-master]

- hosts: openstack_compute
  roles: [gluster-client]

#- hosts: swift_storage_nodes
#  roles: [gluster-client]

- hosts: openstack_controller
  roles:
   - packstack

#
# This is a temp hack unti upstream code is fixed.
#
- hosts: [openstack_compute, openstack_controller, openstack_neutron_l3]
  roles: [ vxlan-fix ]

- hosts: openstack_neutron_l3
  roles:
   - network-extras

- hosts: openstack_neutron
  roles:
   - network-server-extras

- hosts: openstack_horizon
  roles:
   - network-extras-gui

- hosts: openstack_controller
  roles:
#   - trove
#   - sahara

- hosts: openstack_controller
  roles:
   - post-config
#   - testing


The command I used on Ubuntu:  ansible-playbook  -s -u root  -i hosts  site.yml -vvvv

Here is the output:

   [WARNING]: It is unneccessary to use '{{' in loops, leave variables in loop
expressions bare.


PLAY [all] ********************************************************************

GATHERING FACTS ***************************************************************
<10.0.0.32> ESTABLISH CONNECTION FOR USER: root
<10.0.0.32> REMOTE_MODULE setup
<10.0.0.32> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/eugene/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=root', '-o', 'ConnectTimeout=10', '10.0.0.32', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1418688194.6-211856873814937 && echo $HOME/.ansible/tmp/ansible-tmp-1418688194.6-211856873814937'"]
fatal: [10.0.0.32] => SSH encountered an unknown error. The output was:
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: auto-mux: Trying existing master
debug1: Control socket "/home/eugene/.ansible/cp/ansible-ssh-10.0.0.32-22-root" does not exist
debug2: ssh_connect: needpriv 0
debug1: Connecting to 10.0.0.32 [10.0.0.32] port 22.
debug2: fd 3 setting O_NONBLOCK
debug1: fd 3 clearing O_NONBLOCK
debug1: Connection established.
debug3: timeout: 9999 ms remain after connect
debug1: identity file /home/eugene/.ssh/id_rsa type -1
debug1: identity file /home/eugene/.ssh/id_rsa-cert type -1
debug1: identity file /home/eugene/.ssh/id_dsa type -1
debug1: identity file /home/eugene/.ssh/id_dsa-cert type -1
debug1: identity file /home/eugene/.ssh/id_ecdsa type -1
debug1: identity file /home/eugene/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/eugene/.ssh/id_ed25519 type -1
debug1: identity file /home/eugene/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.4
debug1: match: OpenSSH_6.4 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug3: load_hostkeys: loading entries for host "10.0.0.32" from file "/home/eugene/.ssh/known_hosts"
debug3: load_hostkeys: found key type ECDSA in file /home/eugene/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys
debug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nis...@openssh.com,ecdsa-sha2-nis...@openssh.com,ecdsa-sha2-nis...@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: curve255...@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ecdsa-sha2-nis...@openssh.com,ecdsa-sha2-nis...@openssh.com,ecdsa-sha2-nis...@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed2551...@openssh.com,ssh-rsa-...@openssh.com,ssh-dss-...@openssh.com,ssh-rsa-...@openssh.com,ssh-dss-...@openssh.com,ssh-ed25519,ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes12...@openssh.com,aes25...@openssh.com,chacha20...@openssh.com,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijnda...@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes12...@openssh.com,aes25...@openssh.com,chacha20...@openssh.com,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijnda...@lysator.liu.se
debug2: kex_parse_kexinit: hmac-m...@openssh.com,hmac-s...@openssh.com,umac-...@openssh.com,umac-1...@openssh.com,hmac-sha...@openssh.com,hmac-sha...@openssh.com,hmac-ripe...@openssh.com,hmac-sha...@openssh.com,hmac-md...@openssh.com,hmac-md5,hmac-sha1,uma...@openssh.com,umac...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ri...@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-m...@openssh.com,hmac-s...@openssh.com,umac-...@openssh.com,umac-1...@openssh.com,hmac-sha...@openssh.com,hmac-sha...@openssh.com,hmac-ripe...@openssh.com,hmac-sha...@openssh.com,hmac-md...@openssh.com,hmac-md5,hmac-sha1,uma...@openssh.com,umac...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ri...@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: zl...@openssh.com,zlib,none
debug2: kex_parse_kexinit: zl...@openssh.com,zlib,none
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ecdsa-sha2-nistp256
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes12...@openssh.com,aes25...@openssh.com,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijnda...@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes12...@openssh.com,aes25...@openssh.com,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijnda...@lysator.liu.se
debug2: kex_parse_kexinit: hmac-m...@openssh.com,hmac-s...@openssh.com,umac-...@openssh.com,umac-1...@openssh.com,hmac-sha...@openssh.com,hmac-sha...@openssh.com,hmac-ripe...@openssh.com,hmac-sha...@openssh.com,hmac-md...@openssh.com,hmac-md5,hmac-sha1,uma...@openssh.com,umac...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ri...@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-m...@openssh.com,hmac-s...@openssh.com,umac-...@openssh.com,umac-1...@openssh.com,hmac-sha...@openssh.com,hmac-sha...@openssh.com,hmac-ripe...@openssh.com,hmac-sha...@openssh.com,hmac-md...@openssh.com,hmac-md5,hmac-sha1,uma...@openssh.com,umac...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ri...@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zl...@openssh.com
debug2: kex_parse_kexinit: none,zl...@openssh.com
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: setup hmac-m...@openssh.com
debug1: kex: server->client aes128-ctr hmac-m...@openssh.com zl...@openssh.com
debug2: mac_setup: setup hmac-m...@openssh.com
debug1: kex: client->server aes128-ctr hmac-m...@openssh.com zl...@openssh.com
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA d2:dc:ac:79:f4:51:86:b6:27:5c:9f:07:20:d9:c3:6f
debug3: load_hostkeys: loading entries for host "10.0.0.32" from file "/home/eugene/.ssh/known_hosts"
debug3: load_hostkeys: found key type ECDSA in file /home/eugene/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys
debug1: Host '10.0.0.32' is known and matches the ECDSA host key.
debug1: Found key in /home/eugene/.ssh/known_hosts:1
debug1: ssh_ecdsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/eugene/.ssh/id_rsa ((nil)),
debug2: key: /home/eugene/.ssh/id_dsa ((nil)),
debug2: key: /home/eugene/.ssh/id_ecdsa ((nil)),
debug2: key: /home/eugene/.ssh/id_ed25519 ((nil)),
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password
debug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey
debug3: authmethod_lookup gssapi-with-mic
debug3: remaining preferred: gssapi-keyex,hostbased,publickey
debug3: authmethod_is_enabled gssapi-with-mic
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure.  Minor code may provide more information
No Kerberos credentials available

debug1: Unspecified GSS failure.  Minor code may provide more information
No Kerberos credentials available

debug1: Unspecified GSS failure.  Minor code may provide more information


debug1: Unspecified GSS failure.  Minor code may provide more information
No Kerberos credentials available

debug2: we did not send a packet, disable method
debug3: authmethod_lookup gssapi-keyex
debug3: remaining preferred: hostbased,publickey
debug3: authmethod_is_enabled gssapi-keyex
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug2: we did not send a packet, disable method
debug3: authmethod_lookup publickey
debug3: remaining preferred: ,publickey
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/eugene/.ssh/id_rsa
debug3: no such identity: /home/eugene/.ssh/id_rsa: No such file or directory
debug1: Trying private key: /home/eugene/.ssh/id_dsa
debug3: no such identity: /home/eugene/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /home/eugene/.ssh/id_ecdsa
debug3: no such identity: /home/eugene/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /home/eugene/.ssh/id_ed25519
debug3: no such identity: /home/eugene/.ssh/id_ed25519: No such file or directory
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).


TASK: [huit-accessible | install libselinux-python] ***************************
FATAL: no hosts matched or all hosts have already failed -- aborting


PLAY RECAP ********************************************************************
           to retry, use: --limit @/home/eugene/site.retry

10.0.0.32                  : ok=0    changed=0    unreachable=1    failed=0  



What can I do to fix this?

-Eugene
Reply all
Reply to author
Forward
0 new messages