From fee60f1898fb435c215cbe07d805eef7e18264ea Mon Sep 17 00:00:00 2001 From: Sylvain Bauza Date: Tue, 11 Feb 2014 10:55:12 +0100 Subject: [PATCH] Remove old Scheduler RPC Service Historically, there was a RPC service for scheduling. The code is currently dead, so I'm removing it until we create a fresh new Scheduler service with necessary code. Change-Id: If0d5a0dfc0c2fcb475d8d89d66ed247d2dba253e --- climate/cmd/scheduler.py | 37 ----------------------------------- climate/scheduler/__init__.py | 0 climate/scheduler/service.py | 21 -------------------- setup.cfg | 1 - 4 files changed, 59 deletions(-) delete mode 100755 climate/cmd/scheduler.py delete mode 100644 climate/scheduler/__init__.py delete mode 100644 climate/scheduler/service.py diff --git a/climate/cmd/scheduler.py b/climate/cmd/scheduler.py deleted file mode 100755 index 761951b9..00000000 --- a/climate/cmd/scheduler.py +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env python -# -*- encoding: utf-8 -*- -# -# Copyright © 2013 Julien Danjou -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -import eventlet -eventlet.monkey_patch() -import sys - -from oslo.config import cfg - -from climate.openstack.common import service -from climate.scheduler import service as scheduler_service -from climate.utils import service as service_utils - - -def main(): - service_utils.prepare_service(sys.argv) - service.launch( - scheduler_service.SchedulerService(cfg.CONF.host, - 'climate.scheduler') - ).wait() - -if __name__ == '__main__': - main() diff --git a/climate/scheduler/__init__.py b/climate/scheduler/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/climate/scheduler/service.py b/climate/scheduler/service.py deleted file mode 100644 index 8c5016fd..00000000 --- a/climate/scheduler/service.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- encoding: utf-8 -*- -# -# Copyright © 2013 Julien Danjou -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -from climate.openstack.common.rpc import service as rpc_service - - -class SchedulerService(rpc_service.Service): - pass diff --git a/setup.cfg b/setup.cfg index 3f937433..5f1edd49 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,7 +28,6 @@ packages = [entry_points] console_scripts = climate-api=climate.cmd.api:main - climate-scheduler=climate.cmd.scheduler:main climate-rpc-zmq-receiver=climate.cmd.rpc_zmq_receiver:main climate-manager=climate.cmd.manager:main