]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Update/Publish volume service updates on delete.
authorJohn Griffith <john.griffith@solidfire.com>
Fri, 17 May 2013 20:03:38 +0000 (14:03 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Fri, 17 May 2013 20:35:48 +0000 (14:35 -0600)
commit642526013c855e88873ecb96e8680698e095d83a
tree14ef91eacdedaf61ee816a22cab49d9ad8f7d499
parent1d6de0f42cb36861338209a4c9ead1dc677d4f2f
Update/Publish volume service updates on delete.

The Filter scheduler weighing function was failing because
we were only updating the capacity info either on the periodic
60 second interval or after succesful creates.

The result was that if you exceeded your capacity within the
update interval you would no longer be able to create volumes even
if you deleted existing volumes until the update was performed and
published.

Since we're updating on on create, there's no reason why we shouldn't
do the same on delete for the applicable volume-service.

The periodic updates are still important for other purposes so they're left
alone, but with this change we keep things up to date so the filter scheduler
has the correct picture of the world.

Fixes bug: 1180976

Change-Id: Ic551f512c5a0cf51bafa8b60f0b6b7debbe22692
cinder/volume/manager.py