Improve provider_location cleanup code for RBD.

The RBD driver does not make use of the 'provider_location' field
but the current cleanup code assumes it does.  Ensure the field
is in use before testing whether or not it needs fixing.

Fixes bug 1083818.

Change-Id: Id6ff85101f85e70575ba244c2df7aca0196cf224
(cherry picked from commit d030c5b10e9e8d73d967562259e7db6146347108)
Remove unused python-daemon dependency

python-daemon is listed as a dependency, but it is not needed.

Change-Id: I4d6eadfef5d60cd277ff7395a12f5ad255db7155
(cherry picked from commit 6217a3df0a34b1d0ac6fad8e9ea5044d2056c45d)
Final versioning for 2012.2.1

Change-Id: I74e485f7fde8d34fa5e6e8852e06d522b2ccc1d1
Bump next version to 2012.2.2

Change-Id: Ic4df5e9888a70f39d80cc1070157f87649947b9a
Bump next version to 2012.2.3

2012.2.2 has been released without Cinder, so prepare for 2012.2.3.

Change-Id: Icfb5a30036c7ea0845135c686939015c320013cc
Add commands used by NFS volume driver to rootwrap

Fixes bug 1087282

Change-Id: Ib873c334633b4d586c2e53bac5d1cae0dcf65be7
(cherry picked from commit 65b3421f4b66b1e26be54f4bcb93fd3f6c7fb6f8)
Folsom backport direct drivers
7 mode nfs
Final versioning for 2012.2.3

Change-Id: Ic83a1c1617ad74b931f54f1755bc9dcecfe2c527
Bump version to 2012.2.4

Set version to 2012.2.4, but with final=False

Change-Id: I9dab1dc62e41cdb4143a3c8083e65c4b13a22eb4
Check for non-default volume name template.

The iscsi delete methods in iscsi.py had hard-coded volume names
'volume-%s'.

If a user configured volume_name_template to
something other than default the result is failure to remove
the iscsi_target.

volume create worked appropriately and created the correct name
in the DB, so the persistence files were the only thing affected
or named incorrectly.

Fixes bug: 1101071

Change-Id: Id5575874b2cebd9b3509d739cb92abf06c503c4e
(cherry picked from commit f02c575b4b28b69cade6c1c06dd772c62754fc9c)
Fix typo in cinder/db/api.py

The api method quota_destroy_all_by_project() calls the implementation
quota_get_all_by_project()

Change-Id: I11927e1fd29c6248ce755dfd236bf0f9adf39d94
Fixes: bug #1108766
(cherry picked from commit b79e1f485c85cbb16280adc8d590886e25694c87)
Fix error for extra specs update with empty body.

Fixes: bug #1090320
Change-Id: Ia2792d477f7670ecb2eb0c9c10dcbf1cf5b2389e
(cherry picked from commit fee9b2ad61bb69d356e1280f0556afd808c5f128)
Add a safe_minidom_parse_string function.

Adds a new utils.safe_minidom_parse_string function and
updates external API facing Cinder modules to use it.
This ensures we have safe defaults on our incoming API XML parsing.

Internally safe_minidom_parse_string uses a ProtectedExpatParser
class to disable DTDs and entities from being parsed when using
minidom.

Fixes LP Bug #1100282 for Folsom.

Change-Id: Ie8ae7a6e12fbf51de406d10ca21072140374abf5
Merge "Add a safe_minidom_parse_string function." into stable/folsom
Only use iscsi_helper config option if using ISCSIDriver

_get_iscsi_properties checks for iscsi_helper == 'tgtadm', but
this is run for drivers other than ISCSIDriver.  This means that
when using the Nexenta driver, the target_lun is changed when it
shouldn't be.

Only change target_lun based on iscsi_helper if using ISCSIDriver.

Change-Id: I104c1b45f37917ea9f41855c17405f63c4ebcc39
Merge "Check for non-default volume name template." into stable/folsom
Merge "Fix error for extra specs update with empty body." into stable/folsom
Merge branch 'stable_folsom' of https://github.com/singn/cinder into netapp/folsom
Fixes the provisioning on selected volumes for NetApp 7 mode.

The current direct driver for 7 mode provisions openstack
volume on all NetApp 7 mode volumes mixing openstack volumes
with all non openstack volumes. This fix allows volume selection
by the user to keep openstack volumes separate from non opnestack
block storage entities.

bug 1132834

Change-Id: I5411c19d8cce15297ec2f72fa978a4cc72b98173