]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
SMBFS: Fix missing volume provider location
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 27 Mar 2015 11:42:22 +0000 (13:42 +0200)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 27 Mar 2015 11:42:22 +0000 (13:42 +0200)
commit6b78f47bb0e51323a9b2b4df72abf11cce60e396
tree2ebe77b1e69b33cb87c093a2405b89355c81a018
parent20e13692b977c846bd4a621cfe0c66c9c2abb52e
SMBFS: Fix missing volume provider location

In case of cloning volumes or creating volumes from snapshots, the
volume provider location is not set, making the volumes unusable.

This also leads to disk image leaks, because the delete volume
operation will pass without deleting the disk image if the provider
location is not present.

The SMB driver wraps base RemoteFS methods in order to set locks.
The issue is that it does not return the wrapped method return
value, which signals volume updates, in this case the provider
location.

Change-Id: Id7435676052885d301a48fa5ac224071e18ecf5b
Closes-Bug: #1437271
cinder/volume/drivers/smbfs.py