コード例 #1
0
ファイル: zmq_receiver.py プロジェクト: varunarya10/ironic
def main():
    CONF(sys.argv[1:], project='oslo')
    logging.setup("oslo")

    with contextlib.closing(impl_zmq.ZmqProxy(CONF)) as reactor:
        reactor.consume_in_thread()
        reactor.wait()
コード例 #2
0
def main():
    config.parse_args(sys.argv)
    logging.setup("nova")
    global LOG
    LOG = logging.getLogger('nova.virt.baremetal.deploy_helper')
    app = BareMetalDeploy()
    srv = simple_server.make_server('', 10000, app)
    srv.serve_forever()
コード例 #3
0
def main():
    config.parse_args(sys.argv)
    logging.setup("nova")
    global LOG
    LOG = logging.getLogger('nova.virt.baremetal.deploy_helper')
    app = BareMetalDeploy()
    srv = simple_server.make_server('', 10000, app)
    srv.serve_forever()
コード例 #4
0
def prepare_service(argv=[]):
    rpc.set_defaults(control_exchange='ironic')
    cfg.set_defaults(log.log_opts,
                     default_log_levels=[
                         'amqplib=WARN', 'qpid.messaging=INFO',
                         'sqlalchemy=WARN', 'keystoneclient=INFO',
                         'stevedore=INFO', 'eventlet.wsgi.server=WARN'
                     ])
    cfg.CONF(argv[1:], project='ironic')
    log.setup('ironic')
コード例 #5
0
ファイル: service.py プロジェクト: Haomeng/ironic
def prepare_service(argv=[]):
    rpc.set_defaults(control_exchange='ironic')
    cfg.set_defaults(log.log_opts,
                     default_log_levels=['amqplib=WARN',
                                         'qpid.messaging=INFO',
                                         'sqlalchemy=WARN',
                                         'keystoneclient=INFO',
                                         'stevedore=INFO',
                                         'eventlet.wsgi.server=WARN'
                                         ])
    cfg.CONF(argv[1:], project='ironic')
    log.setup('ironic')
コード例 #6
0
ファイル: service.py プロジェクト: rahulgopan/ironic
def prepare_service(argv=[]):
    config.parse_args(argv)
    cfg.set_defaults(log.log_opts,
                     default_log_levels=['amqplib=WARN',
                                         'qpid.messaging=INFO',
                                         'sqlalchemy=WARN',
                                         'keystoneclient=INFO',
                                         'stevedore=INFO',
                                         'eventlet.wsgi.server=WARN',
                                         'iso8601=WARN',
                                         'paramiko=WARN',
                                         ])
    log.setup('ironic')
コード例 #7
0
def prepare_service(argv=[]):
    config.parse_args(argv)
    cfg.set_defaults(log.log_opts,
                     default_log_levels=[
                         'amqplib=WARN',
                         'qpid.messaging=INFO',
                         'sqlalchemy=WARN',
                         'keystoneclient=INFO',
                         'stevedore=INFO',
                         'eventlet.wsgi.server=WARN',
                         'iso8601=WARN',
                         'paramiko=WARN',
                     ])
    log.setup('ironic')
コード例 #8
0
ファイル: service.py プロジェクト: ramineni/myironic
def prepare_service(argv=[]):
    config.parse_args(argv)
    cfg.set_defaults(log.log_opts,
                     default_log_levels=['amqp=WARN',
                                         'amqplib=WARN',
                                         'qpid.messaging=INFO',
                                         'oslo.messaging=INFO',
                                         'sqlalchemy=WARN',
                                         'keystoneclient=INFO',
                                         'stevedore=INFO',
                                         'eventlet.wsgi.server=WARN',
                                         'iso8601=WARN',
                                         'paramiko=WARN',
                                         'requests=WARN',
                                         'neutronclient=WARN',
                                         'glanceclient=WARN',
                                         'ironic.openstack.common=WARN',
                                         ])
    log.setup('ironic')
コード例 #9
0
def prepare_service(argv=[]):
    config.parse_args(argv)
    cfg.set_defaults(log.log_opts,
                     default_log_levels=['amqp=WARN',
                                         'amqplib=WARN',
                                         'qpid.messaging=INFO',
                                         'oslo.messaging=INFO',
                                         'sqlalchemy=WARN',
                                         'keystoneclient=INFO',
                                         'stevedore=INFO',
                                         'eventlet.wsgi.server=WARN',
                                         'iso8601=WARN',
                                         'paramiko=WARN',
                                         'requests=WARN',
                                         'neutronclient=WARN',
                                         'glanceclient=WARN',
                                         'ironic.openstack.common=WARN',
                                         ])
    log.setup('ironic')
