Skip to content

Error handling for Idempotency. #24

Closed
@chhsia0

Description

@chhsia0

CreateVolume: When a volume with the specified name exists, do we return a success or a VOLUME_ALREADY_EXISTS error? If the latter, should we add a VolumeInfo in CreateVolumeError?

DeleteVolume: When the volume does not exist, do we return a success or a VOLUME_DOES_NOT_EXIST error?

ControllerPublishVolume: When a volume is published to the same node, do we return a success or an error? If the latter, what error code should we use, and should we add a PublishVolumeInfo into ControllerPublishVolumeError?

ControllerUnpublishVolume: When a volume is already unpublished from the same node, do we return a success or an error? If the latter, what error code should we use?

NodePublishVolume: When a volume is publish to the same path, do we return a success or an error? If the latter, what error code should we use?

NodeUnpublishVolume: When a volume is unpublished from the same path, do we return a success or an error? If the latter, what error code should we use?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions