modify upgrade checker

This commit is contained in:
obdev
2024-01-16 06:22:17 +00:00
committed by ob-robot
parent 53b89eb72e
commit f1e23eadfd
3 changed files with 27 additions and 0 deletions

View File

@ -2059,6 +2059,15 @@
# else:
# logging.info('check tenant info success')
#
# # check tenant lock status
# (desc, results) = query_cur.exec_query("""select count(*) from DBA_OB_TENANTS where LOCKED = 'YES'""")
# if len(results) != 1 or len(results[0]) != 1:
# fail_list.append('results len not match')
# elif 0 != results[0][0]:
# fail_list.append('has locked tenant, should unlock')
# else:
# logging.info('check tenant lock status success')
#
## 6. 检查无恢复任务
#def check_restore_job_exist(query_cur):
# (desc, results) = query_cur.exec_query("""select count(1) from CDB_OB_RESTORE_PROGRESS""")