holland-coredev team mailing list archive
-
holland-coredev team
-
Mailing list archive
-
Message #00250
[Bug 715426] Re: mysql-lvm does not calculate paths relative to / correctly
** Changed in: holland-backup
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Holland
Build, which is subscribed to holland-backup.
https://bugs.launchpad.net/bugs/715426
Title:
mysql-lvm does not calculate paths relative to / correctly
Status in Holland Backup Framework:
Fix Released
Bug description:
If a mysql datadir is on a LVM enabled / and we attempt to determine
the datadir relative to its (root) mountpoint, we get a bad relative
path:
>>> from holland.lib.lvm.util import relpath
>>> relpath('/var/lib/mysql', '/')
'../var/lib/mysql'
This causes $snapshot_mountpoint/$relpath to be an non-existent
directory for instance /tmp/XXXXX/../var/lib/mysql =>
/tmp/var/lib/mysql/ which is invalid.
This is actually a python bug with os.path.relpath:
http://bugs.python.org/issue5117
To manage notifications about this bug go to:
https://bugs.launchpad.net/holland-backup/+bug/715426/+subscriptions
References