Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgw: the metavariables in frontends-related config won't be expanded #19689

Merged
merged 1 commit into from Dec 29, 2017
Merged

rgw: the metavariables in frontends-related config won't be expanded #19689

merged 1 commit into from Dec 29, 2017

Conversation

ghost
Copy link

@ghost ghost commented Dec 26, 2017

When using metavariables in frontends-related config, I found that metavariables won't be expanded. Such as:
The name variable won't be expanded.

[client.rgw]
rgw frontends = civetweb port=8000 access_log_file=/path/$name.access.log

The reason is as follows:

In rgw_main.cc/main function, program uses frontends-related config before the expand_all_meta function call that is called in the global_init function.

Signed-off-by: chnmagnus chnmagnus@qq.com

When using metavariables in frontends-related config, I found that metavariables won't be expanded. Such as:
the `name` variable won't be expanded.
```
[client.rgw]
rgw frontends = civetweb port=8000 access_log_file=/path/$name.access.log
```
The reason is as follows:

In `rgw_main.cc/main()` function, program uses frontends-related config before the `expand_all_meta` function call that is called in the `global_init` function.

Signed-off-by: chnmagnus chnmagnus@qq.com
@liewegas liewegas merged commit f52cd17 into ceph:master Dec 29, 2017
@caisan caisan mentioned this pull request Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant