OS API: Filtering the list images request by server using bookmark link does not return the expected results

Bug #912927 reported by Daryl Walleck on 2012-01-06
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Brian Waldon

Bug Description

If I pass a server's bookmark link as the href for the list images call using the server filter, no results are returned. If I use the server's self href, the correct response is returned. Based on the API guide, it seems both should work. Here's an example, where http://localhost:8774/servers/86647760-92f9-4db4-97f5-5c92abb770ce is a valid bookmark link to a server used to create an image:

curl -i -H "X-Auth-Token: 8ad370f6-fe8b-441b-af89-0d08f7e3a898" http://localhost:8774/v1.1/dwalleck-project/images?server=http://localhost:8774/servers/86647760-92f9-4db4-97f5-5c92abb770ce
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 14
Date: Fri, 06 Jan 2012 21:18:00 GMT
Connection: close

{"images": []}

Thierry Carrez (ttx) on 2012-01-13
Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
Brian Waldon (bcwaldon) on 2012-01-13
Changed in nova:
assignee: nobody → Brian Waldon (bcwaldon)
status: Confirmed → Triaged
milestone: none → essex-3
Changed in nova:
status: Triaged → In Progress

Reviewed: https://review.openstack.org/3032
Committed: http://github.com/openstack/nova/commit/6e7e3870a4ca047185ba5e3320d63afaa08357b8
Submitter: Jenkins
Branch: master

commit 6e7e3870a4ca047185ba5e3320d63afaa08357b8
Author: Brian Waldon <email address hidden>
Date: Thu Jan 12 22:50:32 2012 -0800

    Increase robustness of image filtering by server

    * fix bug 912837
    * fix bug 912927
    * filter images based on instance_uuid rather than instance_ref
    * stop adding instance_ref to snapshot properties

    Change-Id: I5eed1611b1e885553d0c91380e414e9476dc251c

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2012-01-25
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in nova:
milestone: essex-3 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers