~ddellav/ubuntu/xenial/manila/manila-share

« back to all changes in this revision

Viewing changes to manila/cmd/share.py

  • Committer: David Della Vecchia
  • Date: 2016-03-08 17:56:43 UTC
  • Revision ID: ddv@canonical.com-20160308175643-jctkndscyn472ck0
* d/control: Include manila-share binary package from debian.
* d/manila-share.init.in: Add manila upstart script. 
* New upstream milestone for OpenStack Mitaka.
* d/control: Align (build-)depends with upstream.
* d/p/doc-conf-git.patch: Drop git commands that fail sphinx-build.
* New upstream milestone for OpenStack Mitaka.
* d/control: Align (build-)depends with upstream.
* New upstream release for OpenStack Liberty.
* New upstream release candidate for OpenStack Liberty.
* d/control: Align dependencies with upstream.
* New upstream release candidate for OpenStack Liberty.
* d/control: Set minimum pbr version at 1.8.
* New upstream release candidate for OpenStack Liberty.
* d/control: Align (build-)depends with upstream.
* d/watch: Update to cope with upstream rc naming.
* New upstream milestone for OpenStack Liberty.
* d/control: Align (build-)depends with upstream.
* New upstream milestone for OpenStack Liberty.
* d/control: Align (build-)depends with upstream.
* d/rules: Remove .eggs directory in override_dh_auto_clean.
* No change rebuild with SQLAlchemy 1.0.6.
* New upstream milestone for OpenStack Liberty.
* Align (build-)depends with upstream.
* Drop all patches, no longer required.
* New upstream release for OpenStack kilo. (LP: #1449744) 
* New upstream milestone release for OpenStack Kilo:
  - d/control: Align dependencies and versions with upstream.
  - debian/patches/pep-0476.patch: Dropped no longer needed.
  - debian/patches/skipped-tests.patch: Skipped failing test.
* New upstream milestone release for OpenStack Kilo:
  - d/control: Align dependencies and versions with upstream.
* New upstream milestone release for OpenStack Kilo:
  - d/control: Align dependencies and versions with upstream.
  - d/p/fixup-test-failure.patch: Align expected string with unicode
    encoded result.
* New upstream milestone release:
  - d/control: Resync dependency versions with upstream.
  - d/control: Version BD on ddt to >= 1.0.0, resolving test failures.
* d/control: Add missing BD on python-testresources.
* d/*: wrap-and-sort.
* New upstream release:
  - d/control: Add new dependencies.
  - Install any new binaries and configuration to common package.
* d/watch: Update to use tarballs.openstack.org.
* d/control,compat: Bump debhelper compat level to 9.
* d/control: Bumped Standards-Version to 3.9.6, no changes.
* Systemd enablement:
  - d/rules,control: Enable use of dh-systemd and openstack-pkg-tools.
  - d/*.init.in: Write templates for generation of init, service and
    upstart configurations.
  - d/*.upstart: Drop in preference to above.
* d/*.logrotate: Move to single logrotate configuration in common package.
* d/rules: Ensure unit test suite failure fails package build.
* d/p/pep-0476.patch: Deal with SSL certification chain verification unit
  test failures.
* Rebuild for sqlalchemy 0.9. 
* Fix dependency typo (pyhon-oslo.config -> python-oslo.config).
* Initial release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
 
 
3
# Copyright 2013 NetApp
 
4
# All Rights Reserved.
 
5
#
 
6
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
 
7
#    not use this file except in compliance with the License. You may obtain
 
8
#    a copy of the License at
 
9
#
 
10
#         http://www.apache.org/licenses/LICENSE-2.0
 
11
#
 
12
#    Unless required by applicable law or agreed to in writing, software
 
13
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 
14
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 
15
#    License for the specific language governing permissions and limitations
 
16
#    under the License.
 
17
 
 
18
"""Starter script for manila Share."""
 
19
 
 
20
import eventlet
 
21
eventlet.monkey_patch()
 
22
 
 
23
import sys
 
24
 
 
25
from oslo_config import cfg
 
26
from oslo_log import log
 
27
 
 
28
from manila import i18n
 
29
i18n.enable_lazy()
 
30
 
 
31
from manila.common import config  # Need to register global_opts  # noqa
 
32
from manila import service
 
33
from manila import utils
 
34
from manila import version
 
35
 
 
36
CONF = cfg.CONF
 
37
 
 
38
 
 
39
def main():
 
40
    log.register_options(CONF)
 
41
    CONF(sys.argv[1:], project='manila',
 
42
         version=version.version_string())
 
43
    log.setup(CONF, "manila")
 
44
    utils.monkey_patch()
 
45
    launcher = service.process_launcher()
 
46
    if CONF.enabled_share_backends:
 
47
        for backend in CONF.enabled_share_backends:
 
48
            host = "%s@%s" % (CONF.host, backend)
 
49
            server = service.Service.create(host=host,
 
50
                                            service_name=backend,
 
51
                                            binary='manila-share')
 
52
            launcher.launch_service(server)
 
53
    else:
 
54
        server = service.Service.create(binary='manila-share')
 
55
        launcher.launch_service(server)
 
56
    launcher.wait()
 
57
 
 
58
 
 
59
if __name__ == '__main__':
 
60
    main()