Skip to content

Troubleshooting Interface name

Why do that

During PunchPlatform deployment, an error occurs during zookeeper cluster configuration file generation:

TASK: [zookeeper-server | generate zookeeper cluster configuration file] ******
fatal: [target_hostname] => {'msg': "AnsibleUndefinedVariable: One or more undefined variables 'dict object' has no attribute u'ansible_eth0'", 'failed': True}

What to do

  • Get your interface name on your target machine:

    ip a

    Example of expected result:

    ... 2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 08:00:27:29:ab:6e brd ff:ff:ff:ff:ff:ff inet brd scope global enp0s3 valid_lft forever preferred_lft forever inet6 fe80::a00:27ff:fe29:ab6e/64 scope link valid_lft forever preferred_lft forever ...

  • Correct your punchplatform-deployment.settings configuration file according to your interfaces names. Replace all by your real interface name, for example enp0s3.

    "zookeeper_nodes_production_interface" : "enp0s3", "kafka_brokers_production_interface" : "enp0s3", "storm_nimbus_nodes_production_interface" : "enp0s3", "elasticsearch_nodes_production_interface" : "enp0s3"

  • Relaunch deployment: deploy -kK (passwords will be asked)