creating volume with size 0 get wrong error in v2

Bug #1454276 reported by Anton Arefiev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-cinderclient
Fix Released
Undecided
Anton Arefiev

Bug Description

When I try create volume with size 0 using api v2, I get error:
Size is a required parameter if snapshot or source volume is not specified.

expected:
Invalid input received: Volume size '0' must be an integer and greater than 0

Anton Arefiev (aarefiev)
Changed in python-cinderclient:
assignee: nobody → Anton Arefiev (aarefiev)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-cinderclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/182344

Changed in python-cinderclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-cinderclient (master)

Reviewed: https://review.openstack.org/182344
Committed: https://git.openstack.org/cgit/openstack/python-cinderclient/commit/?id=9cd42ef3ee5e8b386cb6e1941b39608ed216a04f
Submitter: Jenkins
Branch: master

commit 9cd42ef3ee5e8b386cb6e1941b39608ed216a04f
Author: Anton Arefiev <email address hidden>
Date: Tue May 12 17:42:10 2015 +0300

    Fix condition in CheckSizeArgForCreate parser action

    CheckSizeArgForCreate checks that size is specified when snapshot
    or source volume aren't. But when size is 0, CheckSizeArgForCreate
    action works wrong and generates error: 'Size is a required
    parameter if snapshot or source volume is not specified', meanwhile
    user expected to see: 'Volume size '0' must be greater than 0'.

    Change-Id: I164970a600d6e86bd7076dd485f676a703f5e487
    Closes-Bug: #1454276

Changed in python-cinderclient:
status: In Progress → Fix Committed
Mike Perez (thingee)
Changed in python-cinderclient:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.