def _make_heat_template(self, cluster, ng1, ng2): heat_template = h.ClusterStack(cluster) heat_template.add_node_group_extra(ng1['id'], 1, get_ud_generator('line1\nline2')) heat_template.add_node_group_extra(ng2['id'], 1, get_ud_generator('line2\nline3')) return heat_template
def _create_instances(self, cluster, target_count, update_stack=False, disable_rollback=True): stack = ht.ClusterStack(cluster) self._update_instance_count(stack, cluster, target_count) stack.instantiate(update_existing=update_stack, disable_rollback=disable_rollback) heat.wait_stack_completion( cluster, is_update=update_stack, last_updated_time=stack.last_updated_time) return self._populate_cluster(cluster, stack)