cloudera-playbook icon indicating copy to clipboard operation
cloudera-playbook copied to clipboard

Playbook fails on cdh : Set_fact task

Open rkharya opened this issue 5 years ago • 3 comments

Error is -

fatal: [cld1.cisco.local]: FAILED! => { "msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute u'cld5.cisco.local'\n\nThe error appears to be in '/root/cloudera-playbook/roles/cdh/tasks/main.yml': line 40, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# https://www.cloudera.com/documentation/enterprise/latest/topics/install_cluster_template.html\n- set_fact:\n ^ here\n" }

where cld1.cisco.local is SCM host. Host file used for this deployment -

[scm_server] cld1.cisco.local

[db_server] cld1.cisco.local

[krb5_server] cld1.cisco.local

[utility_servers:children] scm_server db_server krb5_server

[gateway_servers] cld1.cisco.local host_template=HostTemplate-Gateway

#[edge_servers] # host_template=HostTemplate-Edge role_ref_names=HDFS-HTTPFS-1

[master_servers] cld5.cisco.local host_template=HostTemplate-Master1 cld6.cisco.local host_template=HostTemplate-Master2 cld7.cisco.local host_template=HostTemplate-Master3

[worker_servers] cld2.cisco.local cld3.cisco.local cld4.cisco.local

[worker_servers:vars] host_template=HostTemplate-Workers

[cdh_servers:children] utility_servers gateway_servers master_servers worker_servers

#[all:vars] #ansible_user=ec2-user

Let us know if this issue has been seen earlier and there are any fixes and/or work-around available.

Thanks,

  • Rajesh.

rkharya avatar Jan 29 '20 22:01 rkharya

Which ansible version do you use?

neizmirasego avatar Feb 18 '20 14:02 neizmirasego

ansible 2.9.4

Seeing this with ansible 2.7.10 version as well on different environment.

rkharya avatar Feb 19 '20 04:02 rkharya

For what its worth, tried and replicated also on 2.9.13 and 2.9.21

prokod avatar May 20 '21 18:05 prokod