OpenStack Compute (Nova)

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

Reported by David Subiros Perez on 2011-11-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Undecided
David Subiros Perez
Diablo
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.

submitted a fix for this bug.

description: updated

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) on 2011-12-14
Changed in nova:
milestone: none → essex-2
status: Fix Committed → Fix Released

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) on 2012-04-03
Changed in nova:
assignee: nobody → David Subiros Perez (david-perez5)
Thierry Carrez (ttx) on 2012-04-05
Changed in nova:
milestone: essex-2 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers