Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
23cf8059
Commit
23cf8059
authored
2 years ago
by
Robert Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Save logs of unhealthy containers during deployment
parent
c1b448cd
No related branches found
No related tags found
3 merge requests
!1757
Draft: Use pMAX value in configuration file, instead of hardcoded '23' in asn1_msg.c
,
!1682
integration_2022_wk35
,
!1666
gzip optim, links for size
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci-scripts/cls_containerize.py
+7
-3
7 additions, 3 deletions
ci-scripts/cls_containerize.py
with
7 additions
and
3 deletions
ci-scripts/cls_containerize.py
+
7
−
3
View file @
23cf8059
...
...
@@ -702,6 +702,9 @@ class Containerize():
logging
.
debug
(
'
--
'
+
str
(
unhealthyNb
)
+
'
unhealthy container(s)
'
)
logging
.
debug
(
'
--
'
+
str
(
startingNb
)
+
'
still starting container(s)
'
)
self
.
testCase_id
=
HTML
.
testCase_id
self
.
eNB_logFile
[
self
.
eNB_instance
]
=
'
enb_
'
+
self
.
testCase_id
+
'
.log
'
status
=
False
if
healthyNb
==
1
:
cnt
=
0
...
...
@@ -716,11 +719,12 @@ class Containerize():
status
=
True
logging
.
info
(
'
\u001B
[1m Deploying OAI object Pass
\u001B
[0m
'
)
time
.
sleep
(
10
)
else
:
# containers are unhealthy, so we won't start. However, logs are stored at the end
# in UndeployObject so we here store the logs of the unhealthy container to report it
mySSH
.
command
(
'
docker logs
'
+
containerName
+
'
>
'
+
lSourcePath
+
'
/cmake_targets/
'
+
self
.
eNB_logFile
[
self
.
eNB_instance
],
'
\$
'
,
30
)
mySSH
.
close
()
self
.
testCase_id
=
HTML
.
testCase_id
self
.
eNB_logFile
[
self
.
eNB_instance
]
=
'
enb_
'
+
self
.
testCase_id
+
'
.log
'
if
status
:
HTML
.
CreateHtmlTestRow
(
'
N/A
'
,
'
OK
'
,
CONST
.
ALL_PROCESSES_OK
)
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment