def __init__(self): super(MigrationsController, self).__init__() self.compute_api = compute.API()
def __init__(self, *args, **kwargs): super(AdminActionsController, self).__init__(*args, **kwargs) self.compute_api = compute.API()
def __init__(self): self.compute_api = compute.API() super(HostController, self).__init__()
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)
# 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()
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__()
def __init__(self, **kwargs): super(Controller, self).__init__(**kwargs) self.compute_api = compute.API() self.network_api = network.API()
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
def __init__(self, ext_mgr=None, **kwargs): super(Controller, self).__init__(**kwargs) self.compute_api = compute.API() self.ext_mgr = ext_mgr
def __init__(self): self.compute_api = compute.API() self.network_api = network.API() super(FloatingIPController, self).__init__()
def __init__(self, network_api=None): self.compute_api = compute.API() self.last_call = {}
def __init__(self): super(InstanceActionsController, self).__init__() self.compute_api = compute.API() self.action_api = compute.InstanceActionAPI()
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()
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)
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())
def __init__(self, *args, **kwargs): super(DeferredDeleteController, self).__init__(*args, **kwargs) self.compute_api = compute.API()
def __init__(self): self.compute_api = compute.API()
def __init__(self): self.compute_api = compute.API() super(ServerExternalEventsController, self).__init__()
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()
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()
def __init__(self): self.compute_api = compute.API() self.network_api = network.API() self.cloudpipe = pipelib.CloudPipe() self.setup()
def __init__(self, *args, **kwargs): super(ConsoleOutputController, self).__init__(*args, **kwargs) self.compute_api = compute.API()
def __init__(self): self.compute_api = compute.API() self.volume_api = volume.API() super(VolumeAttachmentController, self).__init__()
def __init__(self): self.compute_api = compute.API() self.network_api = network.API() super(InterfaceAttachmentController, self).__init__()
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()
def __init__(self): self.compute_api = compute.API() self.network_api = network.API() self.auth_manager = manager.AuthManager() self.cloudpipe = pipelib.CloudPipe() self.setup()