]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
NetApp SSC job will be run periodically
authorMasaki Kanno <kanno.masaki@jp.fujitsu.com>
Sat, 1 Aug 2015 08:40:39 +0000 (17:40 +0900)
committerMasaki Kanno <kanno.masaki@jp.fujitsu.com>
Sat, 1 Aug 2015 08:40:39 +0000 (17:40 +0900)
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

index 8c2c781338133b083f147a1a59746e1533485873..315895020259a28d798232239931203edb157f01 100644 (file)
@@ -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: