]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fixing mount when state_path is configured with a final '/'
authorRushil Chugh <rushil@netapp.com>
Thu, 5 Mar 2015 22:16:26 +0000 (17:16 -0500)
committerRushil Chugh <rushil@netapp.com>
Tue, 17 Mar 2015 17:23:15 +0000 (17:23 +0000)
commitea2d255be4369b4f63312f371da4bb169859044d
tree6db6d1a812d2173d3b5da564fb39de9920004fc3
parent33b885381640861cc1fa3af65e95fc0cf619c9f0
Fixing mount when state_path is configured with a final '/'

If state_path variable is configured with a final '/' on path, then
mount_path variable is created with wrong syntax. This causes
a failure when the c-vol process tries to mount the filesystem.

This patch proposes to fix the aforementioned problem by checking
the validity of the mount point and fixing the mount point in case
it has an incorrect value.

Closes-bug: 1425551

Change-Id: I9fe50fe07953fb5e94da467a7446528e5030e41b
cinder/tests/test_nfs.py
cinder/tests/volume/drivers/netapp/dataontap/test_nfs_base.py
cinder/volume/drivers/nfs.py