parse failures of lvs output in locales other than "C"
Bug #1256121 reported by
Marc - A. Dahlhaus
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
holland-backup |
In Progress
|
Critical
|
Andrew Garner |
Bug Description
To test the failure try to use mysqldump-lvm and set your LANG e.g. to de_DE.utf8
In this case the value of vg_name will be filled with the incorrect value of modules which leads to a LookupError when executing blkid on a wrong dev path.
The atteched patch fixes the problem for me :)
summary: |
- parse failures of lvs output in locales othen than "C" + parse failures of lvs output in locales other than "C" |
description: | updated |
To post a comment you must log in.
Thanks for the report and fix. Yeah, I see this comes from -o snap_percent which uses "," as the decimal mark in certain locales and holland also unfortunately uses the ',' as the lvs --separator. I'll make sure this gets added as some sort of regression test.
Forcing the locale is likely safe enough for the lvm commands. However, perhaps fixing the parsing by adjusting the --separator option makes sense here as well (e.g. the equivalent of lvs [options] --separator $'\t')