openstack配置项自动生成方法

翻译 2017年01月03日 21:15:09

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 配置文件的读取

http://pudge.cn/2013/03/16/openstack-%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9A%84%E8%AF%BB%E5%8F%96...
  • wk5113552
  • wk5113552
  • 2013年12月02日 14:53
  • 1373

软件配置项测试要点

软件配置项内容包括:功能测试、性能测试、外部接口测试、余量测试和边界测试,必要时,应包括人机交互界面测试、强度测试、可靠性测试、安全性测试、恢复性测试、安装性测试、互操作性测试、敏感性测试等内容。 ...
  • u014357995
  • u014357995
  • 2015年04月19日 16:29
  • 2194

每天学习openstack(14)

接着上面的步骤继续安装网络服务: 1.网络服务介绍 openstack network service(neutron):是opensatck核心组件之一,提供云计算环境下的虚拟网络功能。 2.网络服...
  • zongyimin
  • zongyimin
  • 2017年01月05日 16:40
  • 414

安装OpenStack前CentOS7网络基本配置

安装OpenStack前CentOS7网络基本配置: 刚安装好centos 7想查看IP地址用: #ip addr 如果centos 7系统中没有 ifconfig 命令的解决办法如下: 先查找是否有...
  • yzlmhm8
  • yzlmhm8
  • 2015年07月22日 01:01
  • 852

OpenStack安装部署教程

OpenStack安装部署教程   摘 要  OpenStack是一个由NASA(美国国家航空航天局)和Rackspace合作研发并发起的,以Apache许可证授权的自由软件和开放源代码项目。同时...
  • a3568292a1
  • a3568292a1
  • 2017年03月21日 11:42
  • 483

openstack搭建中的虚拟机网卡配置IP各种问题

这个是我正在搭建的一个简单的openstack的网络: 我的环境是:WIN7+Virtualbox+Centos6.5                              ...
  • Tomstrong_369
  • Tomstrong_369
  • 2015年07月15日 21:54
  • 3551

小白装openstack(一) 网络配置

小白装openstack啦, 小白基础:初步的网络基础,只会用cd,ll的linux基础。经过为其一个星期的安装部署过程,对网络基础有了更直观的认识,对LINUX也开始有了真正的了解。总之,这真的是一...
  • u014707812
  • u014707812
  • 2016年08月01日 17:34
  • 1211

OpenStack 最小化安装配置(三):MySQL服务配置

几乎所有的在OpenStack上的用户数据都存储在MySQL服务器上。我这里设置了MySQL服务器的IP地址192.168.137.102 内部通讯的IP地址为192.168.1.102.我们需要安装...
  • hengrjgc
  • hengrjgc
  • 2014年12月21日 17:46
  • 1323

openstack网络基础:交换机、路由器、DHCP

我们在使用openstack的过程中,会遇到创建虚拟机路由器、交换机等,那么 1.他们的作用到底是什么? 2.DHCP为什么会产生,它的作用是什么? 个人总结: 交换机:一般用在同一网...
  • zhongbeida_xue
  • zhongbeida_xue
  • 2016年11月21日 18:44
  • 520

OpenStack 使用Ceph 配置指导

Ceph 作为分布式文件系统,不但具有高可靠性、高扩展性、高性能, 也是统一存储系统,支持对象存储、块存储、文件存储,本文介绍如何使用Ceph 块存储作为OpenStack的Glance、Nova、C...
  • chinagissoft
  • chinagissoft
  • 2016年02月01日 16:13
  • 2812
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:openstack配置项自动生成方法
举报原因:
原因补充:

(最多只允许输入30个字)