merged in trunk and fixed import merge errors
This commit is contained in:
commit
5d647826d6
4
HACKING
4
HACKING
@ -10,16 +10,12 @@ Imports
|
|||||||
- thou shalt not import objects, only modules
|
- thou shalt not import objects, only modules
|
||||||
- thou shalt not import more than one module per line
|
- thou shalt not import more than one module per line
|
||||||
- thou shalt not make relative imports
|
- thou shalt not make relative imports
|
||||||
- thou shalt "from nova import vendor" before importing third party code
|
|
||||||
- thou shalt organize your imports according to the following template
|
- thou shalt organize your imports according to the following template
|
||||||
|
|
||||||
::
|
::
|
||||||
# vim: tabstop=4 shiftwidth=4 softtabstop=4
|
# vim: tabstop=4 shiftwidth=4 softtabstop=4
|
||||||
{{stdlib imports in human alphabetical order}}
|
{{stdlib imports in human alphabetical order}}
|
||||||
\n
|
\n
|
||||||
from nova import vendor
|
|
||||||
{{vendor imports in human alphabetical order}}
|
|
||||||
\n
|
|
||||||
{{nova imports in human alphabetical order}}
|
{{nova imports in human alphabetical order}}
|
||||||
\n
|
\n
|
||||||
\n
|
\n
|
||||||
|
@ -22,8 +22,6 @@ Tornado daemon for the main API endpoint.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from tornado import httpserver
|
from tornado import httpserver
|
||||||
from tornado import ioloop
|
from tornado import ioloop
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ NOVA_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'nova')
|
|||||||
if os.path.exists(NOVA_PATH):
|
if os.path.exists(NOVA_PATH):
|
||||||
sys.path.insert(0, os.path.dirname(NOVA_PATH))
|
sys.path.insert(0, os.path.dirname(NOVA_PATH))
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from carrot import connection
|
from carrot import connection
|
||||||
from carrot import messaging
|
from carrot import messaging
|
||||||
from twisted.internet import task
|
from twisted.internet import task
|
||||||
|
@ -32,13 +32,13 @@ import sys
|
|||||||
# not true the ugly line below can be removed
|
# not true the ugly line below can be removed
|
||||||
sys.path.append(os.path.abspath(os.path.join(__file__, "../../")))
|
sys.path.append(os.path.abspath(os.path.join(__file__, "../../")))
|
||||||
|
|
||||||
|
from nova import flags
|
||||||
from nova import rpc
|
from nova import rpc
|
||||||
from nova import utils
|
from nova import utils
|
||||||
|
|
||||||
from nova.compute import linux_net
|
from nova.compute import linux_net
|
||||||
from nova.compute import network
|
from nova.compute import network
|
||||||
|
|
||||||
from nova import flags
|
|
||||||
FLAGS = flags.FLAGS
|
FLAGS = flags.FLAGS
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,9 +29,9 @@ import subprocess
|
|||||||
import sys
|
import sys
|
||||||
import urllib2
|
import urllib2
|
||||||
|
|
||||||
from nova.objectstore import image
|
|
||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import utils
|
from nova import utils
|
||||||
|
from nova.objectstore import image
|
||||||
|
|
||||||
FLAGS = flags.FLAGS
|
FLAGS = flags.FLAGS
|
||||||
|
|
||||||
|
@ -22,8 +22,6 @@
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from twisted.internet import task
|
from twisted.internet import task
|
||||||
from twisted.application import service
|
from twisted.application import service
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
import time
|
||||||
|
|
||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import utils
|
from nova import utils
|
||||||
@ -31,7 +32,7 @@ from nova.compute import model
|
|||||||
from nova.compute import network
|
from nova.compute import network
|
||||||
from nova.cloudpipe import pipelib
|
from nova.cloudpipe import pipelib
|
||||||
from nova.endpoint import cloud
|
from nova.endpoint import cloud
|
||||||
import time
|
|
||||||
|
|
||||||
FLAGS = flags.FLAGS
|
FLAGS = flags.FLAGS
|
||||||
|
|
||||||
|
@ -22,8 +22,6 @@
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from tornado import httpserver
|
from tornado import httpserver
|
||||||
from tornado import ioloop
|
from tornado import ioloop
|
||||||
|
|
||||||
|
@ -21,10 +21,8 @@
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from wsgiref import simple_server
|
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from tornado import ioloop
|
from tornado import ioloop
|
||||||
|
from wsgiref import simple_server
|
||||||
|
|
||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import rpc
|
from nova import rpc
|
||||||
|
@ -22,8 +22,6 @@
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from tornado import ioloop
|
from tornado import ioloop
|
||||||
|
|
||||||
from nova import flags
|
from nova import flags
|
||||||
|
@ -172,10 +172,10 @@ Further Challenges
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
The :mod:`access` Module
|
The :mod:`rbac` Module
|
||||||
--------------------------
|
--------------------------
|
||||||
|
|
||||||
.. automodule:: nova.auth.access
|
.. automodule:: nova.auth.rbac
|
||||||
:members:
|
:members:
|
||||||
:undoc-members:
|
:undoc-members:
|
||||||
:show-inheritance:
|
:show-inheritance:
|
||||||
|
@ -18,7 +18,7 @@ import sys, os
|
|||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
sys.path.append(os.path.abspath('/Users/jmckenty/Projects/cc'))
|
sys.path.append(os.path.abspath('/Users/jmckenty/Projects/cc'))
|
||||||
sys.path.append([os.path.abspath('../nova'),os.path.abspath('../'),os.path.abspath('../vendor')])
|
sys.path.append([os.path.abspath('../nova'),os.path.abspath('../'),os.path.abspath('../vendor')])
|
||||||
from nova import vendor
|
|
||||||
|
|
||||||
# -- General configuration -----------------------------------------------------
|
# -- General configuration -----------------------------------------------------
|
||||||
|
|
||||||
|
@ -44,6 +44,8 @@ Contents:
|
|||||||
fakes
|
fakes
|
||||||
binaries
|
binaries
|
||||||
todo
|
todo
|
||||||
|
modules
|
||||||
|
packages
|
||||||
|
|
||||||
Indices and tables
|
Indices and tables
|
||||||
==================
|
==================
|
||||||
|
@ -20,8 +20,6 @@ Nova User API client library.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import boto
|
import boto
|
||||||
from boto.ec2.regioninfo import RegionInfo
|
from boto.ec2.regioninfo import RegionInfo
|
||||||
|
|
||||||
|
@ -43,11 +43,12 @@
|
|||||||
Utility class for parsing signed AMI manifests.
|
Utility class for parsing signed AMI manifests.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import base64
|
||||||
import hashlib
|
import hashlib
|
||||||
import hmac
|
import hmac
|
||||||
|
import logging
|
||||||
import urllib
|
import urllib
|
||||||
import base64
|
|
||||||
from nova.exception import Error
|
from nova.exception import Error
|
||||||
|
|
||||||
class Signer(object):
|
class Signer(object):
|
||||||
|
@ -26,7 +26,6 @@ import os
|
|||||||
import shutil
|
import shutil
|
||||||
import signer
|
import signer
|
||||||
import string
|
import string
|
||||||
from string import Template
|
|
||||||
import tempfile
|
import tempfile
|
||||||
import uuid
|
import uuid
|
||||||
import zipfile
|
import zipfile
|
||||||
@ -44,8 +43,6 @@ from nova import exception
|
|||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import crypto
|
from nova import crypto
|
||||||
from nova import utils
|
from nova import utils
|
||||||
|
|
||||||
|
|
||||||
from nova import objectstore # for flags
|
from nova import objectstore # for flags
|
||||||
|
|
||||||
FLAGS = flags.FLAGS
|
FLAGS = flags.FLAGS
|
||||||
@ -462,11 +459,11 @@ class UserManager(object):
|
|||||||
description=None, member_users=None):
|
description=None, member_users=None):
|
||||||
if member_users:
|
if member_users:
|
||||||
member_users = [User.safe_id(u) for u in member_users]
|
member_users = [User.safe_id(u) for u in member_users]
|
||||||
with LDAPWrapper() as conn:
|
|
||||||
# NOTE(vish): try to associate a vpn ip and port first because
|
# NOTE(vish): try to associate a vpn ip and port first because
|
||||||
# if it throws an exception, we save having to
|
# if it throws an exception, we save having to
|
||||||
# create and destroy a project
|
# create and destroy a project
|
||||||
Vpn.create(name)
|
Vpn.create(name)
|
||||||
|
with LDAPWrapper() as conn:
|
||||||
return conn.create_project(name,
|
return conn.create_project(name,
|
||||||
User.safe_id(manager_user),
|
User.safe_id(manager_user),
|
||||||
description,
|
description,
|
||||||
@ -533,6 +530,7 @@ class UserManager(object):
|
|||||||
try:
|
try:
|
||||||
conn.create_project(user, user, user)
|
conn.create_project(user, user, user)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
with LDAPWrapper() as conn:
|
||||||
conn.delete_user(user)
|
conn.delete_user(user)
|
||||||
raise
|
raise
|
||||||
return result
|
return result
|
||||||
|
@ -21,14 +21,13 @@ Tornado REST API Request Handlers for CloudPipe
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import urllib
|
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import tornado.web
|
import tornado.web
|
||||||
|
import urllib
|
||||||
|
|
||||||
from nova import crypto
|
from nova import crypto
|
||||||
from nova.auth import users
|
from nova.auth import users
|
||||||
|
|
||||||
|
|
||||||
_log = logging.getLogger("api")
|
_log = logging.getLogger("api")
|
||||||
_log.setLevel(logging.DEBUG)
|
_log.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
|
@ -22,18 +22,19 @@ an instance with it.
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import base64
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
import base64
|
import zipfile
|
||||||
from zipfile import ZipFile, ZIP_DEFLATED
|
|
||||||
|
|
||||||
from nova import exception
|
from nova import exception
|
||||||
from nova import flags
|
from nova import flags
|
||||||
from nova.auth import users
|
|
||||||
from nova import utils
|
from nova import utils
|
||||||
|
from nova.auth import users
|
||||||
from nova.endpoint import api
|
from nova.endpoint import api
|
||||||
|
|
||||||
|
|
||||||
FLAGS = flags.FLAGS
|
FLAGS = flags.FLAGS
|
||||||
|
|
||||||
flags.DEFINE_string('boot_script_template',
|
flags.DEFINE_string('boot_script_template',
|
||||||
@ -52,7 +53,7 @@ class CloudPipe(object):
|
|||||||
tmpfolder = tempfile.mkdtemp()
|
tmpfolder = tempfile.mkdtemp()
|
||||||
filename = "payload.zip"
|
filename = "payload.zip"
|
||||||
zippath = os.path.join(tmpfolder, filename)
|
zippath = os.path.join(tmpfolder, filename)
|
||||||
z = ZipFile(zippath, "w", ZIP_DEFLATED)
|
z = zipfile.ZipFile(zippath, "w", zipfile.ZIP_DEFLATED)
|
||||||
|
|
||||||
z.write(FLAGS.boot_script_template,'autorun.sh')
|
z.write(FLAGS.boot_script_template,'autorun.sh')
|
||||||
z.close()
|
z.close()
|
||||||
|
@ -24,12 +24,11 @@ Includes injection of SSH PGP keys into authorized_keys file.
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
from nova import exception
|
from nova import exception
|
||||||
|
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def partition(infile, outfile, local_bytes=0, local_type='ext2', execute=None):
|
def partition(infile, outfile, local_bytes=0, local_type='ext2', execute=None):
|
||||||
"""Takes a single partition represented by infile and writes a bootable
|
"""Takes a single partition represented by infile and writes a bootable
|
||||||
|
@ -22,6 +22,7 @@ Exceptions for Compute Node errors, mostly network addressing.
|
|||||||
|
|
||||||
from nova.exception import Error
|
from nova.exception import Error
|
||||||
|
|
||||||
|
|
||||||
class NoMoreAddresses(Error):
|
class NoMoreAddresses(Error):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -19,11 +19,12 @@
|
|||||||
import logging
|
import logging
|
||||||
import signal
|
import signal
|
||||||
import os
|
import os
|
||||||
import nova.utils
|
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
# todo(ja): does the definition of network_path belong here?
|
# todo(ja): does the definition of network_path belong here?
|
||||||
|
|
||||||
|
from nova import utils
|
||||||
|
|
||||||
from nova import flags
|
from nova import flags
|
||||||
FLAGS=flags.FLAGS
|
FLAGS=flags.FLAGS
|
||||||
|
|
||||||
|
@ -42,8 +42,6 @@ True
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import redis
|
import redis
|
||||||
|
|
||||||
from nova import datastore
|
from nova import datastore
|
||||||
|
@ -24,11 +24,18 @@ Instance Monitoring:
|
|||||||
in the object store.
|
in the object store.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import boto
|
||||||
|
import boto.s3
|
||||||
import datetime
|
import datetime
|
||||||
|
import libxml2
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
import rrdtool
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
from twisted.internet import defer
|
||||||
|
from twisted.internet import task
|
||||||
|
from twisted.application import service
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import libvirt
|
import libvirt
|
||||||
@ -36,14 +43,7 @@ except Exception, err:
|
|||||||
logging.warning('no libvirt found')
|
logging.warning('no libvirt found')
|
||||||
|
|
||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import vendor
|
|
||||||
import boto
|
|
||||||
import boto.s3
|
|
||||||
import libxml2
|
|
||||||
import rrdtool
|
|
||||||
from twisted.internet import defer
|
|
||||||
from twisted.internet import task
|
|
||||||
from twisted.application import service
|
|
||||||
|
|
||||||
FLAGS = flags.FLAGS
|
FLAGS = flags.FLAGS
|
||||||
flags.DEFINE_integer(
|
flags.DEFINE_integer(
|
||||||
|
@ -20,22 +20,19 @@
|
|||||||
Classes for network control, including VLANs, DHCP, and IP allocation.
|
Classes for network control, including VLANs, DHCP, and IP allocation.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import IPy
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
# TODO(termie): clean up these imports
|
|
||||||
from nova import vendor
|
|
||||||
import IPy
|
|
||||||
|
|
||||||
from nova import datastore
|
from nova import datastore
|
||||||
|
from nova import exception
|
||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import utils
|
from nova import utils
|
||||||
from nova import exception
|
|
||||||
from nova.compute import exception as compute_exception
|
|
||||||
from nova.auth import users
|
from nova.auth import users
|
||||||
|
from nova.compute import exception as compute_exception
|
||||||
|
from nova.compute import linux_net
|
||||||
|
|
||||||
import linux_net
|
|
||||||
|
|
||||||
FLAGS = flags.FLAGS
|
FLAGS = flags.FLAGS
|
||||||
flags.DEFINE_string('networks_path', utils.abspath('../networks'),
|
flags.DEFINE_string('networks_path', utils.abspath('../networks'),
|
||||||
@ -130,8 +127,9 @@ class Vlan(datastore.BasicModel):
|
|||||||
@datastore.absorb_connection_error
|
@datastore.absorb_connection_error
|
||||||
def all(cls):
|
def all(cls):
|
||||||
set_name = cls._redis_set_name(cls.__name__)
|
set_name = cls._redis_set_name(cls.__name__)
|
||||||
for project,vlan in datastore.Redis.instance().hgetall(set_name):
|
elements = datastore.Redis.instance().hgetall(set_name)
|
||||||
yield cls(project, vlan)
|
for project in elements:
|
||||||
|
yield cls(project, elements[project])
|
||||||
|
|
||||||
@datastore.absorb_connection_error
|
@datastore.absorb_connection_error
|
||||||
def save(self):
|
def save(self):
|
||||||
@ -291,6 +289,7 @@ class BridgedNetwork(BaseNetwork):
|
|||||||
netmask
|
netmask
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
bridge_gets_ip = False
|
||||||
override_type = 'network'
|
override_type = 'network'
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -532,6 +531,10 @@ def get_vlan_for_project(project_id):
|
|||||||
return Vlan.create(project_id, vnum)
|
return Vlan.create(project_id, vnum)
|
||||||
raise compute_exception.AddressNotAllocated("Out of VLANs")
|
raise compute_exception.AddressNotAllocated("Out of VLANs")
|
||||||
|
|
||||||
|
def get_network_by_interface(iface, security_group='default'):
|
||||||
|
vlan = iface.rpartition("br")[2]
|
||||||
|
return get_project_network(Vlan.dict_by_vlan().get(vlan), security_group)
|
||||||
|
|
||||||
def get_network_by_address(address):
|
def get_network_by_address(address):
|
||||||
logging.debug("Get Network By Address: %s" % address)
|
logging.debug("Get Network By Address: %s" % address)
|
||||||
for project in users.UserManager.instance().get_projects():
|
for project in users.UserManager.instance().get_projects():
|
||||||
|
@ -30,12 +30,11 @@ import logging
|
|||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
from twisted.internet import task
|
from twisted.internet import task
|
||||||
from twisted.application import service
|
from twisted.application import service
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import libvirt
|
import libvirt
|
||||||
except Exception, err:
|
except Exception, err:
|
||||||
@ -49,8 +48,9 @@ from nova import utils
|
|||||||
from nova.compute import disk
|
from nova.compute import disk
|
||||||
from nova.compute import model
|
from nova.compute import model
|
||||||
from nova.compute import network
|
from nova.compute import network
|
||||||
from nova.volume import storage
|
|
||||||
from nova.objectstore import image # for image_path flag
|
from nova.objectstore import image # for image_path flag
|
||||||
|
from nova.volume import storage
|
||||||
|
|
||||||
|
|
||||||
FLAGS = flags.FLAGS
|
FLAGS = flags.FLAGS
|
||||||
flags.DEFINE_string('libvirt_xml_template',
|
flags.DEFINE_string('libvirt_xml_template',
|
||||||
|
@ -24,6 +24,7 @@ SSH keypairs and x509 certificates.
|
|||||||
import base64
|
import base64
|
||||||
import hashlib
|
import hashlib
|
||||||
import logging
|
import logging
|
||||||
|
import M2Crypto
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import struct
|
import struct
|
||||||
@ -31,9 +32,6 @@ import tempfile
|
|||||||
import time
|
import time
|
||||||
import utils
|
import utils
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import M2Crypto
|
|
||||||
|
|
||||||
from nova import exception
|
from nova import exception
|
||||||
from nova import flags
|
from nova import flags
|
||||||
|
|
||||||
|
@ -24,8 +24,6 @@ before trying to run this.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import redis
|
import redis
|
||||||
|
|
||||||
from nova import exception
|
from nova import exception
|
||||||
@ -105,7 +103,7 @@ class BasicModel(object):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _redis_name(cls):
|
def _redis_name(cls):
|
||||||
return self.override_type or cls.__name__
|
return cls.override_type or cls.__name__
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def lookup(cls, identifier):
|
def lookup(cls, identifier):
|
||||||
@ -147,7 +145,7 @@ class BasicModel(object):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def __redis_key(self):
|
def __redis_key(self):
|
||||||
return '%s:%s' % (self.__class__.__name__.lower(), self.identifier)
|
return '%s:%s' % (self._redis_name(), self.identifier)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "<%s:%s>" % (self.__class__.__name__, self.identifier)
|
return "<%s:%s>" % (self.__class__.__name__, self.identifier)
|
||||||
|
@ -25,21 +25,20 @@ import logging
|
|||||||
import multiprocessing
|
import multiprocessing
|
||||||
import random
|
import random
|
||||||
import re
|
import re
|
||||||
|
import tornado.web
|
||||||
|
from twisted.internet import defer
|
||||||
import urllib
|
import urllib
|
||||||
# TODO(termie): replace minidom with etree
|
# TODO(termie): replace minidom with etree
|
||||||
from xml.dom import minidom
|
from xml.dom import minidom
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import tornado.web
|
|
||||||
from twisted.internet import defer
|
|
||||||
|
|
||||||
from nova import crypto
|
from nova import crypto
|
||||||
from nova import exception
|
from nova import exception
|
||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import utils
|
from nova import utils
|
||||||
from nova.endpoint import cloud
|
|
||||||
from nova.auth import users
|
from nova.auth import users
|
||||||
import nova.cloudpipe.api
|
import nova.cloudpipe.api
|
||||||
|
from nova.endpoint import cloud
|
||||||
|
|
||||||
|
|
||||||
FLAGS = flags.FLAGS
|
FLAGS = flags.FLAGS
|
||||||
flags.DEFINE_integer('cc_port', 8773, 'cloud controller port')
|
flags.DEFINE_integer('cc_port', 8773, 'cloud controller port')
|
||||||
|
@ -27,15 +27,13 @@ import json
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
from nova import datastore
|
from nova import datastore
|
||||||
|
from nova import exception
|
||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import rpc
|
from nova import rpc
|
||||||
from nova import utils
|
from nova import utils
|
||||||
from nova import exception
|
|
||||||
from nova.auth import rbac
|
from nova.auth import rbac
|
||||||
from nova.auth import users
|
from nova.auth import users
|
||||||
from nova.compute import model
|
from nova.compute import model
|
||||||
@ -44,6 +42,7 @@ from nova.compute import node
|
|||||||
from nova.endpoint import images
|
from nova.endpoint import images
|
||||||
from nova.volume import storage
|
from nova.volume import storage
|
||||||
|
|
||||||
|
|
||||||
FLAGS = flags.FLAGS
|
FLAGS = flags.FLAGS
|
||||||
|
|
||||||
flags.DEFINE_string('cloud_topic', 'cloud', 'the topic clouds listen on')
|
flags.DEFINE_string('cloud_topic', 'cloud', 'the topic clouds listen on')
|
||||||
|
@ -21,17 +21,16 @@ Proxy AMI-related calls from the cloud controller, to the running
|
|||||||
objectstore daemon.
|
objectstore daemon.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import boto
|
||||||
|
import boto.s3
|
||||||
import json
|
import json
|
||||||
import random
|
import random
|
||||||
import urllib
|
import urllib
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import boto
|
|
||||||
import boto.s3
|
|
||||||
|
|
||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import utils
|
from nova import utils
|
||||||
|
|
||||||
|
|
||||||
FLAGS = flags.FLAGS
|
FLAGS = flags.FLAGS
|
||||||
|
|
||||||
def modify(context, image_id, operation):
|
def modify(context, image_id, operation):
|
||||||
|
@ -26,21 +26,19 @@ import logging
|
|||||||
import multiprocessing
|
import multiprocessing
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import tornado.web
|
import tornado.web
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
from nova import datastore
|
from nova import datastore
|
||||||
|
from nova import exception
|
||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import rpc
|
from nova import rpc
|
||||||
from nova import utils
|
from nova import utils
|
||||||
from nova import exception
|
|
||||||
from nova.auth import users
|
from nova.auth import users
|
||||||
from nova.compute import model
|
from nova.compute import model
|
||||||
from nova.compute import network
|
from nova.compute import network
|
||||||
from nova.endpoint import wsgi
|
|
||||||
from nova.endpoint import images
|
from nova.endpoint import images
|
||||||
|
from nova.endpoint import wsgi
|
||||||
from nova.volume import storage
|
from nova.volume import storage
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,8 +22,8 @@ Nova-type exceptions. SHOULD include dedicated exception logging.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import traceback
|
|
||||||
import sys
|
import sys
|
||||||
|
import traceback
|
||||||
|
|
||||||
class Error(Exception):
|
class Error(Exception):
|
||||||
def __init__(self, message=None):
|
def __init__(self, message=None):
|
||||||
|
@ -18,11 +18,10 @@
|
|||||||
|
|
||||||
""" Based a bit on the carrot.backeds.queue backend... but a lot better """
|
""" Based a bit on the carrot.backeds.queue backend... but a lot better """
|
||||||
|
|
||||||
|
from carrot.backends import base
|
||||||
import logging
|
import logging
|
||||||
import Queue as queue
|
import Queue as queue
|
||||||
|
|
||||||
from carrot.backends import base
|
|
||||||
|
|
||||||
|
|
||||||
class Message(base.BaseMessage):
|
class Message(base.BaseMessage):
|
||||||
pass
|
pass
|
||||||
|
@ -23,7 +23,7 @@ where they're used.
|
|||||||
|
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from gflags import *
|
from gflags import *
|
||||||
|
|
||||||
# This keeps pylint from barfing on the imports
|
# This keeps pylint from barfing on the imports
|
||||||
|
@ -20,17 +20,18 @@
|
|||||||
Simple object store using Blobs and JSON files on disk.
|
Simple object store using Blobs and JSON files on disk.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import bisect
|
||||||
import datetime
|
import datetime
|
||||||
import glob
|
import glob
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import bisect
|
|
||||||
|
|
||||||
from nova import exception
|
from nova import exception
|
||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import utils
|
from nova import utils
|
||||||
from nova.objectstore import stored
|
from nova.objectstore import stored
|
||||||
|
|
||||||
|
|
||||||
FLAGS = flags.FLAGS
|
FLAGS = flags.FLAGS
|
||||||
flags.DEFINE_string('buckets_path', utils.abspath('../buckets'),
|
flags.DEFINE_string('buckets_path', utils.abspath('../buckets'),
|
||||||
'path to s3 buckets')
|
'path to s3 buckets')
|
||||||
|
@ -38,14 +38,11 @@ S3 client with this module::
|
|||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import os
|
import os
|
||||||
import urllib
|
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
|
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from tornado import escape, web
|
from tornado import escape, web
|
||||||
|
import urllib
|
||||||
|
|
||||||
from nova import exception
|
from nova import exception
|
||||||
from nova import flags
|
from nova import flags
|
||||||
|
@ -20,10 +20,11 @@
|
|||||||
Properties of an object stored within a bucket.
|
Properties of an object stored within a bucket.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
|
import nova.crypto
|
||||||
from nova.exception import NotFound, NotAuthorized
|
from nova.exception import NotFound, NotAuthorized
|
||||||
|
|
||||||
import os
|
|
||||||
import nova.crypto
|
|
||||||
|
|
||||||
class Object(object):
|
class Object(object):
|
||||||
def __init__(self, bucket, key):
|
def __init__(self, bucket, key):
|
||||||
|
@ -23,8 +23,6 @@ Process pool, still buggy right now.
|
|||||||
import logging
|
import logging
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
import StringIO
|
import StringIO
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
from twisted.internet import error
|
from twisted.internet import error
|
||||||
from twisted.internet import process
|
from twisted.internet import process
|
||||||
|
@ -21,14 +21,12 @@ AMQP-based RPC. Queues have consumers and publishers.
|
|||||||
No fan-out support yet.
|
No fan-out support yet.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from carrot import connection
|
||||||
|
from carrot import messaging
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from carrot import connection
|
|
||||||
from carrot import messaging
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
from twisted.internet import reactor
|
from twisted.internet import reactor
|
||||||
from twisted.internet import task
|
from twisted.internet import task
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
Base functionality for nova daemons - gradually being replaced with twistd.py.
|
Base functionality for nova daemons - gradually being replaced with twistd.py.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import daemon
|
||||||
|
from daemon import pidlockfile
|
||||||
import logging
|
import logging
|
||||||
import logging.handlers
|
import logging.handlers
|
||||||
import os
|
import os
|
||||||
@ -27,10 +29,6 @@ import signal
|
|||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import daemon
|
|
||||||
from daemon import pidlockfile
|
|
||||||
|
|
||||||
from nova import flags
|
from nova import flags
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,16 +23,14 @@ and some black magic for inline callbacks.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
import mox
|
||||||
|
import stubout
|
||||||
import time
|
import time
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import mox
|
|
||||||
from tornado import ioloop
|
from tornado import ioloop
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
from twisted.python import failure
|
from twisted.python import failure
|
||||||
from twisted.trial import unittest as trial_unittest
|
from twisted.trial import unittest as trial_unittest
|
||||||
import stubout
|
|
||||||
|
|
||||||
from nova import fakerabbit
|
from nova import fakerabbit
|
||||||
from nova import flags
|
from nova import flags
|
||||||
|
@ -19,11 +19,12 @@
|
|||||||
import unittest
|
import unittest
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from nova.auth.users import UserManager
|
|
||||||
from nova.auth import rbac
|
|
||||||
from nova import exception
|
from nova import exception
|
||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import test
|
from nova import test
|
||||||
|
from nova.auth.users import UserManager
|
||||||
|
from nova.auth import rbac
|
||||||
|
|
||||||
|
|
||||||
FLAGS = flags.FLAGS
|
FLAGS = flags.FLAGS
|
||||||
class Context(object):
|
class Context(object):
|
||||||
|
@ -16,10 +16,11 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
import boto
|
import boto
|
||||||
from boto.ec2.regioninfo import RegionInfo
|
from boto.ec2.regioninfo import RegionInfo
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
ACCESS_KEY = 'fake'
|
ACCESS_KEY = 'fake'
|
||||||
SECRET_KEY = 'fake'
|
SECRET_KEY = 'fake'
|
||||||
|
@ -16,13 +16,11 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
import boto
|
||||||
|
from boto.ec2 import regioninfo
|
||||||
import httplib
|
import httplib
|
||||||
import random
|
import random
|
||||||
import StringIO
|
import StringIO
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import boto
|
|
||||||
from boto.ec2 import regioninfo
|
|
||||||
from tornado import httpserver
|
from tornado import httpserver
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
|
@ -19,12 +19,10 @@
|
|||||||
import logging
|
import logging
|
||||||
import StringIO
|
import StringIO
|
||||||
import time
|
import time
|
||||||
import unittest
|
|
||||||
from xml.etree import ElementTree
|
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from tornado import ioloop
|
from tornado import ioloop
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
import unittest
|
||||||
|
from xml.etree import ElementTree
|
||||||
|
|
||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import rpc
|
from nova import rpc
|
||||||
|
@ -17,15 +17,13 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
import mox
|
||||||
import StringIO
|
import StringIO
|
||||||
import time
|
import time
|
||||||
import unittest
|
|
||||||
from xml.etree import ElementTree
|
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import mox
|
|
||||||
from tornado import ioloop
|
from tornado import ioloop
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
import unittest
|
||||||
|
from xml.etree import ElementTree
|
||||||
|
|
||||||
from nova import cloud
|
from nova import cloud
|
||||||
from nova import exception
|
from nova import exception
|
||||||
|
@ -18,8 +18,6 @@
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
from nova import exception
|
from nova import exception
|
||||||
|
@ -16,12 +16,10 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
import IPy
|
||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import IPy
|
|
||||||
|
|
||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova import utils
|
from nova import utils
|
||||||
|
@ -18,11 +18,8 @@
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from xml.etree import ElementTree
|
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
from xml.etree import ElementTree
|
||||||
|
|
||||||
from nova import exception
|
from nova import exception
|
||||||
from nova import flags
|
from nova import flags
|
||||||
@ -31,6 +28,7 @@ from nova import utils
|
|||||||
from nova.compute import model
|
from nova.compute import model
|
||||||
from nova.compute import node
|
from nova.compute import node
|
||||||
|
|
||||||
|
|
||||||
FLAGS = flags.FLAGS
|
FLAGS = flags.FLAGS
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,15 +23,13 @@ import os
|
|||||||
import shutil
|
import shutil
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
|
|
||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import objectstore
|
from nova import objectstore
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova.auth import users
|
from nova.auth import users
|
||||||
|
|
||||||
FLAGS = flags.FLAGS
|
|
||||||
|
|
||||||
|
FLAGS = flags.FLAGS
|
||||||
|
|
||||||
oss_tempdir = tempfile.mkdtemp(prefix='test_oss-')
|
oss_tempdir = tempfile.mkdtemp(prefix='test_oss-')
|
||||||
|
|
||||||
|
@ -17,11 +17,9 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from xml.etree import ElementTree
|
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
from twisted.internet import reactor
|
from twisted.internet import reactor
|
||||||
|
from xml.etree import ElementTree
|
||||||
|
|
||||||
from nova import exception
|
from nova import exception
|
||||||
from nova import flags
|
from nova import flags
|
||||||
|
@ -69,13 +69,11 @@ class StorageTestCase(test.TrialTestCase):
|
|||||||
vols = []
|
vols = []
|
||||||
for i in xrange(total_slots):
|
for i in xrange(total_slots):
|
||||||
vid = self.mystorage.create_volume(vol_size, user_id, project_id)
|
vid = self.mystorage.create_volume(vol_size, user_id, project_id)
|
||||||
print vid
|
|
||||||
vols.append(vid)
|
vols.append(vid)
|
||||||
self.assertRaises(storage.NoMoreVolumes,
|
self.assertRaises(storage.NoMoreVolumes,
|
||||||
self.mystorage.create_volume,
|
self.mystorage.create_volume,
|
||||||
vol_size, user_id, project_id)
|
vol_size, user_id, project_id)
|
||||||
for id in vols:
|
for id in vols:
|
||||||
print id
|
|
||||||
self.mystorage.delete_volume(id)
|
self.mystorage.delete_volume(id)
|
||||||
|
|
||||||
def test_run_attach_detach_volume(self):
|
def test_run_attach_detach_volume(self):
|
||||||
|
@ -17,12 +17,10 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import unittest
|
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from M2Crypto import BIO
|
from M2Crypto import BIO
|
||||||
from M2Crypto import RSA
|
from M2Crypto import RSA
|
||||||
from M2Crypto import X509
|
from M2Crypto import X509
|
||||||
|
import unittest
|
||||||
|
|
||||||
from nova import crypto
|
from nova import crypto
|
||||||
from nova import flags
|
from nova import flags
|
||||||
|
@ -19,8 +19,6 @@
|
|||||||
import logging
|
import logging
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
|
|
||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import test
|
from nova import test
|
||||||
from nova import validate
|
from nova import validate
|
||||||
|
@ -22,22 +22,21 @@ manage pid files and support syslogging.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
import logging.handlers
|
||||||
import os
|
import os
|
||||||
import signal
|
import signal
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import UserDict
|
|
||||||
import logging.handlers
|
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from twisted.scripts import twistd
|
from twisted.scripts import twistd
|
||||||
from twisted.python import log
|
from twisted.python import log
|
||||||
from twisted.python import reflect
|
from twisted.python import reflect
|
||||||
from twisted.python import runtime
|
from twisted.python import runtime
|
||||||
from twisted.python import usage
|
from twisted.python import usage
|
||||||
|
import UserDict
|
||||||
|
|
||||||
from nova import flags
|
from nova import flags
|
||||||
|
|
||||||
|
|
||||||
if runtime.platformType == "win32":
|
if runtime.platformType == "win32":
|
||||||
from twisted.scripts._twistw import ServerOptions
|
from twisted.scripts._twistw import ServerOptions
|
||||||
else:
|
else:
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
System-level utilities and helper functions.
|
System-level utilities and helper functions.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from datetime import datetime
|
||||||
import inspect
|
import inspect
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
@ -27,7 +28,6 @@ import random
|
|||||||
import subprocess
|
import subprocess
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
from datetime import datetime
|
|
||||||
|
|
||||||
from nova import flags
|
from nova import flags
|
||||||
|
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
# vim: tabstop=4 shiftwidth=4 softtabstop=4
|
|
||||||
|
|
||||||
# Copyright 2010 United States Government as represented by the
|
|
||||||
# Administrator of the National Aeronautics and Space Administration.
|
|
||||||
# All Rights Reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
# not use this file except in compliance with the License. You may obtain
|
|
||||||
# a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
||||||
# License for the specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
"""
|
|
||||||
Get our vendor folders into the system path.
|
|
||||||
"""
|
|
||||||
|
|
||||||
print 'sorry, we cannot include vendor open source libraries... :('
|
|
||||||
|
|
@ -25,12 +25,10 @@ Currently uses Ata-over-Ethernet.
|
|||||||
import glob
|
import glob
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import socket
|
|
||||||
import shutil
|
import shutil
|
||||||
|
import socket
|
||||||
import tempfile
|
import tempfile
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from tornado import ioloop
|
from tornado import ioloop
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ Due to our use of multiprocessing it we frequently get some ignorable
|
|||||||
import __main__
|
import __main__
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from twisted.scripts import trial as trial_script
|
from twisted.scripts import trial as trial_script
|
||||||
|
|
||||||
from nova import datastore
|
from nova import datastore
|
||||||
|
4
setup.cfg
Normal file
4
setup.cfg
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[build_sphinx]
|
||||||
|
source-dir = docs
|
||||||
|
build-dir = docs/_build
|
||||||
|
all_files = 1
|
@ -21,7 +21,7 @@ Package-level global flags are defined here, the rest are defined
|
|||||||
where they're used.
|
where they're used.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from gflags import *
|
from gflags import *
|
||||||
|
|
||||||
# This keeps pylint from barfing on the imports
|
# This keeps pylint from barfing on the imports
|
||||||
|
@ -22,7 +22,7 @@ import random
|
|||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import paramiko
|
import paramiko
|
||||||
|
|
||||||
from nova import adminclient
|
from nova import adminclient
|
||||||
|
@ -25,7 +25,7 @@ import time
|
|||||||
import unittest
|
import unittest
|
||||||
import zipfile
|
import zipfile
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import paramiko
|
import paramiko
|
||||||
|
|
||||||
from smoketests import flags
|
from smoketests import flags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user