Skip to content

Commit

Permalink
Merge pull request #482 from fmount/image_conv
Browse files Browse the repository at this point in the history
Do not set image_conversion config options for internal Pods
  • Loading branch information
openshift-merge-bot[bot] authored Mar 20, 2024
2 parents 50b92e1 + d4a6a17 commit 973d64f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions config/samples/backends/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ If we already have a deployment working we can always use
When Ceph is adopted as a backend, Glance `image-conversion` is enabled by default.
It's realized through a dedicated `PVC` (built by the `StatefulSet` via templates)
that is mounted to the `/var/lib/glance/os_glance_staging_store` path.
A `glance-conversion` PVC can be found with if the Glance **external** Pod is
inspected via the `oc describe pod .. ` command:
A `glance-conversion` PVC can be found inspecting the Glance **external** Pod
via the `oc describe pod .. ` command:


```bash
Expand Down
8 changes: 4 additions & 4 deletions controllers/glanceapi_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -924,10 +924,9 @@ func (r *GlanceAPIReconciler) generateServiceConfig(
// If Quota values are defined in the top level spec (they are global values),
// each GlanceAPI instance should build the config file according to
// https://docs.openstack.org/glance/latest/admin/quotas.html
"QuotaEnabled": instance.Spec.Quota,
"ImageConversion": imageConv,
"LogFile": fmt.Sprintf("%s%s.log", glance.GlanceLogPath, instance.Name),
"VHosts": httpdVhostConfig,
"QuotaEnabled": instance.Spec.Quota,
"LogFile": fmt.Sprintf("%s%s.log", glance.GlanceLogPath, instance.Name),
"VHosts": httpdVhostConfig,
}

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

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

0 comments on commit 973d64f

Please sign in to comment.