Skip to content

Instantly share code, notes, and snippets.

@rbo
Created September 15, 2016 08:40
Show Gist options
  • Save rbo/70c06b5ab5c173c1c595f46dac179d55 to your computer and use it in GitHub Desktop.
Save rbo/70c06b5ab5c173c1c595f46dac179d55 to your computer and use it in GitHub Desktop.
$ ansible-playbook -i hosts.osp06 openshift-ansible/playbooks/byo/config.yml
....
TASK [Evaluate oo_first_master] ************************************************
changed: [localhost]

TASK [Evaluate oo_lb_to_config] ************************************************
changed: [localhost] => (item=utility)

TASK [Evaluate oo_nfs_to_config] ***********************************************

PLAY [Initialize host facts] ***************************************************

TASK [setup] *******************************************************************
fatal: [master]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh.", "unreachable": true}
fatal: [node1]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh.", "unreachable": true}
fatal: [infra1]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh.", "unreachable": true}
fatal: [utility]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh.", "unreachable": true}
....

But ping works:

[cloud-user@admin foobar]$ ansible -m ping -i hosts.osp06 OSEv3
master | SUCCESS => {
    "changed": false,
    "ping": "pong"
}
infra1 | SUCCESS => {
    "changed": false,
    "ping": "pong"
}
utility | SUCCESS => {
    "changed": false,
    "ping": "pong"
}
node1 | SUCCESS => {
    "changed": false,
    "ping": "pong"
}

My hosts.osp06

[OSEv3:children]
masters
nodes
lb
etcd


[OSEv3:vars]
deployment_type="openshift-enterprise"
openshift_release=v3.2

openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]

ansible_become=true
ansible_ssh_private_key_file="ose_host_key"
ansible_user="cloud-user"
ansible_ssh_common_args="-o StrictHostKeyChecking=no"

[masters]
master openshift_node_labels="{'region': 'master', 'zone': 'default'}" openshift_schedulable=true openshift_hostname="master.novalocal" openshift_public_hostname="cvm14141.osp.example.com" openstack_public_v4="10.4.14.141"

[etcd]
master

[lb]
utility openshift_hostname="utility.novalocal" openshift_public_hostname="cvm14133.osp.example.com" openstack_public_v4="10.4.14.133"

[nodes]
master
infra1  openshift_node_labels="{'region': 'infra', 'zone': 'default'}" openshift_hostname="infra1.novalocal"
node1   openshift_node_labels="{'region': 'default', 'zone': 'default'}" openshift_hostname="node1.novalocal"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment