Revert "Stop unnecessarily querying storage for stats"
This reverts commit 458840ddb1
.
We've seen a spike in scheduling failures since this merged,
presumably because the scheduler doesn't have the latest
information and thinks the storage backend is at capacity.
Change-Id: I5b6645cfd1277f315eb9cf186848d0eea8bc0b98
Closes-Bug: #1741275
This commit is contained in:
parent
458840ddb1
commit
dfce8aef57
|
@ -851,6 +851,7 @@ class VolumeManager(manager.CleanableManager,
|
|||
QUOTAS.commit(context, reservations, project_id=project_id)
|
||||
|
||||
self._update_allocated_capacity(volume, decrement=True)
|
||||
self.publish_service_capabilities(context)
|
||||
|
||||
msg = "Deleted volume successfully."
|
||||
if unmanage_only:
|
||||
|
@ -2775,6 +2776,7 @@ class VolumeManager(manager.CleanableManager,
|
|||
self._notify_about_volume_usage(
|
||||
context, volume, "retype",
|
||||
extra_usage_info={'volume_type': new_type_id})
|
||||
self.publish_service_capabilities(context)
|
||||
LOG.info("Retype volume completed successfully.",
|
||||
resource=volume)
|
||||
|
||||
|
@ -3398,6 +3400,7 @@ class VolumeManager(manager.CleanableManager,
|
|||
group.destroy()
|
||||
self._notify_about_group_usage(
|
||||
context, group, "delete.end")
|
||||
self.publish_service_capabilities(context)
|
||||
LOG.info("Delete group "
|
||||
"completed successfully.",
|
||||
resource={'type': 'group',
|
||||
|
|
Loading…
Reference in New Issue