Inconsistent "image" value on _get_image()

Bug #1262039 reported by huangtianhua
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
huangtianhua

Bug Description

1. Create a server from a image, then show the server details, the "image" is a dict, such as:
          {
                "id": image_id,
                "links": [{
                    "rel": "bookmark",
                    "href": bookmark,
                }],
            }

2. Create a server from a volume, then show the server details, the "image" is a dict, such as:
        ""

3. It's inconsistent "image" value, i think it's a bug.

Changed in nova:
assignee: nobody → huangtianhua (huangtianhua)
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/62807

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

Reviewed: https://review.openstack.org/62807
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=48a20d85cb9ef91c48f681c76fc6ca7512eccfbc
Submitter: Jenkins
Branch: master

commit 48a20d85cb9ef91c48f681c76fc6ca7512eccfbc
Author: huangtianhua <email address hidden>
Date: Wed Dec 18 12:19:31 2013 +0800

    Fix inconsistent "image" value on _get_image()

    The type of "image" value is different on showing details of a server,
    such as:
    1. It's a dict while creating a server from a image
    2. It's a empty string while creating a server from a volume

    We should modify the type to dict, otherwise someone who call
    the api will be confused about the value or can't parse the value
    in the same way.

    The patch just modifies the v3 api.

    Change-Id: I0d7ce59f64adec0933353af58dc5b5170390674b
    Closes-Bug: #1262039

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
milestone: none → icehouse-2
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-2 → 2014.1
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.