def launch_stack(self):
    net = self._get_default_network()
    self.parameters = {'key_name': self.keypair_name, 'flavor': CONF.orchestration.instance_type, 'image': CONF.orchestration.image_ref, 'timeout': CONF.orchestration.build_timeout, 'network': net['id']}
    self.template = self._load_template(__file__, self.template_name)
    (_, stack) = self.client.create_stack(name=self.stack_name, template=self.template, parameters=self.parameters)
    stack = stack['stack']
    (_, self.stack) = self.client.get_stack(stack['id'])
    self.stack_identifier = ('%s/%s' % (self.stack_name, self.stack['id']))
    self.addCleanup(self.delete_wrapper, self.orchestration_client.delete_stack, self.stack_identifier)
def launch_stack(self):
    net = self._get_default_network()
    self.parameters = {'key_name': self.keypair_name, 'flavor': CONF.orchestration.instance_type, 'image': CONF.orchestration.image_ref, 'timeout': CONF.orchestration.build_timeout, 'network': net['id']}
    self.template = self._load_template(__file__, self.template_name)
    (_, stack) = self.client.create_stack(name=self.stack_name, template=self.template, parameters=self.parameters)
    stack = stack['stack']
    (_, self.stack) = self.client.get_stack(stack['id'])
    self.stack_identifier = ('%s/%s' % (self.stack_name, self.stack['id']))
    self.addCleanup(self.delete_wrapper, self.orchestration_client.delete_stack, self.stack_identifier)