Skip to content

Commit 973d64f

Browse files
Merge pull request #482 from fmount/image_conv
Do not set image_conversion config options for internal Pods
2 parents 50b92e1 + d4a6a17 commit 973d64f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

config/samples/backends/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ If we already have a deployment working we can always use
5858
When Ceph is adopted as a backend, Glance `image-conversion` is enabled by default.
5959
It's realized through a dedicated `PVC` (built by the `StatefulSet` via templates)
6060
that is mounted to the `/var/lib/glance/os_glance_staging_store` path.
61-
A `glance-conversion` PVC can be found with if the Glance **external** Pod is
62-
inspected via the `oc describe pod .. ` command:
61+
A `glance-conversion` PVC can be found inspecting the Glance **external** Pod
62+
via the `oc describe pod .. ` command:
6363

6464

6565
```bash

controllers/glanceapi_controller.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -924,10 +924,9 @@ func (r *GlanceAPIReconciler) generateServiceConfig(
924924
// If Quota values are defined in the top level spec (they are global values),
925925
// each GlanceAPI instance should build the config file according to
926926
// https://docs.openstack.org/glance/latest/admin/quotas.html
927-
"QuotaEnabled": instance.Spec.Quota,
928-
"ImageConversion": imageConv,
929-
"LogFile": fmt.Sprintf("%s%s.log", glance.GlanceLogPath, instance.Name),
930-
"VHosts": httpdVhostConfig,
927+
"QuotaEnabled": instance.Spec.Quota,
928+
"LogFile": fmt.Sprintf("%s%s.log", glance.GlanceLogPath, instance.Name),
929+
"VHosts": httpdVhostConfig,
931930
}
932931

933932
// Configure the internal GlanceAPI to provide image location data, and the
@@ -941,6 +940,7 @@ func (r *GlanceAPIReconciler) generateServiceConfig(
941940
} else {
942941
templateParameters["ShowImageDirectUrl"] = false
943942
templateParameters["ShowMultipleLocations"] = false
943+
templateParameters["ImageConversion"] = imageConv
944944
}
945945

946946
// Configure the cache bits accordingly as global options (00-config.conf)

0 commit comments

Comments
 (0)