File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 12
12
from dbaas_zabbix .metrics import ZabbixMetrics
13
13
from logical .errors import BusyDatabaseError
14
14
from logical .models import Database
15
+ from paramiko .ssh_exception import SSHException
15
16
from physical .errors import DiskOfferingMaxAutoResize
16
17
from physical .models import Environment , DiskOffering
17
18
from physical .ssh import ScriptFailedException
@@ -266,6 +267,16 @@ def host_mount_data_percentage(host, task):
266
267
message = "Could not load mount size: {}" .format (str (err )), level = 4
267
268
)
268
269
return None , None , None
270
+ except SSHException as err :
271
+ task .add_detail (
272
+ message = "Could not connect to Host SSH: {}" .format (str (err )), level = 4
273
+ )
274
+ return None , None , None
275
+ except Exception as err :
276
+ task .add_detail (
277
+ message = "Error when mounting /data from host: {}" .format (str (err )), level = 4
278
+ )
279
+ return None , None , None
269
280
270
281
values = output ["stdout" ][0 ].strip ().split ()
271
282
You can’t perform that action at this time.
0 commit comments