Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
lizhongxiao
OpenXG-RAN
Commits
d399a794
Commit
d399a794
authored
May 25, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/ci-aw2s-add-iperf' into integration_2023_w21
parents
28c015db
4514244f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
134 additions
and
28 deletions
+134
-28
ci-scripts/ci_ueinfra.yaml
ci-scripts/ci_ueinfra.yaml
+1
-1
ci-scripts/cls_cluster.py
ci-scripts/cls_cluster.py
+6
-6
ci-scripts/cls_containerize.py
ci-scripts/cls_containerize.py
+1
-1
ci-scripts/cls_oaicitest.py
ci-scripts/cls_oaicitest.py
+18
-3
ci-scripts/conf_files/gnb.sa.band78.51prb.aw2s.ddsuu.conf
ci-scripts/conf_files/gnb.sa.band78.51prb.aw2s.ddsuu.conf
+1
-1
ci-scripts/epc.py
ci-scripts/epc.py
+6
-7
ci-scripts/xml_files/container_sa_aw2s_asue.xml
ci-scripts/xml_files/container_sa_aw2s_asue.xml
+55
-9
ci-scripts/xml_files/container_sa_aw2s_asue_cleanup.xml
ci-scripts/xml_files/container_sa_aw2s_asue_cleanup.xml
+46
-0
No files found.
ci-scripts/ci_ueinfra.yaml
View file @
d399a794
...
...
@@ -49,7 +49,7 @@ adb_ue_2:
amarisoft_ue
:
Host
:
amariue
InitScript
:
/root/NV18-06-2022/lteue-linux-2023-03-17/lteue /root/oaicicd/ran_sa_aw2s_asue/aw2s-multi-20897.cfg &
InitScript
:
/root/NV18-06-2022/lteue-linux-2023-03-17/lteue /root/oaicicd/ran_sa_aw2s_asue/aw2s-multi-20897
-2x2
.cfg &
TermScript
:
/root/NV18-06-2022/lteue-linux-2023-03-17/doc/ws.js 127.0.0.1:9002 '{"message":"quit"}'
amarisoft_ue_1
:
Host
:
amariue
...
...
ci-scripts/cls_cluster.py
View file @
d399a794
...
...
@@ -42,7 +42,8 @@ IMAGE_REGISTRY_SERVICE_NAME = "image-registry.openshift-image-registry.svc"
NAMESPACE
=
"oaicicd-ran"
OCUrl
=
"https://api.oai.cs.eurecom.fr:6443"
OCRegistry
=
"default-route-openshift-image-registry.apps.oai.cs.eurecom.fr/"
CI_OC_RAN_NAMESPACE
=
"oaicicd-ran"
CI_OC_CORE_NAMESPACE
=
"oaicicd-core-for-ci-ran"
def
OC_login
(
cmd
,
ocUserName
,
ocPassword
,
ocProjectName
):
if
ocUserName
==
''
or
ocPassword
==
''
or
ocProjectName
==
''
:
...
...
@@ -198,23 +199,22 @@ class Cluster:
HELP
.
GenericHelp
(
CONST
.
Version
)
HELP
.
EPCSrvHelp
(
self
.
imageToPull
)
sys
.
exit
(
'Insufficient eNB Parameters'
)
lIpAddr
=
self
.
eNBIPAddress
self
.
testCase_id
=
HTML
.
testCase_id
cmd
=
cls_cmd
.
getConnection
(
lIpAddr
)
succeeded
=
OC_login
(
cmd
,
self
.
OCUserName
,
self
.
OCPassword
,
self
.
OCProjectName
)
cmd
=
cls_cmd
.
getConnection
(
self
.
eNBIPAddress
)
succeeded
=
OC_login
(
cmd
,
self
.
OCUserName
,
self
.
OCPassword
,
CI_OC_RAN_NAMESPACE
)
if
not
succeeded
:
logging
.
error
(
'
\u001B
[1m OC Cluster Login Failed
\u001B
[0m'
)
HTML
.
CreateHtmlTestRow
(
'N/A'
,
'KO'
,
CONST
.
OC_LOGIN_FAIL
)
return
False
ret
=
cmd
.
run
(
f'oc whoami -t | docker login -u oaicicd --password-stdin
{
self
.
OCRegistry
}
'
)
if
ret
.
returncode
!=
0
:
logging
.
error
(
f'
\u001B
[1m Unable to access OC project
{
ocProjectName
}
\u001B
[0m'
)
logging
.
error
(
f'
\u001B
[1m Unable to access OC project
{
CI_OC_RAN_NAMESPACE
}
\u001B
[0m'
)
OC_logout
(
cmd
)
cmd
.
close
()
HTML
.
CreateHtmlTestRow
(
'N/A'
,
'KO'
,
CONST
.
OC_LOGIN_FAIL
)
return
False
for
image
in
self
.
imageToPull
:
imagePrefix
=
f'
{
self
.
OCRegistry
}{
self
.
OCProjectName
}
'
imagePrefix
=
f'
{
self
.
OCRegistry
}{
CI_OC_RAN_NAMESPACE
}
'
imageTag
=
cls_containerize
.
ImageTagToUse
(
image
,
self
.
ranCommitID
,
self
.
ranBranch
,
self
.
ranAllowMerge
)
ret
=
cmd
.
run
(
f'docker pull
{
imagePrefix
}
/
{
imageTag
}
'
)
if
ret
.
returncode
!=
0
:
...
...
ci-scripts/cls_containerize.py
View file @
d399a794
...
...
@@ -800,7 +800,7 @@ class Containerize():
logging
.
debug
(
'Removing test images locally'
)
myCmd
=
cls_cmd
.
LocalCmd
()
imageNames
=
[
'oai-enb'
,
'oai-gnb'
,
'oai-lte-ue'
,
'oai-nr-ue'
,
'oai-lte-ru'
,
'oai-nr-cuup'
]
imageNames
=
[
'oai-enb'
,
'oai-gnb'
,
'oai-lte-ue'
,
'oai-nr-ue'
,
'oai-lte-ru'
,
'oai-nr-cuup'
,
'oai-gnb-aw2s'
]
for
image
in
imageNames
:
imageTag
=
ImageTagToUse
(
image
,
self
.
ranCommitID
,
self
.
ranBranch
,
self
.
ranAllowMerge
)
cmd
=
f'docker rmi oai-ci/
{
imageTag
}
'
...
...
ci-scripts/cls_oaicitest.py
View file @
d399a794
...
...
@@ -49,6 +49,7 @@ import concurrent.futures
#import our libs
import
helpreadme
as
HELP
import
constants
as
CONST
import
cls_cluster
as
OC
import
sshconnection
import
cls_module_ue
...
...
@@ -231,7 +232,6 @@ class OaiCiTest():
[
f
.
result
()
for
f
in
futures
]
HTML
.
CreateHtmlTestRowQueue
(
'N/A'
,
'OK'
,
messages
)
def
InitializeOAIUE
(
self
,
HTML
,
RAN
,
EPC
,
CONTAINERS
):
if
self
.
UEIPAddress
==
''
or
self
.
UEUserName
==
''
or
self
.
UEPassword
==
''
or
self
.
UESourceCodePath
==
''
:
HELP
.
GenericHelp
(
CONST
.
Version
)
...
...
@@ -995,7 +995,9 @@ class OaiCiTest():
cn_target_ip
=
result
.
group
(
'trf_ip_addr'
)
SSH
.
close
()
cn_iperf_prefix
=
"docker exec prod-trf-gen"
# -w /iperf-2.0.13 necessary?
else
:
# ltebox, sabox
if
(
re
.
match
(
'OC-OAI-CN5G'
,
EPC
.
Type
,
re
.
IGNORECASE
)):
cn_target_ip
=
"172.21.6.102"
else
:
# lteboix, sabox
cn_target_ip
=
"192.172.0.1"
cn_iperf_prefix
=
""
...
...
@@ -1077,6 +1079,20 @@ class OaiCiTest():
self
.
Iperf_analyzeV2BIDIR
(
lock
,
ue
.
getHost
(),
ue
.
getName
(),
statusQueue
,
server_filename
,
client_filename
)
elif
self
.
iperf_direction
==
"IPERF3"
:
cmd
=
cls_cmd
.
getConnection
(
ue
.
getHost
())
cmd
.
run
(
f'rm /tmp/
{
server_filename
}
'
,
reportNonZero
=
False
)
port
=
f'
{
5002
+
idx
}
'
cmd
.
run
(
f'
{
ue
.
getCmdPrefix
()
}
iperf3 -c
{
cn_target_ip
}
-p
{
port
}
{
iperf_opt
}
--get-server-output &> /tmp/
{
server_filename
}
'
,
timeout
=
iperf_time
*
1.5
)
cmd
.
copyin
(
f'/tmp/
{
server_filename
}
'
,
server_filename
)
cmd
.
close
()
if
udpIperf
:
self
.
Iperf_analyzeV2Server
(
lock
,
ue
.
getIP
(),
ue
.
getName
(),
statusQueue
,
iperf_opt
,
server_filename
,
1
)
else
:
cmd
=
cls_cmd
.
getConnection
(
EPC
.
IPAddress
)
self
.
Iperf_analyzeV2TCPOutput
(
lock
,
ue
.
getIP
(),
ue
.
getName
(),
statusQueue
,
iperf_opt
,
EPC
,
cmd
,
f'/tmp/
{
server_filename
}
'
)
cmd
.
close
()
else
:
raise
Exception
(
"Incorrect or missing IPERF direction in XML"
)
...
...
@@ -1216,7 +1232,6 @@ class OaiCiTest():
#result = re.search('iperf version 2.0.10', str(iperfStdout.strip()))
#if result is not None:
# dummyIperfVersion = '2.0.10'
multi_jobs
=
[]
ue_num
=
len
(
ues
)
i
=
0
...
...
ci-scripts/conf_files/gnb.sa.band78.51prb.aw2s.ddsuu.conf
View file @
d399a794
...
...
@@ -200,7 +200,7 @@ MACRLCs = (
pusch_TargetSNRx10
=
200
;
pucch_TargetSNRx10
=
200
;
ulsch_max_frame_inactivity
=
10
;
ul_max_mcs
=
15
;
ul_max_mcs
=
28
;
}
);
...
...
ci-scripts/epc.py
View file @
d399a794
...
...
@@ -75,7 +75,6 @@ class EPCManagement():
self
.
OCRegistry
=
"default-route-openshift-image-registry.apps.oai.cs.eurecom.fr/"
self
.
OCUserName
=
''
self
.
OCPassword
=
''
self
.
OCProjectName
=
''
self
.
imageToPull
=
''
self
.
eNBSourceCodePath
=
''
...
...
@@ -240,9 +239,9 @@ class EPCManagement():
HTML
.
CreateHtmlTestRow
(
self
.
Type
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
def
Initialize5GCN
(
self
,
HTML
):
if
self
.
IPAddress
==
''
or
self
.
UserName
==
''
or
self
.
Password
==
''
or
self
.
SourceCodePath
==
''
or
self
.
Type
==
''
:
if
self
.
IPAddress
==
''
or
self
.
UserName
==
''
or
self
.
Password
==
''
or
self
.
Type
==
''
:
HELP
.
GenericHelp
(
CONST
.
Version
)
HELP
.
EPCSrvHelp
(
self
.
IPAddress
,
self
.
UserName
,
self
.
Password
,
self
.
SourceCodePath
,
self
.
Type
)
HELP
.
EPCSrvHelp
(
self
.
IPAddress
,
self
.
UserName
,
self
.
Password
,
self
.
Type
)
sys
.
exit
(
'Insufficient EPC Parameters'
)
mySSH
=
cls_cmd
.
getConnection
(
self
.
IPAddress
)
html_cell
=
''
...
...
@@ -299,8 +298,8 @@ class EPCManagement():
imageNames
=
[
"oai-nrf"
,
"oai-amf"
,
"oai-smf"
,
"oai-spgwu-tiny"
,
"oai-ausf"
,
"oai-udm"
,
"oai-udr"
,
"mysql"
,
"oai-traffic-server"
]
logging
.
debug
(
'Deploying OAI CN5G on Openshift Cluster'
)
lIpAddr
=
self
.
IPAddress
lSourcePath
=
self
.
SourceCodePath
succeeded
=
OC
.
OC_login
(
mySSH
,
self
.
OCUserName
,
self
.
OCPassword
,
self
.
OCProjectName
)
lSourcePath
=
"/opt/oai-cn5g-fed-develop-2023-04-28-20897"
succeeded
=
OC
.
OC_login
(
mySSH
,
self
.
OCUserName
,
self
.
OCPassword
,
OC
.
CI_OC_CORE_NAMESPACE
)
if
not
succeeded
:
logging
.
error
(
'
\u001B
[1m OC Cluster Login Failed
\u001B
[0m'
)
HTML
.
CreateHtmlTestRow
(
'N/A'
,
'KO'
,
CONST
.
OC_LOGIN_FAIL
)
...
...
@@ -599,7 +598,7 @@ class EPCManagement():
mySSH
.
run
(
f'rm -Rf
{
lSourcePath
}
/logs'
)
mySSH
.
run
(
f'mkdir -p
{
lSourcePath
}
/logs'
)
logging
.
debug
(
'OC OAI CN5G - Collecting Log files to workspace'
)
succeeded
=
OC
.
OC_login
(
mySSH
,
self
.
OCUserName
,
self
.
OCPassword
,
self
.
OCProjectName
)
succeeded
=
OC
.
OC_login
(
mySSH
,
self
.
OCUserName
,
self
.
OCPassword
,
OC
.
CI_OC_CORE_NAMESPACE
)
if
not
succeeded
:
logging
.
error
(
'
\u001B
[1m OC Cluster Login Failed
\u001B
[0m'
)
HTML
.
CreateHtmlTestRow
(
'N/A'
,
'KO'
,
CONST
.
OC_LOGIN_FAIL
)
...
...
@@ -618,7 +617,7 @@ class EPCManagement():
mySSH
.
run
(
f'cd
{
lSourcePath
}
/logs && zip -r -qq test_logs_CN.zip *.log'
)
mySSH
.
copyin
(
f'
{
lSourcePath
}
/logs/test_logs_CN.zip'
,
'test_logs_CN.zip'
)
ret
=
mySSH
.
run
(
f'oc get pods'
,
silent
=
True
)
res
=
re
.
search
(
'No resources found in oaicicd-ran
namespace.'
,
ret
.
stdout
)
res
=
re
.
search
(
f'No resources found in
{
OC
.
CI_OC_CORE_NAMESPACE
}
namespace.'
,
ret
.
stdout
)
if
res
is
not
None
:
logging
.
debug
(
'OC OAI CN5G components uninstalled'
)
message
=
'OC OAI CN5G components uninstalled'
...
...
ci-scripts/xml_files/container_sa_aw2s_asue.xml
View file @
d399a794
...
...
@@ -30,8 +30,14 @@
001000
020000
002000
002001
002002
002003
002004
002005
000100
000010
000020
000200
003000
004000
...
...
@@ -43,6 +49,7 @@
<testCase
id=
"010000"
>
<class>
Pull_Cluster_Image
</class>
<desc>
Pull Images from Cluster
</desc>
<oc_project>
oaicicd-ran
</oc_project>
<images_to_pull>
oai-gnb-aw2s
</images_to_pull>
</testCase>
...
...
@@ -60,7 +67,7 @@
<id>
amarisoft_ue
</id>
</testCase>
<testCase
id=
"00200
0
"
>
<testCase
id=
"00200
1
"
>
<class>
Attach_UE
</class>
<desc>
Attach UE
</desc>
<id>
amarisoft_ue_1
</id>
...
...
@@ -72,28 +79,68 @@
<id>
amarisoft_ue_2
</id>
</testCase>
<testCase
id=
"002003"
>
<class>
Attach_UE
</class>
<desc>
Attach UE
</desc>
<id>
amarisoft_ue_3
</id>
</testCase>
<testCase
id=
"002004"
>
<class>
Attach_UE
</class>
<desc>
Attach UE
</desc>
<id>
amarisoft_ue_4
</id>
</testCase>
<testCase
id=
"002005"
>
<class>
Attach_UE
</class>
<desc>
Attach UE
</desc>
<id>
amarisoft_ue_5
</id>
</testCase>
<testCase
id=
"000010"
>
<class>
Iperf
</class>
<desc>
iperf (DL/20Mbps/UDP)(30 sec)(multi-ue profile)
</desc>
<iperf_args>
-u -b 60M -t 30 -i 1 -R
</iperf_args>
<direction>
IPERF3
</direction>
<id>
amarisoft_ue_1 amarisoft_ue_2 amarisoft_ue_3
</id>
<iperf_packetloss_threshold>
25
</iperf_packetloss_threshold>
<iperf_bitrate_threshold>
80
</iperf_bitrate_threshold>
<iperf_profile>
balanced
</iperf_profile>
</testCase>
<testCase
id=
"000020"
>
<class>
Iperf
</class>
<desc>
iperf (UL/5Mbps/UDP)(30 sec)(multi-ue profile)
</desc>
<iperf_args>
-u -b 15M -t 30 -i 1
</iperf_args>
<direction>
IPERF3
</direction>
<id>
amarisoft_ue_1 amarisoft_ue_2 amarisoft_ue_3
</id>
<iperf_packetloss_threshold>
25
</iperf_packetloss_threshold>
<iperf_bitrate_threshold>
80
</iperf_bitrate_threshold>
<iperf_profile>
balanced
</iperf_profile>
</testCase>
<testCase
id=
"000100"
>
<class>
Ping
</class>
<desc>
Ping: 20pings in 20sec
</desc>
<id>
amarisoft_ue_1 amarisoft_ue_2
</id>
<desc>
Ping: 20pings in 20sec
, multi-ue
</desc>
<id>
amarisoft_ue_1 amarisoft_ue_2
amarisoft_ue_3 amarisoft_ue_4 amarisoft_ue_5
</id>
<ping_args>
-c 20
</ping_args>
<ping_packetloss_threshold>
1
</ping_packetloss_threshold>
<ping_rttavg_threshold>
1
5
</ping_rttavg_threshold>
<ping_rttavg_threshold>
2
5
</ping_rttavg_threshold>
</testCase>
<testCase
id=
"000200"
>
<class>
Ping
</class>
<desc>
Ping: 100pings in 20sec
</desc>
<id>
amarisoft_ue_1 amarisoft_ue_2
</id>
<desc>
Ping: 100pings in 20sec
, multi-ue
</desc>
<id>
amarisoft_ue_1 amarisoft_ue_2
amarisoft_ue_3 amarisoft_ue_4 amarisoft_ue_5
</id>
<ping_args>
-c 100 -i 0.2
</ping_args>
<ping_packetloss_threshold>
1
</ping_packetloss_threshold>
<ping_rttavg_threshold>
15
</ping_rttavg_threshold>
<ping_rttavg_threshold>
30
</ping_rttavg_threshold>
</testCase>
<testCase
id=
"003000"
>
<class>
Detach_UE
</class>
<desc>
Detach UE
</desc>
<id>
amarisoft_ue_1 amarisoft_ue_2
</id>
<id>
amarisoft_ue_1 amarisoft_ue_2
amarisoft_ue_3 amarisoft_ue_4 amarisoft_ue_5
</id>
</testCase>
<testCase
id=
"004000"
>
...
...
@@ -119,4 +166,3 @@
</testCase>
</testCaseList>
ci-scripts/xml_files/container_sa_aw2s_asue_cleanup.xml
0 → 100644
View file @
d399a794
<!--
Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The OpenAirInterface Software Alliance licenses this file to You under
the OAI Public License, Version 1.1 (the "License"); you may not use this file
except in compliance with the License.
You may obtain a copy of the License at
http://www.openairinterface.org/?page_id=698
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
For more information about the OpenAirInterface (OAI) Software Alliance:
contact@openairinterface.org
-->
<testCaseList>
<htmlTabRef>
test-aw2s-cleanup
</htmlTabRef>
<htmlTabName>
CleanUp AW2S ASUE
</htmlTabName>
<htmlTabIcon>
trash
</htmlTabIcon>
<TestCaseRequestedList>
111111
222222
</TestCaseRequestedList>
<TestCaseExclusionList></TestCaseExclusionList>
<testCase
id=
"111111"
>
<class>
Clean_Test_Server_Images
</class>
<desc>
Clean Test Images on Test Server
</desc>
<test_svr_id>
0
</test_svr_id>
</testCase>
<testCase
id=
"222222"
>
<class>
Terminate_UE
</class>
<desc>
Terminate UE
</desc>
<id>
amarisoft_ue
</id>
</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