core-admin/qmemman
Marek Marczykowski-Górecki fef8761f01
qmemman: improve check whether VM is still running
In some cases it may happen that qmemman or other application using
xenstore will re-create VM directory in xenstore just after VM was
destroyed. For example when multiple VMs was destroyed at the same time,
but qmemman will kick off just at first @releaseDomain event - other VMs
will still be there (at xenstore-list time). This means that qmemman
will consider them when redistributing memory (of just destroyed one),
so will update memory/target entry of every "running" VM. And at this
point it may recreate VM directory of another already destroyed VM.

Generally fixing this race condition would require running all the
operations (from xenstore-ls, to setting memory/target) in a single
xenstore transaction. But this can be lengthly process. And if any other
modification happens in the meantime, transaction will rejected and
qmemman would need to redo all the changes. Not worth the effort.

Fixes QubesOS/qubes-issues#1409
2015-11-27 20:00:33 +01:00
..
.gitignore Move all files one level up 2013-03-16 19:56:51 +01:00
Makefile Move dispvm+qmemman service files to relevant directories 2014-11-19 12:50:25 +01:00
qmemman_algo.py qmemman: add logging 2015-03-31 20:42:53 +02:00
qmemman_client.py Declare file encoding for all python files, fill missing copyright headers 2014-05-18 21:03:27 +02:00
qmemman_server.py qmemman: improve check whether VM is still running 2015-11-27 20:00:33 +01:00
qmemman.conf Move all files one level up 2013-03-16 19:56:51 +01:00
qmemman.py Merge remote-tracking branch 'origin/pr/7' into HEAD 2015-10-10 05:22:13 +02:00
qubes-qmemman.service Move dispvm+qmemman service files to relevant directories 2014-11-19 12:50:25 +01:00
server.py Declare file encoding for all python files, fill missing copyright headers 2014-05-18 21:03:27 +02:00