Merge "Fix reporting old stats"
This commit is contained in:
commit
b8b696766e
@ -182,7 +182,6 @@ class SchedulerDependentManager(ThreadPoolManager):
|
||||
"""Remember these capabilities to send on next periodic update."""
|
||||
self.last_capabilities = capabilities
|
||||
|
||||
@periodic_task.periodic_task
|
||||
def _publish_service_capabilities(self, context):
|
||||
"""Pass data back to the scheduler at a periodic interval."""
|
||||
if self.last_capabilities:
|
||||
|
@ -2374,7 +2374,6 @@ class VolumeManager(manager.CleanableManager,
|
||||
LOG.info("Migrate volume completed successfully.",
|
||||
resource=volume)
|
||||
|
||||
@periodic_task.periodic_task
|
||||
def _report_driver_status(self, context):
|
||||
# It's possible during live db migration that the self.service_uuid
|
||||
# value isn't set (we didn't restart services), so we'll go ahead
|
||||
@ -2507,6 +2506,7 @@ class VolumeManager(manager.CleanableManager,
|
||||
|
||||
return volume_stats
|
||||
|
||||
@periodic_task.periodic_task
|
||||
def publish_service_capabilities(self, context):
|
||||
"""Collect driver status and then publish."""
|
||||
self._report_driver_status(context)
|
||||
|
Loading…
Reference in New Issue
Block a user