"nova rebuild" fails because there is a mismatch between what is sent by the api (int) and what the libvirt connection expects (string)

Bug #889164 reported by David Subiros Perez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
David Subiros Perez
Diablo
Fix Released
Undecided
Unassigned

Bug Description

"nova rebuild" fails because there is a mismatch between what is sent by the api (int) and what the libvirt connection expects (string)

in nova.virt.libvirt.connection there is a call to sha1(), which passes as parameter disk_images['image_id']. If this parameter is a int (this is the case when we execute nova rebuild), sha1 throws an exception, and the rebuild command fails.

Revision history for this message
David Subiros Perez (david-perez5) wrote :

submitted a fix for this bug.

description: updated
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/1549
Committed: http://github.com/openstack/nova/commit/17ae2d2662ca9af6eee0cf96fe48d3951593dc6b
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit 17ae2d2662ca9af6eee0cf96fe48d3951593dc6b
Author: David Subiros <email address hidden>
Date: Tue Oct 4 13:12:40 2011 +0100

    fix rebuild sha1 not string error

    fixes bug #889164
    The sha1() parameter is converted to a string
    before calling the funcion.

    Change-Id: I9cb6ff43c106c214e027d3bdacb795b4b0269f94

Changed in nova:
status: New → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → essex-2
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/diablo)

Reviewed: https://review.openstack.org/2178
Committed: http://github.com/openstack/nova/commit/ce4ea1f35c2d73b644498f4f06b46c75abd9b08d
Submitter: Jenkins
Branch: stable/diablo

commit ce4ea1f35c2d73b644498f4f06b46c75abd9b08d
Author: David Subiros <email address hidden>
Date: Tue Oct 4 13:12:40 2011 +0100

    fix rebuild sha1 not string error

    fixes bug #889164
    The sha1() parameter is converted to a string
    before calling the funcion.

    (cherry picked from commit 17ae2d2662ca9af6eee0cf96fe48d3951593dc6b)

    Change-Id: I9cb6ff43c106c214e027d3bdacb795b4b0269f94

tags: added: in-stable-diablo
Mark McLoughlin (markmc)
Changed in nova:
assignee: nobody → David Subiros Perez (david-perez5)
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-2 → 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.