Bug 1195558
Summary: | when a recipe has <reservesys/> and at least one task has completed, cancelling it reserves the system instead of cancelling | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | Dan Callaghan <dcallagh> |
Component: | scheduler | Assignee: | Dan Callaghan <dcallagh> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 19 | CC: | aigao, dcallagh, dowang, ebaak |
Target Milestone: | 21.0 | Keywords: | Patch |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-08-26 06:17:29 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Dan Callaghan
2015-02-24 04:58:08 UTC
Failing test case: index 9a41bf7..c7bcb8b 100644 --- a/IntegrationTests/src/bkr/inttest/server/test_update_status.py +++ b/IntegrationTests/src/bkr/inttest/server/test_update_status.py @@ -206,12 +206,14 @@ def test_recipe_running_then_cancelled(self): """ with session.begin(): recipe = data_setup.create_recipe( - task_list=[Task.by_name(u'/distribution/install')], + task_list=[Task.by_name(u'/distribution/install')] * 2, reservesys=True) job = data_setup.create_job_for_recipes([recipe]) job_id = job.id data_setup.mark_recipe_running(recipe) - job._mark_dirty() + data_setup.mark_recipe_installation_finished(recipe) + job.recipesets[0].recipes[0].tasks[0].stop() + job.recipesets[0].recipes[0].tasks[1].start() beakerd.update_dirty_jobs() with session.begin(): job = Job.by_id(job_id) Bug 714937 should solve this bug for free (the problem happens because Completed is "lower severity" than Cancelled and hence the min_status in update_status is Completed instead of Cancelled in this case). Test case only (this is fixed by bug 714937): http://gerrit.beaker-project.org/4190 Beaker 21.0 has been released. |