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
4f9a152f
Commit
4f9a152f
authored
1 month ago
by
Jaroslava Fiedlerova
Committed by
Shubhika Garg
1 month ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: remove timeout for OC CN deployments/undeployments
Default value of timeout is 5 minutes.
parent
60b0c182
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ci-scripts/cls_cluster.py
ci-scripts/cls_cluster.py
+4
-4
No files found.
ci-scripts/cls_cluster.py
View file @
4f9a152f
...
...
@@ -72,8 +72,8 @@ def OC_deploy_CN(cmd, ocUserName, ocPassword, ocNamespace, path):
succeeded
=
OC_login
(
cmd
,
ocUserName
,
ocPassword
,
ocNamespace
)
if
not
succeeded
:
return
False
,
CONST
.
OC_LOGIN_FAIL
cmd
.
run
(
'helm uninstall oai5gcn --wait --timeout 60s
'
)
ret
=
cmd
.
run
(
f'helm install --wait
--timeout 120s
oai5gcn
{
path
}
/ci-scripts/charts/oai-5g-basic/.'
)
cmd
.
run
(
f'helm list -aq -n
{
ocNamespace
}
| xargs -r helm uninstall -n
{
ocNamespace
}
--wait
'
)
ret
=
cmd
.
run
(
f'helm install --wait oai5gcn
{
path
}
/ci-scripts/charts/oai-5g-basic/.'
)
if
ret
.
returncode
!=
0
:
logging
.
error
(
'OC OAI CN5G: Deployment failed'
)
OC_logout
(
cmd
)
...
...
@@ -100,10 +100,10 @@ def OC_undeploy_CN(cmd, ocUserName, ocPassword, ocNamespace, path):
cmd
.
run
(
f'oc logs -f
{
podName
}
{
ci
}
&>
{
path
}
/logs/
{
ii
}
.log &'
)
cmd
.
run
(
f'cd
{
path
}
/logs && zip -r -qq test_logs_CN.zip *.log'
)
cmd
.
copyin
(
f'
{
path
}
/logs/test_logs_CN.zip'
,
'test_logs_CN.zip'
)
ret
=
cmd
.
run
(
'helm uninstall --wait --timeout 60s oai5gcn
'
)
ret
=
cmd
.
run
(
f'helm list -aq -n
{
ocNamespace
}
| xargs -r helm uninstall -n
{
ocNamespace
}
--wait
'
)
if
ret
.
returncode
!=
0
:
logging
.
error
(
'OC OAI CN5G: Undeployment failed'
)
cmd
.
run
(
'helm uninstall --wait --timeout 60s oai5gcn
'
)
cmd
.
run
(
f'helm list -aq -n
{
ocNamespace
}
| xargs -r helm uninstall -n
{
ocNamespace
}
--wait
'
)
OC_logout
(
cmd
)
return
False
,
CONST
.
OC_PROJECT_FAIL
report
=
cmd
.
run
(
'oc get pods'
)
...
...
This diff is collapsed.
Click to expand it.
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