Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

[common.py] fix the code format #211

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions conf/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,21 +526,21 @@ def eval_args( obj, function_name, args ):
return res

def wait_ceph_to_health( user, controller ):
#wait ceph health to be OK
waitcount = 0
try:
while not check_health( user, controller ) and waitcount < 300:
printout("WARNING","Applied tuning, waiting ceph to be healthy")
time.sleep(3)
waitcount += 3
except:
printout("WARNING","Caught KeyboardInterrupt, exit")
sys.exit()
if waitcount < 300:
printout("LOG","Tuning has applied to ceph cluster, ceph is Healthy now")
else:
printout("ERROR","ceph is unHealthy after 300sec waiting, please fix the issue manually")
sys.exit()
#wait ceph health to be OK
waitcount = 0
try:
while not check_health( user, controller ) and waitcount < 300:
printout("WARNING","Applied tuning, waiting ceph to be healthy")
time.sleep(3)
waitcount += 3
except:
printout("WARNING","Caught KeyboardInterrupt, exit")
sys.exit()
if waitcount < 300:
printout("LOG","Tuning has applied to ceph cluster, ceph is Healthy now")
else:
printout("ERROR","ceph is unHealthy after 300sec waiting, please fix the issue manually")
sys.exit()

def check_health( user, controller ):
check_count = 0
Expand Down