logging.debug('\u001B[1m Deployed PhySim Successfully using helm chart\u001B[0m')
isRunning=False
count=0
# Below while sections means there is 2 mins for pods to be in running if not they will be removed
while(count<2andisRunning==False):
time.sleep(60)
mySSH.command('oc get pods -o wide -l app.kubernetes.io/instance=physim | tee -a cmake_targets/log/physim_pods_summary.txt','\$',30,resync=True)
mySSH.command('oc get pods -o wide -l app=physim | tee -a cmake_targets/log/physim_pods_summary.txt','\$',30,resync=True)
ifmySSH.getBefore().count('Running')==21:
logging.debug('\u001B[1m Running the physim test Scenarios\u001B[0m')
isRunning=True
...
...
@@ -168,14 +169,14 @@ class PhySim:
count+=1
ifisRunning==False:
logging.error('\u001B[1m Some PODS Running FAILED \u001B[0m')
mySSH.command('oc get pods -l app.kubernetes.io/instance=physim 2>&1 | tee -a cmake_targets/log/physim_pods_summary.txt','\$',6)
mySSH.command('oc get pods -l app=physim 2>&1 | tee -a cmake_targets/log/physim_pods_summary.txt','\$',6)
mySSH.command('for pod in $(oc get pods | tail -n +2 | awk \'{print $1}\'); do oc describe pod $pod >> cmake_targets/log/physim_pods_summary.txt; done','\$',10)