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
wangjie
OpenXG-RAN
Commits
25a3f1cd
Commit
25a3f1cd
authored
Apr 04, 2019
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: fix on build
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
69c4acfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
ci-scripts/main.py
ci-scripts/main.py
+7
-8
No files found.
ci-scripts/main.py
View file @
25a3f1cd
...
...
@@ -305,7 +305,6 @@ class SSHConnection():
sys
.
exit
(
'SCP failed'
)
def
BuildeNB
(
self
):
return
if
self
.
eNBIPAddress
==
''
or
self
.
eNBRepository
==
''
or
self
.
eNBBranch
==
''
or
self
.
eNBUserName
==
''
or
self
.
eNBPassword
==
''
or
self
.
eNBSourceCodePath
==
''
:
Usage
()
sys
.
exit
(
'Insufficient Parameter'
)
...
...
@@ -2014,7 +2013,7 @@ class SSHConnection():
def
CheckHSSProcess
(
self
,
status_queue
):
try
:
self
.
open
(
self
.
EPCIPAddress
,
self
.
EPCUserName
,
self
.
EPCPassword
)
self
.
command
(
'stdbuf -o0 ps -aux | grep -
v grep | grep --color=never hss
'
,
'\$'
,
5
)
self
.
command
(
'stdbuf -o0 ps -aux | grep -
-color=never hss | grep -v grep
'
,
'\$'
,
5
)
if
re
.
match
(
'OAI'
,
self
.
EPCType
,
re
.
IGNORECASE
):
result
=
re
.
search
(
'\/bin\/bash .\/run_'
,
str
(
self
.
ssh
.
before
))
else
:
...
...
@@ -2031,7 +2030,7 @@ class SSHConnection():
def
CheckMMEProcess
(
self
,
status_queue
):
try
:
self
.
open
(
self
.
EPCIPAddress
,
self
.
EPCUserName
,
self
.
EPCPassword
)
self
.
command
(
'stdbuf -o0 ps -aux | grep -
v grep | grep --color=never mme
'
,
'\$'
,
5
)
self
.
command
(
'stdbuf -o0 ps -aux | grep -
-color=never mme | grep -v grep
'
,
'\$'
,
5
)
if
re
.
match
(
'OAI'
,
self
.
EPCType
,
re
.
IGNORECASE
):
result
=
re
.
search
(
'\/bin\/bash .\/run_'
,
str
(
self
.
ssh
.
before
))
else
:
...
...
@@ -2049,10 +2048,10 @@ class SSHConnection():
try
:
self
.
open
(
self
.
EPCIPAddress
,
self
.
EPCUserName
,
self
.
EPCPassword
)
if
re
.
match
(
'OAI'
,
self
.
EPCType
,
re
.
IGNORECASE
):
self
.
command
(
'stdbuf -o0 ps -aux | grep -
v grep | grep --color=never spgw
'
,
'\$'
,
5
)
self
.
command
(
'stdbuf -o0 ps -aux | grep -
-color=never spgw | grep -v grep
'
,
'\$'
,
5
)
result
=
re
.
search
(
'\/bin\/bash .\/run_'
,
str
(
self
.
ssh
.
before
))
else
:
self
.
command
(
'stdbuf -o0 ps -aux | grep -
v grep | grep --color=never xGw
'
,
'\$'
,
5
)
self
.
command
(
'stdbuf -o0 ps -aux | grep -
-color=never xGw | grep -v grep
'
,
'\$'
,
5
)
result
=
re
.
search
(
'xGw'
,
str
(
self
.
ssh
.
before
))
if
result
is
None
:
logging
.
debug
(
'
\u001B
[1;37;41m SPGW Process Not Found!
\u001B
[0m'
)
...
...
@@ -2454,7 +2453,7 @@ class SSHConnection():
if
re
.
match
(
'OAI'
,
self
.
EPCType
,
re
.
IGNORECASE
):
self
.
command
(
'echo '
+
self
.
EPCPassword
+
' | sudo -S killall --signal SIGINT run_hss oai_hss || true'
,
'\$'
,
5
)
time
.
sleep
(
2
)
self
.
command
(
'stdbuf -o0 ps -aux | grep
-v grep | grep hss
'
,
'\$'
,
5
)
self
.
command
(
'stdbuf -o0 ps -aux | grep
hss | grep -v grep
'
,
'\$'
,
5
)
result
=
re
.
search
(
'\/bin\/bash .\/run_'
,
str
(
self
.
ssh
.
before
))
if
result
is
not
None
:
self
.
command
(
'echo '
+
self
.
EPCPassword
+
' | sudo -S killall --signal SIGKILL run_hss oai_hss || true'
,
'\$'
,
5
)
...
...
@@ -2473,7 +2472,7 @@ class SSHConnection():
if
re
.
match
(
'OAI'
,
self
.
EPCType
,
re
.
IGNORECASE
):
self
.
command
(
'echo '
+
self
.
EPCPassword
+
' | sudo -S killall --signal SIGINT run_mme mme || true'
,
'\$'
,
5
)
time
.
sleep
(
2
)
self
.
command
(
'stdbuf -o0 ps -aux | grep
-v grep | grep mme
'
,
'\$'
,
5
)
self
.
command
(
'stdbuf -o0 ps -aux | grep
mme | grep -v grep
'
,
'\$'
,
5
)
result
=
re
.
search
(
'\/bin\/bash .\/run_'
,
str
(
self
.
ssh
.
before
))
if
result
is
not
None
:
self
.
command
(
'echo '
+
self
.
EPCPassword
+
' | sudo -S killall --signal SIGKILL run_mme mme || true'
,
'\$'
,
5
)
...
...
@@ -2488,7 +2487,7 @@ class SSHConnection():
if
re
.
match
(
'OAI'
,
self
.
EPCType
,
re
.
IGNORECASE
):
self
.
command
(
'echo '
+
self
.
EPCPassword
+
' | sudo -S killall --signal SIGINT run_spgw spgw || true'
,
'\$'
,
5
)
time
.
sleep
(
2
)
self
.
command
(
'stdbuf -o0 ps -aux | grep
-v grep | grep spgw
'
,
'\$'
,
5
)
self
.
command
(
'stdbuf -o0 ps -aux | grep
spgw | grep -v grep
'
,
'\$'
,
5
)
result
=
re
.
search
(
'\/bin\/bash .\/run_'
,
str
(
self
.
ssh
.
before
))
if
result
is
not
None
:
self
.
command
(
'echo '
+
self
.
EPCPassword
+
' | sudo -S killall --signal SIGKILL run_spgw spgw || true'
,
'\$'
,
5
)
...
...
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