diff options
| author | Russell Bryant <rbryant@redhat.com> | 2012-05-29 22:00:10 -0400 |
|---|---|---|
| committer | Russell Bryant <rbryant@redhat.com> | 2012-05-31 15:19:31 -0400 |
| commit | 5a1236e469faf0f415989249d8aaa1c510fa8b3d (patch) | |
| tree | 5033707f9c997ec1b26bff55d74f9a57727afbf0 /nova/compute | |
| parent | 60b6c5d53508d9c2b113dd78c5a0bc43a7fad9f8 (diff) | |
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
Diffstat (limited to 'nova/compute')
| -rw-r--r-- | nova/compute/rpcapi.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
