# under the License.
-from oslo.config import cfg
+from oslo_config import cfg
import paste.urlmap
from cinder.i18n import _LW
import re
import urllib
-from oslo.config import cfg
+from oslo_config import cfg
import six.moves.urllib.parse as urlparse
import webob
"""
-from oslo.config import cfg
+from oslo_config import cfg
from cinder.api import extensions
from cinder.openstack.common import log as logging
from xml.parsers import expat
-from oslo.config import cfg
from oslo.utils import timeutils
+from oslo_config import cfg
import webob.exc
from cinder.api import extensions
# under the License.
-from oslo.config import cfg
from oslo.utils import timeutils
+from oslo_config import cfg
import webob.exc
from cinder.api import extensions
# License for the specific language governing permissions and limitations
# under the License.
-from oslo.config import cfg
+from oslo_config import cfg
from webob import exc
from cinder.api import extensions
import os
-from oslo.config import cfg
from oslo.utils import importutils
+from oslo_config import cfg
import webob.dec
import webob.exc
import os
-from oslo.config import cfg
from oslo.serialization import jsonutils
+from oslo_config import cfg
import webob.dec
import webob.exc
"""
-from oslo.config import cfg
+from oslo_config import cfg
import webob.dec
import webob.exc
import datetime
from lxml import etree
-from oslo.config import cfg
+from oslo_config import cfg
from cinder.api.openstack import wsgi
from cinder.api.views import versions as views_versions
from eventlet import greenthread
-from oslo.config import cfg
from oslo.utils import excutils
+from oslo_config import cfg
from cinder.backup import rpcapi as backup_rpcapi
from cinder import context
import abc
-from oslo.config import cfg
from oslo.serialization import jsonutils
+from oslo_config import cfg
import six
from cinder.db import base
import time
import eventlet
-from oslo.config import cfg
from oslo.utils import encodeutils
from oslo.utils import excutils
from oslo.utils import units
+from oslo_config import cfg
from cinder.backup.driver import BackupDriver
from cinder import exception
import socket
import eventlet
-from oslo.config import cfg
from oslo.utils import excutils
from oslo.utils import timeutils
from oslo.utils import units
+from oslo_config import cfg
import six
from swiftclient import client as swift
import os
import stat
-from oslo.config import cfg
from oslo_concurrency import processutils
+from oslo_config import cfg
from cinder.backup.driver import BackupDriver
from cinder import exception
"""
-from oslo.config import cfg
from oslo import messaging
from oslo.utils import excutils
from oslo.utils import importutils
+from oslo_config import cfg
from cinder.backup import driver
from cinder.backup import rpcapi as backup_rpcapi
"""
-from oslo.config import cfg
from oslo import messaging
+from oslo_config import cfg
from cinder.openstack.common import log as logging
from cinder import rpc
'host': host})
cctxt = self.client.prepare(server=host)
return cctxt.cast(ctxt, 'reset_status', backup_id=backup_id,
- status=status)
\ No newline at end of file
+ status=status)
warnings.simplefilter('once', DeprecationWarning)
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import i18n
i18n.enable_lazy()
warnings.simplefilter('once', DeprecationWarning)
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import i18n
i18n.enable_lazy()
warnings.simplefilter('once', DeprecationWarning)
import eventlet
-from oslo.config import cfg
+from oslo_config import cfg
eventlet.monkey_patch()
warnings.simplefilter('once', DeprecationWarning)
-from oslo.config import cfg
from oslo import messaging
+from oslo_config import cfg
from oslo_db.sqlalchemy import migration
from cinder import i18n
warnings.simplefilter('once', DeprecationWarning)
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import i18n
i18n.enable_lazy()
warnings.simplefilter('once', DeprecationWarning)
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import i18n
i18n.enable_lazy()
warnings.simplefilter('once', DeprecationWarning)
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import i18n
i18n.enable_lazy()
import socket
-from oslo.config import cfg
+from oslo_config import cfg
from cinder.i18n import _
from novaclient.v1_1 import client as nova_client
from novaclient.v1_1.contrib import assisted_volume_snapshots
from novaclient.v1_1.contrib import list_extensions
-from oslo.config import cfg
+from oslo_config import cfg
from requests import exceptions as request_exceptions
from cinder import context as ctx
import functools
-from oslo.config import cfg
from oslo.utils import excutils
from oslo.utils import timeutils
+from oslo_config import cfg
from cinder.db import base
from cinder import exception
"""
-from oslo.config import cfg
+from oslo_config import cfg
from oslo_db import concurrency as db_concurrency
from oslo_db import options as db_options
"""Base class for classes that need modular database access."""
-from oslo.config import cfg
from oslo.utils import importutils
+from oslo_config import cfg
db_driver_opt = cfg.StrOpt('db_driver',
import os
import threading
-from oslo.config import cfg
+from oslo_config import cfg
from oslo_db import options
from stevedore import driver
import uuid
import warnings
-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 import options
from oslo_db.sqlalchemy import session as db_session
import datetime
-from oslo.config import cfg
+from oslo_config import cfg
from sqlalchemy import MetaData, Table
from cinder.i18n import _LE, _LI
import datetime
-from oslo.config import cfg
+from oslo_config import cfg
from sqlalchemy import MetaData, Table
from cinder.i18n import _
SQLAlchemy models for cinder data.
"""
-from oslo.config import cfg
from oslo.utils import timeutils
+from oslo_config import cfg
from oslo_db.sqlalchemy import models
from sqlalchemy import Column, Integer, String, Text, schema
from sqlalchemy.ext.declarative import declarative_base
import sys
-from oslo.config import cfg
+from oslo_config import cfg
import six
import webob.exc
# NOTE(jsbryant): When other oslo libraries switch over non-namespaced
# imports, we will need to add them to the regex below.
-oslo_namespace_imports = re.compile(r"from[\s]*oslo[.](concurrency|db)")
+oslo_namespace_imports = re.compile(r"from[\s]*oslo[.](concurrency|db"
+ "|config)")
def no_vi_headers(physical_line, line_number, lines):
import time
import glanceclient.exc
-from oslo.config import cfg
from oslo.serialization import jsonutils
from oslo.utils import timeutils
+from oslo_config import cfg
import six.moves.urllib.parse as urlparse
from cinder import exception
import os
import tempfile
-from oslo.config import cfg
from oslo.utils import timeutils
from oslo.utils import units
from oslo_concurrency import processutils
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _
# License for the specific language governing permissions and limitations
# under the License.
-from oslo.config import cfg
from oslo.utils import importutils
+from oslo_config import cfg
keymgr_opts = [
cfg.StrOpt('api_class',
from barbicanclient import client as barbican_client
from keystoneclient.auth import identity
from keystoneclient import session
-from oslo.config import cfg
from oslo.utils import excutils
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _, _LE
import array
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _, _LW
import abc
-from oslo.config import cfg
+from oslo_config import cfg
import six
encryption_opts = [
"""
-from oslo.config import cfg
from oslo import messaging
+from oslo_config import cfg
from cinder.db import base
from cinder.openstack.common import log as logging
"""Policy Engine For Cinder"""
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import exception
from cinder.openstack.common import policy
import datetime
-from oslo.config import cfg
from oslo.utils import importutils
from oslo.utils import timeutils
+from oslo_config import cfg
from cinder import context
from cinder import db
# under the License.
-from oslo.config import cfg
from oslo.utils import importutils
+from oslo_config import cfg
CONF = cfg.CONF
"""
import functools
-from oslo.config import cfg
+from oslo_config import cfg
from cinder.db import base
from cinder import exception
'TRANSPORT_ALIASES',
]
-from oslo.config import cfg
from oslo import messaging
from oslo.serialization import jsonutils
+from oslo_config import cfg
from osprofiler import profiler
import cinder.context
Scheduler base class that all Schedulers should inherit from
"""
-from oslo.config import cfg
from oslo.utils import importutils
from oslo.utils import timeutils
+from oslo_config import cfg
from cinder import db
from cinder.i18n import _
Weighing Functions.
"""
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _, _LW
import UserDict
-from oslo.config import cfg
from oslo.utils import timeutils
+from oslo_config import cfg
from cinder import db
from cinder import exception
Scheduler Service
"""
-from oslo.config import cfg
from oslo import messaging
from oslo.utils import excutils
from oslo.utils import importutils
+from oslo_config import cfg
from cinder import context
from cinder import db
Client side of the scheduler manager RPC API.
"""
-from oslo.config import cfg
from oslo import messaging
from oslo.serialization import jsonutils
+from oslo_config import cfg
from cinder import rpc
import json
import os
-from oslo.config import cfg
from oslo.utils import timeutils
+from oslo_config import cfg
from cinder.i18n import _LE
from cinder.openstack.common import log as logging
with additional benefits of supporting volume types, volume encryption, QoS.
"""
-from oslo.config import cfg
+from oslo_config import cfg
simple_scheduler_opts = [
cfg.IntOpt("max_gigabytes",
import math
-from oslo.config import cfg
+from oslo_config import cfg
from cinder.openstack.common.scheduler import weights
"""
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import db
from cinder.openstack.common import log as logging
import os
import random
-from oslo.config import cfg
from oslo import messaging
from oslo.utils import importutils
from oslo_concurrency import processutils
+from oslo_config import cfg
from oslo_db import exception as db_exc
import osprofiler.notifier
from osprofiler import profiler
import string
from eventlet import pools
-from oslo.config import cfg
+from oslo_config import cfg
import paramiko
from cinder import exception
import fixtures
import mock
import mox
-from oslo.config import cfg
-from oslo.config import fixture as config_fixture
from oslo.messaging import conffixture as messaging_conffixture
from oslo.utils import strutils
from oslo.utils import timeutils
from oslo_concurrency import lockutils
+from oslo_config import cfg
+from oslo_config import fixture as config_fixture
import stubout
import testtools
import ast
import fixtures
-from oslo.config import cfg
-from oslo.config import fixture as config_fixture
from oslo.serialization import jsonutils
from oslo.utils import timeutils
from oslo_concurrency import lockutils
+from oslo_config import cfg
+from oslo_config import fixture as config_fixture
import webob
from webob import exc
import uuid
import mock
-from oslo.config import cfg
from oslo import messaging
from oslo.serialization import jsonutils
+from oslo_config import cfg
import webob
from cinder.api.contrib import volume_actions
import json
import mock
-from oslo.config import cfg
+from oslo_config import cfg
import webob
from cinder import context
# License for the specific language governing permissions and limitations
# under the License.
-from oslo.config import cfg
+from oslo_config import cfg
import six
import webob
import iso8601
from lxml import etree
-from oslo.config import cfg
from oslo.serialization import jsonutils
+from oslo_config import cfg
import webob
from cinder.api import extensions
import uuid
-from oslo.config import cfg
from oslo.serialization import jsonutils
+from oslo_config import cfg
import webob
from cinder.api import extensions
import uuid
-from oslo.config import cfg
from oslo.serialization import jsonutils
+from oslo_config import cfg
import webob
from cinder.api import extensions
from lxml import etree
import mock
-from oslo.config import cfg
+from oslo_config import cfg
import webob
from cinder.api import extensions
import uuid
-from oslo.config import cfg
from oslo.serialization import jsonutils
+from oslo_config import cfg
import webob
from cinder.api import extensions
import uuid
-from oslo.config import cfg
from oslo.serialization import jsonutils
+from oslo_config import cfg
import webob
from cinder.api import extensions
from lxml import etree
import mock
-from oslo.config import cfg
+from oslo_config import cfg
import six
import six.moves.urllib.parse as urlparse
import webob
import os
-from oslo.config import cfg
+from oslo_config import cfg
CONF = cfg.CONF
"""Tests for volume name_id."""
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import context
from cinder import db
# under the License.
-from oslo.config import cfg
+from oslo_config import cfg
CONF = cfg.CONF
import glanceclient.exc
import mock
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import context
from cinder import exception
# under the License.
-from oslo.config import cfg
+from oslo_config import cfg
from cinder.openstack.common import log as logging
from cinder.tests.integrated import integrated_helpers
import binascii
import mock
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import exception
from cinder.keymgr import barbican
import array
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import context
from cinder import exception
# under the License.
-from oslo.config import cfg
+from oslo_config import cfg
CONF = cfg.CONF
"""
import mock
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import context
from cinder.openstack.common.scheduler.weights import HostWeightHandler
"""
import mock
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import context
from cinder.openstack.common.scheduler.weights import HostWeightHandler
"""
import mock
-from oslo.config import cfg
from oslo.utils import timeutils
+from oslo_config import cfg
from cinder import exception
from cinder.openstack.common.scheduler import filters
import copy
import mock
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import context
from cinder.scheduler import rpcapi as scheduler_rpcapi
"""
import mock
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import context
from cinder import db
"""
import mock
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import context
from cinder.db.sqlalchemy import api
# License for the specific language governing permissions and limitations
# under the License.
-from oslo.config import cfg
from oslo.utils import timeutils
+from oslo_config import cfg
from cinder import exception
from cinder import test
import tempfile
import mock
-from oslo.config import cfg
from oslo.utils import importutils
from oslo.utils import timeutils
+from oslo_config import cfg
from cinder.backup import manager
from cinder import context
import zlib
import mock
-from oslo.config import cfg
+from oslo_config import cfg
from swiftclient import client as swift
from cinder.backup.drivers.swift import SwiftBackupDriver
# under the License.
import mock
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import context
from cinder.db.sqlalchemy import api
import sys
import mock
-from oslo.config import cfg
+from oslo_config import cfg
import rtslib
from cinder.cmd import all as cinder_all
service_get_all.assert_called_with(ctxt)
service_is_up.assert_called_with(service)
- @mock.patch('oslo.config.cfg.ConfigOpts.register_cli_opt')
+ @mock.patch('oslo_config.cfg.ConfigOpts.register_cli_opt')
def test_main_argv_lt_2(self, register_cli_opt):
script_name = 'cinder-manage'
sys.argv = [script_name]
self.assertTrue(register_cli_opt.called)
self.assertEqual(exit.code, 2)
- @mock.patch('oslo.config.cfg.ConfigOpts.__call__')
+ @mock.patch('oslo_config.cfg.ConfigOpts.__call__')
@mock.patch('cinder.openstack.common.log.setup')
- @mock.patch('oslo.config.cfg.ConfigOpts.register_cli_opt')
+ @mock.patch('oslo_config.cfg.ConfigOpts.register_cli_opt')
def test_main_sudo_failed(self, register_cli_opt, log_setup,
config_opts_call):
script_name = 'cinder-manage'
self.assertFalse(log_setup.called)
self.assertEqual(exit.code, 2)
- @mock.patch('oslo.config.cfg.ConfigOpts.__call__')
- @mock.patch('oslo.config.cfg.ConfigOpts.register_cli_opt')
+ @mock.patch('oslo_config.cfg.ConfigOpts.__call__')
+ @mock.patch('oslo_config.cfg.ConfigOpts.register_cli_opt')
def test_main(self, register_cli_opt, config_opts_call):
script_name = 'cinder-manage'
sys.argv = [script_name, 'config', 'list']
# under the License.
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import test
import mock
import mox
-from oslo.config import cfg
from oslo.serialization import jsonutils
from oslo.utils import units
+from oslo_config import cfg
from cinder.brick.initiator import connector
from cinder import exception
import datetime
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import context
from cinder import db
import traceback
import mock
-from oslo.config import cfg
from oslo.utils import units
from oslo_concurrency import processutils as putils
+from oslo_config import cfg
from cinder import brick
from cinder import compute
import tempfile
import mock
-from oslo.config import cfg
from oslo.utils import units
from oslo_concurrency import processutils
+from oslo_config import cfg
from cinder import context
from cinder import exception
"from oslo.db import foo"))))
self.assertEqual(0, len(list(checks.check_oslo_namespace_imports(
"from oslo_db import bar"))))
+ self.assertEqual(1, len(list(checks.check_oslo_namespace_imports(
+ "from oslo.config import foo"))))
+ self.assertEqual(0, len(list(checks.check_oslo_namespace_imports(
+ "from oslo_config import bar"))))
import ast
-from oslo.config import cfg
from oslo.utils import units
+from oslo_config import cfg
from cinder import context
from cinder import exception
# under the License.
-from oslo.config import cfg
from oslo.utils import importutils
+from oslo_config import cfg
from cinder import context
from cinder import test
import copy
import mox
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import context
from cinder import exception
"""
import mock
-from oslo.config import cfg
from oslo.utils import units
+from oslo_config import cfg
from cinder import context
from cinder import exception
from cinder.volume.drivers.netapp import utils
-from oslo.config import cfg
+from oslo_config import cfg
CONF = cfg.CONF
LOG = logging.getLogger(__name__)
# under the License.
import mock
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import exception
from cinder.openstack.common import log as logging
from mox import IgnoreArg
from mox import IsA
from mox import stubout
-from oslo.config import cfg
from oslo.utils import units
from oslo_concurrency import processutils as putils
+from oslo_config import cfg
from cinder import context
from cinder import exception
import datetime
import mock
-from oslo.config import cfg
from oslo.utils import timeutils
+from oslo_config import cfg
from cinder import backup
from cinder import context
"""
import mock
-from oslo.config import cfg
from oslo.utils import importutils
+from oslo_config import cfg
from cinder import context
from cinder import db
import mock
import mox
-from oslo.config import cfg
from oslo_concurrency import processutils
+from oslo_config import cfg
from oslo_db import exception as db_exc
from cinder import context
import os
import mock
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import context
from cinder import exception
"""Tests for the testing base code."""
-from oslo.config import cfg
from oslo import messaging
+from oslo_config import cfg
from cinder import rpc
from cinder import test
import uuid
import mock
-from oslo.config import cfg
from oslo.utils import timeutils
from oslo_concurrency import processutils as putils
+from oslo_config import cfg
import paramiko
import six
import eventlet
import mock
import mox
-from oslo.config import cfg
from oslo.serialization import jsonutils
from oslo.utils import importutils
from oslo.utils import timeutils
from oslo.utils import units
+from oslo_config import cfg
from stevedore import extension
from taskflow.engines.action_engine import engine
"""Tests for the configuration wrapper in volume drivers."""
-from oslo.config import cfg
+from oslo_config import cfg
from cinder.openstack.common import log as logging
from cinder import test
"""
import copy
-from oslo.config import cfg
from oslo.serialization import jsonutils
+from oslo_config import cfg
from cinder import context
from cinder import db
import datetime
import time
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import context
from cinder import db
"""Tests For miscellaneous util methods used with volume."""
import mock
-from oslo.config import cfg
from oslo_concurrency import processutils
+from oslo_config import cfg
from cinder import exception
from cinder.openstack.common import log as logging
import urllib2
import mock
-from oslo.config import cfg
+from oslo_config import cfg
import testtools
import webob
import webob.dec
import tempfile
import mox
-from oslo.config import cfg
+from oslo_config import cfg
from cinder.image import image_utils
from cinder.openstack.common import fileutils
"""Unit tests for brcd fc san lookup service."""
import mock
-from oslo.config import cfg
+from oslo_config import cfg
import paramiko
from cinder import exception
"""Unit tests for Brocade fc zone driver."""
import mock
-from oslo.config import cfg
from oslo.utils import importutils
+from oslo_config import cfg
import paramiko
from cinder import exception
"""Unit tests for Cisco fc san lookup service."""
import mock
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import exception
from cinder import test
"""Unit tests for Cisco FC zone driver."""
-from oslo.config import cfg
from oslo.utils import importutils
from oslo_concurrency import processutils
+from oslo_config import cfg
from cinder import exception
from cinder import test
# collisions with use of 'from cinder.transfer import <foo>' elsewhere.
-from oslo.config import cfg
from oslo.utils import importutils
+from oslo_config import cfg
CONF = cfg.CONF
import hmac
import os
-from oslo.config import cfg
from oslo.utils import excutils
+from oslo_config import cfg
from cinder.db import base
from cinder import exception
from xml.sax import expatreader
from xml.sax import saxutils
-from oslo.config import cfg
from oslo.utils import importutils
from oslo.utils import timeutils
from oslo_concurrency import lockutils
from oslo_concurrency import processutils
+from oslo_config import cfg
import six
from cinder.brick.initiator import connector
import datetime
import functools
-from oslo.config import cfg
from oslo.utils import excutils
from oslo.utils import timeutils
+from oslo_config import cfg
import six
from cinder import context
"""
-from oslo.config import cfg
+from oslo_config import cfg
from cinder.openstack.common import log as logging
import time
-from oslo.config import cfg
from oslo.utils import excutils
from oslo_concurrency import processutils
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _, _LE, _LW
import os
-from oslo.config import cfg
from oslo.utils import importutils
+from oslo_config import cfg
from cinder import context
from cinder.db.sqlalchemy import api
# License for the specific language governing permissions and limitations
# under the License.
-from oslo.config import cfg
+from oslo_config import cfg
cloudbyte_connection_opts = [
cfg.StrOpt("cb_apikey",
import urllib
import urllib2
-from oslo.config import cfg
from oslo.serialization import jsonutils
from oslo.utils import units
from oslo_concurrency import lockutils
+from oslo_config import cfg
import six.moves.urllib.parse as urlparse
from cinder import exception
import json
-from oslo.config import cfg
from oslo.utils import units
+from oslo_config import cfg
import requests
from cinder import exception
# License for the specific language governing permissions and limitations
# under the License.
-from oslo.config import cfg
from oslo.utils import excutils
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _, _LE, _LW
import uuid
-from oslo.config import cfg
from oslo.utils import importutils
from oslo.utils import units
+from oslo_config import cfg
import six
import os.path
-from oslo.config import cfg
+from oslo_config import cfg
import six
from cinder import exception
import re
import time
-from oslo.config import cfg
from oslo.serialization import jsonutils as json
from oslo.utils import excutils
from oslo.utils import timeutils
from oslo_concurrency import lockutils
from oslo_concurrency import processutils
+from oslo_config import cfg
import six
from cinder import exception
import eventlet
from eventlet import greenthread
import greenlet
-from oslo.config import cfg
from oslo.utils import excutils
from oslo_concurrency import processutils
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _, _LE, _LW, _LI
import time
from xml.dom.minidom import parseString
-from oslo.config import cfg
from oslo.utils import units
+from oslo_config import cfg
import six
from cinder import exception
import random
import uuid
-from oslo.config import cfg
from oslo.utils import units
+from oslo_config import cfg
import requests
from cinder import exception
import os
import stat
-from oslo.config import cfg
from oslo.utils import units
from oslo_concurrency import processutils
+from oslo_config import cfg
from cinder.brick.remotefs import remotefs as remotefs_brick
from cinder import exception
from xml.etree import ElementTree as ETree
-from oslo.config import cfg
from oslo.utils import excutils
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _, _LE, _LI
from xml.etree import ElementTree as ETree
-from oslo.config import cfg
from oslo.utils import excutils
from oslo.utils import units
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _LE, _LI
import time
from xml.etree import ElementTree as ETree
-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
from cinder import exception
from cinder.i18n import _, _LE, _LI
import re
import threading
-from oslo.config import cfg
from oslo.utils import excutils
+from oslo_config import cfg
import six
from cinder.db.sqlalchemy import api
import os
import threading
-from oslo.config import cfg
from oslo.utils import excutils
+from oslo_config import cfg
import six
from cinder import exception
import threading
import time
-from oslo.config import cfg
from oslo.utils import excutils
from oslo_concurrency import processutils as putils
+from oslo_config import cfg
import six
from cinder import exception
import os
import threading
-from oslo.config import cfg
+from oslo_config import cfg
import six
from cinder import exception
The product type and the protocol should be specified in config file before.
"""
-from oslo.config import cfg
+from oslo_config import cfg
import six
from cinder import exception
import uuid
-from oslo.config import cfg
from oslo.utils import units
+from oslo_config import cfg
import six
from cinder import context
import string
import threading
-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 six
from cinder import context
import re
import shutil
-from oslo.config import cfg
from oslo.utils import units
from oslo_concurrency import processutils
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _, _LE, _LI
import os
import re
-from oslo.config import cfg
from oslo.utils import units
from oslo_concurrency import processutils
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _, _LI, _LW
import math
import time
-from oslo.config import cfg
from oslo.utils import excutils
from oslo.utils import units
+from oslo_config import cfg
from cinder import context
from cinder import exception
Unified Volume driver for IBM XIV and DS8K Storage Systems.
"""
-from oslo.config import cfg
from oslo.utils import importutils
+from oslo_config import cfg
from cinder import exception
from cinder.openstack.common import log as logging
import os
import socket
-from oslo.config import cfg
from oslo.utils import importutils
from oslo.utils import units
from oslo_concurrency import processutils
+from oslo_config import cfg
from cinder.brick import exception as brick_exception
from cinder.brick.local_dev import lvm as lvm
import time
import uuid
-from oslo.config import cfg
from oslo.utils import excutils
from oslo.utils import units
+from oslo_config import cfg
import six
from cinder import exception
place to ensure re usability and better management of configuration options.
"""
-from oslo.config import cfg
+from oslo_config import cfg
netapp_proxy_opts = [
cfg.StrOpt('netapp_storage_family',
.. moduleauthor:: Yuriy Taraday <yorik.sar@gmail.com>
"""
-from oslo.config import cfg
+from oslo_config import cfg
NEXENTA_CONNECTION_OPTIONS = [
import os
import time
-from oslo.config import cfg
from oslo.utils import units
from oslo_concurrency import processutils as putils
+from oslo_config import cfg
import six
from cinder.brick.remotefs import remotefs as remotefs_brick
import string
import urllib2
-from oslo.config import cfg
from oslo.utils import units
+from oslo_config import cfg
from suds import client
from cinder import exception
# under the License.
-from oslo.config import cfg
+from oslo_config import cfg
DPL_OPTS = [
import re
import uuid
-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
from cinder import exception
from cinder.i18n import _, _LE, _LI, _LW
import errno
import os
-from oslo.config import cfg
from oslo_concurrency import processutils
+from oslo_config import cfg
import xattr
from cinder import compute
import tempfile
import urllib
-from oslo.config import cfg
from oslo.utils import encodeutils
from oslo.utils import units
+from oslo_config import cfg
import six
from cinder import exception
import tempfile
import time
-from oslo.config import cfg
from oslo.utils import units
from oslo_concurrency import processutils as putils
+from oslo_config import cfg
from cinder import compute
from cinder import db
from hp3parclient import client
from hp3parclient import exceptions as hpexceptions
-from oslo.config import cfg
from oslo.utils import excutils
from oslo.utils import units
+from oslo_config import cfg
from cinder import context
from cinder import exception
#
"""HP LeftHand SAN ISCSI REST Proxy."""
-from oslo.config import cfg
from oslo.utils import units
+from oslo_config import cfg
from cinder import context
from cinder import exception
import base64
import uuid
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _LE
import random
from eventlet import greenthread
-from oslo.config import cfg
from oslo.utils import excutils
from oslo_concurrency import processutils
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _, _LE
# License for the specific language governing permissions and limitations
# under the License.
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _
import os
import urllib2
-from oslo.config import cfg
from oslo.utils import units
from oslo_concurrency import lockutils
+from oslo_config import cfg
import six.moves.urllib.parse as urlparse
from cinder import exception
"""
import re
-from oslo.config import cfg
from oslo.utils import units
from oslo_concurrency import processutils
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _, _LE
import os
import re
-from oslo.config import cfg
from oslo.utils import units
from oslo_concurrency import processutils as putils
+from oslo_config import cfg
from cinder.brick.remotefs import remotefs
from cinder import exception
import string
import time
-from oslo.config import cfg
from oslo.utils import timeutils
from oslo.utils import units
+from oslo_config import cfg
import requests
from six import wraps
import sys
import time
-from oslo.config import cfg
from oslo.utils import excutils
from oslo.utils import units
from oslo_concurrency import lockutils
from oslo_concurrency import processutils as putils
+from oslo_config import cfg
import six
from cinder.brick.local_dev import lvm
from __future__ import absolute_import
-from oslo.config import cfg
from oslo.utils import importutils
from oslo.utils import units
+from oslo_config import cfg
import six
from cinder import exception
import re
import time
-from oslo.config import cfg
from oslo.utils import importutils
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _, _LE, _LW, _LI
import os
import tempfile
-from oslo.config import cfg
from oslo.utils import excutils
from oslo.utils import units
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _, _LE, _LI, _LW
import re
import sys
-from oslo.config import cfg
from oslo.utils import units
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _
import os
-from oslo.config import cfg
+from oslo_config import cfg
from cinder.image import image_utils
from cinder.openstack.common import fileutils
import ctypes
import os
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _, _LI
import urllib2
from lxml import etree
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import context
from cinder import exception
import httplib
from lxml import etree
-from oslo.config import cfg
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _, _LW
import ast
import base64
-from oslo.config import cfg
from oslo.utils import units
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _, _LE, _LW
from datetime import datetime
import errno
-from oslo.config import cfg
from oslo.utils import excutils
from oslo.utils import units
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _, _LE, _LI
# under the License.
-from oslo.config import cfg
from oslo.utils import timeutils
from oslo.utils import units
+from oslo_config import cfg
import taskflow.engines
from taskflow.patterns import linear_flow
from taskflow.utils import misc
import traceback
-from oslo.config import cfg
from oslo.utils import timeutils
from oslo_concurrency import processutils
+from oslo_config import cfg
import taskflow.engines
from taskflow.patterns import linear_flow
from taskflow.utils import misc
import time
-from oslo.config import cfg
from oslo import messaging
from oslo.serialization import jsonutils
from oslo.utils import excutils
from oslo.utils import importutils
from oslo.utils import timeutils
+from oslo_config import cfg
from osprofiler import profiler
from cinder import compute
"""The QoS Specs Implementation"""
-from oslo.config import cfg
+from oslo_config import cfg
from oslo_db import exception as db_exc
from cinder import context
Client side of the volume RPC API.
"""
-from oslo.config import cfg
from oslo import messaging
from oslo.serialization import jsonutils
+from oslo_config import cfg
from cinder import rpc
from cinder.volume import utils
import abc
-from oslo.config import cfg
+from oslo_config import cfg
import six
CONF = cfg.CONF
import math
from Crypto.Random import random
-from oslo.config import cfg
from oslo.utils import strutils
from oslo.utils import timeutils
from oslo.utils import units
from oslo_concurrency import processutils
+from oslo_config import cfg
from cinder.brick.local_dev import lvm as brick_lvm
from cinder import exception
"""Built-in volume type properties."""
-from oslo.config import cfg
+from oslo_config import cfg
from oslo_db import exception as db_exc
import six
import eventlet
import eventlet.wsgi
import greenlet
-from oslo.config import cfg
from oslo.utils import excutils
from oslo.utils import netutils
+from oslo_config import cfg
from paste import deploy
import routes.middleware
import webob.dec
# License for the specific language governing permissions and limitations
# under the License.
#
-from oslo.config import cfg
+from oslo_config import cfg
from cinder.openstack.common import log as logging
from cinder.volume.configuration import Configuration
"""
-from oslo.config import cfg
from oslo.utils import excutils
from oslo.utils import importutils
from oslo_concurrency import lockutils
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _, _LE, _LI
# License for the specific language governing permissions and limitations
# under the License.
#
-from oslo.config import cfg
+from oslo_config import cfg
from cinder.volume.configuration import Configuration
:zone_name_prefix: Used by: class: 'FCZoneDriver'. Defaults to 'openstack'
"""
-from oslo.config import cfg
from oslo.utils import excutils
from oslo.utils import importutils
from oslo_concurrency import lockutils
+from oslo_config import cfg
import six
from cinder import exception
"""
-from oslo.config import cfg
from oslo.utils import importutils
+from oslo_config import cfg
from cinder import exception
from cinder.i18n import _, _LI