Skip to content

Commit

Permalink
Switch glance store backend to swift
Browse files Browse the repository at this point in the history
This provides the options to move the glance store
to swift. We leave the default value to pvc so as
not to break existing deployments accidently. Howerver,
providing a override on the helm command to --storage=swift
will deploy a glance with swift backend.

These values should be overwritten in your region
specific secrets file to ensure no mistake.
  • Loading branch information
sulochan committed Jun 24, 2024
1 parent 76c9771 commit 6c9aa39
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion helm-configs/glance/glance-helm-overrides.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# radosgw, rbd, swift or pvc

Check failure on line 1 in helm-configs/glance/glance-helm-overrides.yaml

View workflow job for this annotation

GitHub Actions / pre_commit (3.10)

load-failure[runtimeerror]

Failed to load YAML file: helm-configs/glance/glance-helm-overrides.yaml
storage: pvc # This should likely be set to swift or rbd in production
storage: swift # Use override to switch to pvc or rbd

labels:
api:
Expand Down Expand Up @@ -251,6 +251,10 @@ conf:
rbd_store_ceph_conf: /etc/ceph/ceph.conf
filesystem_store_datadir: /var/lib/glance/images
default_swift_reference: ref1
swift_auth_address: https://swift.cluster.local
swift_auth_version = 3
swift_user: glance:glance-store
swift_password: override_from_your_secrets_files
swift_store_container: glance
swift_store_create_container_on_put: true
swift_store_config_file: /etc/glance/swift-store.conf
Expand Down Expand Up @@ -367,6 +371,11 @@ conf:
auth_address = {{ tuple "ceph_object_store" "public" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" }}
user = {{ .Values.endpoints.ceph_object_store.auth.glance.username }}:swift
key = {{ .Values.endpoints.ceph_object_store.auth.glance.password }}
{{- else if eq .Values.storage "swift" }}
auth_version = {{ .Values.conf.glance.glance_store.swift_auth_version }}
auth_address = {{ .Values.conf.glance.glance_store.swift_auth_address }}
user = {{ .Values.conf.glance.glance_store.swift_user }}
key = {{ .Values.conf.glance.glance_store.swift_password }}
{{- else }}
user = {{ .Values.endpoints.identity.auth.glance.project_name }}:{{ .Values.endpoints.identity.auth.glance.username }}
key = {{ .Values.endpoints.identity.auth.glance.password }}
Expand Down

0 comments on commit 6c9aa39

Please sign in to comment.