用于部署OpenStack的磁盘映像生成器元素。
tripleo-image-elements的Python项目详细描述
OpenStack图像的图像生成规则
这些元素用于构建通过heat部署openstack的磁盘映像。 它们是作为TripleO保护伞项目的一部分而建造的。
说明
签出此源树和diskimage builder,导出 ELEMENTS_PATH从树中添加元素,并生成任何磁盘映像 需要:
virtualenv . source bin/activate pip install dib-utils pyyaml git clone https://opendev.org/openstack/diskimage-builder.git git clone https://opendev.org/openstack/tripleo-image-elements.git export ELEMENTS_PATH=tripleo-image-elements/elements diskimage-builder/bin/disk-image-create -u base vm bootstrap local-config stackuser heat-cfntools -a i386 -o bootstrap
公共元素组合
始终在要通过heat引导的映像中包含heat cfntools:if 否则,用户ssh密钥就不能可靠地从 与cloud init交互导致的元数据服务器。
架构
OpenStack图像将使用Nova+Heat进行部署和维护。
因此,它们应该努力成为无状态的,完全通过自动化来维护。
配置
在一个运行的openstack中有几个配置类别。
- per user - e.g. ssh key registration with nova: we repeat this sort of config every time we add a user.
- local node - e.g. nova.conf or ovs-vsctl add-br br-ex : settings that apply individually to machines
- inter-node - e.g. credentials on rabbitmq for a given nova compute node
- application state - e.g. ‘neutron net-create …’ : settings that apply to the whole cluster not on a per-user / per-tenant basis
- 我们有五个地方可以在tripleo中进行配置:
- 图像生成时间
- 例如热驱动(ORC脚本)
- 从外部通过API
- 由热力策划
我们目前决定在哪里进行任何特定配置的启发式方法 步骤:
- per user config should be done from the outside via APIs, even for users like ‘admin’ that we know we’ll have. Note that service accounts are different - they are a form of inter-node configuration.
- local node configuration should be done via ORC driven by Heat and/or configuration management system metadata.
- inter-node configuration should be done by working through Heat. For instance, creating a rabbit account for a nova compute node is something that Heat should arrange, though the act of creating is probably done by a script on the rabbit server - triggered by Heat - and applying the config is done on the compute node by the local node script - again triggered by Heat.
- application state changes should be done from outside via APIs
版权
版权所有20122013 Hewlett-Packard Development Company,L.P. 版权所有(c)2012 NTT DoCoMo,Inc.
保留所有权利。
根据apache许可证2.0版(以下简称“许可证”)授权;您可以 除非符合许可证,否则不要使用此文件。你可以获得 在
http://www.apache.org/licenses/LICENSE-2.0
除非适用法律要求或书面同意,否则软件 根据许可证分发的是按“原样”分发的,而不是 明示或默示的任何形式的保证或条件。见 管理权限和限制的特定语言的许可证 在许可证下