Nova bootstrap job efficiency

This PS attempts to make the Nova bootstrap job a little speedier.
It's been noticed that flavor check/creation on initial deployment
are rather slow, so this backgrounds the creation of each flavor,
so that the defined flavors can be checked/create in parallel,
rather than one at a time. Waits for the jobs to finish at the end.

Change-Id: Ib9ab345e5aee697a41414e927910335dd286072f
This commit is contained in:
DeJaeger, Darren (dd118r) 2021-08-02 08:56:56 -04:00
parent 3ac3caa013
commit 9a8a476d9f
3 changed files with 11 additions and 7 deletions

View File

@ -14,7 +14,7 @@ apiVersion: v1
appVersion: v1.0.0
description: OpenStack-Helm Nova
name: nova
version: 0.2.11
version: 0.2.12
home: https://docs.openstack.org/nova/latest/
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Nova/OpenStack_Project_Nova_vertical.png
sources:

View File

@ -23,15 +23,18 @@ export HOME=/tmp
# longer treated specially. Though the same behavior can be achieved w/o specifying
#--id flag.
# https://review.opendev.org/c/openstack/python-openstackclient/+/750151
openstack flavor show {{ .name }} || \
openstack flavor create {{ .name }} \
{
openstack flavor show {{ .name }} || \
openstack flavor create {{ .name }} \
{{ if .id }} \
--id {{ .id }} \
--id {{ .id }} \
{{ end }} \
--ram {{ .ram }} \
--disk {{ .disk }} \
--vcpus {{ .vcpus }}
--ram {{ .ram }} \
--disk {{ .disk }} \
--vcpus {{ .vcpus }}
} &
{{ end }}
wait
{{ end }}
{{ if .Values.bootstrap.wait_for_computes.enabled }}

View File

@ -32,4 +32,5 @@ nova:
- 0.2.9 Add image clean up to rally test
- 0.2.10 Add tls cert mounting to nova-novnc
- 0.2.11 Add Victoria and Wallaby releases support
- 0.2.12 Bootstrap flavor creation efficiencies
...