示例#1
0
 def __init__(self):
     super(MigrationsController, self).__init__()
     self.compute_api = compute.API()
示例#2
0
 def __init__(self, *args, **kwargs):
     super(AdminActionsController, self).__init__(*args, **kwargs)
     self.compute_api = compute.API()
示例#3
0
文件: hosts.py 项目: Razique/nova
 def __init__(self):
     self.compute_api = compute.API()
     super(HostController, self).__init__()
示例#4
0
 def __init__(self, *args, **kwargs):
     super(SecurityGroupActionController, self).__init__(*args, **kwargs)
     self.security_group_api = NativeSecurityGroupAPI()
     self.compute_api = compute.API(
         security_group_api=self.security_group_api)
示例#5
0
#         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.
"""
Storage related glue :-)
"""

from nova import compute

from occi import exceptions

VOLUME_API = compute.API().volume_api


def create_storage(size, name, context):
    """
    Create a storage instance.

    size -- Size of the storage.
    name -- Name of the storage volume.
    context -- The os context.
    """
    # L8R: A blueprint?
    # OpenStack deals with size in terms of integer.
    # Need to convert float to integer for now and only if the float
    # can be losslessly converted to integer
    # e.g. See nova/quota.py:allowed_volumes(...)
 def __init__(self, *args, **kwargs):
     super(ServerUsageController, self).__init__(*args, **kwargs)
     self.compute_api = compute.API()
示例#7
0
 def __init__(self, *args, **kwargs):
     super(ExtendedVolumesController, self).__init__(*args, **kwargs)
     self.compute_api = compute.API()
     self.volume_api = volume.API()
 def __init__(self):
     self.compute_api = compute.API(skip_policy_check=True)
     super(ServerMetadataController, self).__init__()
示例#9
0
 def __init__(self, **kwargs):
     super(Controller, self).__init__(**kwargs)
     self.compute_api = compute.API()
     self.network_api = network.API()
示例#10
0
 def __init__(self, ext_mgr=None, *args, **kwargs):
     super(FloatingIPActionController, self).__init__(*args, **kwargs)
     self.compute_api = compute.API()
     self.network_api = network.API()
     self.ext_mgr = ext_mgr
示例#11
0
 def __init__(self, ext_mgr=None, **kwargs):
     super(Controller, self).__init__(**kwargs)
     self.compute_api = compute.API()
     self.ext_mgr = ext_mgr
示例#12
0
 def __init__(self):
     self.compute_api = compute.API()
     self.network_api = network.API()
     super(FloatingIPController, self).__init__()
示例#13
0
 def __init__(self, network_api=None):
     self.compute_api = compute.API()
     self.last_call = {}
示例#14
0
 def __init__(self):
     super(InstanceActionsController, self).__init__()
     self.compute_api = compute.API()
     self.action_api = compute.InstanceActionAPI()
示例#15
0
 def __init__(self, *args, **kwargs):
     super(EvacuateController, self).__init__(*args, **kwargs)
     self.compute_api = compute.API(skip_policy_check=True)
     self.host_api = compute.HostAPI()
示例#16
0
 def __init__(self):
     self.security_group_api = (
         openstack_driver.get_openstack_security_group_driver())
     self.compute_api = compute.API(
         security_group_api=self.security_group_api)
示例#17
0
 def __init__(self, *args, **kwargs):
     super(SecurityGroupsOutputController, self).__init__(*args, **kwargs)
     self.compute_api = compute.API()
     self.security_group_api = (
         openstack_driver.get_openstack_security_group_driver())
示例#18
0
 def __init__(self, *args, **kwargs):
     super(DeferredDeleteController, self).__init__(*args, **kwargs)
     self.compute_api = compute.API()
示例#19
0
 def __init__(self):
     self.compute_api = compute.API()
示例#20
0
 def __init__(self):
     self.compute_api = compute.API()
     super(ServerExternalEventsController, self).__init__()
示例#21
0
 def __init__(self):
     self.security_group_api = NativeSecurityGroupAPI()
     self.compute_api = compute.API(
         security_group_api=self.security_group_api)
    def __init__(self, *args, **kwargs):
        super(FilterScheduler, self).__init__(*args, **kwargs)
        self.options = scheduler_options.SchedulerOptions()
        self.notifier = rpc.get_notifier('scheduler')

        self.compute_api = compute.API()
示例#23
0
 def __init__(self, *args, **kwargs):
     super(SecurityGroupsOutputController, self).__init__(*args, **kwargs)
     self.compute_api = compute.API()
 def __init__(self, *args, **kwargs):
     super(ExtendedServerAttributesController,
           self).__init__(*args, **kwargs)
     self.compute_api = compute.API()
示例#25
0
文件: cloudpipe.py 项目: yaochi/nova
 def __init__(self):
     self.compute_api = compute.API()
     self.network_api = network.API()
     self.cloudpipe = pipelib.CloudPipe()
     self.setup()
示例#26
0
 def __init__(self, *args, **kwargs):
     super(ConsoleOutputController, self).__init__(*args, **kwargs)
     self.compute_api = compute.API()
示例#27
0
 def __init__(self):
     self.compute_api = compute.API()
     self.volume_api = volume.API()
     super(VolumeAttachmentController, self).__init__()
示例#28
0
 def __init__(self):
     self.compute_api = compute.API()
     self.network_api = network.API()
     super(InterfaceAttachmentController, self).__init__()
示例#29
0
文件: messaging.py 项目: ameade/nova
 def __init__(self, msg_runner):
     super(_BaseMessageMethods, self).__init__()
     self.msg_runner = msg_runner
     self.state_manager = msg_runner.state_manager
     self.compute_api = compute.API()
示例#30
0
 def __init__(self):
     self.compute_api = compute.API()
     self.network_api = network.API()
     self.auth_manager = manager.AuthManager()
     self.cloudpipe = pipelib.CloudPipe()
     self.setup()