Ask Your Question
0

Error during VolumeManager._report_driver_status: ValueError: could not convert string to float

asked 2017-10-10 00:50:15 -0500

michelgokan3 gravatar image

Hi,

I'm having trouble creating an instance (openstack server create --flavor small --image cirros provider-instance12240 ) My cinder node's log return such errors and the instance is being created with status "error" (actually not being created):

    2017-10-09 11:51:31.217 28575 ERROR oslo_service.periodic_task [req-91afe765-fcd7-4ba2-92da-299dc9c7f380 - - - - -] Error during VolumeManager._report_driver_status: ValueError: could not convert string to float:
2017-10-09 11:51:31.217 28575 ERROR oslo_service.periodic_task Traceback (most recent call last):
2017-10-09 11:51:31.217 28575 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/oslo_service/periodic_task.py", line 220, in run_periodic_tasks
2017-10-09 11:51:31.217 28575 ERROR oslo_service.periodic_task     task(self, context)
2017-10-09 11:51:31.217 28575 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 2361, in _report_driver_status
2017-10-09 11:51:31.217 28575 ERROR oslo_service.periodic_task     volume_stats = self.driver.get_volume_stats(refresh=True)
2017-10-09 11:51:31.217 28575 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py", line 577, in get_volume_stats
2017-10-09 11:51:31.217 28575 ERROR oslo_service.periodic_task     self._update_volume_stats()
2017-10-09 11:51:31.217 28575 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py", line 212, in _update_volume_stats
2017-10-09 11:51:31.217 28575 ERROR oslo_service.periodic_task     self.vg.update_volume_group_info()
2017-10-09 11:51:31.217 28575 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/cinder/brick/local_dev/lvm.py", line 466, in update_volume_group_info
2017-10-09 11:51:31.217 28575 ERROR oslo_service.periodic_task     self.vg_thin_pool)
2017-10-09 11:51:31.217 28575 ERROR oslo_service.periodic_task   File "/usr/lib/python2.7/dist-packages/cinder/brick/local_dev/lvm.py", line 180, in _get_thin_pool_free_space
2017-10-09 11:51:31.217 28575 ERROR oslo_service.periodic_task     data_percent = float(data[1])
2017-10-09 11:51:31.217 28575 ERROR oslo_service.periodic_task ValueError: could not convert string to float:
2017-10-09 11:51:31.217 28575 ERROR oslo_service.periodic_task

my /etc/cinder/cinder.conf as follows:

[DEFAULT]
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_confg = /etc/cinder/api-paste.ini
iscsi_helper = tgtadm
volume_name_template = volume-%s
volume_group = cinder-volumes
verbose = True
auth_strategy = keystone
state_path = /var/lib/cinder
lock_path = /var/lock/cinder
volumes_dir = /var/lib/cinder/volumes
enabled_backends = lvm
transport_url = rabbit://openstack:root@controller
my_ip = 192.168.181.130
glance_api_servers = http://controller:9292

[database]
connection = mysql+pymysql://cinder:root@controller/cinder

[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = cinder
password = root

Any ideas why I get such strange error?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-10-17 04:50:10 -0500

michelgokan3 gravatar image

No worries, reinstalled everything correctly and its been fixed. Very wrong configuration during installation. My bad!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-10-09 13:46:36 -0500

Seen: 21 times

Last updated: Oct 17