CI: simplification of the X2 HO scenario. But sill failing!
Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
This commit is contained in:
+22
-1
@@ -134,6 +134,7 @@ class SSHConnection():
|
|||||||
self.eNBLogFiles = ['', '', '']
|
self.eNBLogFiles = ['', '', '']
|
||||||
self.eNBOptions = ['', '', '']
|
self.eNBOptions = ['', '', '']
|
||||||
self.eNBmbmsEnables = [False, False, False]
|
self.eNBmbmsEnables = [False, False, False]
|
||||||
|
self.eNBstatuses = [-1, -1, -1]
|
||||||
self.ping_args = ''
|
self.ping_args = ''
|
||||||
self.ping_packetloss_threshold = ''
|
self.ping_packetloss_threshold = ''
|
||||||
self.iperf_args = ''
|
self.iperf_args = ''
|
||||||
@@ -899,6 +900,8 @@ class SSHConnection():
|
|||||||
logging.debug('\u001B[1m oaitun_enm1 interface is mounted and configured\u001B[0m')
|
logging.debug('\u001B[1m oaitun_enm1 interface is mounted and configured\u001B[0m')
|
||||||
else:
|
else:
|
||||||
logging.error('\u001B[1m oaitun_enm1 interface is either NOT mounted or NOT configured\u001B[0m')
|
logging.error('\u001B[1m oaitun_enm1 interface is either NOT mounted or NOT configured\u001B[0m')
|
||||||
|
if enbDidSync:
|
||||||
|
self.eNBstatuses[int(self.eNB_instance)] = int(self.eNB_serverId)
|
||||||
|
|
||||||
self.close()
|
self.close()
|
||||||
self.CreateHtmlTestRow('-O ' + config_file + extra_options, 'OK', ALL_PROCESSES_OK)
|
self.CreateHtmlTestRow('-O ' + config_file + extra_options, 'OK', ALL_PROCESSES_OK)
|
||||||
@@ -2992,7 +2995,24 @@ class SSHConnection():
|
|||||||
|
|
||||||
def CheckeNBProcess(self, status_queue):
|
def CheckeNBProcess(self, status_queue):
|
||||||
try:
|
try:
|
||||||
self.open(self.eNBIPAddress, self.eNBUserName, self.eNBPassword)
|
# At least the instance 0 SHALL be on!
|
||||||
|
if self.eNBstatuses[0] == 0:
|
||||||
|
lIpAddr = self.eNBIPAddress
|
||||||
|
lUserName = self.eNBUserName
|
||||||
|
lPassWord = self.eNBPassword
|
||||||
|
elif self.eNBstatuses[0] == 1:
|
||||||
|
lIpAddr = self.eNB1IPAddress
|
||||||
|
lUserName = self.eNB1UserName
|
||||||
|
lPassWord = self.eNB1Password
|
||||||
|
elif self.eNBstatuses[0] == 2:
|
||||||
|
lIpAddr = self.eNB2IPAddress
|
||||||
|
lUserName = self.eNB2UserName
|
||||||
|
lPassWord = self.eNB2Password
|
||||||
|
else:
|
||||||
|
lIpAddr = self.eNBIPAddress
|
||||||
|
lUserName = self.eNBUserName
|
||||||
|
lPassWord = self.eNBPassword
|
||||||
|
self.open(lIpAddr, lUserName, lPassWord)
|
||||||
self.command('stdbuf -o0 ps -aux | grep --color=never softmodem | grep -v grep', '\$', 5)
|
self.command('stdbuf -o0 ps -aux | grep --color=never softmodem | grep -v grep', '\$', 5)
|
||||||
result = re.search('lte-softmodem', str(self.ssh.before))
|
result = re.search('lte-softmodem', str(self.ssh.before))
|
||||||
if result is None:
|
if result is None:
|
||||||
@@ -3589,6 +3609,7 @@ class SSHConnection():
|
|||||||
else:
|
else:
|
||||||
self.CreateHtmlTestRow('N/A', 'OK', ALL_PROCESSES_OK)
|
self.CreateHtmlTestRow('N/A', 'OK', ALL_PROCESSES_OK)
|
||||||
self.eNBmbmsEnables[int(self.eNB_instance)] = False
|
self.eNBmbmsEnables[int(self.eNB_instance)] = False
|
||||||
|
self.eNBstatuses[int(self.eNB_instance)] = -1
|
||||||
|
|
||||||
def TerminateHSS(self):
|
def TerminateHSS(self):
|
||||||
self.open(self.EPCIPAddress, self.EPCUserName, self.EPCPassword)
|
self.open(self.EPCIPAddress, self.EPCUserName, self.EPCPassword)
|
||||||
|
|||||||
@@ -30,11 +30,9 @@
|
|||||||
050102
|
050102
|
||||||
030104 000002 030105 000002
|
030104 000002 030105 000002
|
||||||
040301 000002
|
040301 000002
|
||||||
040540 040615 040616 040655 040656
|
040540 040615 040655
|
||||||
050401 000001
|
050401 000001
|
||||||
040541 040617 040618 040657 040658
|
040541 040617 040657
|
||||||
050402 000001
|
|
||||||
040542
|
|
||||||
040401 000001
|
040401 000001
|
||||||
040201 000002 030201 030202
|
040201 000002 030201 030202
|
||||||
050202
|
050202
|
||||||
|
|||||||
Reference in New Issue
Block a user