openstack配置项自动生成方法
来源:互联网 发布:通用编程器报价 编辑:程序博客网 时间:2024/06/05 05:14
This information was valid at the time this article was written (juno-2).
UPDATE: Fixed Cinder, Heat and Ironic generate_sample.sh commands. Thanks Mike Spreitzer.
Each OpenStack project is a bit different. One of those differences is how sample config files are managed (or not) in the repository.
Here is a summary about how each project manage them.
Ceilometer
Ceilometer does not provide any sample config file in its repository.
To generate the sample config file, execute the following command:
tox -egenconfig
The sample config file will be located here:
- ./etc/ceilometer/ceilometer.conf.sample
Cinder
Cinder provides a sample config file in its repository.
The sample config file can be found here:
- ./etc/cinder/cinder.conf.sample
To (re)generate the sample config file, execute the following command:
tox -egenconfig
Before this change got merged, you had to execute the following command:
tox -evenv -- bash ./tools/config/generate_sample.sh -b . -p cinder -o etc/cinder
Glance
Glance provides multiple sample config files in its repository.
The sample config files can be found here:
- ./etc/glance/glance-api.conf
- ./etc/glance/glance-cache.conf
- ./etc/glance/glance-registry.conf
- ./etc/glance/glance-scrubber.conf
The current oslo.config.generator does not support configs being split in multiple config files. Therefore, they cannot not be regenerated. Someone already reported this limitation in oslo.config on Launchpad.
Julien Danjou recently suggested unifying all Glance config files into a single one. A blueprint already exists about it.
Heat
Heat provides a sample config file in its repository.
The sample config file can be found here:
- ./etc/heat/heat.conf.sample
To (re)generate the sample config file, execute the following command:
tox -evenv -- bash ./tools/config/generate_sample.sh -b . -p heat -o etc/heat
Horizon
Horizon provides a sample config file in its repository.
The sample config file can be found here:
- openstack_dashboard/local/local_settings.py.example
The sample config file does not use oslo.config and cannot be regenerated, it is manually updated.
Radomir Dopieralski proposes using oslo.config to manage Horizon configs. Thanks to Tom Fifield for pointing that one out on the openstack-operators mailinglist.
Ironic
Ironic provides a sample config file in its repository.
The sample config file can be found here:
- ./etc/ironic/ironic.conf.sample
To (re)generate the sample config file, execute the following command:
tox -egenconfig
Before this change got merged, you had to execute the following command:
tox -evenv -- bash ./tools/config/generate_sample.sh -b . -p ironic -o etc/ironic
Keystone
Keystone does not provide any sample config file in its repository.
To generate the sample config file, execute the following command:
tox -esample_config
The sample config file will be located here:
- ./etc/keystone/keystone.conf.sample
Neutron
Neutron provides multiple sample config files in its repository.
The sample config files can be found here:
- ./etc/dhcp_agent.ini
- ./etc/fwaas_driver.ini
- ./etc/l3_agent.ini
- ./etc/lbaas_agent.ini
- ./etc/metadata_agent.ini
- ./etc/metering_agent.ini
- ./etc/neutron.conf
- ./etc/services.conf
- ./etc/vpn_agent.ini
- ./etc/plugins/*
The current oslo.config.generator does not support configs being split in multiple config files. Therefore, they cannot not be regenerated. Someone already reported this limitation in oslo.config on Launchpad.
Note that a blueprint exists suggesting the sample config files should be removed in favor of auto-generated ones like Nova already does.
Nova
Nova does not provide any sample config file in its repository.
To generate the sample config file, execute the following command:
tox -egenconfig
The sample config file will be located here:
- ./etc/nova/nova.conf.sample
Swift
Swift provides multiple sample config files in its repository.
The sample config files can be found here:
- ./etc/account-server.conf-sample
- ./etc/container-server.conf-sample
- ./etc/dispersion-server.conf-sample
- ./etc/driver-audit.conf-sample
- ./etc/memcache.conf-sample
- ./etc/object-expirer.conf-sample
- ./etc/object-server.conf-sample
- ./etc/proxy-server.conf-sample
- ./etc/swift-bench.conf-sample
- ./etc/swift.conf-sample
Swift does not use oslo.config. Sample config files cannot be regenerated, they are manually updated.
- openstack配置项自动生成方法
- Tomcat4.1自动生成日志文件系统配置方法
- 自动生成pl/sql工具配置的方法步骤
- 自动生成配置
- mybatis自动生成配置
- openstack 配置项理解
- solr配置自动生成id
- generator.xml自动生成配置
- Solr自动生成ID配置
- MyEclipse自动生成注释配置
- Solr自动生成ID配置
- 自动生成编号的方法
- 自动生成POJO的方法
- C#文档自动生成方法
- 简单自动生成表格方法
- Eclipse 自动生成注释 方法
- Makefile 文件自动生成方法
- MyEclipse方法注解自动生成
- java--类加载相关知识点
- 装饰与继承的区别
- mysql分表的3种方法
- Box2d中刚体的纹理的几种实现方式
- 数制转换
- openstack配置项自动生成方法
- 【codeforces 750F】New Year and Finding Roots
- update优先级设置
- Android实现Canny算法
- 未能加载文件或程序集 Microsoft.ReportViewer.Common, Version=11.0.0.0
- R语言实战笔记--第十章 功效分析&样本量
- leetcode389
- VB.Net未能加载文件或程序集“XXX”或它的某一个依赖项。
- Caffe源码解析9: Caffe模型