本文整理汇总了Python中fuel_test.manifest.Template.full方法的典型用法代码示例。如果您正苦于以下问题:Python Template.full方法的具体用法?Python Template.full怎么用?Python Template.full使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类fuel_test.manifest.Template
的用法示例。
在下文中一共展示了Template.full方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: generate_manifests
# 需要导入模块: from fuel_test.manifest import Template [as 别名]
# 或者: from fuel_test.manifest.Template import full [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())
示例2: test_generate_full
# 需要导入模块: from fuel_test.manifest import Template [as 别名]
# 或者: from fuel_test.manifest.Template import full [as 别名]
def test_generate_full(self):
Manifest().generate_openstack_manifest(
template=Template.full(), ci=self.ci(),
controllers=self.nodes().controllers,
quantums=self.nodes().quantums,
swift=False, loopback=False, use_syslog=False,
quantum=True)
示例3: setUp
# 需要导入模块: from fuel_test.manifest import Template [as 别名]
# 或者: from fuel_test.manifest.Template import full [as 别名]
def setUp(self):
super(NovaSubClassesTestCase, self).setUp()
Manifest().write_openstack_manifest(
remote=self.remote(),
template=Template.full(), ci=self.ci(),
controllers=self.nodes().controllers,
proxies=self.nodes().proxies,
quantums=self.nodes().quantums,
quantum=True)
示例4: test_generate_full
# 需要导入模块: from fuel_test.manifest import Template [as 别名]
# 或者: from fuel_test.manifest.Template import full [as 别名]
def test_generate_full(self):
print Config().generate(
ci=self.ci(),
nodes=self.nodes().controllers,
template=Template.full(),
quantums=self.nodes().quantums,
swift=False,
loopback=False,
use_syslog=False,
quantum=True)
示例5: prepare_astute
# 需要导入模块: from fuel_test.manifest import Template [as 别名]
# 或者: from fuel_test.manifest.Template import full [as 别名]
def prepare_astute(self):
config = Config().generate(
ci=self.ci(),
nodes=self.nodes(),
template=Template.full(),
quantums=self.nodes().quantums,
swift=False,
loopback=False,
use_syslog=False,
quantum=True
)
print "Generated config.yaml:", config
config_path = "/root/config.yaml"
write_config(self.remote(), config_path, str(config))
self.remote().check_call("cobbler_system -f %s" % config_path)
self.remote().check_stderr("openstack_system -c %s -o /etc/puppet/manifests/site.pp -a /root/astute.yaml" % config_path)
示例6: test_full
# 需要导入模块: from fuel_test.manifest import Template [as 别名]
# 或者: from fuel_test.manifest.Template import full [as 别名]
def test_full(self):
Manifest().write_openstack_manifest(
remote=self.remote(),
template=Template.full(), ci=self.ci(),
controllers=self.nodes().controllers,
proxies=self.nodes().proxies,
quantums=self.nodes().quantums,
quantum=True)
self.validate(self.nodes().proxies[:1], 'puppet agent --test 2>&1')
self.validate(self.nodes().proxies[1:], 'puppet agent --test 2>&1')
self.validate(self.nodes().storages, 'puppet agent --test 2>&1')
self.validate(self.nodes().controllers[:1], 'puppet agent --test 2>&1')
self.validate(self.nodes().controllers[1:], 'puppet agent --test 2>&1')
self.validate(self.nodes().controllers[:1], 'puppet agent --test 2>&1')
self.validate(self.nodes().computes, 'puppet agent --test 2>&1')
if CREATE_SNAPSHOTS:
self.environment().snapshot('full', force=True)
示例7: test_orchestrating_full
# 需要导入模块: from fuel_test.manifest import Template [as 别名]
# 或者: from fuel_test.manifest.Template import full [as 别名]
def test_orchestrating_full(self):
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)
config_text = Astute.config('full', controllers=self.nodes().controllers,
computes=self.nodes().computes,
quantums=self.nodes().quantums,
storages=self.nodes().storages,
proxies=self.nodes().proxies)
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')
示例8: deploy_one_by_one
# 需要导入模块: from fuel_test.manifest import Template [as 别名]
# 或者: from fuel_test.manifest.Template import full [as 别名]
def deploy_one_by_one(self):
manifest = Manifest().generate_openstack_manifest(
template=Template.full(),
ci=self.ci(),
controllers=self.nodes().controllers,
proxies=self.nodes().proxies,
quantums=self.nodes().quantums,
quantum=True,
use_syslog=False
)
Manifest().write_manifest(remote=self.remote(), manifest=manifest)
self.validate(self.nodes().proxies[:1], PUPPET_AGENT_COMMAND)
self.validate(self.nodes().proxies[1:], PUPPET_AGENT_COMMAND)
self.validate(self.nodes().storages, PUPPET_AGENT_COMMAND)
self.validate(self.nodes().controllers[:1], PUPPET_AGENT_COMMAND)
self.validate(self.nodes().controllers[1:], PUPPET_AGENT_COMMAND)
self.validate(self.nodes().controllers[:1], PUPPET_AGENT_COMMAND)
self.validate(self.nodes().computes, PUPPET_AGENT_COMMAND)