Ask Your Question

import parameters from glance configuration files

asked 2013-08-14 08:59:25 -0500

root gravatar image

updated 2013-08-14 12:31:39 -0500

Jobin gravatar image

Hi, developer. When I read the glance source code, I find there are many parameters which come from the configuration files. But I really confused when to import the parameters from the configuration files.For example, glance-api. The code config.parse_args() in glance-api is to import configuration files. But the truth is that I find there are only a few parameters are imported when the program invokes config.parse_args(). But the following code is using some parameters that are not imported such as , "owner_is_tenant", "admin_role" which are in /glance/api/middleware/

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-08-20 00:27:25 -0500

root gravatar image

I have done a test about the oslo.config. We only need to invoke the config.parse_args() one time, then the configuration file information will be kept in the memory. Later, when we registered some new parameters in configuration files, the system will return their value which is stored in memory.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-08-14 08:59:25 -0500

Seen: 81 times

Last updated: Aug 20 '13