Deploy fails on zookeeper_port undefined in telegraf.conf.j2

Bug #1867179 reported by Imran Niazi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Radosław Piliszek
Rocky
Triaged
Medium
Unassigned
Stein
Fix Released
Medium
Mark Goddard
Train
Fix Released
Medium
Mark Goddard
Ussuri
Fix Released
Medium
Radosław Piliszek

Bug Description

Deploying with kolla-ansible==9.0.2.dev62 (stable/train)

Only set the following in globals.yml:

enable_telegraf: "yes"

To get around it, i set the following setting (although I haven't verified if that's syntactically nor functionally correct--am a newbie) and no more errors:

zookeeper_port: "{{ zookeeper_client_port}}"

TASK [telegraf : Copying over telegraf config file] ********************************************************************************************************************************************************************************************************************************************************
failed: [controller01] (item=/root/venv/kolla/share/kolla-ansible/ansible/roles/telegraf/templates/telegraf.conf.j2) => {"ansible_loop_var": "item", "changed": false, "item": "/root/venv/kolla/share/kolla-ansible/ansible/roles/telegraf/templates/telegraf.conf.j2", "msg": "AnsibleUndefinedVariable: 'zookeeper_port' is undefined"}

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

You applied the correct workaround. Fix enroute. :-)

Changed in kolla-ansible:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Radosław Piliszek (yoctozepto)
milestone: none → 10.0.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

Fix proposed to branch: master
Review: https://review.opendev.org/712758

Changed in kolla-ansible:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.opendev.org/712758
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=939b6f795825b88663096bf97deb7a2db634bc45
Submitter: Zuul
Branch: master

commit 939b6f795825b88663096bf97deb7a2db634bc45
Author: Radosław Piliszek <email address hidden>
Date: Thu Mar 12 19:15:56 2020 +0100

    Fix telegraf with zookeeper (wrong port variable reference)

    Change-Id: I29f65c83b9bd45e463d868cf9a55611f33fe3177
    Closes-bug: #1867179

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/723246

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/723247

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/train)

Reviewed: https://review.opendev.org/723246
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=9af4d1e1bb019bf965169da143b9757543d92d40
Submitter: Zuul
Branch: stable/train

commit 9af4d1e1bb019bf965169da143b9757543d92d40
Author: Radosław Piliszek <email address hidden>
Date: Thu Mar 12 19:15:56 2020 +0100

    Fix telegraf with zookeeper (wrong port variable reference)

    Change-Id: I29f65c83b9bd45e463d868cf9a55611f33fe3177
    Closes-bug: #1867179
    (cherry picked from commit 939b6f795825b88663096bf97deb7a2db634bc45)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/stein)

Reviewed: https://review.opendev.org/723247
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=0f99f5aa085aa0fe1e7b40ece8dbf5bcc2aca32c
Submitter: Zuul
Branch: stable/stein

commit 0f99f5aa085aa0fe1e7b40ece8dbf5bcc2aca32c
Author: Radosław Piliszek <email address hidden>
Date: Thu Mar 12 19:15:56 2020 +0100

    Fix telegraf with zookeeper (wrong port variable reference)

    Change-Id: I29f65c83b9bd45e463d868cf9a55611f33fe3177
    Closes-bug: #1867179
    (cherry picked from commit 939b6f795825b88663096bf97deb7a2db634bc45)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.