ironic.drivers.modules.storage.noop module

class ironic.drivers.modules.storage.noop.NoopStorage[source]

Bases: ironic.drivers.base.StorageInterface

No-op 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.

Parameters

task – A TaskManager instance.

Returns

Boolean value to indicate if the interface expects the image to be written by Ironic.

Raises

UnsupportedDriverExtension

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)