Creating a volume with XML body fails

Bug #1030330 reported by Chuck Thier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Eoghan Glynn
OpenStack Compute (nova)
Fix Released
Undecided
Eoghan Glynn

Bug Description

When you try to create a volume with an xml body such as:

<?xml version="1.0" encoding="utf-8"?>
<volume xmlns="http://docs.openstack.org/volume/api/v1"
        display_name="vol-001"
        display_description="Another volume."
        size="30"
        volume_type="SATA">
</volume>

The volume api fails with: Invalid input received: Volume size must be an integer and greater than 0

Eoghan Glynn (eglynn)
Changed in nova:
status: New → Confirmed
assignee: nobody → Eoghan Glynn (eglynn)
Eoghan Glynn (eglynn)
Changed in cinder:
status: New → Confirmed
assignee: nobody → Eoghan Glynn (eglynn)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

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

Reviewed: https://review.openstack.org/10538
Committed: http://github.com/openstack/cinder/commit/62af23cff67791781e5851ad83334857752eae36
Submitter: Jenkins
Branch: master

commit 62af23cff67791781e5851ad83334857752eae36
Author: Eoghan Glynn <email address hidden>
Date: Mon Jul 30 16:11:18 2012 +0100

    Allow XML payload for volume creation.

    Fixes cinder aspect of LP 1030330

    Tolerate volume size attribute of type string as opposed to int.

    Change-Id: I8d300a6c23c2e4e92187e26260ce49da35590545

Changed in cinder:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/11358
Committed: http://github.com/openstack/nova/commit/3b6207976a51d33ee2ec701d21fa2a0cc6eca2e8
Submitter: Jenkins
Branch: master

commit 3b6207976a51d33ee2ec701d21fa2a0cc6eca2e8
Author: Eoghan Glynn <email address hidden>
Date: Mon Jul 30 16:23:11 2012 +0100

    Allow XML payload for volume creation.

    Fixes nova-volume aspect of LP 1030330

    Tolerate volume size attribute of type string as opposed to int.

    Change-Id: I7cccb760a246d562792dec1669d634803bb9bc57

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → folsom-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → folsom-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: folsom-3 → 2012.2
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-3 → 2012.2
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.