ironic.drivers.modules.storage.external module¶
- class ironic.drivers.modules.storage.external.ExternalStorage(*args, **kwargs)[source]¶
- Bases: - StorageInterface- Externally driven Storage Interface. - attach_volumes(task)[source]¶
- Informs the storage subsystem to attach all volumes for the node. - Parameters:
- task – A TaskManager instance. 
- Raises:
- UnsupportedDriverExtension 
 
 - detach_volumes(task)[source]¶
- Informs the storage subsystem to detach all volumes for the node. - Parameters:
- task – A TaskManager instance. 
- Raises:
- UnsupportedDriverExtension 
 
 - get_properties()[source]¶
- Return the properties of the interface. - Returns:
- dictionary of <property name>:<property description> entries. 
 
 - should_write_image(task)[source]¶
- Determines if deploy should perform the image write-out. - This enables the user to define a volume and Ironic understand that the image may already exist and we may be booting to that volume. - Parameters:
- task – The task object. 
- Returns:
- True if the deployment write-out process should be executed. 
 
 - validate(task)[source]¶
- Validate the driver-specific Node deployment info. - This method validates whether the ‘driver_info’ and/or ‘instance_info’ properties of the task’s node contains the required information for this interface to function. - This method is often executed synchronously in API requests, so it should not conduct long-running checks. - Parameters:
- task – A TaskManager instance containing the node to act on. 
- Raises:
- InvalidParameterValue on malformed parameter(s) 
- Raises:
- MissingParameterValue on missing parameter(s) 
 
 
