Skip to content

Commit 7238799

Browse files
committed
fix(LVHDoISCSISR): disable restart of ISCSI daemon
Signed-off-by: Ronan Abhamon <[email protected]>
1 parent 2c50709 commit 7238799

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Diff for: drivers/LVHDoISCSISR.py

+2
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,8 @@ def probe(self):
553553
return out
554554

555555
def check_sr(self, sr_uuid):
556+
# Disable to prevent daemon restart.
557+
return
556558
"""Hook to check SR health"""
557559
pbdref = util.find_my_pbd(self.session, self.host_ref, self.sr_ref)
558560
if pbdref:

Diff for: tests/test_LVHDoISCSISR.py

+3
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ def create_test_sr(self, sr_cmd):
199199
self.subject = LVHDoISCSISR.LVHDoISCSISR(
200200
sr_cmd, self.sr_uuid)
201201

202+
@unittest.skip('check_sr disabled')
202203
def test_check_sr_pbd_not_found(self):
203204
# Arrange
204205
self.mock_util.find_my_pbd.return_value = None
@@ -211,6 +212,7 @@ def test_check_sr_pbd_not_found(self):
211212
self.mock_util.find_my_pbd.assert_called_with(
212213
self.mock_session, 'test_host', 'sr_ref')
213214

215+
@unittest.skip('check_sr disabled')
214216
def test_check_sr_correct_sessions_count(self):
215217
# Arrange
216218
self.mock_util.find_my_pbd.return_value = 'my_pbd'
@@ -225,6 +227,7 @@ def test_check_sr_correct_sessions_count(self):
225227
# Assert
226228
self.mock_session.xenapi.PBD.get_other_config.assert_called_with('my_pbd')
227229

230+
@unittest.skip('check_sr disabled')
228231
def test_check_sr_not_enough_sessions(self):
229232
# Arrange
230233
self.mock_util.find_my_pbd.return_value = 'my_pbd'

0 commit comments

Comments
 (0)