Skip to content
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

AnsibleUndefinedVariable: One or more undefined variables: list object has no element 2', 'failed': #4

Open
bigheadwen opened this issue Jun 11, 2016 · 1 comment

Comments

@bigheadwen
Copy link

When I run make apply for a while ,it jump the error msg as follows:
TASK: [consul_base_agent | copy base.json] ************************************
fatal: [cdh-master-0.node.tapdeployment.consul] => {'msg': 'AnsibleUndefinedVariable: One or more undefined variables: list object has no element 2', 'failed': True}
fatal: [cdh-master-0.node.tapdeployment.consul] => {'msg': 'AnsibleUndefinedVariable: One or more undefined variables: list object has no element 2', 'failed': True}

FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/home/centos/site.retry

cdh-manager.node.tapdeployment.consul : ok=13 changed=4 unreachable=0 failed=0
cdh-master-0.node.tapdeployment.consul : ok=22 changed=8 unreachable=1 failed=0
cdh-master-1.node.tapdeployment.consul : ok=17 changed=3 unreachable=0 failed=1
cdh-worker-0.node.tapdeployment.consul : ok=13 changed=3 unreachable=0 failed=0
cdh-worker-1.node.tapdeployment.consul : ok=13 changed=3 unreachable=0 failed=0

anyone who know how to fix it?Thanks!

@wkielas
Copy link

wkielas commented Jun 16, 2016

With the release of TAP 0.7 there were a lot of backwards incompatible changes in the automation - it looks like you've run into one of them (related to removing a separate CDH manager node).

There are two ways to fix this:

  1. Use the platform-ansible scripts from the TAP-2016-APR-1 release. This requires ssh-ing into the cdh jump node and checking out the TAP-2016-APR-1 tag.
  2. Use the deployment instructions for the 0.7 version (available here). You won't encounter the problem with the 0.7 infrastructure automation.

I highly recommend going with option number 2, since the new procedure is much easier to deploy and support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants