コード例 #1
0
 def __init__(self):
     super(MigrationsController, self).__init__()
     self.compute_api = compute.API()
コード例 #2
0
ファイル: admin_actions.py プロジェクト: wxy2933/nova
 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
ファイル: security_groups.py プロジェクト: bopopescu/nova-old
 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
ファイル: storage.py プロジェクト: Cloudxtreme/occi-os
#         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(...)
コード例 #6
0
 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()
コード例 #8
0
 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
ファイル: floating_ips.py プロジェクト: zhouyang1222/nova
 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
ファイル: floating_ips.py プロジェクト: zhouyang1222/nova
 def __init__(self):
     self.compute_api = compute.API()
     self.network_api = network.API()
     super(FloatingIPController, self).__init__()
コード例 #13
0
ファイル: fping.py プロジェクト: swethapts/devstack-compute
 def __init__(self, network_api=None):
     self.compute_api = compute.API()
     self.last_call = {}
コード例 #14
0
ファイル: instance_actions.py プロジェクト: zhangshihelp/nova
 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
ファイル: security_groups.py プロジェクト: yaochi/nova
 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
ファイル: security_groups.py プロジェクト: bopopescu/nova-old
 def __init__(self):
     self.security_group_api = NativeSecurityGroupAPI()
     self.compute_api = compute.API(
         security_group_api=self.security_group_api)
コード例 #22
0
    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
ファイル: security_groups.py プロジェクト: bopopescu/nova-old
 def __init__(self, *args, **kwargs):
     super(SecurityGroupsOutputController, self).__init__(*args, **kwargs)
     self.compute_api = compute.API()
コード例 #24
0
 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
ファイル: console_output.py プロジェクト: paulmathews/nova
 def __init__(self, *args, **kwargs):
     super(ConsoleOutputController, self).__init__(*args, **kwargs)
     self.compute_api = compute.API()
コード例 #27
0
ファイル: volumes.py プロジェクト: geekontheway/nova
 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()