コード例 #10
0
ファイル: service.py プロジェクト: JoProvost/ironic
def prepare_service(argv=[]):
    config.parse_args(argv)
    cfg.set_defaults(
        log.log_opts,
        default_log_levels=[
            "amqp=WARN",
            "amqplib=WARN",
            "qpid.messaging=INFO",
            "sqlalchemy=WARN",
            "keystoneclient=INFO",
            "stevedore=INFO",
            "eventlet.wsgi.server=WARN",
            "iso8601=WARN",
            "paramiko=WARN",
            "requests=WARN",
            "neutronclient=WARN",
            "glanceclient=WARN",
            "ironic.openstack.common=WARN",
        ],
    )
    log.setup("ironic")
コード例 #11
0
ファイル: base.py プロジェクト: AsylumCorp/ironic
test_opts = [
    cfg.StrOpt('sqlite_clean_db',
               default='clean.sqlite',
               help='File name of clean sqlite db'),
    ]

CONF = cfg.CONF
CONF.register_opts(test_opts)
CONF.import_opt('connection',
                'ironic.openstack.common.db.sqlalchemy.session',
                group='database')
CONF.import_opt('sqlite_db', 'ironic.openstack.common.db.sqlalchemy.session')
CONF.set_override('use_stderr', False)

logging.setup('ironic')

_DB_CACHE = None


class Database(fixtures.Fixture):

    def __init__(self, db_session, db_migrate, sql_connection,
                    sqlite_db, sqlite_clean_db):
        self.sql_connection = sql_connection
        self.sqlite_db = sqlite_db
        self.sqlite_clean_db = sqlite_clean_db

        self.engine = db_session.get_engine()
        self.engine.dispose()
        conn = self.engine.connect()
コード例 #12
0
ファイル: base.py プロジェクト: zaletniy/ironic
test_opts = [
    cfg.StrOpt('sqlite_clean_db',
               default='clean.sqlite',
               help='File name of clean sqlite db.'),
    ]

CONF = cfg.CONF
CONF.register_opts(test_opts)
CONF.import_opt('connection',
                'ironic.openstack.common.db.options',
                group='database')
CONF.import_opt('sqlite_db', 'ironic.openstack.common.db.options',
                group='database')
CONF.set_override('use_stderr', False)

logging.setup('ironic')

_DB_CACHE = None


class Database(fixtures.Fixture):

    def __init__(self, db_api, db_migrate, sql_connection,
                    sqlite_db, sqlite_clean_db):
        self.sql_connection = sql_connection
        self.sqlite_db = sqlite_db
        self.sqlite_clean_db = sqlite_clean_db

        self.engine = db_api.get_engine()
        self.engine.dispose()
        conn = self.engine.connect()
コード例 #13
0
ファイル: base.py プロジェクト: rahulgopan/ironic
from ironic.db.sqlalchemy import api as sqla_api
from ironic.objects import base as objects_base
from ironic.openstack.common import log as logging
from ironic.tests import conf_fixture
from ironic.tests import policy_fixture


test_opts = [cfg.StrOpt("sqlite_clean_db", default="clean.sqlite", help="File name of clean sqlite db.")]

CONF = cfg.CONF
CONF.register_opts(test_opts)
CONF.import_opt("connection", "ironic.openstack.common.db.options", group="database")
CONF.import_opt("sqlite_db", "ironic.openstack.common.db.options", group="database")
CONF.set_override("use_stderr", False)

logging.setup("ironic")

_DB_CACHE = None


class Database(fixtures.Fixture):
    def __init__(self, db_api, db_migrate, sql_connection, sqlite_db, sqlite_clean_db):
        self.sql_connection = sql_connection
        self.sqlite_db = sqlite_db
        self.sqlite_clean_db = sqlite_clean_db

        self.engine = db_api.get_engine()
        self.engine.dispose()
        conn = self.engine.connect()
        if sql_connection == "sqlite://":
            self.setup_sqlite(db_migrate)