Example #1
0
#    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.
"""Starter script for Guts Migration service."""

import eventlet
eventlet.monkey_patch()

import sys

from oslo_config import cfg
from oslo_log import log as logging

from guts import i18n
i18n.enable_lazy()

# Need to register global_opts
from guts.common import config  # noqa
from guts.i18n import _
from guts import objects
from guts import service
from guts import utils
from guts import version

CONF = cfg.CONF


def main():
    objects.register_all()
    CONF(sys.argv[1:], project='guts', version=version.version_string())
Example #2
0
sys.exit() on the starting of a service are logged and the script will
continue attempting to launch the rest of the services.

"""

import eventlet
eventlet.monkey_patch()

import sys

from oslo_config import cfg
from oslo_log import log as logging
from oslo_reports import guru_meditation_report as gmr

from guts import i18n
i18n.enable_lazy()

# Need to register global_opts
from guts.common import config   # noqa
from guts.i18n import _LE
from guts import objects
from guts import rpc
from guts import service
from guts import utils
from guts import version


CONF = cfg.CONF


def main():