Skip to content

Generate default config files for Glance - #155

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
fmount:glance
Sep 1, 2026
Merged

Generate default config files for Glance#155
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
fmount:glance

Conversation

@fmount

@fmount fmount commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

The s2i container ships without /etc/glance/glance-api.conf, which oslo.config expects when prog='glance-api' is used (e.g. from the WSGI entry point). Generate a default glance-api.conf during the build stage using oslo-config-generator and the upstream config definition, then COPY it into the runtime image alongside glance-api-paste.ini.

This fixes the issues we see while we're attempting the job [1].

Note that these files were present in the previous releases because part of the glance .spec file.

[1] openstack-k8s-operators/glance-operator#992
[2] https://github.com/rdo-packages/glance-distgit/blob/05968b35c77aaae4b3c5a535bb68052e36b91c89/openstack-glance.spec#L39-L50

The s2i container ships without /etc/glance/glance-api.conf, which
oslo.config expects when prog='glance-api' is used (e.g. from the WSGI
entry point). Generate a default glance-api.conf during the build stage
using oslo-config-generator and the upstream config definition, then
COPY it into the runtime image alongside glance-api-paste.ini.

Signed-off-by: Francesco Pantano <fpantano@redhat.com>
@tosky

tosky commented Aug 31, 2026

Copy link
Copy Markdown

spotted by the preliminary s2i testing through tempest, +1

@konan-abhi konan-abhi left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!!

@konan-abhi

Copy link
Copy Markdown

/approve

@openshift-ci

openshift-ci Bot commented Sep 1, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: konan-abhi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved label Sep 1, 2026
@openshift-merge-bot
openshift-merge-bot Bot merged commit 96944e9 into openstack-k8s-operators:main Sep 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants