Browse Source

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
tags/10.3.0
Rabi Mishra 6 months ago
parent
commit
571a764cba
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      overcloud.j2.yaml

+ 1
- 1
overcloud.j2.yaml View File

@@ -734,7 +734,7 @@ resources:
734 734
 {% endfor %}
735 735
       service_bootstrap_node_ip:
736 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 738
           data:
739 739
             l:
740 740
 {% for role in roles %}

Loading…
Cancel
Save