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 <irina.mihai@windriver.com>
This commit is contained in:
parent
5442d321d1
commit
28766a8d43
@ -36,6 +36,7 @@ class GlanceHelm(openstack.OpenstackBaseHelm):
|
|||||||
'storage': self._get_storage_overrides(),
|
'storage': self._get_storage_overrides(),
|
||||||
'conf': self._get_conf_overrides(),
|
'conf': self._get_conf_overrides(),
|
||||||
'images': self._get_images_overrides(),
|
'images': self._get_images_overrides(),
|
||||||
|
'bootstrap': self._get_bootstrap_overrides()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -161,6 +162,15 @@ class GlanceHelm(openstack.OpenstackBaseHelm):
|
|||||||
|
|
||||||
return conf
|
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):
|
def _get_primary_ceph_backend(self):
|
||||||
try:
|
try:
|
||||||
backend = self.dbapi.storage_backend_get_by_name(
|
backend = self.dbapi.storage_backend_get_by_name(
|
||||||
|
Loading…
Reference in New Issue
Block a user