# octavia.volume package

## Subpackages

- octavia.volume.drivers package
  - Subpackages
    - octavia.volume.drivers.noop_driver package
      - Submodules
      - octavia.volume.drivers.noop_driver.driver module
      - Module contents
  - Submodules
  - octavia.volume.drivers.cinder_driver module
    - `VolumeManager`
      - `VolumeManager.create_volume_from_image()`
      - `VolumeManager.delete_volume()`
      - `VolumeManager.get_image_from_volume()`
      - `VolumeManager.validate_availability_zone()`
  - Module contents

## Submodules

## octavia.volume.volume_base module

class VolumeBase

  Bases: `object`

  abstractmethod create_volume_from_image(image_id, availability_zone=None)

    Create volume for instance

    Parameters:

      - image_id – ID of amphora image

      - availability_zone – Availability zone data dict

    :return volume id

  abstractmethod delete_volume(volume_id)

    Delete volume

    Parameters:

      volume_id – ID of amphora volume

  abstractmethod get_image_from_volume(volume_id)

    Get cinder volume

    Parameters:

      volume_id – ID of amphora volume

    :return image id

  abstractmethod validate_availability_zone(availability_zone)

    Validates that a volume availability zone exists.

    Parameters:

      availability_zone – Name of the availability zone to lookup.

    Returns:

      None

    Raises:

      NotFound

    Raises:

      NotImplementedError

## Module contents

this page last updated: 2025-10-06 11:22:08

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug