TestBasicVMVNx.test_vm_file_trf_scp_tests[ci_contrail_go_kolla_ocata_sanity,ci_sanity,quick_sanity,vrouter_gw] | Failure | Details
Traceback (most recent call last): testtools.testresult.real._StringException: stdout: {{{ [cirros@169.254.0.3] run: dd bs=1303 count=1 if=/dev/zero of=testfile [cirros@169.254.0.3] run: dd bs=1303 count=1 if=/dev/zero of=testfile }}}
Traceback (most recent call last): File "/contrail-test/tcutils/util.py", line 1041, in wrapper return f(self, *func_args, **func_kwargs) File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper raise TestFailed("\n ".join(errmsg)) tcutils.cores.TestFailed: Test failed: TIMEOUT Python 3.6.8: /usr/bin/python3 Tue Apr 22 13:45:53 2025
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.vm_regression.test_vm.TestBasicVMVNx.te...anity,quick_sanity,vrouter_gw] id=0x7f91d1dd52b0>, *args=(), **kwargs={}) 78 log.info('Initial checks done. Running the testcase now') 79 log.info('') 80 result = function(self, *args, **kwargs) 81 if self.inputs.upgrade: 82 pid = os.getpid() result = None function = <function TestBasicVMVNx.test_vm_file_trf_scp_tests> self = <scripts.vm_regression.test_vm.TestBasicVMVNx.te...anity,quick_sanity,vrouter_gw] id=0x7f91d1dd52b0> args = () kwargs = {}
/contrail-test/scripts/vm_regression/test_vm.py in test_vm_file_trf_scp_tests(self=<scripts.vm_regression.test_vm.TestBasicVMVNx.te...anity,quick_sanity,vrouter_gw] id=0x7f91d1dd52b0>) 2874 if self.inputs.is_ci_setup() and self.inputs.get_af() == 'v4': 2875 if is_ip_mine(vm1_fixture.vm_node_ip): 2876 assert vm1_fixture.scp_file_transfer_cirros(vm2_fixture, size=size), msg 2877 else: 2878 self.skipTest('scp_file_transfer_cirros not posible here') vm1_fixture = <VMFixture: ctest-TestBasicVMVNx-80098524-37403749> vm1_fixture.scp_file_transfer_cirros = <bound method VMFixture.scp_file_transfer_cirros...Fixture: ctest-TestBasicVMVNx-80098524-37403749>> vm2_fixture = <VMFixture: ctest-TestBasicVMVNx-80098524-17628711> size = '1303' msg = 'File of size 1303B not transferred via scp '
/contrail-test/fixtures/vm_test.py in scp_file_transfer_cirros(self=<VMFixture: ctest-TestBasicVMVNx-80098524-37403749>, dest_vm_fixture=<VMFixture: ctest-TestBasicVMVNx-80098524-17628711>, fip=None, size='1303') 2405 'ssh -F /dev/null -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null %s@%s' % (self.vm_username, self.local_ip)) 2406 handle.timeout = int(timeout) 2407 i = handle.expect(['\$ ', 'password:']) 2408 if i == 0: 2409 pass i undefined handle = <pexpect.pty_spawn.spawn object> handle.expect = <bound method SpawnBase.expect of <pexpect.pty_spawn.spawn object>>
/usr/local/lib/python3.6/site-packages/pexpect/spawnbase.py in expect(self=<pexpect.pty_spawn.spawn object>, pattern=[r'\$ ', 'password:'], timeout=-1, searchwindowsize=-1, async_=False, **kw={}) 339 compiled_pattern_list = self.compile_pattern_list(pattern) 340 return self.expect_list(compiled_pattern_list, 341 timeout, searchwindowsize, async_) 342 343 def expect_list(self, pattern_list, timeout=-1, searchwindowsize=-1, timeout = -1 searchwindowsize = -1 async_ = False
/usr/local/lib/python3.6/site-packages/pexpect/spawnbase.py in expect_list(self=<pexpect.pty_spawn.spawn object>, pattern_list=[re.compile(b'\\$ ', re.DOTALL), re.compile(b'password:', re.DOTALL)], timeout=40, searchwindowsize=-1, async_=False, **kw={}) 367 return expect_async(exp, timeout) 368 else: 369 return exp.expect_loop(timeout) 370 371 def expect_exact(self, pattern_list, timeout=-1, searchwindowsize=-1, exp = <pexpect.expect.Expecter object> exp.expect_loop = <bound method Expecter.expect_loop of <pexpect.expect.Expecter object>> timeout = 40
/usr/local/lib/python3.6/site-packages/pexpect/expect.py in expect_loop(self=<pexpect.expect.Expecter object>, timeout=40) 117 return self.eof(e) 118 except TIMEOUT as e: 119 return self.timeout(e) 120 except: 121 self.errored() self = <pexpect.expect.Expecter object> self.timeout = <bound method Expecter.timeout of <pexpect.expect.Expecter object>> e undefined
/usr/local/lib/python3.6/site-packages/pexpect/expect.py in timeout(self=<pexpect.expect.Expecter object>, err=TIMEOUT('Timeout exceeded.',)) 80 if err is not None: 81 msg = str(err) + '\n' + msg 82 raise TIMEOUT(msg) 83 84 def errored(self): global TIMEOUT = <class 'pexpect.exceptions.TIMEOUT'> msg = "Timeout exceeded.\n<pexpect.pty_spawn.spawn objec....compile(b'\\\\$ ')\n 1: re.compile(b'password:')" TIMEOUT: Timeout exceeded. <pexpect.pty_spawn.spawn object at 0x7f91cbfbc160> command: /usr/bin/ssh args: ['/usr/bin/ssh', '-F', '/dev/null', '-o', 'StrictHostKeyChecking=no', '-o', 'UserKnownHostsFile=/dev/null', 'cirros@169.254.0.3'] buffer (last 100 chars): b''
after: <class 'pexpect.exceptions.TIMEOUT'> match: None match_index: None exitstatus: None flag_eof: False pid: 119 child_fd: 101 closed: False timeout: 40 delimiter: <class 'pexpect.exceptions.EOF'> logfile: None logfile_read: None logfile_send: None maxread: 2000 ignorecase: False searchwindowsize: None delaybeforesend: 0.05 delayafterclose: 0.1 delayafterterminate: 0.1 searcher: searcher_re: 0: re.compile(b'\\$ ') 1: re.compile(b'password:') __cause__ = None __class__ = <class 'pexpect.exceptions.TIMEOUT'> __context__ = TIMEOUT('Timeout exceeded.',) __delattr__ = <method-wrapper '__delattr__' of TIMEOUT object> __dict__ = {'value': "Timeout exceeded.\n<pexpect.pty_spawn.spawn objec....compile(b'\\\\$ ')\n 1: re.compile(b'password:')"} __dir__ = <built-in method __dir__ of TIMEOUT object> __doc__ = 'Raised when a read time exceeds the timeout. ' __eq__ = <method-wrapper '__eq__' of TIMEOUT object> __format__ = <built-in method __format__ of TIMEOUT object> __ge__ = <method-wrapper '__ge__' of TIMEOUT object> __getattribute__ = <method-wrapper '__getattribute__' of TIMEOUT object> __gt__ = <method-wrapper '__gt__' of TIMEOUT object> __hash__ = <method-wrapper '__hash__' of TIMEOUT object> __init__ = <bound method ExceptionPexpect.__init__ of TIMEO...e(b'\\\\$ ')\n 1: re.compile(b'password:')",)> __init_subclass__ = <built-in method __init_subclass__ of type object> __le__ = <method-wrapper '__le__' of TIMEOUT object> __lt__ = <method-wrapper '__lt__' of TIMEOUT object> __module__ = 'pexpect.exceptions' __ne__ = <method-wrapper '__ne__' of TIMEOUT object> __new__ = <built-in method __new__ of type object> __reduce__ = <built-in method __reduce__ of TIMEOUT object> __reduce_ex__ = <built-in method __reduce_ex__ of TIMEOUT object> __repr__ = <method-wrapper '__repr__' of TIMEOUT object> __setattr__ = <method-wrapper '__setattr__' of TIMEOUT object> __setstate__ = <built-in method __setstate__ of TIMEOUT object> __sizeof__ = <built-in method __sizeof__ of TIMEOUT object> __str__ = <bound method ExceptionPexpect.__str__ of TIMEOU...e(b'\\\\$ ')\n 1: re.compile(b'password:')",)> __subclasshook__ = <built-in method __subclasshook__ of type object> __suppress_context__ = False __traceback__ = <traceback object> __weakref__ = None args = ("Timeout exceeded.\n<pexpect.pty_spawn.spawn objec....compile(b'\\\\$ ')\n 1: re.compile(b'password:')",) get_trace = <bound method ExceptionPexpect.get_trace of TIME...e(b'\\\\$ ')\n 1: re.compile(b'password:')",)> value = "Timeout exceeded.\n<pexpect.pty_spawn.spawn objec....compile(b'\\\\$ ')\n 1: re.compile(b'password:')" with_traceback = <built-in method with_traceback of TIMEOUT object>
The above is a description of an error in a Python program. Here is the original traceback:
Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/pexpect/expect.py", line 111, in expect_loop incoming = spawn.read_nonblocking(spawn.maxread, timeout) File "/usr/local/lib/python3.6/site-packages/pexpect/pty_spawn.py", line 509, in read_nonblocking raise TIMEOUT('Timeout exceeded.') pexpect.exceptions.TIMEOUT: Timeout exceeded.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper result = function(self, *args, **kwargs) File "/contrail-test/scripts/vm_regression/test_vm.py", line 2876, in test_vm_file_trf_scp_tests assert vm1_fixture.scp_file_transfer_cirros(vm2_fixture, size=size), msg File "/contrail-test/fixtures/vm_test.py", line 2407, in scp_file_transfer_cirros i = handle.expect(['\$ ', 'password:']) File "/usr/local/lib/python3.6/site-packages/pexpect/spawnbase.py", line 341, in expect timeout, searchwindowsize, async_) File "/usr/local/lib/python3.6/site-packages/pexpect/spawnbase.py", line 369, in expect_list return exp.expect_loop(timeout) File "/usr/local/lib/python3.6/site-packages/pexpect/expect.py", line 119, in expect_loop return self.timeout(e) File "/usr/local/lib/python3.6/site-packages/pexpect/expect.py", line 82, in timeout raise TIMEOUT(msg) pexpect.exceptions.TIMEOUT: Timeout exceeded. <pexpect.pty_spawn.spawn object at 0x7f91cbfbc160> command: /usr/bin/ssh args: ['/usr/bin/ssh', '-F', '/dev/null', '-o', 'StrictHostKeyChecking=no', '-o', 'UserKnownHostsFile=/dev/null', 'cirros@169.254.0.3'] buffer (last 100 chars): b''
after: <class 'pexpect.exceptions.TIMEOUT'> match: None match_index: None exitstatus: None flag_eof: False pid: 119 child_fd: 101 closed: False timeout: 40 delimiter: <class 'pexpect.exceptions.EOF'> logfile: None logfile_read: None logfile_send: None maxread: 2000 ignorecase: False searchwindowsize: None delaybeforesend: 0.05 delayafterclose: 0.1 delayafterterminate: 0.1 searcher: searcher_re: 0: re.compile(b'\\$ ') 1: re.compile(b'password:')
| 185.735 |
Log File
|