[Pkg-ganeti-devel] Bug#834432: ganeti-2.12: Can not start Xen VMs when /etc an /var are different partitions

Matthias Krügl matthias at rbg.informatik.tu-darmstadt.de
Mon Aug 15 15:47:56 UTC 2016


Package: ganeti-2.12
Version: 2.12.4-1+deb8u3
Severity: important

We only noticed this bug after the latest Xen upgrades (that is 4.4.1-9+deb8u5
-> 4.4.1-9+deb8u6), however this upgrade may be unrelated to our issue.

When starting a Xen VM with ganeti, at some point the config file for the VM is
moved from /etc/xen/VMCONFIGFILE to /var/log/ganeti/xen/VMCONFIGFILE-TIMESTAMP.
For this move, python os.rename() is used. When /etc and /var are different
partitions, this call is bound to fail with an "[Errno 18] Invalid cross-device
link".
Instead, it is possible to use python shutil.move(), which handles cross-
partition moves different.

For our setup the following patch was sufficient, since it is not the only call
to os.rename() it might not cover the bug completely.

/usr/share/ganeti/2.12/ganeti/utils/io.py
410c410,411
<     return os.rename(old, new)
---
>     return shutil.move(old, new)



-- System Information:
Debian Release: 8.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.7-ckt25-2+deb8u3
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)



More information about the Pkg-ganeti-devel mailing list