]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vz: delete domains when undefine is called
authorMaxim Nestratov <mnestratov@virtuozzo.com>
Tue, 22 Dec 2015 15:29:38 +0000 (18:29 +0300)
committerDmitry Guryanov <dguryanov@localhost.localdomain>
Thu, 24 Dec 2015 11:20:56 +0000 (14:20 +0300)
commitb733739416390d36da37e73bf2e5187b90031608
treec9882992a476d40c6ba7b816b66f667ca0799862
parentd5a0cf10bcc2088420c6c29545a69fd613f1cc4f
vz: delete domains when undefine is called

Currently vz driver unregisters domains when undefine is called,
which is wrong because it contradicts with expected behavior.
All vz domains are persistent, which means that when one is
defined a new bundle directory containing meta data is created.
Undefining domains in a way we do now leaves those directories
undeleted, which prevents subsequent define call for the same
domain xml. I.e. the following sequence define->undefine->define
doesn't work now.
The patch fixes the problem by calling PrlVm_Delete instead of
PrlVm_Unreg detaching all disks prior actually doing this to
prevent images deletion.

Signed-off-by: Maxim Nestratov <mnestratov@virtuozzo.com>
src/vz/vz_sdk.c