Merge "Move oslo.config references to oslo_config"

This commit is contained in:
Jenkins 2015-02-05 04:00:29 +00:00 committed by Gerrit Code Review
commit b4f1db8868
88 changed files with 89 additions and 89 deletions

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.config import cfg
from oslo_config import cfg
API_SERVICE_OPTS = [

View File

@ -15,7 +15,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.config import cfg
from oslo_config import cfg
import pecan
from ironic.api import acl

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.config import cfg
from oslo_config import cfg
# Server Specific Configurations
# See https://pecan.readthedocs.org/en/latest/configuration.html#server-configuration # noqa

View File

@ -15,7 +15,7 @@
import datetime
from oslo.config import cfg
from oslo_config import cfg
import pecan
from pecan import rest
import wsme

View File

@ -14,7 +14,7 @@
# under the License.
import jsonpatch
from oslo.config import cfg
from oslo_config import cfg
import wsme
from ironic.common.i18n import _

View File

@ -16,7 +16,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.config import cfg
from oslo_config import cfg
from pecan import hooks
from webob import exc

View File

@ -21,7 +21,7 @@ import logging
import sys
from wsgiref import simple_server
from oslo.config import cfg
from oslo_config import cfg
from six.moves import socketserver
from ironic.api import app

View File

@ -21,7 +21,7 @@ The Ironic Management Service
import sys
from oslo.config import cfg
from oslo_config import cfg
from ironic.common import service as ironic_service
from ironic.openstack.common import service

View File

@ -21,7 +21,7 @@ Run storage database migration.
import sys
from oslo.config import cfg
from oslo_config import cfg
from ironic.common import service
from ironic.db import migration

View File

@ -15,7 +15,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.config import cfg
from oslo_config import cfg
from ironic.common import rpc
from ironic import version

View File

@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.config import cfg
from oslo_concurrency import lockutils
from oslo_config import cfg
import stevedore
from ironic.common import exception

View File

@ -15,8 +15,8 @@
import re
from oslo.config import cfg
from oslo_concurrency import processutils
from oslo_config import cfg
from ironic.common import exception
from ironic.common.i18n import _

View File

@ -13,8 +13,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.config import cfg
from oslo_concurrency import lockutils
from oslo_config import cfg
from stevedore import dispatch
from ironic.common import exception

View File

@ -22,7 +22,7 @@ SHOULD include dedicated exception logging.
"""
from oslo.config import cfg
from oslo_config import cfg
import six
from ironic.common.i18n import _

View File

@ -22,7 +22,7 @@ import sys
import time
from glanceclient import client
from oslo.config import cfg
from oslo_config import cfg
import sendfile
import six.moves.urllib.parse as urlparse

View File

@ -19,8 +19,8 @@ import itertools
import logging
import random
from oslo.config import cfg
from oslo.utils import timeutils
from oslo_config import cfg
from oslo_serialization import jsonutils
import six
import six.moves.urllib.parse as urlparse

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.config import cfg
from oslo_config import cfg
from swiftclient import utils as swift_utils
from ironic.common import exception as exc

View File

@ -17,7 +17,7 @@ import bisect
import hashlib
import threading
from oslo.config import cfg
from oslo_config import cfg
from ironic.common import exception
from ironic.common.i18n import _

View File

@ -15,8 +15,8 @@
# under the License.
from oslo.config import cfg
from oslo.utils import importutils
from oslo_config import cfg
glance_opts = [

View File

@ -23,8 +23,8 @@ import os
import shutil
import jinja2
from oslo.config import cfg
from oslo_concurrency import processutils
from oslo_config import cfg
from ironic.common import exception
from ironic.common.i18n import _

View File

@ -13,9 +13,9 @@
# under the License.
from keystoneclient import exceptions as ksexception
# NOTE(deva): import auth_token so oslo.config pulls in keystone_authtoken
# NOTE(deva): import auth_token so oslo_config pulls in keystone_authtoken
from keystonemiddleware import auth_token # noqa
from oslo.config import cfg
from oslo_config import cfg
from six.moves.urllib import parse
from ironic.common import exception

View File

@ -17,7 +17,7 @@
import os
from oslo.config import cfg
from oslo_config import cfg
path_opts = [
cfg.StrOpt('pybasedir',

View File

@ -15,8 +15,8 @@
"""Policy Engine For Ironic."""
from oslo.config import cfg
from oslo_concurrency import lockutils
from oslo_config import cfg
from ironic.openstack.common import policy

View File

@ -17,7 +17,7 @@
import os
import jinja2
from oslo.config import cfg
from oslo_config import cfg
from ironic.common import dhcp_factory
from ironic.common import exception

View File

@ -27,8 +27,8 @@ __all__ = [
'TRANSPORT_ALIASES',
]
from oslo.config import cfg
from oslo import messaging
from oslo_config import cfg
from oslo_serialization import jsonutils
from ironic.common import context as ironic_context

View File

@ -18,9 +18,9 @@
import socket
from oslo.config import cfg
from oslo import messaging
from oslo.utils import importutils
from oslo_config import cfg
from ironic.common import config
from ironic.common.i18n import _LE

View File

@ -14,7 +14,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.config import cfg
from oslo_config import cfg
from six.moves.urllib import parse
from swiftclient import client as swift_client
from swiftclient import exceptions as swift_exceptions

View File

@ -29,9 +29,9 @@ import tempfile
import uuid
import netaddr
from oslo.config import cfg
from oslo.utils import excutils
from oslo_concurrency import processutils
from oslo_config import cfg
import paramiko
import six

View File

@ -49,10 +49,10 @@ import threading
import eventlet
from eventlet import greenpool
from oslo.config import cfg
from oslo import messaging
from oslo.utils import excutils
from oslo_concurrency import lockutils
from oslo_config import cfg
from oslo_db import exception as db_exception
from ironic.common import dhcp_factory

View File

@ -96,8 +96,8 @@ raised in the background thread.):
import functools
from oslo.config import cfg
from oslo.utils import excutils
from oslo_config import cfg
import retrying
from ironic.common import driver_factory

View File

@ -19,7 +19,7 @@ Base classes for storage engines
import abc
from oslo.config import cfg
from oslo_config import cfg
from oslo_db import api as db_api
import six

View File

@ -16,7 +16,7 @@
"""Database setup and migration commands."""
from oslo.config import cfg
from oslo_config import cfg
from stevedore import driver
_IMPL = None

View File

@ -19,8 +19,8 @@
import collections
import datetime
from oslo.config import cfg
from oslo.utils import timeutils
from oslo_config import cfg
from oslo_db import exception as db_exc
from oslo_db.sqlalchemy import session as db_session
from oslo_db.sqlalchemy import utils as db_utils

View File

@ -20,7 +20,7 @@ SQLAlchemy models for baremetal data.
import json
from oslo.config import cfg
from oslo_config import cfg
from oslo_db import options as db_options
from oslo_db.sqlalchemy import models
import six.moves.urllib.parse as urlparse

View File

@ -18,8 +18,8 @@ import time
from neutronclient.common import exceptions as neutron_client_exc
from neutronclient.v2_0 import client as clientv20
from oslo.config import cfg
from oslo.utils import netutils
from oslo_config import cfg
from ironic.common import exception
from ironic.common.i18n import _

View File

@ -15,8 +15,8 @@
import os
import time
from oslo.config import cfg
from oslo.utils import excutils
from oslo_config import cfg
from ironic.common import dhcp_factory
from ironic.common import exception

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from oslo.config import cfg
from oslo_config import cfg
from oslo_serialization import jsonutils
import requests

View File

@ -24,9 +24,9 @@ import subprocess
import tempfile
import time
from oslo.config import cfg
from oslo.utils import netutils
from oslo_concurrency import processutils
from oslo_config import cfg
from ironic.common import exception
from ironic.common.i18n import _

View File

@ -25,10 +25,10 @@ import stat
import tempfile
import time
from oslo.config import cfg
from oslo.utils import excutils
from oslo.utils import units
from oslo_concurrency import processutils
from oslo_config import cfg
import requests
import six

View File

@ -18,8 +18,8 @@ Common functionalities shared between different iLO modules.
import tempfile
from oslo.config import cfg
from oslo.utils import importutils
from oslo_config import cfg
from ironic.common import exception
from ironic.common.i18n import _

View File

@ -17,7 +17,7 @@ iLO Deploy Driver(s) and supporting methods.
import tempfile
from oslo.config import cfg
from oslo_config import cfg
from ironic.common import boot_devices
from ironic.common import exception

View File

@ -16,8 +16,8 @@
iLO Power Driver
"""
from oslo.config import cfg
from oslo.utils import importutils
from oslo_config import cfg
from ironic.common import boot_devices
from ironic.common import exception

View File

@ -22,8 +22,8 @@ import os
import tempfile
import time
from oslo.config import cfg
from oslo_concurrency import lockutils
from oslo_config import cfg
from ironic.common import exception
from ironic.common.glance_service import service_utils

View File

@ -22,9 +22,9 @@ Ironic Native IPMI power manager.
import os
import tempfile
from oslo.config import cfg
from oslo.utils import excutils
from oslo.utils import importutils
from oslo_config import cfg
from ironic.common import boot_devices
from ironic.common import exception

View File

@ -36,9 +36,9 @@ import stat
import tempfile
import time
from oslo.config import cfg
from oslo.utils import excutils
from oslo_concurrency import processutils
from oslo_config import cfg
from ironic.common import boot_devices
from ironic.common import exception

View File

@ -15,8 +15,8 @@
Common functionalities shared between different iRMC modules.
"""
from oslo.config import cfg
from oslo.utils import importutils
from oslo_config import cfg
from ironic.common import exception
from ironic.common.i18n import _

View File

@ -14,8 +14,8 @@
"""
iRMC Power Driver using the Base Server Profile
"""
from oslo.config import cfg
from oslo.utils import importutils
from oslo_config import cfg
from ironic.common import exception
from ironic.common.i18n import _

View File

@ -15,8 +15,8 @@
import os
from oslo.config import cfg
from oslo.utils import strutils
from oslo_config import cfg
import six
from six.moves.urllib import parse

View File

@ -20,7 +20,7 @@ PXE Driver and supporting meta-classes.
import os
import shutil
from oslo.config import cfg
from oslo_config import cfg
from ironic.common import dhcp_factory
from ironic.common import exception

View File

@ -21,8 +21,8 @@ Provides vendor passthru methods for SeaMicro specific functionality.
import os
import re
from oslo.config import cfg
from oslo.utils import importutils
from oslo_config import cfg
from six.moves.urllib import parse as urlparse
from ironic.common import boot_devices

View File

@ -29,8 +29,8 @@ models.
import abc
from oslo.config import cfg
from oslo.utils import importutils
from oslo_config import cfg
import six
from ironic.common import exception

View File

@ -28,8 +28,8 @@ Currently supported environments are:
import os
from oslo.config import cfg
from oslo_concurrency import processutils
from oslo_config import cfg
from ironic.common import boot_devices
from ironic.common import exception

View File

@ -218,7 +218,7 @@ def parse_nova_config(config_file):
"""Parse nova.conf and return known defaults if setting is not present.
This avoids having to import nova code from this script and risk conflicts
with Ironic's tree around oslo.config resources.
with Ironic's tree around oslo_config resources.
"""
if not os.path.isfile(config_file):
print("nova.conf not found at %s. Please specify the location via "

View File

@ -15,8 +15,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.config import cfg
from oslo.utils import netutils
from oslo_config import cfg
CONF = cfg.CONF

View File

@ -23,7 +23,7 @@
# NOTE(deva): import auth_token so we can override a config option
from keystonemiddleware import auth_token # noqa
import mock
from oslo.config import cfg
from oslo_config import cfg
import pecan
import pecan.testing
from six.moves.urllib import parse as urlparse

View File

@ -19,7 +19,7 @@ are blocked or allowed to be processed.
# NOTE(deva): import auth_token so we can override a config option
from keystonemiddleware import auth_token # noqa
import mock
from oslo.config import cfg
from oslo_config import cfg
from ironic.tests.api import base
from ironic.tests.api import utils

View File

@ -17,8 +17,8 @@
import json
import mock
from oslo.config import cfg
from oslo import messaging
from oslo_config import cfg
from webob import exc as webob_exc
from ironic.api.controllers import root

View File

@ -18,8 +18,8 @@ Tests for the API /chassis/ methods.
import datetime
import mock
from oslo.config import cfg
from oslo.utils import timeutils
from oslo_config import cfg
from six.moves.urllib import parse as urlparse
from wsme import types as wtypes

View File

@ -19,8 +19,8 @@ import datetime
import json
import mock
from oslo.config import cfg
from oslo.utils import timeutils
from oslo_config import cfg
from six.moves.urllib import parse as urlparse
from testtools.matchers import HasLength
from wsme import types as wtypes

View File

@ -18,8 +18,8 @@ Tests for the API /ports/ methods.
import datetime
import mock
from oslo.config import cfg
from oslo.utils import timeutils
from oslo_config import cfg
from six.moves.urllib import parse as urlparse
from testtools.matchers import HasLength
from wsme import types as wtypes

View File

@ -18,7 +18,7 @@ import wsme
from ironic.api.controllers.v1 import utils
from ironic.tests import base
from oslo.config import cfg
from oslo_config import cfg
CONF = cfg.CONF

View File

@ -28,7 +28,7 @@ import sys
import eventlet
eventlet.monkey_patch(os=False)
import fixtures
from oslo.config import cfg
from oslo_config import cfg
import testtools
from ironic.common import hash_ring

View File

@ -22,8 +22,8 @@ import datetime
import eventlet
import mock
from oslo.config import cfg
from oslo import messaging
from oslo_config import cfg
from oslo_db import exception as db_exception
from ironic.common import boot_devices

View File

@ -21,7 +21,7 @@ Unit Tests for :py:class:`ironic.conductor.rpcapi.ConductorAPI`.
import copy
import mock
from oslo.config import cfg
from oslo_config import cfg
from ironic.common import boot_devices
from ironic.common import exception

View File

@ -15,7 +15,7 @@
# under the License.
import fixtures
from oslo.config import cfg
from oslo_config import cfg
from ironic.common import config

View File

@ -19,7 +19,7 @@ import os
import shutil
import fixtures
from oslo.config import cfg
from oslo_config import cfg
from ironic.common import paths
from ironic.db import api as dbapi

View File

@ -18,8 +18,8 @@
import tempfile
import mock
from oslo.config import cfg
from oslo.utils import importutils
from oslo_config import cfg
from ironic.common import exception
from ironic.common import images

View File

@ -18,7 +18,7 @@
import tempfile
import mock
from oslo.config import cfg
from oslo_config import cfg
from ironic.common import boot_devices
from ironic.common import exception

View File

@ -16,8 +16,8 @@
"""Test class for Management Interface used by iLO modules."""
import mock
from oslo.config import cfg
from oslo.utils import importutils
from oslo_config import cfg
from ironic.common import boot_devices
from ironic.common import exception

View File

@ -16,8 +16,8 @@
"""Test class for IloPower module."""
import mock
from oslo.config import cfg
from oslo.utils import importutils
from oslo_config import cfg
from ironic.common import boot_devices
from ironic.common import exception

View File

@ -16,7 +16,7 @@ Test class for common methods used by iRMC modules.
"""
import mock
from oslo.config import cfg
from oslo_config import cfg
from ironic.common import exception
from ironic.conductor import task_manager

View File

@ -16,7 +16,7 @@ Test class for iRMC Power Driver
"""
import mock
from oslo.config import cfg
from oslo_config import cfg
from ironic.common import exception
from ironic.common import states

View File

@ -13,7 +13,7 @@
# limitations under the License.
import mock
from oslo.config import cfg
from oslo_config import cfg
from ironic.common import dhcp_factory
from ironic.common import exception

View File

@ -24,9 +24,9 @@ import subprocess
import tempfile
import mock
from oslo.config import cfg
from oslo.utils import netutils
from oslo_concurrency import processutils
from oslo_config import cfg
from ironic.common import exception
from ironic.common import utils

View File

@ -22,8 +22,8 @@ import tempfile
import fixtures
import mock
from oslo.config import cfg
from oslo_concurrency import processutils
from oslo_config import cfg
import requests
from ironic.common import disk_partitioner

View File

@ -20,7 +20,7 @@ Test class for Native IPMI power driver module.
"""
import mock
from oslo.config import cfg
from oslo_config import cfg
from pyghmi import exceptions as pyghmi_exception
from ironic.common import boot_devices

View File

@ -25,8 +25,8 @@ import tempfile
import time
import mock
from oslo.config import cfg
from oslo_concurrency import processutils
from oslo_config import cfg
from ironic.common import boot_devices
from ironic.common import driver_factory

View File

@ -19,7 +19,7 @@ import os
import tempfile
import mock
from oslo.config import cfg
from oslo_config import cfg
from ironic.common import exception
from ironic.common import keystone

View File

@ -22,7 +22,7 @@ import tempfile
import fixtures
import mock
from oslo.config import cfg
from oslo_config import cfg
from oslo_serialization import jsonutils as json
from ironic.common import dhcp_factory

View File

@ -21,7 +21,7 @@
"""Test class for SNMP power driver module."""
import mock
from oslo.config import cfg
from oslo_config import cfg
from pysnmp.entity.rfc3413.oneliner import cmdgen
from pysnmp import error as snmp_error

View File

@ -17,8 +17,8 @@
import fixtures
import mock
from oslo.config import cfg
from oslo_concurrency import processutils
from oslo_config import cfg
import paramiko
from ironic.common import boot_devices

View File

@ -15,7 +15,7 @@
import os
import fixtures
from oslo.config import cfg
from oslo_config import cfg
from ironic.common import policy as ironic_policy
from ironic.tests import fake_policy

View File

@ -32,7 +32,7 @@ from ironic.tests import base
from ironic.tests import matchers
from ironic.tests import stubs
from oslo.config import cfg
from oslo_config import cfg
from oslo_serialization import jsonutils
CONF = cfg.CONF

View File

@ -16,7 +16,7 @@
import hashlib
import mock
from oslo.config import cfg
from oslo_config import cfg
from testtools import matchers
from ironic.common import exception

View File

@ -20,8 +20,8 @@ import os
import shutil
import mock
from oslo.config import cfg
from oslo_concurrency import processutils
from oslo_config import cfg
import six.moves.builtins as __builtin__
from ironic.common import exception

View File

@ -17,7 +17,7 @@
import os
import mock
from oslo.config import cfg
from oslo_config import cfg
from ironic.common import pxe_utils
from ironic.conductor import task_manager

View File

@ -16,7 +16,7 @@ import __builtin__
import sys
import mock
from oslo.config import cfg
from oslo_config import cfg
from swiftclient import client as swift_client
from swiftclient import exceptions as swift_exception
from swiftclient import utils as swift_utils

View File

@ -23,8 +23,8 @@ import uuid
import mock
import netaddr
from oslo.config import cfg
from oslo_concurrency import processutils
from oslo_config import cfg
import six
import six.moves.builtins as __builtin__