Bases: cinder.flow_utils.CinderTask
Creates an entry for the given volume creation in the database.
Reversion strategy: remove the volume_id created from the database.
Creates a database entry for the given inputs and returns details.
Accesses the database and creates a new entry for the to be created volume using the given volume properties which are extracted from the input kwargs (and associated requirements this task needs). These requirements should be previously satisfied and validated by a pre-cursor task.
Bases: cinder.flow_utils.CinderTask
Processes an api request values into a validated set of values.
This tasks responsibility is to take in a set of inputs that will form a potential volume request and validates those values against a set of conditions and/or translates those values into a valid set and then returns the validated/translated values for use by other tasks.
Reversion strategy: N/A
Bases: cinder.flow_utils.CinderTask
Commits the reservation.
Reversion strategy: N/A (the rollback will be handled by the task that did the initial reservation (see: QuotaReserveTask).
Warning Warning: if the process that is running this reserve and commit process fails (or is killed before the quota is rolled back or committed it does appear like the quota will never be rolled back). This makes software upgrades hard (inflight operations will need to be stopped or allowed to complete before the upgrade can occur). In the future when taskflow has persistence built-in this should be easier to correct via an automated or manual process.
Bases: cinder.flow_utils.CinderTask
Reserves a single volume with the given size & the given volume type.
Reversion strategy: rollback the quota reservation.
Warning Warning: if the process that is running this reserve and commit process fails (or is killed before the quota is rolled back or committed it does appear like the quota will never be rolled back). This makes software upgrades hard (inflight operations will need to be stopped or allowed to complete before the upgrade can occur). In the future when taskflow has persistence built-in this should be easier to correct via an automated or manual process.
Bases: cinder.flow_utils.CinderTask
Performs a volume create cast to the scheduler or to the volume manager.
This will signal a transition of the api workflow to another child and/or related workflow on another component.
Reversion strategy: rollback source volume status and error out newly created volume.
Constructs and returns the api entrypoint flow.
This flow will do the following: