用于部署OpenStack的磁盘映像生成器元素。

tripleo-image-elements的Python项目详细描述


https://governance.openstack.org/tc/badges/tripleo-image-elements.svg

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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
使用Java将JSON转换为哈希映射   java如何通过使用MapStruct从源对象复制值来填充目标对象内部的映射?   注入泛型类型为@InjectGuice的类时发生java错误   字符串如何在JavaIDE中导入基本符号   在Java中将JSON转换为List<List<String>>   java Java9 HttpClient SSLHandshakeException   java jOOQ代码生成器   java如何调整图标(图像按钮),使其不会放大?   java我可以在使用Eclipse时安装2个或更多Android SDK吗   sqlite Java实现DAO   如何解决此错误?“java.lang.NoSuchFieldError:org.apache.http.conn.ssl.SSLConnectionSocketFactory上的实例。<clinit>。”   java Maven:将基于OSP的zip文件解压缩到WEBINF/lib   java如何在每次调用函数时获取当前gps位置?