heat.common.grouputils 模块¶
- class heat.common.grouputils.GroupInspector(context, rpc_client, group_identity)[source]¶
基类:
object用于返回有关伸缩组数据的类。
所有数据都通过 RPC 获取,并且组的堆栈绝不会加载到本地内存中。数据会被缓存,因此只会获取一次。要刷新数据,请创建一个新的 GroupInspector。
- heat.common.grouputils.get_child_template_files(context, stack, is_rolling_update, old_template_id)[source]¶
返回合并的旧模板文件和新模板文件映射。
对于滚动更新文件,需要旧定义和新定义,因为嵌套堆栈是按缩放单元批量更新的。
- heat.common.grouputils.get_member_definitions(group, include_failed=False)[source]¶
获取组中成员定义(名称,资源定义)对。
列表首先按 created_time 然后按名称排序。如果设置了 include_failed,则失败的成员将首先出现在列表中,按 created_time 然后按名称排序。
- heat.common.grouputils.get_member_refids(group)[source]¶
获取指定组管理的成员资源列表。
资源列表首先按 created_time 然后按名称排序。