From 3b9a7900e541574f809435c2d5625b58f9b8c1d6 Mon Sep 17 00:00:00 2001 From: Masaki Kanno Date: Sat, 1 Aug 2015 17:40:39 +0900 Subject: [PATCH] NetApp SSC job will be run periodically NetApp cDOT driver is supposed to run SSC job at intervals of 1800 seconds. However, after SSC job ran when cinder-volume services were started, SSC job does not run again. The driver should use 'is_older_than' method of oslo_utils to confirm 1800 seconds passed from last SSC job. Change-Id: I9d975f66295b75e3bfda47c56bbb11de0e9bf6d0 Closes-Bug: #1478432 --- cinder/volume/drivers/netapp/dataontap/ssc_cmode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/volume/drivers/netapp/dataontap/ssc_cmode.py b/cinder/volume/drivers/netapp/dataontap/ssc_cmode.py index 8c2c78133..315895020 100644 --- a/cinder/volume/drivers/netapp/dataontap/ssc_cmode.py +++ b/cinder/volume/drivers/netapp/dataontap/ssc_cmode.py @@ -520,7 +520,7 @@ def refresh_cluster_ssc(backend, na_server, vserver, synchronous=False): return elif (getattr(backend, 'ssc_run_time', None) is None or (backend.ssc_run_time and - timeutils.is_newer_than(backend.ssc_run_time, delta_secs))): + timeutils.is_older_than(backend.ssc_run_time, delta_secs))): if synchronous: get_cluster_latest_ssc(backend, na_server, vserver) else: -- 2.45.2