Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG UE
Commits
01e62d85
Commit
01e62d85
authored
Nov 24, 2021
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/ci-fix-physim-cluster-log' into integration_2021_wk47_b
parents
8b70f668
6f0d0493
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
3 deletions
+22
-3
ci-scripts/cls_physim1.py
ci-scripts/cls_physim1.py
+20
-1
ci-scripts/xml_files/fr1_nsa_quectel.xml
ci-scripts/xml_files/fr1_nsa_quectel.xml
+1
-1
ci-scripts/yaml_files/nsa_b200_gnb/docker-compose.yml
ci-scripts/yaml_files/nsa_b200_gnb/docker-compose.yml
+1
-1
No files found.
ci-scripts/cls_physim1.py
View file @
01e62d85
...
...
@@ -37,6 +37,7 @@ import html
import
os
import
re
import
time
import
subprocess
import
sys
import
constants
as
CONST
import
helpreadme
as
HELP
...
...
@@ -115,7 +116,7 @@ class PhySim:
else
:
imageTag
=
"develop"
# Check if image is exist on the Red Hat server, before pushing it to OC cluster
mySSH
.
command
(
"sudo podman image inspect --format='Size = {{.Size}} bytes' oai-physim:"
+
imageTag
,
'\$'
,
60
)
mySSH
.
command
(
'sudo podman image inspect --format="Size = {{.Size}} bytes" oai-physim:'
+
imageTag
,
'\$'
,
60
)
if
mySSH
.
getBefore
().
count
(
'no such image'
)
!=
0
:
logging
.
error
(
'
\u001B
[1m No such image oai-physim
\u001B
[0m'
)
mySSH
.
close
()
...
...
@@ -264,6 +265,23 @@ class PhySim:
for
podName
in
podNames
:
mySSH
.
command
(
f'oc logs
{
podName
}
>> cmake_targets/log/physim_test.txt 2>&1'
,
'\$'
,
15
,
resync
=
True
)
time
.
sleep
(
30
)
mySSH
.
copyin
(
lIpAddr
,
lUserName
,
lPassWord
,
lSourcePath
+
'/cmake_targets/log/physim_test.txt'
,
'.'
)
try
:
listLogFiles
=
subprocess
.
check_output
(
'egrep --colour=never "Execution Log file|Linux oai-" physim_test.txt'
,
shell
=
True
,
universal_newlines
=
True
)
for
line
in
listLogFiles
.
split
(
'
\n
'
):
res1
=
re
.
search
(
'Linux (?P<pod>oai-[a-zA-Z0-9\-]+) '
,
str
(
line
))
res2
=
re
.
search
(
'Execution Log file = (?P<name>[a-zA-Z0-9\-\/\.\_]+)'
,
str
(
line
))
if
res1
is
not
None
:
podName
=
res1
.
group
(
'pod'
)
if
res2
is
not
None
:
logFileInPod
=
res2
.
group
(
'name'
)
folderName
=
re
.
sub
(
'/opt/oai-physim/cmake_targets/autotests/log/'
,
''
,
logFileInPod
)
folderName
=
re
.
sub
(
'/test.*'
,
''
,
folderName
)
fileName
=
re
.
sub
(
'/opt/oai-physim/cmake_targets/autotests/log/'
+
folderName
+
'/'
,
''
,
logFileInPod
)
mySSH
.
command
(
'mkdir -p cmake_targets/log/'
+
folderName
,
'\$'
,
5
,
silent
=
True
)
mySSH
.
command
(
'oc cp '
+
podName
+
':'
+
logFileInPod
+
' cmake_targets/log/'
+
folderName
+
'/'
+
fileName
,
'\$'
,
20
,
silent
=
True
)
except
Exception
as
e
:
pass
# UnDeploy the physical simulator pods
mySSH
.
command
(
'helm uninstall physim | tee -a cmake_targets/log/physim_helm_summary.txt 2>&1'
,
'\$'
,
6
)
...
...
@@ -305,6 +323,7 @@ class PhySim:
mySSH
.
command
(
'cd '
+
lSourcePath
+
'/cmake_targets'
,
'\$'
,
5
)
mySSH
.
command
(
'mkdir -p physim_test_log_'
+
self
.
testCase_id
,
'\$'
,
5
)
mySSH
.
command
(
'cp log/physim_* '
+
'physim_test_log_'
+
self
.
testCase_id
,
'\$'
,
5
)
mySSH
.
command
(
'tar cvf physim_test_log_'
+
self
.
testCase_id
+
'/physim_log.tar log/015*'
,
'\$'
,
180
)
if
not
os
.
path
.
exists
(
f'./physim_test_logs_
{
self
.
testCase_id
}
'
):
os
.
mkdir
(
f'./physim_test_logs_
{
self
.
testCase_id
}
'
)
mySSH
.
copyin
(
lIpAddr
,
lUserName
,
lPassWord
,
lSourcePath
+
'/cmake_targets/physim_test_log_'
+
self
.
testCase_id
+
'/*'
,
'./physim_test_logs_'
+
self
.
testCase_id
)
...
...
ci-scripts/xml_files/fr1_nsa_quectel.xml
View file @
01e62d85
...
...
@@ -73,7 +73,7 @@
<testCase
id=
"040000"
>
<class>
Initialize_eNB
</class>
<desc>
Initialize gNB
</desc>
<Initialize_eNB_args>
-O ci-scripts/conf_files/gnb.band78.tm1.fr1.106PRB.usrpb210.conf -E -q
</Initialize_eNB_args>
<Initialize_eNB_args>
-O ci-scripts/conf_files/gnb.band78.tm1.fr1.106PRB.usrpb210.conf -E -q
--usrp-args "serial=30C51D4"
</Initialize_eNB_args>
<eNB_instance>
1
</eNB_instance>
<eNB_serverId>
1
</eNB_serverId>
<air_interface>
nr
</air_interface>
...
...
ci-scripts/yaml_files/nsa_b200_gnb/docker-compose.yml
View file @
01e62d85
...
...
@@ -26,7 +26,7 @@ services:
FLEXRAN_INTERFACE_NAME
:
eth0
FLEXRAN_IPV4_ADDRESS
:
192.168.18.210
THREAD_PARALLEL_CONFIG
:
PARALLEL_RU_L1_TRX_SPLIT
USE_ADDITIONAL_OPTIONS
:
'
-E
-q'
USE_ADDITIONAL_OPTIONS
:
'
-E
-q
--usrp-args
"serial=30C51D4"
'
volumes
:
-
/dev:/dev
networks
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment