From: Masaki Kanno Date: Sat, 1 Aug 2015 08:40:39 +0000 (+0900) Subject: NetApp SSC job will be run periodically X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=3b9a7900e541574f809435c2d5625b58f9b8c1d6;p=openstack-build%2Fcinder-build.git 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 --- 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: