级联备环境下 gs_om -t status --all不可用

This commit is contained in:
gyt0221
2021-02-23 15:13:51 +08:00
parent 29ec06de72
commit 44616e7504
2 changed files with 7 additions and 8 deletions

View File

@ -1884,13 +1884,12 @@ class dbClusterInfo():
cascadeOutput = cascadeOutput.split('\n') cascadeOutput = cascadeOutput.split('\n')
if not len(cascadeOutput): if not len(cascadeOutput):
continue continue
for col_loop in cascadeOutput: col_loop = col_loop.split('|')
col_loop = col_loop.split('|') cascadeIps = col_loop[-1].split('<--')
cascadeIps = col_loop[-1].split('<--') col_loop.insert(0, cascadeIps[0].split(':')[0])
col_loop.insert(0, cascadeIps[0].split(':')[0]) col_loop.insert(11, "Async")
col_loop.insert(11, "Async") col_loop[-1] = cascadeIps[-1]
col_loop[-1] = cascadeIps[-1] syncInfo.append(col_loop)
syncInfo.append(col_loop)
else: else:
if dnInst.localRole != "Standby" and \ if dnInst.localRole != "Standby" and \
dnInst.localRole != "Secondary": dnInst.localRole != "Secondary":

View File

@ -546,7 +546,7 @@ class ErrorCode():
'GAUSS_51621': "[GAUSS-51621] : HA IP is empty.", 'GAUSS_51621': "[GAUSS-51621] : HA IP is empty.",
'GAUSS_51622': "[GAUSS-51622] : There is no %s on %s node.", 'GAUSS_51622': "[GAUSS-51622] : There is no %s on %s node.",
'GAUSS_51623': "[GAUSS-51623] : Failed to obtain version.", 'GAUSS_51623': "[GAUSS-51623] : Failed to obtain version.",
'GAUSS_51624': "[GAUSS-51624] : Failed to get CN connections.", 'GAUSS_51624': "[GAUSS-51624] : Failed to get DN connections.",
'GAUSS_51625': "[GAUSS-51625] : Cluster is running.", 'GAUSS_51625': "[GAUSS-51625] : Cluster is running.",
'GAUSS_51626': "[GAUSS-51626] : Failed to rollback.", 'GAUSS_51626': "[GAUSS-51626] : Failed to rollback.",
'GAUSS_51627': "[GAUSS-51627] : Configuration failed.", 'GAUSS_51627': "[GAUSS-51627] : Configuration failed.",