Ejemplo n.º 1
0
def serve_wsgi(cls):

    try:
        service = cls.create()
        service.start()
    except Exception:
        LOG.exception(_('In serve_wsgi()'))
        raise

    return service
Ejemplo n.º 2
0
def serve_wsgi(cls):

    try:
        service = cls.create()
        service.start()
    except Exception:
        with excutils.save_and_reraise_exception():
            LOG.exception(_("Unrecoverable error: please check log " "for details."))

    return service
Ejemplo n.º 3
0
def serve_wsgi(cls):

    try:
        service = cls.create()
        service.start()
    except Exception:
        LOG.exception(_("In serve_wsgi()"))
        raise

    return service
Ejemplo n.º 4
0
def serve_wsgi(cls):

    try:
        service = cls.create()
        service.start()
    except Exception:
        with excutils.save_and_reraise_exception():
            LOG.exception(_('Unrecoverable error: please check log '
                            'for details.'))

    return service
Ejemplo n.º 5
0
def serve_wsgi(cls):

    try:
        try:
            service = cls.create()
            service.start()
        except RuntimeError:
            LOG.warn(_('Attempting fallback to old Quantum api-paste config'))
            service = cls.create('quantum')
            service.start()
    except Exception:
        LOG.exception(_('In serve_wsgi()'))
        raise

    return service
Ejemplo n.º 6
0
def serve_wsgi(cls):

    try:
        try:
            service = cls.create()
            service.start()
        except RuntimeError:
            LOG.exception(_('Error occurred: trying old api-paste.ini.'))
            service = cls.create('quantum')
            service.start()
    except Exception:
        LOG.exception(_('Unrecoverable error: please check log for details.'))
        raise

    return service
def serve_wsgi(cls):

    try:
        try:
            service = cls.create()
            service.start()
        except RuntimeError:
            LOG.exception(_('Error occurred: trying old api-paste.ini.'))
            service = cls.create('neutron')
            service.start()
    except Exception:
        LOG.exception(_('Unrecoverable error: please check log for details.'))
        raise

    return service
Ejemplo n.º 8
0
def serve_wsgi(cls):

    try:
        try:
            service = cls.create()
            service.start()
        except RuntimeError:
            LOG.exception(_("Error occurred: trying old api-paste.ini."))
            service = cls.create("quantum")
            service.start()
    except Exception:
        with excutils.save_and_reraise_exception():
            LOG.exception(_("Unrecoverable error: please check log " "for details."))

    return service
Ejemplo n.º 9
0
def serve_wsgi(cls):

    try:
        try:
            service = cls.create()
            service.start()
        except RuntimeError:
            LOG.exception(_('Error occurred: trying old api-paste.ini.'))
            service = cls.create('quantum')
            service.start()
    except Exception:
        with excutils.save_and_reraise_exception():
            LOG.exception(_('Unrecoverable error: please check log '
                            'for details.'))

    return service