[Bug 1955022] Re: Init script for glance-api ignores additional config files
Corey Bryant
1955022 at bugs.launchpad.net
Thu Dec 16 18:12:14 UTC 2021
Christian, Thanks for reporting this. I've pushed a fix for this to the
repo and it will get picked up on the next upload for yoga.
** Changed in: glance (Ubuntu)
Status: New => Triaged
** Changed in: cloud-archive
Status: New => Triaged
** Changed in: openstack-pkg-tools (Ubuntu)
Status: New => Triaged
** Changed in: openstack-pkg-tools (Ubuntu)
Importance: Undecided => Wishlist
** Changed in: glance (Ubuntu)
Importance: Undecided => Medium
** Changed in: cloud-archive
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to glance in Ubuntu.
https://bugs.launchpad.net/bugs/1955022
Title:
Init script for glance-api ignores additional config files
Status in Ubuntu Cloud Archive:
Triaged
Status in glance package in Ubuntu:
Triaged
Status in openstack-pkg-tools package in Ubuntu:
Triaged
Bug description:
The init script at /etc/init.d/glance-api (likely created by the
openstack-pkg-tools) uses the
```
PROJECT_NAME=glance
NAME=${PROJECT_NAME}-api
CONFIG_FILE=/etc/${PROJECT_NAME}/${NAME}.conf
```
to later add the daemon-arg ``--config-file /etc/glance/glance-
api.conf``
This unfortunately causes Glance (or oslo_config in particular, see https://docs.openstack.org/oslo.config/latest/configuration/options.html#default) to ignore all other config files.
While multiple config files might not be necessary per se, Glance uses them at least since https://review.opendev.org/c/openstack/glance/+/527635 and the user documentation talks about placing various settings into ``glance-image-import.conf`` (https://docs.openstack.org/glance/latest/admin/interoperable-image-import.html#configuring-the-web-download-method)
This issue of using config-file vs. config-dir has been "fixed" for
the DevStack
(https://review.opendev.org/c/openstack/devstack/+/625628) and there
were other observations of a similar issue in e.g.
https://bugs.launchpad.net/glance/+bug/1775782.
With multiple config files being actively used by glance switching to
``config-dir`` or at least allow adding multiple config files (see
default list:
https://opendev.org/openstack/glance/src/branch/master/glance/common/wsgi_app.py#L37)
is necessary.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1955022/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list