+ def compute_list(self, dc_name):
+ logging.info("RPC CALL: compute list")
+ try:
+ return [(c.name, c.IP())
+ for c in self.dcs.get(dc_name).listCompute()]
+ except Exception as ex:
+ logging.exception("RPC error.")
+ return ex.message
+
+ def compute_status(self, dc_name, compute_name):
+ logging.info("RPC CALL: compute status")
+ try:
+ return self.dcs.get(
+ dc_name).containers.get(compute_name).getStatus()
+ except Exception as ex:
+ logging.exception("RPC error.")
+ return ex.message