Skip to content

Commit 4149ca9

Browse files
committed
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 <fpantano@redhat.com>
1 parent 0ea5b71 commit 4149ca9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/roles/glance_adoption/tasks/main.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,20 @@
66
spec:
77
glance:
88
enabled: true
9-
apiOverride:
10-
route: {}
119
template:
10+
customServiceConfig: |
11+
[DEFAULT]
12+
enabled_backends = default_backend:file
13+
[glance_store]
14+
default_backend = default_backend
15+
[default_backend]
16+
filesystem_store_datadir = /var/lib/glance/images/
1217
databaseInstance: openstack
1318
storageClass: "local-storage"
1419
storageRequest: 10G
1520
glanceAPIs:
1621
default:
22+
type: single
1723
replicas: 1
1824
override:
1925
service:

0 commit comments

Comments
 (0)