Bug 1547375 - ansible-playbook failed to install logging due to missing attribute oo_nodes_to_config
Summary: ansible-playbook failed to install logging due to missing attribute oo_nodes_...
Keywords:
Status: CLOSED DUPLICATE of bug 1547210
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Logging
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Jeff Cantrill
QA Contact: Anping Li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-21 08:02 UTC by Peter Ruan
Modified: 2018-02-21 14:18 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 14:18:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Peter Ruan 2018-02-21 08:02:31 UTC
Description of problem:
ansible-playbook failed to install logging due to missing attribute oo_nodes_to_config

Version-Release number of selected component (if applicable):


How reproducible:
oc v3.9.0-0.47.0


Steps to Reproduce:
1. ansible-playbook -i /tmp/tmp/install_inventory -vv /usr/share/ansible/openshift-ansible/playbooks/openshift-logging/config.yml
2.
3.

Actual results:
TASK [openshift_logging_elasticsearch : Ensure that ElasticSearch has nodes to run on] ***
      task path: /usr/share/ansible/openshift-ansible/roles/openshift_logging_elasticsearch/tasks/main.yaml:2
      Wednesday 21 February 2018  07:40:34 +0000 (0:00:11.853)       0:01:05.179 **** 
      fatal: [host-8-248-236.host.centralci.eng.rdu2.redhat.com]: FAILED! => {"msg": "The conditional check 'openshift_schedulable_node_labels | lib_utils_oo_has_no_matching_selector(openshift_logging_es_nodeselector)' failed. The error was: error while evaluating conditional (openshift_schedulable_node_labels | lib_utils_oo_has_no_matching_selector(openshift_logging_es_nodeselector)): {{ groups['oo_nodes_to_config'] | lib_utils_oo_get_node_labels(hostvars) }}: 'dict object' has no attribute 'oo_nodes_to_config'\n\nThe error appears to have been in '/usr/share/ansible/openshift-ansible/roles/openshift_logging_elasticsearch/tasks/main.yaml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Ensure that ElasticSearch has nodes to run on\n  ^ here\n"}
      	to retry, use: --limit @/usr/share/ansible/openshift-ansible/playbooks/openshift-logging/config.retry
      


Expected results:


Additional info:
inventory file:

      [OSEv3:children]
      masters
      
      [masters]
      host-8-248-236.host.centralci.eng.rdu2.redhat.com openshift_public_hostname=host-8-248-236.host.centralci.eng.rdu2.redhat.com
      
      [etcd]
      host-8-248-236.host.centralci.eng.rdu2.redhat.com openshift_public_hostname=host-8-248-236.host.centralci.eng.rdu2.redhat.com
      
      [OSEv3:vars]
      ansible_ssh_user=root
      ansible_ssh_private_key_file="/tmp/tmp/libra.pem"
      deployment_type=openshift-enterprise
      
      # Logging
      openshift_logging_install_logging=true
      openshift_logging_kibana_hostname=logs.apps.0221-u4y.qe.rhcloud.com
      openshift_logging_kibana_ops_hostname=logs-ops.apps.0221-u4y.qe.rhcloud.com
      public_master_url=https://host-8-248-236.host.centralci.eng.rdu2.redhat.com:8443
      openshift_logging_image_prefix=brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/
      openshift_logging_image_version=v3.9
      openshift_logging_namespace=ibwod
      
      # Extra_Logging
      openshift_logging_use_ops=true
      openshift_logging_elasticsearch_cpu_limit=300m
      openshift_logging_elasticsearch_cpu_request=300m
      openshift_logging_elasticsearch_memory_limit=512Mi
      openshift_logging_es_cpu_limit=300m
      openshift_logging_es_cpu_request=300m
      openshift_logging_es_ops_cpu_limit=300m
      openshift_logging_es_ops_cpu_request=300m
      openshift_logging_es_memory_limit=512Mi
      openshift_logging_es_ops_memory_limit=512Mi
      openshift_logging_kibana_memory_limit=512Mi
      openshift_logging_kibana_ops_memory_limit=512Mi
      
      # Metrics
      openshift_metrics_install_metrics=true
      openshift_metrics_hawkular_hostname=metrics.apps.0221-u4y.qe.rhcloud.com
      openshift_metrics_project=ibwod
      openshift_metrics_image_prefix=brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/
      openshift_metrics_image_version=v3.9
      
      # Extra_Metrics

Comment 1 Peter Ruan 2018-02-21 08:08:25 UTC
It seems to be a common problem that affects metrics installation as wells

TASK [openshift_metrics : Ensure that Heapster has nodes to run on] ************
      task path: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/install_heapster.yaml:2
      Wednesday 21 February 2018  07:11:20 +0000 (0:00:00.847)       0:00:38.825 **** 
      fatal: [host-8-248-236.host.centralci.eng.rdu2.redhat.com]: FAILED! => {"msg": "The conditional check 'openshift_schedulable_node_labels | lib_utils_oo_has_no_matching_selector(openshift_metrics_heapster_nodeselector)' failed. The error was: error while evaluating conditional (openshift_schedulable_node_labels | lib_utils_oo_has_no_matching_selector(openshift_metrics_heapster_nodeselector)): {{ groups['oo_nodes_to_config'] | lib_utils_oo_get_node_labels(hostvars) }}: 'dict object' has no attribute 'oo_nodes_to_config'\n\nThe error appears to have been in '/usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/install_heapster.yaml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Ensure that Heapster has nodes to run on\n  ^ here\n"}
      	to retry, use: --limit @/usr/share/ansible/openshift-ansible/playbooks/openshift-metrics/config.retry

Comment 2 Jeff Cantrill 2018-02-21 14:18:14 UTC

*** This bug has been marked as a duplicate of bug 1547210 ***


Note You need to log in before you can comment on or make changes to this bug.