Beispiel #1
0
 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)
Beispiel #2
0
 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)
 def setUp(self):
     super(NovaSubClassesTestCase, self).setUp()
     Manifest.write_manifest(
         self.remote(),
         Manifest().generate_openstack_manifest(
             template=Template.full(),
             ci=self.ci(),
             controllers=self.nodes().controllers,
             proxies=self.nodes().proxies,
             quantums=self.nodes().quantums,
             quantum=True,
         ),
     )
Beispiel #4
0
 def prepare_astute(self):
     """
     Prepare astute config.
     """
     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, True)
Beispiel #5
0
    def deploy_one_by_one(self):
        """
        Deploy via puppet.
        """
        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)