flags.parse_args(sys.argv)
logging.setup("cinder")
utils.monkey_patch()
+ launcher = service.ProcessLauncher()
server = service.Service.create(binary='cinder-backup')
- service.serve(server)
- service.wait()
+ launcher.launch_server(server)
+ launcher.wait()
"""
+from oslo.config import cfg
+
from cinder import context
from cinder import exception
from cinder import flags
from cinder import manager
-from cinder.openstack.common import cfg
from cinder.openstack.common import excutils
from cinder.openstack.common import importutils
from cinder.openstack.common import log as logging
RPC_API_VERSION = '1.0'
- def __init__(self, *args, **kwargs):
+ def __init__(self, service_name=None, *args, **kwargs):
self.service = importutils.import_module(FLAGS.backup_service)
self.az = FLAGS.storage_availability_zone
self.volume_manager = importutils.import_object(FLAGS.volume_manager)
setup_requires=['setuptools_git>=0.4'],
scripts=['bin/cinder-all',
'bin/cinder-api',
+ 'bin/cinder-backup',
'bin/cinder-clear-rabbit-queues',
'bin/cinder-manage',
'bin/cinder-rootwrap',