Remove update_service_capabilities from scheduler rpc api

This method was already unused in the code base, so it can be
immediately removed from the client rpc api.  It must remain on the
server side (scheduler manager) until the api receives a major version
bump.

Related to blueprint rpc-major-version-updates-icehouse

Change-Id: I689bef71cc3db887bc571b9c364ee906a5a927f4
This commit is contained in:
Russell Bryant 2013-11-01 16:46:33 -04:00
parent 27ce07f840
commit c86a97c15a
2 changed files with 0 additions and 16 deletions

View File

@ -135,16 +135,6 @@ class SchedulerAPI(rpcclient.RpcProxy):
filter_properties=filter_properties,
reservations=reservations_p)
def update_service_capabilities(self, ctxt, service_name, host,
capabilities):
#NOTE(jogo) This is deprecated, but is used by the deprecated
# publish_service_capabilities call. So this can begin its removal
# process once publish_service_capabilities is removed.
cctxt = self.client.prepare(fanout=True, version='2.4')
cctxt.cast(ctxt, 'update_service_capabilities',
service_name=service_name, host=host,
capabilities=capabilities)
def select_hosts(self, ctxt, request_spec, filter_properties):
cctxt = self.client.prepare(version='2.6')
return cctxt.call(ctxt, 'select_hosts',

View File

@ -70,12 +70,6 @@ class SchedulerRpcAPITestCase(test.NoDBTestCase):
request_spec='fake_request_spec',
filter_properties='fake_props', reservations=list('fake_res'))
def test_update_service_capabilities(self):
self._test_scheduler_api('update_service_capabilities',
rpc_method='fanout_cast', service_name='fake_name',
host='fake_host', capabilities='fake_capabilities',
version='2.4')
def test_select_hosts(self):
self._test_scheduler_api('select_hosts', rpc_method='call',
request_spec='fake_request_spec',