예제 #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(...)
예제 #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()
 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)
예제 #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
 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()