]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Don't autostart domains when reloading config
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 13 Jul 2012 11:49:55 +0000 (12:49 +0100)
committerCole Robinson <crobinso@redhat.com>
Sun, 12 Aug 2012 23:23:51 +0000 (19:23 -0400)
When sending SIGHUP to libvirtd, it will trigger the virStateDriver
reload operation. This is intended to reload the configuration files
for guests. For unknown historical reasons this is also triggering
autostart of all guests. Autostart is generally expected to be
something that happens on OS startup. Starting VMs on SIGHUP will
violate that expectation and potentially cause dangerous scenarios
if the admin has explicitly shutdown a misbehaving VM that has
been marked as autostart

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 95c2c19f06298a6e93849d9a5da8161460c33f43)

src/lxc/lxc_driver.c
src/qemu/qemu_driver.c
src/uml/uml_driver.c

index 36dd1c512622e4edf3b7652e4d10c8f6b3c06689..fcdf6eb625a5943fb1ab02b6d454239488b51fcf 100644 (file)
@@ -2687,8 +2687,6 @@ lxcReload(void) {
                             lxcNotifyLoadDomain, lxc_driver);
     lxcDriverUnlock(lxc_driver);
 
-    lxcAutostartConfigs(lxc_driver);
-
     return 0;
 }
 
index 0286e16562e1800c8ee52510c7494ae573acda51..26515d74b7aca52dcea104a616ac8bfc92c1cd6f 100644 (file)
@@ -783,8 +783,6 @@ qemudReload(void) {
                             qemudNotifyLoadDomain, qemu_driver);
     qemuDriverUnlock(qemu_driver);
 
-    qemuAutostartDomains(qemu_driver);
-
     return 0;
 }
 
index 26fc13b3d7d265ffb7a5bf7a419ccc908ed621a1..8f300f01da235dd6ef8393eb76d4370ed27680c1 100644 (file)
@@ -553,8 +553,6 @@ umlReload(void) {
                             umlNotifyLoadDomain, uml_driver);
     umlDriverUnlock(uml_driver);
 
-    umlAutostartConfigs(uml_driver);
-
     return 0;
 }