]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Update provider_id column on SolidFire init
authorJohn Griffith <john.griffith8@gmail.com>
Thu, 20 Aug 2015 19:09:57 +0000 (19:09 +0000)
committerJohn Griffith <john.griffith8@gmail.com>
Fri, 21 Aug 2015 16:39:18 +0000 (10:39 -0600)
commit44419e89d89a0d18c8c2e80095a0a51db1f01c40
tree340818ed09fb85f95c6788604b5a2105b4c61161
parent1a7ce2d32ec03a4cd80d6afd2fcc55125b4f3c39
Update provider_id column on SolidFire init

This patch just implements an init routine to update
the cinder db with provider_id mappings to known/active
volumes on the SolidFire cluster.

Now that we have added a mapping feature in the DB, we need
to go back and populate these columns on an upgrade.  It's
also helpful to have this mechanism for internal mappings on
init, that's why it's here as an init routine instead of part
of an upgrade migration or cinder-manager script.

Change-Id: I1e4da2adff2ae85a3020b38167c8c63fc56b8417
cinder/tests/unit/test_solidfire.py
cinder/volume/driver.py
cinder/volume/drivers/solidfire.py
cinder/volume/manager.py