Esempio n. 1
0
 def __init__(self):
     super(MigrationsController, self).__init__()
     self.compute_api = compute.API()
Esempio n. 2
0
 def __init__(self, *args, **kwargs):
     super(AdminActionsController, self).__init__(*args, **kwargs)
     self.compute_api = compute.API()
Esempio n. 3
0
 def __init__(self):
     self.compute_api = compute.API()
     super(HostController, self).__init__()
Esempio n. 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)
Esempio n. 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(...)
Esempio n. 6
0
 def __init__(self, *args, **kwargs):
     super(ServerUsageController, self).__init__(*args, **kwargs)
     self.compute_api = compute.API()
Esempio n. 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__()
Esempio n. 9
0
 def __init__(self, **kwargs):
     super(Controller, self).__init__(**kwargs)
     self.compute_api = compute.API()
     self.network_api = network.API()
Esempio n. 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
Esempio n. 11
0
 def __init__(self, ext_mgr=None, **kwargs):
     super(Controller, self).__init__(**kwargs)
     self.compute_api = compute.API()
     self.ext_mgr = ext_mgr
Esempio n. 12
0
 def __init__(self):
     self.compute_api = compute.API()
     self.network_api = network.API()
     super(FloatingIPController, self).__init__()
Esempio n. 13
0
 def __init__(self, network_api=None):
     self.compute_api = compute.API()
     self.last_call = {}
Esempio n. 14
0
 def __init__(self):
     super(InstanceActionsController, self).__init__()
     self.compute_api = compute.API()
     self.action_api = compute.InstanceActionAPI()
Esempio n. 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()
Esempio n. 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)
Esempio n. 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())
Esempio n. 18
0
 def __init__(self, *args, **kwargs):
     super(DeferredDeleteController, self).__init__(*args, **kwargs)
     self.compute_api = compute.API()
Esempio n. 19
0
 def __init__(self):
     self.compute_api = compute.API()
Esempio n. 20
0
 def __init__(self):
     self.compute_api = compute.API()
     super(ServerExternalEventsController, self).__init__()
Esempio n. 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()
Esempio n. 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()
Esempio n. 25
0
 def __init__(self):
     self.compute_api = compute.API()
     self.network_api = network.API()
     self.cloudpipe = pipelib.CloudPipe()
     self.setup()
Esempio n. 26
0
 def __init__(self, *args, **kwargs):
     super(ConsoleOutputController, self).__init__(*args, **kwargs)
     self.compute_api = compute.API()
Esempio n. 27
0
 def __init__(self):
     self.compute_api = compute.API()
     self.volume_api = volume.API()
     super(VolumeAttachmentController, self).__init__()
Esempio n. 28
0
 def __init__(self):
     self.compute_api = compute.API()
     self.network_api = network.API()
     super(InterfaceAttachmentController, self).__init__()
Esempio n. 29
0
 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()
Esempio n. 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()