From 28766a8d43f579fb027f4152c3f6586418e1eb9d Mon Sep 17 00:00:00 2001 From: Irina Mihai Date: Wed, 20 Feb 2019 21:11:56 +0000 Subject: [PATCH] Prevent download and creation of default Cirros glance image - downloading the Cirros image fails in glance-bootstrap if the hardcoded requested image is not found - to workaround this issue, we disable the download and creation of the Cirros image in glance-bootstrap through the overrides -> this has no other impact as the image can be created after the chart's installation using "openstack image create" Change-Id: I418eb236f5eceb0124eb73787fe12e2f0aa2d9e1 Closes-Bug: 1814142 Signed-off-by: Irina Mihai --- sysinv/sysinv/sysinv/sysinv/helm/glance.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sysinv/sysinv/sysinv/sysinv/helm/glance.py b/sysinv/sysinv/sysinv/sysinv/helm/glance.py index 737d8e63b7..b3fc0d4392 100644 --- a/sysinv/sysinv/sysinv/sysinv/helm/glance.py +++ b/sysinv/sysinv/sysinv/sysinv/helm/glance.py @@ -36,6 +36,7 @@ class GlanceHelm(openstack.OpenstackBaseHelm): 'storage': self._get_storage_overrides(), 'conf': self._get_conf_overrides(), 'images': self._get_images_overrides(), + 'bootstrap': self._get_bootstrap_overrides() } } @@ -161,6 +162,15 @@ class GlanceHelm(openstack.OpenstackBaseHelm): return conf + def _get_bootstrap_overrides(self): + # By default, prevent the download and creation of the Cirros image. + # TODO: Remove if/when pulling from external registries is supported. + bootstrap = { + 'enabled': False + } + + return bootstrap + def _get_primary_ceph_backend(self): try: backend = self.dbapi.storage_backend_get_by_name(