From 4149ca9465ca5b7878a492565d78c93830cb76ff Mon Sep 17 00:00:00 2001 From: Francesco Pantano Date: Wed, 7 Feb 2024 08:55:53 +0100 Subject: [PATCH] Explicitly add the File backend for local storage Local storage is an example where glance is adopted with a dummy backend. While we decide what should be used as base use case, this patch fixes the local backend adoption by adding type:single, otherwise the webhook will deny the deployment, and we explicitly add the file config to avoid unexpected parsing behaviors. Signed-off-by: Francesco Pantano --- tests/roles/glance_adoption/tasks/main.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/roles/glance_adoption/tasks/main.yaml b/tests/roles/glance_adoption/tasks/main.yaml index 49c3c934f..fd7e08f0b 100644 --- a/tests/roles/glance_adoption/tasks/main.yaml +++ b/tests/roles/glance_adoption/tasks/main.yaml @@ -6,14 +6,20 @@ spec: glance: enabled: true - apiOverride: - route: {} template: + customServiceConfig: | + [DEFAULT] + enabled_backends = default_backend:file + [glance_store] + default_backend = default_backend + [default_backend] + filesystem_store_datadir = /var/lib/glance/images/ databaseInstance: openstack storageClass: "local-storage" storageRequest: 10G glanceAPIs: default: + type: single replicas: 1 override: service: