DeferredDelete extension doesn't have API Sample Tests to Documentation

Bug #1070157 reported by Mauro S M Rodrigues
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Yolanda Robla

Bug Description

DeferredDelete extension lacks API Samples tests.

Please take a look into the related blueprint (https://blueprints.launchpad.net/nova/+spec/nova-api-samples) to get to know the actions to fix this bug.

summary: - DeferredDelete extension doesn't have API Sample Tests and Documentation
+ DeferredDelete extension doesn't have API Sample Tests to Documentation
Changed in nova:
status: New → Confirmed
importance: Undecided → Low
Changed in nova:
assignee: nobody → Yolanda Robla (yolanda.robla)
Revision history for this message
Yolanda Robla (yolanda.robla) wrote :

I'm having a problem, i get this error HTTP exception thrown: Cannot 'forceDelete' while instance is in vm_state active

I guess that vm_state needs to be changed, to deleted by some way, but don't know how. If i trigger a delete of the server before the call, it's deleted at the moment and then the call is returning a not found. How can i handle this?

Revision history for this message
Yaguang Tang (heut2008) wrote :

you may need to set the reclaim_instance_interval flag to be greate than 0 in test setUp method ,so that you can get the vm_state
 to be changed .
see /nova/tests/integrated/test_servers.py test_deferred_delete as an example.

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

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
Yolanda Robla (yolanda.robla) wrote :

I submitted the patch. But tests for my class are working, general tests aren't.
That error is thrown: http://logs.openstack.org/16754/3/check/gate-nova-python26/10025/

Any help with that? Are my calls causing these tests to fail in some way?

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

Reviewed: https://review.openstack.org/16754
Committed: http://github.com/openstack/nova/commit/25325153ae0172082369ea03dfbeddc4c35e473b
Submitter: Jenkins
Branch: master

commit 25325153ae0172082369ea03dfbeddc4c35e473b
Author: Yolanda Robla <email address hidden>
Date: Thu Nov 22 09:22:34 2012 +0000

    Added sample tests to deferred delete API.

    Partially implements blueprint nova-api-samples
    Fixes bug 1070157

    Change-Id: Icd6c743b842a7986bbc0a21c5dc62fbceda488bf

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