File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -553,6 +553,8 @@ def probe(self):
553
553
return out
554
554
555
555
def check_sr (self , sr_uuid ):
556
+ # Disable to prevent daemon restart.
557
+ return
556
558
"""Hook to check SR health"""
557
559
pbdref = util .find_my_pbd (self .session , self .host_ref , self .sr_ref )
558
560
if pbdref :
Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ def create_test_sr(self, sr_cmd):
199
199
self .subject = LVHDoISCSISR .LVHDoISCSISR (
200
200
sr_cmd , self .sr_uuid )
201
201
202
+ @unittest .skip ('check_sr disabled' )
202
203
def test_check_sr_pbd_not_found (self ):
203
204
# Arrange
204
205
self .mock_util .find_my_pbd .return_value = None
@@ -211,6 +212,7 @@ def test_check_sr_pbd_not_found(self):
211
212
self .mock_util .find_my_pbd .assert_called_with (
212
213
self .mock_session , 'test_host' , 'sr_ref' )
213
214
215
+ @unittest .skip ('check_sr disabled' )
214
216
def test_check_sr_correct_sessions_count (self ):
215
217
# Arrange
216
218
self .mock_util .find_my_pbd .return_value = 'my_pbd'
@@ -225,6 +227,7 @@ def test_check_sr_correct_sessions_count(self):
225
227
# Assert
226
228
self .mock_session .xenapi .PBD .get_other_config .assert_called_with ('my_pbd' )
227
229
230
+ @unittest .skip ('check_sr disabled' )
228
231
def test_check_sr_not_enough_sessions (self ):
229
232
# Arrange
230
233
self .mock_util .find_my_pbd .return_value = 'my_pbd'
You can’t perform that action at this time.
0 commit comments