From e845a9c3b7e6210237b20c28acc191418157fb5e Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Thu, 29 Feb 2024 18:56:31 +0100 Subject: [PATCH] CI: Make RFsim start-up faster Make RFsim start up faster by starting core and RAN start at the same time. This speeds up because we do not wait for "healthy" containers serially, but parallely. For the RAN, it is safe to start gNB and UE at the same time in SA mode (as the UE will only attach once the radio, and hence the full gNB, is ready). We do not start in parallel in do-ra and phytest, as in these modes the gNB first has to write a UE-specific configuration file. If we start both gNB and UE at the same time, the UE might try to read the file before it is written, leading to a failure. --- .../xml_files/container_5g_fdd_rfsim.xml | 24 +++---------------- .../xml_files/container_5g_rfsim_24prb.xml | 24 +++---------------- .../xml_files/container_5g_rfsim_2x2.xml | 24 +++---------------- .../container_5g_rfsim_f1_accelleran.xml | 13 ++-------- .../xml_files/container_5g_rfsim_u0_25prb.xml | 24 +++---------------- 5 files changed, 14 insertions(+), 95 deletions(-) diff --git a/ci-scripts/xml_files/container_5g_fdd_rfsim.xml b/ci-scripts/xml_files/container_5g_fdd_rfsim.xml index cfcf40e69e..463cb3f2e8 100644 --- a/ci-scripts/xml_files/container_5g_fdd_rfsim.xml +++ b/ci-scripts/xml_files/container_5g_fdd_rfsim.xml @@ -28,10 +28,8 @@ 111111 100011 - 000010 000011 000012 - 000013 020011 020012 030011 @@ -47,35 +45,19 @@ oai-gnb-asan oai-nr-ue-asan - - DeployGenObject - Deploy MySql Database - yaml_files/5g_fdd_rfsimulator - mysql - 1 - - DeployGenObject Deploy OAI 5G CoreNetwork yaml_files/5g_fdd_rfsimulator - oai-amf oai-smf oai-upf oai-ext-dn + mysql oai-amf oai-smf oai-upf oai-ext-dn 5 DeployGenObject - Deploy OAI 5G gNB RF sim SA + Deploy OAI 5G gNB+UE RF sim SA yaml_files/5g_fdd_rfsimulator - oai-gnb - 6 - - - - DeployGenObject - Deploy OAI 5G NR-UE RF sim SA - yaml_files/5g_fdd_rfsimulator - oai-nr-ue + oai-gnb oai-nr-ue 7 diff --git a/ci-scripts/xml_files/container_5g_rfsim_24prb.xml b/ci-scripts/xml_files/container_5g_rfsim_24prb.xml index 41f25476c3..4f838658ec 100644 --- a/ci-scripts/xml_files/container_5g_rfsim_24prb.xml +++ b/ci-scripts/xml_files/container_5g_rfsim_24prb.xml @@ -28,10 +28,8 @@ 111111 100001 - 000000 000001 000002 - 000003 020001 020002 030001 @@ -47,35 +45,19 @@ oai-gnb-asan oai-nr-ue-asan - - DeployGenObject - Deploy MySql Database - yaml_files/5g_rfsimulator_24prb - mysql - 1 - - DeployGenObject Deploy OAI 5G CoreNetwork yaml_files/5g_rfsimulator_24prb - oai-amf oai-smf oai-upf oai-ext-dn + mysql oai-amf oai-smf oai-upf oai-ext-dn 5 DeployGenObject - Deploy OAI 5G gNB RF sim SA + Deploy OAI 5G gNB+UE RFsim SA yaml_files/5g_rfsimulator_24prb - oai-gnb - 6 - - - - DeployGenObject - Deploy OAI 5G NR-UE RF sim SA - yaml_files/5g_rfsimulator_24prb - oai-nr-ue + oai-gnb oai-nr-ue 7 diff --git a/ci-scripts/xml_files/container_5g_rfsim_2x2.xml b/ci-scripts/xml_files/container_5g_rfsim_2x2.xml index defe15a1df..45c311fd97 100644 --- a/ci-scripts/xml_files/container_5g_rfsim_2x2.xml +++ b/ci-scripts/xml_files/container_5g_rfsim_2x2.xml @@ -28,10 +28,8 @@ 111111 100001 - 000000 000001 000002 - 000003 020001 020002 030001 @@ -47,35 +45,19 @@ oai-gnb-asan oai-nr-ue-asan - - DeployGenObject - Deploy MySql Database - yaml_files/5g_rfsimulator_2x2 - mysql - 1 - - DeployGenObject Deploy OAI 5G CoreNetwork yaml_files/5g_rfsimulator_2x2 - oai-amf oai-smf oai-upf oai-ext-dn + mysql oai-amf oai-smf oai-upf oai-ext-dn 5 DeployGenObject - Deploy OAI 5G gNB RF sim SA + Deploy OAI 5G gNB+UE RF sim SA yaml_files/5g_rfsimulator_2x2 - oai-gnb - 6 - - - - DeployGenObject - Deploy OAI 5G NR-UE RF sim SA - yaml_files/5g_rfsimulator_2x2 - oai-nr-ue + oai-gnb oai-nr-ue 7 diff --git a/ci-scripts/xml_files/container_5g_rfsim_f1_accelleran.xml b/ci-scripts/xml_files/container_5g_rfsim_f1_accelleran.xml index d1433db738..5baa950549 100644 --- a/ci-scripts/xml_files/container_5g_rfsim_f1_accelleran.xml +++ b/ci-scripts/xml_files/container_5g_rfsim_f1_accelleran.xml @@ -27,7 +27,6 @@ 111111 000020 - 000021 020021 100021 100022 @@ -43,17 +42,9 @@ DeployGenObject - Deploy OAI-DU + Deploy OAI-DU+nrUE yaml_files/5g_rfsimulator_accelleran - oai-du - 1 - - - - DeployGenObject - Deploy nrUE - yaml_files/5g_rfsimulator_accelleran - oai-nr-ue + oai-du oai-nr-ue 2 diff --git a/ci-scripts/xml_files/container_5g_rfsim_u0_25prb.xml b/ci-scripts/xml_files/container_5g_rfsim_u0_25prb.xml index f059d69614..c31d6c1843 100644 --- a/ci-scripts/xml_files/container_5g_rfsim_u0_25prb.xml +++ b/ci-scripts/xml_files/container_5g_rfsim_u0_25prb.xml @@ -28,10 +28,8 @@ 111111 100001 - 000000 000001 000002 - 000003 020001 020002 030001 @@ -47,35 +45,19 @@ oai-gnb-asan oai-nr-ue-asan - - DeployGenObject - Deploy MySql Database - yaml_files/5g_rfsimulator_u0_25prb - mysql - 1 - - DeployGenObject Deploy OAI 5G CoreNetwork yaml_files/5g_rfsimulator_u0_25prb - oai-amf oai-smf oai-upf oai-ext-dn + mysql oai-amf oai-smf oai-upf oai-ext-dn 5 DeployGenObject - Deploy OAI 5G gNB RF sim SA + Deploy OAI 5G gNB+nrUE RF sim SA yaml_files/5g_rfsimulator_u0_25prb - oai-gnb - 6 - - - - DeployGenObject - Deploy OAI 5G NR-UE RF sim SA - yaml_files/5g_rfsimulator_u0_25prb - oai-nr-ue + oai-gnb oai-nr-ue 7