summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRabi Mishra <ramishra@redhat.com>2018-12-13 18:56:20 +0530
committerRabi Mishra <ramishra@redhat.com>2018-12-14 03:48:56 +0000
commit571a764cba003f9dcae525ee7a7f36a26c3ddb92 (patch)
tree9769ae8b50c1712b5c43348c18a584b8ff858364
parentc2c48aae032ac7988cec50021c160d86dcb17a5d (diff)
Allow for service_bootstrap_ips empty list in IpListMap
It seems in some cases we get an empty list for services in service_bootstrap_ips and the yaql expression fails. Though there can be better solution to not look for EnabledServices for roles that has zero count, this would probably fix the immediate scenario008 failures. Change-Id: Ife1fc3f7736ed5743c80fa3748a75cb0bb52b817 Closes-Bug: #1808240
Notes
Notes (review): Verified-1: RDO Third Party CI <dmsimard+rdothirdparty@redhat.com> Code-Review+1: Damien Ciabrini <dciabrin@redhat.com> Code-Review+2: Steven Hardy <shardy@redhat.com> Code-Review+2: Michele Baldessari <michele@acksyn.org> Workflow+1: Michele Baldessari <michele@acksyn.org> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 14 Dec 2018 14:03:55 +0000 Reviewed-on: https://review.openstack.org/624999 Project: openstack/tripleo-heat-templates Branch: refs/heads/master
-rw-r--r--overcloud.j2.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/overcloud.j2.yaml b/overcloud.j2.yaml
index 98c1cec..1982811 100644
--- a/overcloud.j2.yaml
+++ b/overcloud.j2.yaml
@@ -734,7 +734,7 @@ resources:
734{% endfor %} 734{% endfor %}
735 service_bootstrap_node_ip: 735 service_bootstrap_node_ip:
736 yaql: 736 yaql:
737 expression: dict($.data.l.where($ != null).selectMany($.items()).groupBy($[0], $[1]).select([$[0], $[1].flatten().first()])) 737 expression: dict($.data.l.where($ != null).selectMany($.items()).groupBy($[0], $[1]).select([$[0], $[1].flatten().first(null)]))
738 data: 738 data:
739 l: 739 l:
740{% for role in roles %} 740{% for role in roles %}