Fix: Correct bad conversion of OpenStack config 79/68979/1 v0.68.0
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 15 Oct 2021 00:05:27 +0000 (17:05 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Fri, 15 Oct 2021 00:05:27 +0000 (17:05 -0700)
While attempting to get the OpenDaylight Jenkins Sandbox configured to
start working with JCasC cloud management it was discovered that the
numExecutors flag was being mistranslated.

Change-Id: I5598f9936a2a3190e0ff326dad8ef4503aaceaa2
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
jenkins-admin/create_jenkins_clouds_openstack_yaml.py
releasenotes/notes/fix_openstack_numExecutors-eb10d4a6c2d8a08c.yaml [new file with mode: 0644]

index 2b81f34..a1464a5 100755 (executable)
@@ -125,7 +125,7 @@ machinetemplate = """\
 {%- if instance_cap %}
               instanceCap: {{ instance_cap }}{% endif %}
 {%- if num_executors %}
 {%- if instance_cap %}
               instanceCap: {{ instance_cap }}{% endif %}
 {%- if num_executors %}
-              numExectorts: {{ num_executors }}{% endif %}
+              numExecutors: {{ num_executors }}{% endif %}
 {%- if retention_time %}
               retentionTime: {{ retention_time }}
 {%- else %}
 {%- if retention_time %}
               retentionTime: {{ retention_time }}
 {%- else %}
diff --git a/releasenotes/notes/fix_openstack_numExecutors-eb10d4a6c2d8a08c.yaml b/releasenotes/notes/fix_openstack_numExecutors-eb10d4a6c2d8a08c.yaml
new file mode 100644 (file)
index 0000000..afe6cd3
--- /dev/null
@@ -0,0 +1,5 @@
+---
+fixes:
+  - |
+    The JCasC convert for OpenStack was improperly converting executor
+    definitions. The script has learned the proper syntax.