ansible.vars.hostvars.HostVarsVars object has no attribute etcdctlv2
Issue
- Replacing a failed etcd member in non-colocated etcd
If only etcd scaleup.yml playbook is run , then following errors are prompted:
TASK [etcd : Add new etcd members to cluster] *******************************************************************************************
Tuesday 26 March 2019 11:00:20 +0800 (0:00:00.177) 0:08:38.953 *********
fatal: [etcd3.example.com]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'etcdctlv2'\n\nThe error appears to have been in '/usr/share/ansible/openshift-ansible/roles/etcd/tasks/add_new_member.yml': line 5, 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: Add new etcd members to cluster\n ^ here\n"}
Environment
- Red Hat OpenShift Container Platform
- 3.10
- 3.11
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.