[Windows] CAD cannot deploy windows nodes with controller

Bug #1800448 reported by Jacek Chałupka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Fix Committed
Undecided
Unassigned
Trunk
Fix Committed
Undecided
Unassigned
OpenContrail
Fix Committed
Undecided
Unassigned

Bug Description

TASK [instance : Build hosts file for rabbitmq with domain suffix] *********************************************************************************************************************************************
fatal: [10.7.0.92]: FAILED! => {"msg": "The conditional check 'item.0 in hostvars[item.1].ansible_all_ipv4_addresses' failed. The error was: error while evaluating conditional (item.0 in hostvars[item.1].ansible_all_ipv4_addresses): Unable to look up a name or access an attribute in template string ({% if item.0 in hostvars[item.1].ansible_all_ipv4_addresses %} True {% else %} False {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable\n\nThe error appears to have been in '/mnt/c/Users/jc/go/src/github.com/Juniper/contrail-ansible-deployer/playbooks/roles/instance/tasks/install_software_Linux.yml': line 86, 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: \"3. Build hosts file for rabbitmq with domain suffix\"\n ^ here\n"}

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/47338
Submitter: Jacek Chalupka (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/47338
Committed: http://github.com/Juniper/contrail-ansible-deployer/commit/8eb7fdacab2bd66593c0d6ea591ea51b83c1ec79
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 8eb7fdacab2bd66593c0d6ea591ea51b83c1ec79
Author: Jacek Chalupka <email address hidden>
Date: Mon Oct 29 12:17:59 2018 +0100

Check if ansible_all_ipv4_addresses exist before using it

For Windows host ansible doesn't gather fact ansible_all_ipv4_addresses,
it just gathers ansible_all_addresses.
While setting configdbnode fq name for rabbitmq, we just ommit hosts,
that doesn't have ansible_all_ipv4_addresses, because they cannot be
deployed on Windows nodes.

Change-Id: I4fad441ddcb52ca993cb8af1dd8f65f0725c2011
Closes-Bug: #1800448

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R5.0

Review in progress for https://review.opencontrail.org/47468
Submitter: Jacek Chalupka (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/47468
Committed: http://github.com/Juniper/contrail-ansible-deployer/commit/4faba714b1553005e9e5f65de4371c8ddc441bb9
Submitter: Zuul v3 CI (<email address hidden>)
Branch: R5.0

commit 4faba714b1553005e9e5f65de4371c8ddc441bb9
Author: Jacek Chalupka <email address hidden>
Date: Mon Oct 29 12:17:59 2018 +0100

Check if ansible_all_ipv4_addresses exist before using it

For Windows host ansible doesn't gather fact ansible_all_ipv4_addresses,
it just gathers ansible_all_addresses.
While setting configdbnode fq name for rabbitmq, we just ommit hosts,
that doesn't have ansible_all_ipv4_addresses, because they cannot be
deployed on Windows nodes.

Change-Id: I4fad441ddcb52ca993cb8af1dd8f65f0725c2011
Closes-Bug: #1800448
(cherry picked from commit 8eb7fdacab2bd66593c0d6ea591ea51b83c1ec79)

Changed in opencontrail:
status: New → Fix Committed
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.