提交 f81800cf 编写于 作者: D Daniel P. Berrange 提交者: Cole Robinson

Don't autostart domains when reloading config

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: NDaniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 95c2c19f)
上级 d4ffc36f
...@@ -2687,8 +2687,6 @@ lxcReload(void) { ...@@ -2687,8 +2687,6 @@ lxcReload(void) {
lxcNotifyLoadDomain, lxc_driver); lxcNotifyLoadDomain, lxc_driver);
lxcDriverUnlock(lxc_driver); lxcDriverUnlock(lxc_driver);
lxcAutostartConfigs(lxc_driver);
return 0; return 0;
} }
......
...@@ -783,8 +783,6 @@ qemudReload(void) { ...@@ -783,8 +783,6 @@ qemudReload(void) {
qemudNotifyLoadDomain, qemu_driver); qemudNotifyLoadDomain, qemu_driver);
qemuDriverUnlock(qemu_driver); qemuDriverUnlock(qemu_driver);
qemuAutostartDomains(qemu_driver);
return 0; return 0;
} }
......
...@@ -553,8 +553,6 @@ umlReload(void) { ...@@ -553,8 +553,6 @@ umlReload(void) {
umlNotifyLoadDomain, uml_driver); umlNotifyLoadDomain, uml_driver);
umlDriverUnlock(uml_driver); umlDriverUnlock(uml_driver);
umlAutostartConfigs(uml_driver);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册