An issue was discovered in the ZFSonLinux driver wherein on a system
set to have a locale where the decimal separator is not a period but
rather a comma the method translate_string_size_to_float() would fail
because it's regex to find sizes in strings did not account for any
other decimal separators other than periods.
This fix updates the regular expression to accept either a period or
a comma as a decimal separator in a size string.
Many thanks to Dr. Clemens Hardewig for reporting the original bug
and providing an updated regular expression.
Change-Id: I15da4aaff90814eed03816db013d6acc89ba2ee8
Closes-Bug: #1714691
(cherry picked from commit 8800e54f770c4c4a6f813a5ea72bb12316482d87)
(cherry picked from commit 776015af4000a48640bd0a91f7220b49c18238d9)
Reviewed: https:/ /review. openstack. org/516423 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=d30aff5f480 c4bf3b4cda82c94 b3376793f35bfd
Committed: https:/
Submitter: Zuul
Branch: stable/ocata
commit d30aff5f480c4bf 3b4cda82c94b337 6793f35bfd
Author: Dustin Schoenbrun <email address hidden>
Date: Wed Oct 25 18:00:50 2017 -0400
Fix issue with different decimal separators
An issue was discovered in the ZFSonLinux driver wherein on a system string_ size_to_ float() would fail
set to have a locale where the decimal separator is not a period but
rather a comma the method translate_
because it's regex to find sizes in strings did not account for any
other decimal separators other than periods.
This fix updates the regular expression to accept either a period or
a comma as a decimal separator in a size string.
Many thanks to Dr. Clemens Hardewig for reporting the original bug
and providing an updated regular expression.
Change-Id: I15da4aaff90814 eed03816db013d6 acc89ba2ee8 a6f813a5ea72bb1 2316482d87) 640bd0a91f7220b 49c18238d9)
Closes-Bug: #1714691
(cherry picked from commit 8800e54f770c4c4
(cherry picked from commit 776015af4000a48