def health_check(post_upgrade_check=False):
if not args.skip_health_check:
print "Performing cluster health check..."
msg = check_cluster()
if msg:
print >> sys.stderr, "There are some problems with cluster."
print >> sys.stderr, msg
if post_upgrade_check:
print >> sys.stderr, "Some of them could be temporary due " \
"restarts of various KuberDock " \
"services/pods/nodes during upgrade " \
"process and will gone in few minutes.\n" \
"It's strongly recommended to re-run " \
"health check later soon to ensure this " \
"problems are gone and fix them if they " \
"still remains."
else:
print >> sys.stderr, "Please, solve problems or use key " \
"--skip-health-check (on your own risk)"
return False
print "Health check: OK"
else:
print "Skipping health check."
return True
kuberdock_upgrade.py 文件源码
python
阅读 17
收藏 0
点赞 0
评论 0
评论列表
文章目录