Remove a whole bunch of unused imports
Change-Id: I6759e5b6250c48cc0deb4b198b44c948c64c47d1
This commit is contained in:
@@ -20,8 +20,6 @@
|
||||
Auth driver using the DB as its backend.
|
||||
"""
|
||||
|
||||
import sys
|
||||
|
||||
from nova import context
|
||||
from nova import exception
|
||||
from nova import db
|
||||
|
@@ -13,10 +13,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import json
|
||||
|
||||
from nova import flags
|
||||
from nova import log as logging
|
||||
|
||||
FLAGS = flags.FLAGS
|
||||
|
||||
|
@@ -24,7 +24,6 @@ import operator
|
||||
|
||||
import M2Crypto
|
||||
|
||||
from nova.compute import api as compute_api
|
||||
from novaclient import v1_1 as novaclient
|
||||
from novaclient import exceptions as novaclient_exceptions
|
||||
from nova import crypto
|
||||
@@ -32,10 +31,8 @@ from nova import db
|
||||
from nova import exception
|
||||
from nova import flags
|
||||
from nova import log as logging
|
||||
from nova import rpc
|
||||
from nova.scheduler import api
|
||||
from nova.scheduler import driver
|
||||
from nova.scheduler import filters
|
||||
from nova.scheduler import least_cost
|
||||
from nova.scheduler import scheduler_options
|
||||
from nova import utils
|
||||
|
@@ -25,7 +25,6 @@ is then selected for provisioning.
|
||||
|
||||
from nova import flags
|
||||
from nova import log as logging
|
||||
from nova import exception
|
||||
|
||||
LOG = logging.getLogger('nova.scheduler.least_cost')
|
||||
|
||||
|
@@ -18,7 +18,6 @@ ZoneManager oversees all communications with child Zones.
|
||||
"""
|
||||
|
||||
import datetime
|
||||
import thread
|
||||
import traceback
|
||||
import UserDict
|
||||
|
||||
|
@@ -13,15 +13,12 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import stubout
|
||||
import sys
|
||||
|
||||
import nova
|
||||
from nova import log as logging
|
||||
import nova.notifier.api
|
||||
from nova.notifier.api import notify
|
||||
from nova.notifier import log_notifier
|
||||
from nova.notifier import no_op_notifier
|
||||
import nova.notifier.log_notifier
|
||||
import nova.notifier.no_op_notifier
|
||||
from nova.notifier import list_notifier
|
||||
from nova import test
|
||||
|
||||
@@ -32,7 +29,6 @@ class NotifierListTestCase(test.TestCase):
|
||||
def setUp(self):
|
||||
super(NotifierListTestCase, self).setUp()
|
||||
list_notifier._reset_drivers()
|
||||
self.stubs = stubout.StubOutForTesting()
|
||||
# Mock log to add one to exception_count when log.exception is called
|
||||
|
||||
def mock_exception(cls, *args):
|
||||
|
@@ -19,7 +19,6 @@
|
||||
Unit Tests for remote procedure calls using carrot
|
||||
"""
|
||||
|
||||
from nova import context
|
||||
from nova import log as logging
|
||||
from nova.rpc import impl_carrot
|
||||
from nova.tests.rpc import common
|
||||
|
@@ -19,7 +19,6 @@
|
||||
Unit Tests for remote procedure calls using kombu
|
||||
"""
|
||||
|
||||
from nova import context
|
||||
from nova import log as logging
|
||||
from nova import test
|
||||
from nova.rpc import impl_kombu
|
||||
|
@@ -22,9 +22,7 @@ import nova.db
|
||||
|
||||
from nova import context
|
||||
from nova import exception
|
||||
from nova import rpc
|
||||
from nova import test
|
||||
from nova.compute import api as compute_api
|
||||
from nova.scheduler import distributed_scheduler
|
||||
from nova.scheduler import least_cost
|
||||
from nova.scheduler import zone_manager
|
||||
|
@@ -22,7 +22,6 @@ import nova
|
||||
from nova import exception
|
||||
from nova import test
|
||||
from nova.scheduler import distributed_scheduler as dist
|
||||
from nova.scheduler import zone_manager
|
||||
from nova.tests.scheduler import fake_zone_manager as ds_fakes
|
||||
|
||||
|
||||
|
@@ -16,7 +16,6 @@
|
||||
Tests For Least Cost functions.
|
||||
"""
|
||||
from nova.scheduler import least_cost
|
||||
from nova.scheduler import zone_manager
|
||||
from nova import test
|
||||
from nova.tests.scheduler import fake_zone_manager
|
||||
|
||||
|
@@ -13,12 +13,9 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import stubout
|
||||
|
||||
import nova
|
||||
|
||||
from nova import context
|
||||
from nova import db
|
||||
from nova import exception
|
||||
from nova import flags
|
||||
from nova import log as logging
|
||||
|
@@ -16,8 +16,6 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from eventlet import greenthread
|
||||
|
||||
from nova import context
|
||||
from nova import db
|
||||
from nova import flags
|
||||
|
@@ -31,7 +31,6 @@ from nova import block_device
|
||||
from nova import context
|
||||
from nova import exception
|
||||
from nova import test
|
||||
from nova import wsgi
|
||||
from nova.api import auth
|
||||
from nova.api import ec2
|
||||
from nova.api.ec2 import apirequest
|
||||
|
@@ -18,7 +18,6 @@ import os
|
||||
import sys
|
||||
import StringIO
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
import stubout
|
||||
|
||||
|
@@ -21,7 +21,6 @@ import exceptions
|
||||
import os
|
||||
import tempfile
|
||||
|
||||
from nova import exception
|
||||
from nova import flags
|
||||
from nova import test
|
||||
|
||||
|
@@ -23,7 +23,6 @@ from nova import exception
|
||||
from nova import flags
|
||||
from nova import log as logging
|
||||
from nova import test
|
||||
from nova import utils
|
||||
from nova.compute import instance_types
|
||||
from nova.db.sqlalchemy.session import get_session
|
||||
from nova.db.sqlalchemy import models
|
||||
|
@@ -20,7 +20,6 @@ import mox
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
from xml.etree.ElementTree import fromstring as xml_to_tree
|
||||
|
@@ -14,11 +14,8 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import glob
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import nova
|
||||
from nova import test
|
||||
|
@@ -15,8 +15,6 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import json
|
||||
|
||||
from nova import exception
|
||||
from nova import log as logging
|
||||
from nova.network import model
|
||||
|
@@ -16,15 +16,9 @@
|
||||
import stubout
|
||||
|
||||
import nova
|
||||
from nova import context
|
||||
from nova import flags
|
||||
from nova import log
|
||||
from nova import rpc
|
||||
import nova.notifier.api
|
||||
from nova.notifier.api import notify
|
||||
from nova.notifier import no_op_notifier
|
||||
from nova.notifier import rabbit_notifier
|
||||
from nova.rpc import impl_kombu
|
||||
from nova import test
|
||||
|
||||
|
||||
|
@@ -15,14 +15,11 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import stubout
|
||||
|
||||
from nova import context
|
||||
from nova import db
|
||||
from nova.db.sqlalchemy import models
|
||||
from nova.db.sqlalchemy.session import get_session
|
||||
from nova import exception
|
||||
from nova import ipv6
|
||||
from nova import log as logging
|
||||
from nova.network.quantum import manager as quantum_manager
|
||||
from nova.network.quantum import melange_connection
|
||||
@@ -30,8 +27,6 @@ from nova import test
|
||||
from nova import utils
|
||||
from nova.network import manager
|
||||
|
||||
import mox
|
||||
|
||||
LOG = logging.getLogger('nova.tests.quantum_network')
|
||||
|
||||
|
||||
|
@@ -19,12 +19,10 @@ Unit Tests for volume types code
|
||||
import time
|
||||
|
||||
from nova import context
|
||||
from nova import db
|
||||
from nova import exception
|
||||
from nova import flags
|
||||
from nova import log as logging
|
||||
from nova import test
|
||||
from nova import utils
|
||||
from nova.volume import volume_types
|
||||
from nova.db.sqlalchemy.session import get_session
|
||||
from nova.db.sqlalchemy import models
|
||||
|
@@ -21,8 +21,6 @@ Unit Tests for volume types extra specs code
|
||||
from nova import context
|
||||
from nova import db
|
||||
from nova import test
|
||||
from nova.db.sqlalchemy.session import get_session
|
||||
from nova.db.sqlalchemy import models
|
||||
|
||||
|
||||
class VolumeTypeExtraSpecsTestCase(test.TestCase):
|
||||
|
@@ -17,10 +17,8 @@ import base64
|
||||
import stubout
|
||||
|
||||
from xml.etree import ElementTree
|
||||
from xml.etree.ElementTree import Element, SubElement
|
||||
|
||||
from nova import context
|
||||
from nova import db
|
||||
from nova import exception
|
||||
from nova import flags
|
||||
from nova import log as logging
|
||||
|
@@ -13,13 +13,10 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import stubout
|
||||
|
||||
from nova import exception
|
||||
from nova import flags
|
||||
from nova import vsa
|
||||
from nova import volume
|
||||
from nova import db
|
||||
from nova import context
|
||||
from nova import test
|
||||
from nova import log as logging
|
||||
@@ -33,7 +30,6 @@ class VsaVolumesTestCase(test.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(VsaVolumesTestCase, self).setUp()
|
||||
self.stubs = stubout.StubOutForTesting()
|
||||
self.vsa_api = vsa.API()
|
||||
self.volume_api = volume.API()
|
||||
self.context = context.get_admin_context()
|
||||
|
@@ -19,14 +19,10 @@ Tests For ZoneManager
|
||||
import datetime
|
||||
import mox
|
||||
|
||||
from nova import context
|
||||
from nova import db
|
||||
from nova import flags
|
||||
from nova import service
|
||||
from nova import test
|
||||
from nova import rpc
|
||||
from nova import utils
|
||||
from nova.auth import manager as auth_manager
|
||||
from nova.scheduler import zone_manager
|
||||
|
||||
FLAGS = flags.FLAGS
|
||||
|
@@ -15,7 +15,6 @@
|
||||
|
||||
"""Stubouts, mocks and fixtures for the test suite"""
|
||||
|
||||
import eventlet
|
||||
import json
|
||||
import random
|
||||
|
||||
|
@@ -26,7 +26,6 @@ For assistance and guidelines pls contact
|
||||
import sys
|
||||
|
||||
from nova import compute
|
||||
from nova import db
|
||||
from nova import exception
|
||||
from nova import flags
|
||||
from nova import log as logging
|
||||
|
Reference in New Issue
Block a user