FS#53179 - Libvirt upgrade deletes /var/lib/libvirt/images/
Attached to Project:
Arch Linux
Opened by Luke Hinds (lhinds) - Monday, 06 March 2017, 14:52 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 06 March 2017, 15:17 GMT
Opened by Luke Hinds (lhinds) - Monday, 06 March 2017, 14:52 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 06 March 2017, 15:17 GMT
|
Details
Description:
libvirt upgrade removes default network, and deletes `/var/lib/libvirt/images` which contains user data. I tried to start a virtual machine using virt-manager (which makes calls into libvirt) and got an error that the image data was no longer available. I found the following in pacman.log [2017-03-05 13:43] [ALPM] error: cannot remove /var/lib/libvirt/images/ (Not a directory) [2017-03-05 13:43] [ALPM] warning: /etc/libvirt/qemu/networks/default.xml installed as /etc/libvirt/qemu/networks/default.xml.pacnew [2017-03-05 13:43] [ALPM] upgraded libvirt (3.0.0-1 -> 3.1.0-1) [2017-03-05 13:43] [ALPM-SCRIPTLET] >>> You may need to run 'rm -rf ~/.libvirt' The `cannot remove /var/lib/libvirt/images/` is from my system using a symlink (as I store my machine images on another drive / path). This meant I did not actually lose any data, however its quite concerning that an upgrade is deleting directories that hold user data. It could be a case that a backup is made first, but that still poses a problem (in case someone uses a link or a different location). Additional info: * libvirt upgrade from 3.0.0-1 -> 3.1.0-1 * config and/or log files etc. Steps to reproduce: Upgrade libvirt from 3.0.0-1 -> 3.1.0-1. |
This task depends upon
Closed by Doug Newgard (Scimmia)
Monday, 06 March 2017, 15:17 GMT
Reason for closing: Not a bug
Additional comments about closing: Dirs with user data will not be deleted
Monday, 06 March 2017, 15:17 GMT
Reason for closing: Not a bug
Additional comments about closing: Dirs with user data will not be deleted