Beispiel #1
0
import argparse
import imp
import os
import re
import socket
import sys
import textwrap

from oslo.config import cfg
import six
import stevedore.named

from kite.openstack.common import gettextutils
from kite.openstack.common import importutils

gettextutils.install('kite')

STROPT = "StrOpt"
BOOLOPT = "BoolOpt"
INTOPT = "IntOpt"
FLOATOPT = "FloatOpt"
LISTOPT = "ListOpt"
DICTOPT = "DictOpt"
MULTISTROPT = "MultiStrOpt"

OPT_TYPES = {
    STROPT: 'string value',
    BOOLOPT: 'boolean value',
    INTOPT: 'integer value',
    FLOATOPT: 'floating point value',
    LISTOPT: 'list value',
Beispiel #2
0
# License for the specific language governing permissions and limitations
# under the License.

import logging
import sys
from wsgiref import simple_server

from oslo.config import cfg

from kite.api import app
from kite.common import service
from kite.openstack.common import gettextutils
from kite.openstack.common import log

PROJECT = 'kite'
gettextutils.install(PROJECT)


CONF = cfg.CONF


class Application(object):
    def __init__(self):
        self.app = app.setup_app()

    def __call__(self, environ, start_response):
        return self.app(environ, start_response)


def main():
    service.prepare_service(sys.argv)
Beispiel #3
0
# 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 kite.openstack.common import gettextutils

gettextutils.install('kite', lazy=True)
Beispiel #4
0
# License for the specific language governing permissions and limitations
# under the License.

import logging
import sys
from wsgiref import simple_server

from oslo.config import cfg

from kite.api import app
from kite.common import service
from kite.openstack.common import gettextutils
from kite.openstack.common import log

PROJECT = 'kite'
gettextutils.install(PROJECT)

CONF = cfg.CONF


class Application(object):
    def __init__(self):
        self.app = app.setup_app()

    def __call__(self, environ, start_response):
        return self.app(environ, start_response)


def main():
    service.prepare_service(sys.argv)
Beispiel #5
0
import argparse
import imp
import os
import re
import socket
import sys
import textwrap

from oslo.config import cfg
import six
import stevedore.named

from kite.openstack.common import gettextutils
from kite.openstack.common import importutils

gettextutils.install('kite')

STROPT = "StrOpt"
BOOLOPT = "BoolOpt"
INTOPT = "IntOpt"
FLOATOPT = "FloatOpt"
LISTOPT = "ListOpt"
DICTOPT = "DictOpt"
MULTISTROPT = "MultiStrOpt"

OPT_TYPES = {
    STROPT: 'string value',
    BOOLOPT: 'boolean value',
    INTOPT: 'integer value',
    FLOATOPT: 'floating point value',
    LISTOPT: 'list value',
Beispiel #6
0
# 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 sys

from kite.openstack.common import gettextutils

gettextutils.install("kite")

from oslo.config import cfg

from kite.common import service
from kite.db import migration

CONF = cfg.CONF


def do_db_version():
    """Print database's current migration level."""
    print(migration.version())


def do_db_upgrade():