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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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-RAN
Commits
d3837cd3
Commit
d3837cd3
authored
Aug 11, 2025
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deploy_Run_PhySim(): pass node name
harmonize with other code that takes a "node" parameter.
parent
af58cf24
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
ci-scripts/cls_cluster.py
ci-scripts/cls_cluster.py
+4
-4
ci-scripts/main.py
ci-scripts/main.py
+2
-2
ci-scripts/xml_files/physim_4g_deploy_run.xml
ci-scripts/xml_files/physim_4g_deploy_run.xml
+1
-1
ci-scripts/xml_files/physim_5g_deploy_run.xml
ci-scripts/xml_files/physim_5g_deploy_run.xml
+1
-1
No files found.
ci-scripts/cls_cluster.py
View file @
d3837cd3
...
@@ -421,17 +421,17 @@ class Cluster:
...
@@ -421,17 +421,17 @@ class Cluster:
return
status
return
status
def
deploy_oc_physim
(
self
,
ctx
,
HTML
,
oc_release
,
svr_id
):
def
deploy_oc_physim
(
self
,
ctx
,
HTML
,
oc_release
,
node
):
if
self
.
ranRepository
==
''
or
self
.
ranBranch
==
''
or
self
.
ranCommitID
==
''
:
if
self
.
ranRepository
==
''
or
self
.
ranBranch
==
''
or
self
.
ranCommitID
==
''
:
HELP
.
GenericHelp
(
CONST
.
Version
)
HELP
.
GenericHelp
(
CONST
.
Version
)
raise
ValueError
(
f'Insufficient Parameter: ranRepository
{
self
.
ranRepository
}
ranBranch
{
self
.
ranBranch
}
ranCommitID
{
self
.
ranCommitID
}
'
)
raise
ValueError
(
f'Insufficient Parameter: ranRepository
{
self
.
ranRepository
}
ranBranch
{
self
.
ranBranch
}
ranCommitID
{
self
.
ranCommitID
}
'
)
image_tag
=
cls_containerize
.
CreateTag
(
self
.
ranCommitID
,
self
.
ranBranch
,
self
.
ranAllowMerge
)
image_tag
=
cls_containerize
.
CreateTag
(
self
.
ranCommitID
,
self
.
ranBranch
,
self
.
ranAllowMerge
)
logging
.
debug
(
f'Running physims from server:
{
svr_id
}
'
)
logging
.
debug
(
f'Running physims from server:
{
node
}
'
)
script
=
"scripts/oc-deploy-physims.sh"
script
=
"scripts/oc-deploy-physims.sh"
options
=
f"oaicicd-core-for-ci-ran
{
oc_release
}
{
image_tag
}
{
self
.
eNBSourceCodePath
}
"
options
=
f"oaicicd-core-for-ci-ran
{
oc_release
}
{
image_tag
}
{
self
.
eNBSourceCodePath
}
"
ret
=
cls_cmd
.
runScript
(
svr_id
,
script
,
600
,
options
)
ret
=
cls_cmd
.
runScript
(
node
,
script
,
600
,
options
)
logging
.
debug
(
f'"
{
script
}
" finished with code
{
ret
.
returncode
}
, output:
\n
{
ret
.
stdout
}
'
)
logging
.
debug
(
f'"
{
script
}
" finished with code
{
ret
.
returncode
}
, output:
\n
{
ret
.
stdout
}
'
)
with
cls_cmd
.
getConnection
(
svr_id
)
as
ssh
:
with
cls_cmd
.
getConnection
(
node
)
as
ssh
:
details_json
=
archiveArtifact
(
ssh
,
ctx
,
f'
{
self
.
eNBSourceCodePath
}
/ci-scripts/
{
oc_release
}
-tests.json'
)
details_json
=
archiveArtifact
(
ssh
,
ctx
,
f'
{
self
.
eNBSourceCodePath
}
/ci-scripts/
{
oc_release
}
-tests.json'
)
result_junit
=
archiveArtifact
(
ssh
,
ctx
,
f'
{
self
.
eNBSourceCodePath
}
/ci-scripts/
{
oc_release
}
-run.xml'
)
result_junit
=
archiveArtifact
(
ssh
,
ctx
,
f'
{
self
.
eNBSourceCodePath
}
/ci-scripts/
{
oc_release
}
-run.xml'
)
archiveArtifact
(
ssh
,
ctx
,
f'
{
self
.
eNBSourceCodePath
}
/ci-scripts/physim_log.txt'
)
archiveArtifact
(
ssh
,
ctx
,
f'
{
self
.
eNBSourceCodePath
}
/ci-scripts/physim_log.txt'
)
...
...
ci-scripts/main.py
View file @
d3837cd3
...
@@ -296,8 +296,8 @@ def ExecuteActionWithParam(action, ctx):
...
@@ -296,8 +296,8 @@ def ExecuteActionWithParam(action, ctx):
elif
action
==
'Deploy_Run_PhySim'
:
elif
action
==
'Deploy_Run_PhySim'
:
oc_release
=
test
.
findtext
(
'oc_release'
)
oc_release
=
test
.
findtext
(
'oc_release'
)
svr_id
=
test
.
findtext
(
'svr_id
'
)
or
None
node
=
test
.
findtext
(
'node
'
)
or
None
success
=
CLUSTER
.
deploy_oc_physim
(
ctx
,
HTML
,
oc_release
,
svr_id
)
success
=
CLUSTER
.
deploy_oc_physim
(
ctx
,
HTML
,
oc_release
,
node
)
elif
action
==
'DeployCoreNetwork'
or
action
==
'UndeployCoreNetwork'
:
elif
action
==
'DeployCoreNetwork'
or
action
==
'UndeployCoreNetwork'
:
cn_id
=
test
.
findtext
(
'cn_id'
)
cn_id
=
test
.
findtext
(
'cn_id'
)
...
...
ci-scripts/xml_files/physim_4g_deploy_run.xml
View file @
d3837cd3
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<class>
Deploy_Run_PhySim
</class>
<class>
Deploy_Run_PhySim
</class>
<desc>
Deploy and run physical simulator on openshift
</desc>
<desc>
Deploy and run physical simulator on openshift
</desc>
<oc_release>
physims-4g
</oc_release>
<oc_release>
physims-4g
</oc_release>
<
svr_id>
avra
</svr_id
>
<
node>
avra
</node
>
</testCase>
</testCase>
</testCaseList>
</testCaseList>
ci-scripts/xml_files/physim_5g_deploy_run.xml
View file @
d3837cd3
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<class>
Deploy_Run_PhySim
</class>
<class>
Deploy_Run_PhySim
</class>
<desc>
Deploy and run physical simulator on openshift
</desc>
<desc>
Deploy and run physical simulator on openshift
</desc>
<oc_release>
physims-5g
</oc_release>
<oc_release>
physims-5g
</oc_release>
<
svr_id>
avra
</svr_id
>
<
node>
avra
</node
>
</testCase>
</testCase>
</testCaseList>
</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