本文整理汇总了Python中fuel_test.manifest.Template.compact方法的典型用法代码示例。如果您正苦于以下问题:Python Template.compact方法的具体用法?Python Template.compact怎么用?Python Template.compact使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类fuel_test.manifest.Template
的用法示例。
在下文中一共展示了Template.compact方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_deploy_compact_wo_quantum_cinder_all_by_ipaddr
# 需要导入模块: from fuel_test.manifest import Template [as 别名]
# 或者: from fuel_test.manifest.Template import compact [as 别名]
def test_deploy_compact_wo_quantum_cinder_all_by_ipaddr(self):
if ASTUTE_USE:
config = Config().generate(
template=Template.compact(),
ci=self.ci(),
nodes = self.nodes().controllers + self.nodes().computes,
quantums=self.nodes().quantums,
quantum=False,
cinder=True,
cinder_nodes=map(
lambda x: x.get_ip_address_by_network_name('internal'),
self.nodes().controllers
+ self.nodes().computes
+ self.nodes().storages),)
self.deploy_by_astute(config)
else:
Manifest().generate_openstack_manifest(
template=Template.compact(), ci=self.ci(),
controllers=self.nodes().controllers,
cinder=True,
cinder_nodes=map(
lambda x: x.get_ip_address_by_network_name('internal'),
self.nodes().controllers
+ self.nodes().computes
+ self.nodes().storages),
quantums=self.nodes().quantums,
quantum=False,)
self.deploy_compact(quantum_node=False)
示例2: generate_manifests
# 需要导入模块: from fuel_test.manifest import Template [as 别名]
# 或者: from fuel_test.manifest.Template import compact [as 别名]
def generate_manifests(self):
Manifest().write_openstack_manifest(
remote=self.remote(),
template=Template.minimal(), ci=self.ci(),
controllers=self.nodes().controllers,
quantums=self.nodes().quantums,
swift=False,
quantum=True)
Manifest().write_openstack_manifest(
remote=self.remote(),
template=Template.compact(), ci=self.ci(),
controllers=self.nodes().controllers,
quantums=self.nodes().quantums,
quantum=False, loopback=False, use_syslog=False)
Manifest().write_openstack_manifest(
remote=self.remote(),
template=Template.compact(), ci=self.ci(),
controllers=self.nodes().controllers,
quantums=self.nodes().quantums,
quantum=False)
Manifest().write_openstack_manifest(
remote=self.remote(),
template=Template.full(), ci=self.ci(),
controllers=self.nodes().controllers,
quantums=self.nodes().quantums,
proxies=self.nodes().proxies,
quantum=True)
Manifest().write_openstack_simple_manifest(
remote=self.remote(),
ci=self.ci(),
controllers=self.nodes().controllers)
Manifest().write_openstack_single_manifest(
remote=self.remote(),
ci=self.ci())
示例3: test_generate_compact
# 需要导入模块: from fuel_test.manifest import Template [as 别名]
# 或者: from fuel_test.manifest.Template import compact [as 别名]
def test_generate_compact(self):
Manifest().generate_openstack_manifest(
template=Template.compact(), ci=self.ci(),
controllers=self.nodes().controllers,
quantums=self.nodes().quantums,
swift=False, loopback=False, use_syslog=False,
quantum=True)
示例4: test_deploy_compact_wo_quantum
# 需要导入模块: from fuel_test.manifest import Template [as 别名]
# 或者: from fuel_test.manifest.Template import compact [as 别名]
def test_deploy_compact_wo_quantum(self):
if ASTUTE_USE:
config = Config().generate(
template=Template.compact(),
ci=self.ci(),
nodes = self.nodes().controllers,
quantums=self.nodes().quantums,
quantum=False,
cinder_nodes=['controller'])
self.deploy_by_astute(config)
else:
Manifest().generate_openstack_manifest(
template=Template.compact(), ci=self.ci(),
controllers=self.nodes().controllers,
quantums=self.nodes().quantums,
quantum=False,
cinder_nodes=['controller'])
self.deploy_compact(quantum_node=False)
示例5: test_deploy_compact_quantum_standalone
# 需要导入模块: from fuel_test.manifest import Template [as 别名]
# 或者: from fuel_test.manifest.Template import compact [as 别名]
def test_deploy_compact_quantum_standalone(self):
if ASTUTE_USE:
config = Config().generate(
template=Template.compact(),
ci=self.ci(),
nodes = self.nodes().controllers,
quantums=self.nodes().quantums,
quantum=True, quantum_netnode_on_cnt=False,
cinder_nodes=['controller'])
self.deploy_by_astute(config)
else:
Manifest().generate_openstack_manifest(
template=Template.compact(), ci=self.ci(),
controllers=self.nodes().controllers,
quantums=self.nodes().quantums,
quantum=True, quantum_netnode_on_cnt=False, ha_provider=False,
cinder_nodes=['controller'])
self.deploy_compact(quantum_node=True)
示例6: test_deploy_compact_wo_ha_provider
# 需要导入模块: from fuel_test.manifest import Template [as 别名]
# 或者: from fuel_test.manifest.Template import compact [as 别名]
def test_deploy_compact_wo_ha_provider(self):
Manifest().write_openstack_manifest(
remote=self.remote(),
template=Template.compact(), ci=self.ci(),
controllers=self.nodes().controllers,
quantums=self.nodes().quantums,
quantum=False, use_syslog=False, ha_provider=False)
self.deploy_compact(quantum_node=False)
if CREATE_SNAPSHOTS:
self.environment().snapshot('compact_wo_ha_provider', force=True)
示例7: test_deploy_compact_quantum_standalone
# 需要导入模块: from fuel_test.manifest import Template [as 别名]
# 或者: from fuel_test.manifest.Template import compact [as 别名]
def test_deploy_compact_quantum_standalone(self):
Manifest().write_openstack_manifest(
remote=self.remote(),
template=Template.compact(), ci=self.ci(),
controllers=self.nodes().controllers,
quantums=self.nodes().quantums,
quantum=True, quantum_netnode_on_cnt=False, ha_provider=False)
self.deploy_compact(quantum_node=True)
if CREATE_SNAPSHOTS:
self.environment().snapshot('compact', force=True)
示例8: test_generate_compact
# 需要导入模块: from fuel_test.manifest import Template [as 别名]
# 或者: from fuel_test.manifest.Template import compact [as 别名]
def test_generate_compact(self):
print Config().generate(
ci=self.ci(),
nodes = self.ci().nodes().controllers + self.ci().nodes().computes,
template=Template.compact(),
quantums=self.nodes().quantums,
swift=False,
loopback=False,
use_syslog=False,
quantum=True)
示例9: test_deploy_compact_wo_quantum_cinder_all
# 需要导入模块: from fuel_test.manifest import Template [as 别名]
# 或者: from fuel_test.manifest.Template import compact [as 别名]
def test_deploy_compact_wo_quantum_cinder_all(self):
if ASTUTE_USE:
config = Config().generate(
template=Template.compact(),
ci=self.ci(),
nodes = self.nodes().controllers + self.nodes().computes,
quantums=self.nodes().quantums,
quantum=True,
cinder=True,
cinder_nodes=['all'])
self.deploy_by_astute(config)
else:
manifest = Manifest().generate_openstack_manifest(
template=Template.compact(), ci=self.ci(),
controllers=self.nodes().controllers,
cinder=True,
cinder_nodes=['all'],
quantums=self.nodes().quantums,
quantum=False)
self.deploy_compact(manifest=manifest, quantum_node=False)
示例10: test_deploy_compact_wo_quantum_cinder_all
# 需要导入模块: from fuel_test.manifest import Template [as 别名]
# 或者: from fuel_test.manifest.Template import compact [as 别名]
def test_deploy_compact_wo_quantum_cinder_all(self):
Manifest().write_openstack_manifest(
remote=self.remote(),
template=Template.compact(), ci=self.ci(),
controllers=self.nodes().controllers,
cinder=True,
cinder_nodes=['all'],
quantums=self.nodes().quantums,
quantum=False)
self.deploy_compact(quantum_node=False)
if CREATE_SNAPSHOTS:
self.environment().snapshot('compact_wo_quantum_cinderall', force=True)
示例11: test_orchestrating_compact
# 需要导入模块: from fuel_test.manifest import Template [as 别名]
# 或者: from fuel_test.manifest.Template import compact [as 别名]
def test_orchestrating_compact(self):
Manifest().write_openstack_manifest(
remote=self.remote(),
template=Template.compact(), ci=self.ci(),
controllers=self.nodes().controllers,
quantums=self.nodes().quantums,
quantum=True)
config_text = Astute.config('compact', controllers=self.nodes().controllers,
computes=self.nodes().computes, quantums=self.nodes().quantums)
remote = self.nodes().stomps[0].remote('public', login='root',
password='r00tme')
write_config(remote, '/tmp/nodes.yaml', config_text)
remote.check_stderr('astute_run -v -f /tmp/nodes.yaml')
示例12: test_deploy_compact_wo_quantum_cinder_all_by_ipaddr
# 需要导入模块: from fuel_test.manifest import Template [as 别名]
# 或者: from fuel_test.manifest.Template import compact [as 别名]
def test_deploy_compact_wo_quantum_cinder_all_by_ipaddr(self):
Manifest().write_openstack_manifest(
remote=self.remote(),
template=Template.compact(), ci=self.ci(),
controllers=self.nodes().controllers,
cinder=True,
cinder_nodes=map(
lambda x: x.get_ip_address_by_network_name('internal'),
self.nodes().controllers
+ self.nodes().computes
+ self.nodes().storages),
quantums=self.nodes().quantums,
quantum=False)
self.deploy_compact(quantum_node=False)
if CREATE_SNAPSHOTS:
self.environment().snapshot('compact_wo_quantum_cinderip', force=True)