New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'address' while running Origin 3.10 #21130

Closed
rimolive opened this Issue Sep 28, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@rimolive

rimolive commented Sep 28, 2018

[provide a description of the issue]

Version
oc v3.10.0+0c4577e-1
kubernetes v1.10.0+b81c8f8
features: Basic-Auth GSSAPI Kerberos SPNEGO
Steps To Reproduce
  1. Use the ansible inventory as described in the Expected Result section
  2. Run deploy_cluster playbook
Current Result

ansible playbook returns:

KeyError('ansible_os_family',)
Traceback (most recent call last):
  File \"/tmp/ansible_4DuHiu/ansible_module_openshift_facts.py\", line 1273, in <module>
    main()
  File \"/tmp/ansible_4DuHiu/ansible_module_openshift_facts.py\", line 1260, in main
    additive_facts_to_overwrite)
  File \"/tmp/ansible_4DuHiu/ansible_module_openshift_facts.py\", line 1013, in __init__
    additive_facts_to_overwrite)
  File \"/tmp/ansible_4DuHiu/ansible_module_openshift_facts.py\", line 1032, in generate_facts
    defaults = self.get_defaults(roles)
  File \"/tmp/ansible_4DuHiu/ansible_module_openshift_facts.py\", line 1062, in get_defaults
    ip_addr = self.system_facts['ansible_default_ipv4']['address']
KeyError: 'address'
Expected Result

Origin cluster installed successfuly

Additional Information

My ansible inventory:

[OSEv3:children]
masters
nodes
etcd

[masters]
openshift.example.com openshift_ip=192.168.1.1 openshift_schedulable=true

[etcd]
openshift.example.com openshift_ip=192.168.1.1

[nodes]
openshift.example.com openshift_ip=192.168.1.1 openshift_schedulable=true openshift_node_group_name='node-config-all-in-one'

[OSEv3:vars]
ansible_ssh_user=root

deployment_type=origin
openshift_deployment_type=origin

openshift_examples_modify_imagestreams=true

openshift_metrics_install_metrics=true
openshift_logging_install_logging=true

openshift_public_hostname=openshift.example.com
openshift_master_default_subdomain=apps.example.com

openshift_metrics_cassandra_image=docker.io/openshift/origin-metrics-cassandra:v3.10.0-rc.0
#openshift_metrics_hawkular_agent_image=docker.io/openshift/origin-metrics-hawkular-openshift-agent:v3.10.0-rc.0
openshift_metrics_hawkular_metrics_image=docker.io/openshift/origin-metrics-hawkular-metrics:v3.10.0-rc.0
openshift_metrics_schema_installer_image=docker.io/alv91/origin-metrics-schema-installer:latest
openshift_metrics_heapster_image=docker.io/openshift/origin-metrics-heapster:v3.10.0-rc.0

openshift_disable_check=memory_availability,disk_availability,docker_image_availability

openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider'}]
@jwforres

This comment has been minimized.

Show comment
Hide comment
@jwforres
Member

jwforres commented Oct 11, 2018

@jwforres jwforres closed this Oct 11, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment