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
31756bdb
Commit
31756bdb
authored
Nov 10, 2020
by
Remi Hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gNB html + log update for nsa fr1 ok
parent
ae810c7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
29 deletions
+26
-29
ci-scripts/ran.py
ci-scripts/ran.py
+22
-27
ci-scripts/xml_files/fr1_ran_ue_proc.xml
ci-scripts/xml_files/fr1_ran_ue_proc.xml
+4
-2
No files found.
ci-scripts/ran.py
View file @
31756bdb
...
...
@@ -133,7 +133,7 @@ class RANManagement():
self
.
air_interface
[
self
.
eNB_instance
]
=
'nr-softmodem'
else
:
self
.
air_interface
[
self
.
eNB_instance
]
=
'lte-softmodem'
# Worakround for some servers, we need to erase completely the workspace
if
self
.
Build_eNB_forced_workspace_cleanup
:
mySSH
.
command
(
'echo '
+
lPassWord
+
' | sudo -S rm -Rf '
+
lSourcePath
,
'\$'
,
15
)
...
...
@@ -427,7 +427,7 @@ class RANManagement():
# Launch eNB with the modified config file
mySSH
.
command
(
'source oaienv'
,
'\$'
,
5
)
mySSH
.
command
(
'cd cmake_targets'
,
'\$'
,
5
)
if
self
.
air_interface
==
'nr
'
:
if
self
.
air_interface
[
self
.
eNB_instance
]
==
'nr-softmodem
'
:
mySSH
.
command
(
'if [ -e rbconfig.raw ]; then echo '
+
lPassWord
+
' | sudo -S rm rbconfig.raw; fi'
,
'\$'
,
5
)
mySSH
.
command
(
'if [ -e reconfig.raw ]; then echo '
+
lPassWord
+
' | sudo -S rm reconfig.raw; fi'
,
'\$'
,
5
)
# NOTE: WE SHALL do a check if the executable is present (in case build went wrong)
...
...
@@ -568,10 +568,6 @@ class RANManagement():
mySSH
=
SSH
.
SSHConnection
()
mySSH
.
open
(
lIpAddr
,
lUserName
,
lPassWord
)
mySSH
.
command
(
'cd '
+
lSourcePath
+
'/cmake_targets'
,
'\$'
,
5
)
#RH debug
print
(
self
.
air_interface
)
print
(
self
.
eNB_instance
)
#
if
(
self
.
air_interface
[
self
.
eNB_instance
]
==
'lte-softmodem'
)
or
(
self
.
air_interface
[
self
.
eNB_instance
]
==
'ocp-enb'
):
nodeB_prefix
=
'e'
else
:
...
...
@@ -869,20 +865,17 @@ class RANManagement():
if
result
is
not
None
:
NSA_RAPROC_PUSCH_check
=
1
#dlsch and ulsch statistics
#keys below are
are the markers we are loooking for, looping
over this keys list
#keys below are
the markers we are loooking for, loop
over this keys list
#everytime these markers are found in the log file, the previous ones are overwritten in the dict
#eventually we record only the last o
ne
#eventually we record only the last o
ccurence
keys
=
{
'dlsch_rounds'
,
'dlsch_total_bytes'
,
'ulsch_rounds'
,
'ulsch_total_bytes_scheduled'
}
for
k
in
keys
:
result
=
re
.
search
(
k
,
str
(
line
)
)
result
=
re
.
search
(
k
,
line
)
if
result
is
not
None
:
dlsch_ulsch_stats
[
k
]
=
str
(
line
)
#remove all char before u(lsch) or d(lsch
)
dlsch_ulsch_stats
[
k
]
=
re
.
sub
(
r'^.*([du])'
,
r'\g<1>'
,
line
.
rstrip
())
enb_log_file
.
close
()
logging
.
debug
(
' File analysis completed'
)
#RH debug
print
(
self
.
air_interface
[
self
.
eNB_instance
]
+
'
\n
'
)
#
if
(
self
.
air_interface
[
self
.
eNB_instance
]
==
'lte-softmodem'
)
or
(
self
.
air_interface
[
self
.
eNB_instance
]
==
'ocp-enb'
):
nodeB_prefix
=
'e'
else
:
...
...
@@ -902,19 +895,21 @@ class RANManagement():
logging
.
debug
(
'
\u001B
[1;30;43m '
+
statMsg
+
'
\u001B
[0m'
)
htmleNBFailureMsg
+=
statMsg
+
'
\n
'
#FR1 NSA test : add new markers to make sure gNB is used
if
NSA_RAPROC_PUSCH_check
:
statMsg
=
'[RAPROC] PUSCH with TC_RNTI message check for '
+
nodeB_prefix
+
'NB : PASS '
else
:
statMsg
=
'[RAPROC] PUSCH with TC_RNTI message check for '
+
nodeB_prefix
+
'NB : FAIL '
logging
.
debug
(
'
\u001B
[1;30;43m '
+
statMsg
+
'
\u001B
[0m'
)
htmleNBFailureMsg
+=
statMsg
+
'
\n
'
#ulsch and dlsch statistics
if
len
(
dlsch_ulsch_stats
)
!=
0
:
#check if dictionary is not empty
statMsg
=
''
for
key
in
dlsch_ulsch_stats
:
#for each dictionary key
statMsg
+=
dlsch_ulsch_stats
[
key
]
+
'
\n
'
logging
.
debug
(
'
\u001B
[1;30;43m '
+
dlsch_ulsch_stats
[
key
]
+
'
\u001B
[0m'
)
htmleNBFailureMsg
+=
statMsg
+
'
\n
'
if
NSA_RAPROC_PUSCH_check
:
statMsg
=
'[RAPROC] PUSCH with TC_RNTI message check for '
+
nodeB_prefix
+
'NB : PASS '
htmlMsg
=
statMsg
+
'
\n
'
else
:
statMsg
=
'[RAPROC] PUSCH with TC_RNTI message check for '
+
nodeB_prefix
+
'NB : FAIL '
htmlMsg
=
statMsg
+
'
\n
'
logging
.
debug
(
statMsg
)
htmleNBFailureMsg
+=
htmlMsg
#ulsch and dlsch statistics
if
len
(
dlsch_ulsch_stats
)
!=
0
:
#check if dictionary is not empty
statMsg
=
''
for
key
in
dlsch_ulsch_stats
:
#for each dictionary key
statMsg
+=
dlsch_ulsch_stats
[
key
]
logging
.
debug
(
dlsch_ulsch_stats
[
key
])
htmleNBFailureMsg
+=
statMsg
if
uciStatMsgCount
>
0
:
statMsg
=
nodeB_prefix
+
'NB showed '
+
str
(
uciStatMsgCount
)
+
' "uci->stat" message(s)'
...
...
ci-scripts/xml_files/fr1_ran_ue_proc.xml
View file @
31756bdb
...
...
@@ -89,14 +89,14 @@
<class>
Ping
</class>
<desc>
Ping: 20pings in 20sec
</desc>
<ping_args>
-c 20
</ping_args>
<ping_packetloss_threshold>
0
</ping_packetloss_threshold>
<ping_packetloss_threshold>
5
0
</ping_packetloss_threshold>
</testCase>
<testCase
id=
"050001"
>
<class>
Ping
</class>
<desc>
Ping: 5pings in 1sec
</desc>
<ping_args>
-c 5 -i 0.2
</ping_args>
<ping_packetloss_threshold>
0
</ping_packetloss_threshold>
<ping_packetloss_threshold>
5
0
</ping_packetloss_threshold>
</testCase>
<testCase
id=
"070000"
>
...
...
@@ -104,6 +104,7 @@
<desc>
Terminate eNB
</desc>
<eNB_instance>
0
</eNB_instance>
<eNB_serverId>
0
</eNB_serverId>
<air_interface>
lte
</air_interface>
</testCase>
<testCase
id=
"070001"
>
...
...
@@ -111,6 +112,7 @@
<desc>
Terminate gNB
</desc>
<eNB_instance>
1
</eNB_instance>
<eNB_serverId>
1
</eNB_serverId>
<air_interface>
nr
</air_interface>
</testCase>
</testCaseList>
...
...
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