Volume with NULL volume_type encoded as "None"

Bug #1072237 reported by Brian Waldon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Invalid
Undecided
Sathish Nagappan

Bug Description

Create a volume without specifying a volume_type. If you do a subsequent GET on that volume, the volume_type will be presented as "None" rather than null:

{
    "volumes": [
        {
            "attachments": [],
            "availability_zone": "nova",
            "created_at": "2012-10-27T23:03:41.000000",
            "display_description": null,
            "display_name": null,
            "id": "de86d99e-24fc-42d1-aa58-06c614a98f8b",
            "metadata": {},
            "size": 3,
            "snapshot_id": null,
            "status": "available",
            "volume_type": "None"
        }
    ]
}

James King (jking-6)
Changed in cinder:
status: New → Confirmed
Changed in cinder:
assignee: nobody → Sathish Nagappan (sathish-nagappan)
tags: added: low-hanging-fruit
Changed in cinder:
status: Confirmed → Invalid
Revision history for this message
Huang Zhiteng (zhiteng-huang) wrote :

Brian, this is expected behavior. I think Clay's patch here may contribute to what you have seen: https://review.openstack.org/#/c/15145/

Revision history for this message
Brian Waldon (bcwaldon) wrote :

It appears this was actually fixed as I suggested:

{"volume": {"status": "creating", "availability_zone": null, "display_description": null, "snapshot_id": null, "user_id": null, "size": 1, "display_name": null, "imageRef": null, "attach_status": "detached", "volume_type": null, "project_id": null, "metadata": {}}}

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.