snapshotted images are missing server refs

Bug #917810 reported by Dan Prince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Dan Prince

Bug Description

Using a recent Essex nova build...

Taking a snapshot of an instance should create an image without a server reference:

Nova now seems to return images without the server ref data:

{"image": {"status": "ACTIVE", "updated": "2012-01-17T19:02:15Z", "name": "holler", "links": [{"href": "http://nova1:8774/v1.1/d1d74cd14f2847e591d9de0a3c1a534c/images/c37bbe27-9e20-4b2e-9139-6b9a522033cb", "rel": "self"}, {"href": "http://nova1:8774/d1d74cd14f2847e591d9de0a3c1a534c/images/c37bbe27-9e20-4b2e-9139-6b9a522033cb", "rel": "bookmark"}, {"href": "http://172.19.0.3:9292/d1d74cd14f2847e591d9de0a3c1a534c/images/c37bbe27-9e20-4b2e-9139-6b9a522033cb", "type": "application/vnd.openstack.image", "rel": "alternate"}], "created": "2012-01-17T19:01:04Z", "minDisk": 20, "progress": 100, "minRam": 2048, "id": "c37bbe27-9e20-4b2e-9139-6b9a522033cb", "metadata": {"image_type": "snapshot", "instance_uuid": "f227e354-0fa7-437a-8a3a-054eb09a054d", "user_id": "bdb1429c084d4368a3e8588cc8e56a61"}}}

Dan Prince (dan-prince)
Changed in nova:
assignee: nobody → Dan Prince (dan-prince)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Brian Waldon (bcwaldon) wrote :

Thanks for catching this, Dan. I introduced this bug in a recent commit of mine that fixed filtering on server in the /images resource. We should just look for instance_uuid instead of instance_ref in the images view builder.

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/3116

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

Reviewed: https://review.openstack.org/3116
Committed: http://github.com/openstack/nova/commit/301bc0ca1a847f921c330dced1d4b1c82946ec55
Submitter: Jenkins
Branch: master

commit 301bc0ca1a847f921c330dced1d4b1c82946ec55
Author: Dan Prince <email address hidden>
Date: Tue Jan 17 16:00:20 2012 -0500

    Set instance_ref property when creating snapshots.

    Fixes LP bug #917810.

    Change-Id: I17c1e467a13075f3952dc6a1b475bc71a8b1d9bc

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