From 5a1236e469faf0f415989249d8aaa1c510fa8b3d Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 29 May 2012 22:00:10 -0400 Subject: Add compare_cpu to the compute rpcapi. Part of bug 1006467. This patch adds compare_cpu to the compute rpcapi. This is used by the scheduler. Change-Id: Ibce3ab3797c1305829c0722be1813e462193f08b --- nova/compute/rpcapi.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nova/compute') diff --git a/nova/compute/rpcapi.py b/nova/compute/rpcapi.py index 0694d6e09..7d7b57151 100644 --- a/nova/compute/rpcapi.py +++ b/nova/compute/rpcapi.py @@ -84,6 +84,10 @@ class ComputeAPI(nova.rpc.proxy.RpcProxy): mountpoint=mountpoint), topic=self._compute_topic(ctxt, None, instance)) + def compare_cpu(self, ctxt, cpu_info, host): + return self.call(ctxt, self.make_msg('compare_cpu', cpu_info=cpu_info), + topic=self._compute_topic(ctxt, host, None)) + def confirm_resize(self, ctxt, instance, migration_id, host, cast=True): rpc_method = self.cast if cast else self.call -- cgit