Commit 35658702 by Guba Sándor

fixing RPC calls

parent e59f2b72
...@@ -519,7 +519,7 @@ class Instance(BaseResourceConfigModel, TimeStampedModel): ...@@ -519,7 +519,7 @@ class Instance(BaseResourceConfigModel, TimeStampedModel):
# Resume vm # Resume vm
act.update_state("BOOTING") act.update_state("BOOTING")
remote_tasks.resume.apply_async(args=[self.vm_name], remote_tasks.resume.apply_async(args=[self.vm_name],
queue=self.node + ".vm").get() queue=queue_name).get()
act.finish(result='SUCCESS') act.finish(result='SUCCESS')
...@@ -549,7 +549,7 @@ class Instance(BaseResourceConfigModel, TimeStampedModel): ...@@ -549,7 +549,7 @@ class Instance(BaseResourceConfigModel, TimeStampedModel):
act.task_uuid = task_uuid act.task_uuid = task_uuid
act.save() act.save()
queue_name = self.node.host.hostname + ".vm" queue_name = self.node.host.hostname + ".vm"
remote_tasks.resume.apply_async(args=[self.get_vm_desc()], remote_tasks.resume.apply_async(args=[self.vm_name],
queue=queue_name).get() queue=queue_name).get()
def poweroff_async(self, user=None): def poweroff_async(self, user=None):
...@@ -679,6 +679,10 @@ class Interface(Model): ...@@ -679,6 +679,10 @@ class Interface(Model):
'managed': self.host is not None 'managed': self.host is not None
} }
def deploy(self):
#TODO
pass
@classmethod @classmethod
def create_from_template(cls, instance, template): def create_from_template(cls, instance, template):
"""Create a new interface for an instance based on an """Create a new interface for an instance based on an
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment