float conversion ValueError on localized values

Bug #1221226 reported by Yves-Gwenael Bourhis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
New
Undecided
Unassigned

Bug Description

There is a missing .replace(',', '.') in cinder/volume/drivers/lvm.py line 690

Indeed cinder volume fails with the following backtrace:

2013-09-05 15:31:21.535 ERROR cinder.service [req-e0747443-17a0-4cb5-9d65-43a8b90ee917 None None] Unhandled exception
2013-09-05 15:31:21.535 TRACE cinder.service Traceback (most recent call last):
2013-09-05 15:31:21.535 TRACE cinder.service File "/opt/stack/cinder/cinder/service.py", line 228, in _start_child
2013-09-05 15:31:21.535 TRACE cinder.service self._child_process(wrap.server)
2013-09-05 15:31:21.535 TRACE cinder.service File "/opt/stack/cinder/cinder/service.py", line 205, in _child_process
2013-09-05 15:31:21.535 TRACE cinder.service launcher.run_server(server)
2013-09-05 15:31:21.535 TRACE cinder.service File "/opt/stack/cinder/cinder/service.py", line 96, in run_server
2013-09-05 15:31:21.535 TRACE cinder.service server.start()
2013-09-05 15:31:21.535 TRACE cinder.service File "/opt/stack/cinder/cinder/service.py", line 385, in start
2013-09-05 15:31:21.535 TRACE cinder.service self.manager.init_host()
2013-09-05 15:31:21.535 TRACE cinder.service File "/opt/stack/cinder/cinder/volume/manager.py", line 192, in init_host
2013-09-05 15:31:21.535 TRACE cinder.service self.publish_service_capabilities(ctxt)
2013-09-05 15:31:21.535 TRACE cinder.service File "/opt/stack/cinder/cinder/volume/manager.py", line 756, in publish_service_capabilities
2013-09-05 15:31:21.535 TRACE cinder.service self._report_driver_status(context)
2013-09-05 15:31:21.535 TRACE cinder.service File "/opt/stack/cinder/cinder/volume/manager.py", line 748, in _report_driver_status
2013-09-05 15:31:21.535 TRACE cinder.service volume_stats = self.driver.get_volume_stats(refresh=True)
2013-09-05 15:31:21.535 TRACE cinder.service File "/opt/stack/cinder/cinder/volume/drivers/lvm.py", line 669, in get_volume_stats
2013-09-05 15:31:21.535 TRACE cinder.service self._update_volume_stats()
2013-09-05 15:31:21.535 TRACE cinder.service File "/opt/stack/cinder/cinder/volume/drivers/lvm.py", line 690, in _update_volume_stats
2013-09-05 15:31:21.535 TRACE cinder.service data['free_capacity_gb'] = float(self.vg.vg_free_space)
2013-09-05 15:31:21.535 TRACE cinder.service ValueError: invalid literal for float(): 10,01

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.