Commit f44a210d authored by sagar arora's avatar sagar arora

Clean the helm-charts and fix cls_physim

- added right pod selector in cls_physim
parent ff738b7b
...@@ -4,6 +4,9 @@ metadata: ...@@ -4,6 +4,9 @@ metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
template: template:
metadata:
labels:
app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
......
...@@ -28,18 +28,6 @@ podSecurityContext: ...@@ -28,18 +28,6 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
# capabilities:
# add:
# - SYS_CAP_PTRACE
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
......
...@@ -4,6 +4,9 @@ metadata: ...@@ -4,6 +4,9 @@ metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
template: template:
metadata:
labels:
app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
...@@ -15,13 +18,6 @@ spec: ...@@ -15,13 +18,6 @@ spec:
- name: physim - name: physim
image: "{{ .Values.global.image.repository }}:{{ .Values.global.image.version }}" image: "{{ .Values.global.image.repository }}:{{ .Values.global.image.version }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
# resources:
# requests:
# memory: "4096Mi"
# cpu: "4000m"
# limits:
# memory: "4096Mi"
# cpu: "4000m"
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
env: env:
...@@ -35,5 +31,5 @@ spec: ...@@ -35,5 +31,5 @@ spec:
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Never restartPolicy: Never
schedulerName: default-scheduler schedulerName: default-scheduler
serviceAccountName: oai-physim-sa serviceAccountName: {{ .Values.global.serviceAccountName }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
...@@ -20,7 +20,7 @@ serviceAccount: ...@@ -20,7 +20,7 @@ serviceAccount:
annotations: {} annotations: {}
# The name of the service account to use. # The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template # If not set and create is true, a name is generated using the fullname template
name: "oai-physim-sa" #"oai-dlsim-basic" name: "oai-dlsim-basic"
podSecurityContext: podSecurityContext:
runAsUser: 0 runAsUser: 0
...@@ -28,26 +28,14 @@ podSecurityContext: ...@@ -28,26 +28,14 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
#capabilities:
# add: resources: {}
# - SYS_CAP_PTRACE # limits:
# drop: # cpu: 100m
# - ALL # memory: 128Mi
# readOnlyRootFilesystem: true # requests:
# runAsNonRoot: true # cpu: 100m
# runAsUser: 1000 # memory: 128Mi
service:
type: ClusterIP
port: 80
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
nodeSelector: {} nodeSelector: {}
......
...@@ -4,6 +4,9 @@ metadata: ...@@ -4,6 +4,9 @@ metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
template: template:
metadata:
labels:
app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
......
...@@ -28,18 +28,6 @@ podSecurityContext: ...@@ -28,18 +28,6 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
# capabilities:
# add:
# - SYS_CAP_PTRACE
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
......
...@@ -4,6 +4,9 @@ metadata: ...@@ -4,6 +4,9 @@ metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
template: template:
metadata:
labels:
app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
......
...@@ -28,18 +28,6 @@ podSecurityContext: ...@@ -28,18 +28,6 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
# capabilities:
# add:
# - SYS_CAP_PTRACE
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
......
...@@ -4,6 +4,9 @@ metadata: ...@@ -4,6 +4,9 @@ metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
template: template:
metadata:
labels:
app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
......
...@@ -28,18 +28,6 @@ podSecurityContext: ...@@ -28,18 +28,6 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
# capabilities:
# add:
# - SYS_CAP_PTRACE
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
......
...@@ -4,6 +4,9 @@ metadata: ...@@ -4,6 +4,9 @@ metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
template: template:
metadata:
labels:
app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
......
...@@ -28,18 +28,6 @@ podSecurityContext: ...@@ -28,18 +28,6 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
# capabilities:
# add:
# - SYS_CAP_PTRACE
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
......
...@@ -4,6 +4,9 @@ metadata: ...@@ -4,6 +4,9 @@ metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
template: template:
metadata:
labels:
app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
......
...@@ -28,18 +28,6 @@ podSecurityContext: ...@@ -28,18 +28,6 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
# capabilities:
# add:
# - SYS_CAP_PTRACE
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
......
...@@ -4,6 +4,9 @@ metadata: ...@@ -4,6 +4,9 @@ metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
template: template:
metadata:
labels:
app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
......
...@@ -28,18 +28,6 @@ podSecurityContext: ...@@ -28,18 +28,6 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
# capabilities:
# add:
# - SYS_CAP_PTRACE
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
......
...@@ -6,7 +6,7 @@ spec: ...@@ -6,7 +6,7 @@ spec:
template: template:
metadata: metadata:
labels: labels:
{{- include "oai-nr-pbchsim-106rb.selectorLabels" . | nindent 8 }} app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
......
...@@ -28,18 +28,6 @@ podSecurityContext: ...@@ -28,18 +28,6 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
# capabilities:
# add:
# - SYS_CAP_PTRACE
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
......
...@@ -4,6 +4,9 @@ metadata: ...@@ -4,6 +4,9 @@ metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
template: template:
metadata:
labels:
app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
......
...@@ -28,18 +28,6 @@ podSecurityContext: ...@@ -28,18 +28,6 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
# capabilities:
# add:
# - SYS_CAP_PTRACE
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
......
...@@ -4,6 +4,9 @@ metadata: ...@@ -4,6 +4,9 @@ metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
template: template:
metadata:
labels:
app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
......
...@@ -28,18 +28,6 @@ podSecurityContext: ...@@ -28,18 +28,6 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
# capabilities:
# add:
# - SYS_CAP_PTRACE
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
......
...@@ -4,6 +4,9 @@ metadata: ...@@ -4,6 +4,9 @@ metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
template: template:
metadata:
labels:
app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
......
...@@ -28,18 +28,6 @@ podSecurityContext: ...@@ -28,18 +28,6 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
# capabilities:
# add:
# - SYS_CAP_PTRACE
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
......
...@@ -4,6 +4,9 @@ metadata: ...@@ -4,6 +4,9 @@ metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
template: template:
metadata:
labels:
app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
......
...@@ -28,14 +28,6 @@ podSecurityContext: ...@@ -28,14 +28,6 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
# capabilities:
# add:
# - SYS_CAP_PTRACE
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service: service:
type: ClusterIP type: ClusterIP
......
...@@ -4,6 +4,9 @@ metadata: ...@@ -4,6 +4,9 @@ metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
template: template:
metadata:
labels:
app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
......
...@@ -28,18 +28,6 @@ podSecurityContext: ...@@ -28,18 +28,6 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
# capabilities:
# add:
# - SYS_CAP_PTRACE
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
......
...@@ -4,6 +4,9 @@ metadata: ...@@ -4,6 +4,9 @@ metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
template: template:
metadata:
labels:
app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
......
...@@ -28,18 +28,6 @@ podSecurityContext: ...@@ -28,18 +28,6 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
# capabilities:
# add:
# - SYS_CAP_PTRACE
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
......
...@@ -4,6 +4,9 @@ metadata: ...@@ -4,6 +4,9 @@ metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
template: template:
metadata:
labels:
app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
......
...@@ -28,18 +28,6 @@ podSecurityContext: ...@@ -28,18 +28,6 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
# capabilities:
# add:
# - SYS_CAP_PTRACE
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
......
...@@ -4,6 +4,9 @@ metadata: ...@@ -4,6 +4,9 @@ metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
template: template:
metadata:
labels:
app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
......
...@@ -28,18 +28,6 @@ podSecurityContext: ...@@ -28,18 +28,6 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
# capabilities:
# add:
# - SYS_CAP_PTRACE
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
......
...@@ -4,6 +4,9 @@ metadata: ...@@ -4,6 +4,9 @@ metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
template: template:
metadata:
labels:
app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
......
...@@ -28,18 +28,6 @@ podSecurityContext: ...@@ -28,18 +28,6 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
# capabilities:
# add:
# - SYS_CAP_PTRACE
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
......
...@@ -4,6 +4,9 @@ metadata: ...@@ -4,6 +4,9 @@ metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
template: template:
metadata:
labels:
app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
......
...@@ -28,18 +28,6 @@ podSecurityContext: ...@@ -28,18 +28,6 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
# capabilities:
# add:
# - SYS_CAP_PTRACE
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
......
...@@ -4,6 +4,9 @@ metadata: ...@@ -4,6 +4,9 @@ metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
template: template:
metadata:
labels:
app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
......
...@@ -28,18 +28,6 @@ podSecurityContext: ...@@ -28,18 +28,6 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
# capabilities:
# add:
# - SYS_CAP_PTRACE
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
......
...@@ -4,6 +4,9 @@ metadata: ...@@ -4,6 +4,9 @@ metadata:
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
template: template:
metadata:
labels:
app: physim
spec: spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
......
...@@ -28,18 +28,6 @@ podSecurityContext: ...@@ -28,18 +28,6 @@ podSecurityContext:
securityContext: securityContext:
privileged: false privileged: false
# capabilities:
# add:
# - SYS_CAP_PTRACE
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
......
...@@ -12,46 +12,3 @@ global: ...@@ -12,46 +12,3 @@ global:
# pullPolicy: IfNotPresent or Never or Always # pullPolicy: IfNotPresent or Never or Always
pullPolicy: Always pullPolicy: Always
## Declaring values specific to coressponding physim to overwrite (At the moment unused)
dlsim.basic:
dlsim.100rb+tm2:
ulsim:
ldpctest:
polartest:
nr-pbchsim.106rb:
nr-pbchsim.217rb:
nr-pbchsim.273rb:
nr-dlsim.basic:
nr-dlsim.dmrs+ptrs:
nr-dlsim.mcs+mimo:
nr-dlsim.offset:
nr-dlschsim:
smallblocktest:
nr-ulschsim:
nr-pucchsim:
nr-ulsim.3gpp:
nr-ulsim.mimo:
nr-ulsim.misc:
nr-ulsim.sc-fdma:
nr-prachsim:
...@@ -158,9 +158,10 @@ class PhySim: ...@@ -158,9 +158,10 @@ class PhySim:
logging.debug('\u001B[1m Deployed PhySim Successfully using helm chart\u001B[0m') logging.debug('\u001B[1m Deployed PhySim Successfully using helm chart\u001B[0m')
isRunning = False isRunning = False
count = 0 count = 0
# Below while sections means there is 2 mins for pods to be in running if not they will be removed
while(count < 2 and isRunning == False): while(count < 2 and isRunning == False):
time.sleep(60) 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)
if mySSH.getBefore().count('Running') == 21: if mySSH.getBefore().count('Running') == 21:
logging.debug('\u001B[1m Running the physim test Scenarios\u001B[0m') logging.debug('\u001B[1m Running the physim test Scenarios\u001B[0m')
isRunning = True isRunning = True
...@@ -168,14 +169,14 @@ class PhySim: ...@@ -168,14 +169,14 @@ class PhySim:
count +=1 count +=1
if isRunning == False: if isRunning == False:
logging.error('\u001B[1m Some PODS Running FAILED \u001B[0m') 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) 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)
mySSH.command('helm uninstall physim 2>&1 >> cmake_targets/log/physim_helm_summary.txt', '\$', 6) mySSH.command('helm uninstall physim 2>&1 >> cmake_targets/log/physim_helm_summary.txt', '\$', 6)
self.AnalyzeLogFile_phySim() self.AnalyzeLogFile_phySim()
isFinished1 = False isFinished1 = False
while(isFinished1 == False): while(isFinished1 == False):
time.sleep(20) time.sleep(20)
mySSH.command('oc get pods -l app.kubernetes.io/instance=physim', '\$', 6, resync=True) mySSH.command('oc get pods -l app=physim', '\$', 6, resync=True)
if re.search('No resources found', mySSH.getBefore()): if re.search('No resources found', mySSH.getBefore()):
isFinished1 = True isFinished1 = True
mySSH.command('oc logout', '\$', 30) mySSH.command('oc logout', '\$', 30)
...@@ -188,7 +189,7 @@ class PhySim: ...@@ -188,7 +189,7 @@ class PhySim:
isFinished = False isFinished = False
# doing a deep copy! # doing a deep copy!
tmpPodNames = podNames.copy() tmpPodNames = podNames.copy()
while(count < 15 and isFinished == False): while(count < 9 and isFinished == False):
time.sleep(60) time.sleep(60)
for podName in tmpPodNames: for podName in tmpPodNames:
mySSH.command2(f'oc logs --tail=1 {podName} 2>&1', 6, silent=True) mySSH.command2(f'oc logs --tail=1 {podName} 2>&1', 6, silent=True)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment