Bug 1327882 - Updating prestarted vms in a pool to the same value may cause powering up of extra vms
Summary: Updating prestarted vms in a pool to the same value may cause powering up of ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Backend.Core
Version: 3.6.5.1
Hardware: Unspecified
OS: Unspecified
low
medium vote
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact: meital avital
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-17 13:47 UTC by sefi litmanovich
Modified: 2022-06-30 08:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-14 13:42:01 UTC
oVirt Team: Virt
sbonazzo: ovirt-4.2-


Attachments (Terms of Use)
engine log (144.24 KB, text/plain)
2016-04-17 13:47 UTC, sefi litmanovich
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-46772 0 None None None 2022-06-30 08:06:51 UTC

Description sefi litmanovich 2016-04-17 13:47:24 UTC
Created attachment 1148067 [details]
engine log

Description of problem:

In automation testing due to a mistake on case setup I created a vm pool with 3 vms and 2 prestarted vms instead of 0. The test case is -> update the vm pool and set prestarted vms to 2. Due to the fact that the automation runs very fast, the update vm pool action was invoked when the 2 prestarted vms were powering up (after creation of the pool) and probably due to some race condition the job that checks the amount of current prestarted vms in the pool did not recognize the vms powering up and invoked the run of the 3rd vm.

I re produced this scenario manually by again creating a vm pool with 3 vms 2 prestarted, and during the 2 vms' powering up called PUT via API:

https://violet-rhel.scl.lab.tlv.redhat.com/ovirt-engine/api/vmpools/{pool_id}

<vmpool>
<prestarted_vms>2</prestarted_vms>
</vmpool>

Version-Release number of selected component (if applicable):
rhevm-3.6.5.3-0.1.el6.noarch

How reproducible:
Sometimes

Steps to Reproduce:
1. Create vm pool with e.g 3 vms and 2 prestarted vms.
2. When the 2 vms are powering up, update the pool and set prestarted vms to 2 (basically not changing anything)

Actual results:
If the update was fast enough, it will invoke the starting up of the 3rd vm in the pool.


Expected results:
Nothing changes in the pool, the 2 prestarted vms are up and the 3rd is down.

Additional info:

Comment 1 Michal Skrivanek 2016-12-21 09:08:47 UTC
The bug was not addressed in time for 4.1. Postponing to 4.2

Comment 2 Tomas Jelinek 2017-07-14 13:42:01 UTC
Closing due to capacity - please feel free to reopen if it is important for your use case.


Note You need to log in before you can comment on or make changes to this bug.