apache / apache/pulsar

Aws terraform deployment fails in zookeeper.conf task

Open
#13,843 5 comments 0 reactions 0 assignees View on GitHub
lifecycle/stale Stale type/bug
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

**Describe the bug**
I am trying to deploy a Pulsar cluster in AWS following the documentation.
I manage to find my way to using `deploy_pulsar.yml`, but ansible fails in the `Add zookeeper.conf file` TASK with the message
```
TASK [Add zookeeper.conf file] **************************************************************************************************************************************************************************************************************
fatal: [zoo.kee.per.IP]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'private_ip'"}
```

**To Reproduce**
Steps to reproduce the behavior:
1. Follow terraform instructions in https://pulsar.apache.org/docs/en/deploy-aws/
2. Skip the `Setup Disks` (does not work for me. i don't know what the authors wants us to do here)
3. Run Pulsar playbook
4. See error

**Expected behavior**
I am not an avid ansible user but i guess something like

`changed: [zoo.kee.per.IP]`
or
`ok: [zoo.kee.per.IP]`

**Screenshots**
![image](https://user-images.githubusercontent.com/11653149/150174108-4e63ba82-863d-4b1c-9403-5ec50aeafec8.png)

**Desktop (please complete the following information):**
- Host OS: Windows 10
- Guest OS: Ubuntu 20 linux container

**Additional context**
I am running ansible from inside a containerized Ubuntu20 environment. My host OS is Windows 10.

Contributor guide

Open the contributing guide

Research direction

Read the deploy-aws documentation and deploy_pulsar.yml, then inspect the Add zookeeper.conf file task and its hostvars/private_ip reference. Reproduce the failure with the documented Terraform and AWS setup, including the reported Setup Disks uncertainty, and verify that the playbook completes this task without AnsibleUndefinedVariable.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible, aws, terraform
Domain
cloud, devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.