예제 #1
0
파일: api.py 프로젝트: kaurikim/octavia
def main():
    octavia_service.prepare_service(sys.argv)
    app = api_app.setup_app()

    host, port = cfg.CONF.bind_host, cfg.CONF.bind_port
    LOG.info(_LI("Starting API server on %(host)s:%(port)s"),
             {"host": host, "port": port})
    srv = simple_server.make_server(host, port, app)

    srv.serve_forever()
예제 #2
0
파일: api.py 프로젝트: KevoTran/octavia
def main():
    gmr.TextGuruMeditation.setup_autorun(version)

    app = api_app.setup_app(argv=sys.argv)

    host, port = cfg.CONF.bind_host, cfg.CONF.bind_port
    LOG.info(_LI("Starting API server on %(host)s:%(port)s"),
             {"host": host, "port": port})
    srv = simple_server.make_server(host, port, app)

    srv.serve_forever()
예제 #3
0
파일: api.py 프로젝트: kaurikim/octavia
def main():
    octavia_service.prepare_service(sys.argv)
    app = api_app.setup_app()

    host, port = cfg.CONF.bind_host, cfg.CONF.bind_port
    LOG.info(_LI("Starting API server on %(host)s:%(port)s"), {
        "host": host,
        "port": port
    })
    srv = simple_server.make_server(host, port, app)

    srv.serve_forever()
예제 #4
0
def main():
    gmr.TextGuruMeditation.setup_autorun(version)

    app = api_app.setup_app(argv=sys.argv)

    host, port = cfg.CONF.bind_host, cfg.CONF.bind_port
    LOG.info(_LI("Starting API server on %(host)s:%(port)s"), {
        "host": host,
        "port": port
    })
    srv = simple_server.make_server(host, port, app)

    srv.serve_forever()
예제 #5
0
파일: api.py 프로젝트: zwyw610/octavia
def main():
    gmr.TextGuruMeditation.setup_autorun(version)

    app = api_app.setup_app(argv=sys.argv)

    host = cfg.CONF.api_settings.bind_host
    port = cfg.CONF.api_settings.bind_port
    LOG.info("Starting API server on %(host)s:%(port)s",
             {"host": host, "port": port})
    if cfg.CONF.api_settings.auth_strategy != constants.KEYSTONE:
        LOG.warning('Octavia configuration [api_settings] auth_strategy is '
                    'not set to "keystone". This is not a normal '
                    'configuration and you may get "Missing project ID" '
                    'errors from API calls."')
    srv = simple_server.make_server(host, port, app)

    srv.serve_forever()
예제 #6
0
파일: api.py 프로젝트: zongzw/octavia
def main():
    gmr.TextGuruMeditation.setup_autorun(version)

    app = api_app.setup_app(argv=sys.argv)

    host = cfg.CONF.api_settings.bind_host
    port = cfg.CONF.api_settings.bind_port
    LOG.info("Starting API server on %(host)s:%(port)s", {
        "host": host,
        "port": port
    })
    if cfg.CONF.api_settings.auth_strategy != constants.KEYSTONE:
        LOG.warning('Octavia configuration [api_settings] auth_strategy is '
                    'not set to "keystone". This is not a normal '
                    'configuration and you may get "Missing project ID" '
                    'errors from API calls."')
    LOG.warning('You are running the Octavia API wsgi application using '
                'simple_server. We do not recommend this outside of simple '
                'testing. We recommend you run the Octavia API wsgi with '
                'a more full function server such as gunicorn or uWSGI.')
    srv = simple_server.make_server(host, port, app)

    srv.serve_forever()
예제 #7
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 wsgiref import simple_server

from oslo.config import cfg

from octavia.api import app as api_app
from octavia.common import service as octavia_service
from octavia.i18n import _LI
from octavia.openstack.common import log as logging


LOG = logging.getLogger(__name__)

if __name__ == '__main__':
    octavia_service.prepare_service(sys.argv)
    app = api_app.setup_app()

    host, port = cfg.CONF.bind_host, cfg.CONF.bind_port
    LOG.info(_LI("Starting API server on %(host)s:%(port)s") %
             {"host": host, "port": port})
    srv = simple_server.make_server(host, port, app)

    srv.serve_forever()