-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Users Allocation to PoolVM remains even after VM detachment/deletion #179
Comments
@ahadas can you please triage? |
@sandrobonazzola @ahadas @Arrakaij let's re-open this issue under web-ui project and continue the discussion there. |
opened oVirt/ovirt-web-ui#1574 |
Great, thanks Sharon - I suspected this might be a web-ui issue but didn't want to move before giving it some more thought |
closing this issue as duplicate of oVirt/ovirt-web-ui#1574 then, thanks. |
Good Evening
When a user logs in to VM-Portal and requests a VM from a Pool, this assignment remains even after the according VM gets shutdown, detached or deleted, resulting in unexpected (from a user point of view 'weird') behaviour. In case of deletion of the attached VM, oVirt tries to start the non-existing VM. After some time the attachment to a specific VM gets lost and everything works again as normal; However, even in a normal production enviroment this may result in some unwanted behaviour.
See additional info for other problems and my thoughts on solutions
Engine Version: Version 4.4.10.7-1.el8
Cluster Comb. Level: 4.6
Steps to Reproduce:
Actual results:
The System requests the non-existing VM from the Pool, resulting in an error
Expected results:
The System requests any functioning VM.
Additional info:
Another - for us - unwanted scenario: The User wants to get a fresh VM.
He shuts down his VM; After that the user can request a new VM from the Pool. But instead of oVirt giving any already prepared VMs, the user gets the same VM he had before - and now he has to sit through all the sysprep work that is done when a VM from the pool is setup. This maybe wanted, but it can be painful.
Feature enhancement request:
Solutions i thought about. They are not mutually exclusive, all of them would be nice.
1)
Let the API have a function "deallocateVm" similar to "allocateVm" ( http://ovirt.github.io/ovirt-engine-api-model/4.5/#services/vm_pool ) It removes the allocation between user and vm and guarantees a fresh start. The function may have a parameter on what to do with the VM is attached to (shutdown, restart, ...)
This way any software can force a deallocation (And the WebUI should have that option then)
2) I know the behavior can be wanted, so add an Parameter to a Pool, an "User Allocation Policy", which could be:
[The Bind to User settings may have a timeout that deletes the binding when the user was absent for a certain period of time)
The text was updated successfully, but these errors were encountered: