server details view can include empty string image

Bug #1491244 reported by Yasu Nakamura
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Wishlist
Unassigned

Bug Description

When image ref is not specified (like boot from cinder volume image), server details view returns empty string as image.
image value should be empty dictionary.

Currently when users with strong type system receive string, their system cannot handle this correctly.

http://git.openstack.org/cgit/openstack/nova/tree/nova/api/openstack/compute/views/servers.py#n220
this line should "return {}"

Tags: api
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :
Revision history for this message
Yasu Nakamura (yasuyuki-nakamura-3) wrote :

oops, sorry it has been already mentioned in codes.

Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

As dims already pointed out, alex_xu has left a TODO note in the code, that's why I confirm this bug. I notified alex_xu in the nova channel, maybe he already has an open patch set for that.

Changed in nova:
status: New → Confirmed
tags: added: api
Revision history for this message
Alex Xu (xuhj) wrote :

@Markus, thanks, this is something we can fix. But I think it more about API consistent. I'm not sure we will accept this kind of fix. If somebody want to fix, an nova spec can be submit, then let's discussion that.

Changed in nova:
importance: Undecided → Low
importance: Low → Wishlist
Changed in nova:
assignee: nobody → Rahul U Nair (rahulunair)
assignee: Rahul U Nair (rahulunair) → nobody
Uday Swami (swamius)
Changed in nova:
assignee: nobody → Uday Swami (swamius)
Sean Dague (sdague)
Changed in nova:
assignee: Uday Swami (swamius) → nobody
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.