glance-api yoga loads unnecessary configuration files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
New
|
Undecided
|
Unassigned |
Bug Description
=====
Issue
=====
I'm using glance-api yoga of cloud-archive on Ubuntu 20.04.
-----
# dpkg -l|grep glance-api
ii glance-api 2:24.1.
-----
I set use_syslog=True in glance-api.conf. But it didn't work. The glance-api's log messages weren't printed in syslog.
==========
Root cause
==========
The "config-dir" option[1] is specified for glance-api processes.
-----------------
# ps -ef|grep glance
glance 174533 1 2 08:55 ? 00:00:21 /usr/bin/python3 /usr/bin/glance-api --config-
glance 174561 174533 0 08:55 ? 00:00:00 /usr/bin/python3 /usr/bin/glance-api --config-
glance 174562 174533 0 08:55 ? 00:00:00 /usr/bin/python3 /usr/bin/glance-api --config-
root 180241 180002 0 09:12 pts/0 00:00:00 grep --color=auto glance
-----------------
So glance-api loads all *.conf files under the /etc/glance directory. As a result, /etc/glance/
I think that glance-api also loads unnecessary configuration files.(e.g. glance-
The "config-dir" option is defined in /etc/init.
---------------
# grep config-dir /etc/init.
DAEMON_
---------------
[1]
The config-dir spec is written in the following document.
https:/
=======
Why is "config-dir" specified?
=======
'DAEMON_
https:/
The above patch was contained in ver. 2:23.0.
So there is a possibility that this issue will also affect to xena version. But I haven't confirm xena. I would appreciate it if someone could confirm that.
=======
Remarks
=======
These are the files under /etc/glance directory after installing the glance-api yoga package.
-------
# ls -1 /etc/glance/
glance-
glance-api.conf
glance-cache.conf
glance-
glance-manage.conf
glance-
metadefs
rootwrap.conf
rootwrap.d
schema-image.json
-------
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
summary: |
- glance-api yoga lodas unnecessary configuration files + glance-api yoga loads unnecessary configuration files |