NFS driver breaks if volume name contains spaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Anton Frolov |
Bug Description
The NFS driver mounts volumes whose names contain spaces, but fails when it tries to parse "df" output for them. I assume this isn't common but it appears to be supported by NFS.
$ cat /etc/cinder/
192.168.
2013-05-16 16:47:19 DEBUG [cinder.utils] Running cmd (subprocess): sudo cinder-rootwrap /etc/cinder/
2013-05-16 16:47:19 ERROR [cinder.service] Unhandled exception
Traceback (most recent call last):
File "/opt/stack/
self.
File "/opt/stack/
launcher.
File "/opt/stack/
server.start()
File "/opt/stack/
self.
File "/opt/stack/
self.
File "/opt/stack/
self.
File "/opt/stack/
volume_stats = self.driver.
File "/opt/stack/
self.
File "/opt/stack/
free, capacity = self._get_
File "/opt/stack/
size = int(out.split()[1])
ValueError: invalid literal for int() with base 10: 'volume'
2013-05-16 16:47:19 INFO [cinder.service] Child 4873 exited with status 2
2013-05-16 16:47:19 INFO [cinder.service] _wait_child 1
2013-05-16 16:47:19 INFO [cinder.service] wait wrap.failed True
$ sudo cinder-rootwrap /etc/cinder/
Filesystem 1-blocks Used Available Capacity Mounted on
192.168.
Changed in cinder: | |
status: | New → Confirmed |
Changed in cinder: | |
milestone: | none → havana-2 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | havana-2 → 2013.2 |
I also noticed this while working on https:/ /review. openstack. org/#/c/ 29323 .
Since this bug involves reworking the way NFS shares are configured, my suggestion is that this be taken up as part of an effort to get rid of the separate nfs_shares config file and move NFS configuration into cinder.conf. (All of this applies the same for the GlusterFS driver.)