2025-04-22 13:42:48,503 - INFO - Domain Default found not creating
2025-04-22 13:42:48,655 - INFO - Project ctest-TestBasicVMVNx-80098524 not found, creating it
2025-04-22 13:42:49,118 - INFO - Created Project:ctest-TestBasicVMVNx-80098524, ID : f2e14379-8551-477d-9d34-7197666fc1ff
2025-04-22 13:42:50,519 - INFO - ================================================================================
2025-04-22 13:42:50,519 - INFO - STARTING TEST : test_vm_file_trf_scp_tests
2025-04-22 13:42:50,519 - INFO - TEST DESCRIPTION :
Description: Test to validate File Transfer using scp between VMs. Files of different sizes.
Test steps:
1. Creating vm's - vm1 and vm2 and a Vn - vn222
2. Transfer file from vm1 to vm2 with diferrent file sizes using scp
3. file sizes - 64,1202,2210,10000
4. verify files present in vm2 match with the size of the file sent.
Pass criteria: File in vm2 should match with the transferred file size from vm1
Maintainer : ganeshahv@juniper.net
2025-04-22 13:42:50,777 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-04-22 13:42:50,777 - INFO - Initial checks done. Running the testcase now
2025-04-22 13:42:50,777 - INFO -
2025-04-22 13:42:51,312 - DEBUG - Response for create_network : {'network': {'id': '3a9c054f-b666-48b8-a147-0cceb3e387b6', 'name': 'ctest-vn-60608996', 'tenant_id': 'f2e143798551477d9d347197666fc1ff', 'project_id': 'f2e143798551477d9d347197666fc1ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicVMVNx-80098524', 'ctest-vn-60608996'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 13:42:51,509 - DEBUG - Response for create_subnet : {'subnet': {'id': '46a56a72-4713-4568-a6db-d858c7a40f90', 'name': '', 'tenant_id': 'f2e143798551477d9d347197666fc1ff', 'network_id': '3a9c054f-b666-48b8-a147-0cceb3e387b6', 'ip_version': 4, 'cidr': '49.72.188.64/26', 'allocation_pools': [{'start': '49.72.188.66', 'end': '49.72.188.126'}], 'gateway_ip': '49.72.188.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.72.188.66', 'tags': [], 'project_id': 'f2e143798551477d9d347197666fc1ff'}}
2025-04-22 13:42:51,526 - INFO - Created VN ctest-vn-60608996
2025-04-22 13:42:51,580 - DEBUG - VN ctest-vn-60608996 UUID is 3a9c054f-b666-48b8-a147-0cceb3e387b6
2025-04-22 13:42:51,778 - DEBUG - Services list from nova: [, , ]
2025-04-22 13:42:52,737 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3162-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3162-1)
2025-04-22 13:42:53,812 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3162-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3162-1)
2025-04-22 13:42:53,812 - INFO - Waiting for VM ctest-TestBasicVMVNx-80098524-37403749 to be up..
2025-04-22 13:42:53,902 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-04-22 13:42:58,973 - DEBUG - VM is in ACTIVE state now
2025-04-22 13:42:58,973 - INFO - VM name : ctest-TestBasicVMVNx-80098524-37403749
2025-04-22 13:42:59,040 - DEBUG - VM ctest-TestBasicVMVNx-80098524-37403749 ID is 1f8a9266-70c5-43d4-a154-1b441075c71d
2025-04-22 13:42:59,057 - DEBUG - VM ctest-TestBasicVMVNx-80098524-37403749 launched on Node cn-jenkins-deploy-platform-ansible-os-3162-1
2025-04-22 13:42:59,125 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/1f8a9266-70c5-43d4-a154-1b441075c71d
2025-04-22 13:42:59,413 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/1f8a9266-70c5-43d4-a154-1b441075c71d
2025-04-22 13:42:59,441 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/68cb2fa6-eaf6-46db-bff3-8e64bbce633a
2025-04-22 13:43:02,709 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1036ms')
2025-04-22 13:43:02,709 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicVMVNx-80098524-37403749 failed!
2025-04-22 13:43:02,764 - DEBUG - Gateway for vn default-domain:ctest-TestBasicVMVNx-80098524:ctest-vn-60608996 is 49.72.188.65 and allocation pool is NOT set
2025-04-22 13:43:04,825 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=2.59 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.391 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.391/1.490/2.590/1.099 ms')
2025-04-22 13:43:04,825 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicVMVNx-80098524-37403749 passed
2025-04-22 13:43:04,976 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-22 13:43:04,976 - DEBUG - Waiting to SSH to VM ctest-TestBasicVMVNx-80098524-37403749, IP 49.72.188.67, Port 22
2025-04-22 13:43:05,127 - DEBUG - VM ctest-TestBasicVMVNx-80098524-37403749 is ready for SSH connections
2025-04-22 13:43:05,128 - INFO - Waiting for VM ctest-TestBasicVMVNx-80098524-17628711 to be up..
2025-04-22 13:43:05,195 - DEBUG - VM is in ACTIVE state now
2025-04-22 13:43:05,195 - INFO - VM name : ctest-TestBasicVMVNx-80098524-17628711
2025-04-22 13:43:05,259 - DEBUG - VM ctest-TestBasicVMVNx-80098524-17628711 ID is d2a8def7-2593-4e9a-9720-dba0fde794fc
2025-04-22 13:43:05,259 - DEBUG - VM ctest-TestBasicVMVNx-80098524-17628711 launched on Node cn-jenkins-deploy-platform-ansible-os-3162-1
2025-04-22 13:43:05,326 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/d2a8def7-2593-4e9a-9720-dba0fde794fc
2025-04-22 13:43:05,334 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/2e2e91ea-a86b-4d6b-afbb-e1c360e1de6a
2025-04-22 13:43:06,566 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=2.67 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.364 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.364/1.517/2.671/1.153 ms')
2025-04-22 13:43:06,566 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicVMVNx-80098524-17628711 passed
2025-04-22 13:43:06,720 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-22 13:43:06,720 - DEBUG - Waiting to SSH to VM ctest-TestBasicVMVNx-80098524-17628711, IP 49.72.188.68, Port 22
2025-04-22 13:43:06,875 - DEBUG - VM ctest-TestBasicVMVNx-80098524-17628711 is ready for SSH connections
2025-04-22 13:43:06,875 - DEBUG - FILE SIZE = 1303B
2025-04-22 13:43:06,875 - DEBUG - Transferring the file from ctest-TestBasicVMVNx-80098524-37403749 to ctest-TestBasicVMVNx-80098524-17628711 using scp
2025-04-22 13:43:06,876 - DEBUG - Running remote_cmd, Cmd : dd bs=1303 count=1 if=/dev/zero of=testfile, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123
2025-04-22 13:43:06,876 - DEBUG - dd bs=1303 count=1 if=/dev/zero of=testfile
2025-04-22 13:45:13,358 - DEBUG - None
2025-04-22 13:45:53,719 - INFO - Deleting VM ctest-TestBasicVMVNx-80098524-17628711
2025-04-22 13:45:53,781 - INFO - Deleting VM ctest-TestBasicVMVNx-80098524-37403749
2025-04-22 13:45:53,839 - INFO - Deleting VN ctest-vn-60608996
2025-04-22 13:45:53,872 - DEBUG - VN 3a9c054f-b666-48b8-a147-0cceb3e387b6 still in use: Unable to complete operation on network 3a9c054f-b666-48b8-a147-0cceb3e387b6. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-e049ec3c-35f1-486d-8f31-b8634e129953']
2025-04-22 13:45:53,872 - WARNING - Deleting VN ctest-vn-60608996 failed..Will retry
2025-04-22 13:45:55,989 - DEBUG - Response for deleting network ()
2025-04-22 13:45:56,243 - ERROR - 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=, *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 =
self =
args = ()
kwargs = {}
/contrail-test/scripts/vm_regression/test_vm.py in test_vm_file_trf_scp_tests(self=)
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 =
vm1_fixture.scp_file_transfer_cirros = >
vm2_fixture =
size = '1303'
msg = 'File of size 1303B not transferred via scp '
/contrail-test/fixtures/vm_test.py in scp_file_transfer_cirros(self=, dest_vm_fixture=, 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 =
handle.expect = >
/usr/local/lib/python3.6/site-packages/pexpect/spawnbase.py in expect(self=, 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=, 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 =
exp.expect_loop = >
timeout = 40
/usr/local/lib/python3.6/site-packages/pexpect/expect.py in expect_loop(self=, timeout=40)
117 return self.eof(e)
118 except TIMEOUT as e:
119 return self.timeout(e)
120 except:
121 self.errored()
self =
self.timeout = >
e undefined
/usr/local/lib/python3.6/site-packages/pexpect/expect.py in timeout(self=, 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 =
msg = "Timeout exceeded.\n
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:
match: None
match_index: None
exitstatus: None
flag_eof: False
pid: 119
child_fd: 101
closed: False
timeout: 40
delimiter:
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__ =
__context__ = TIMEOUT('Timeout exceeded.',)
__delattr__ =
__dict__ = {'value': "Timeout exceeded.\n
__doc__ = 'Raised when a read time exceeds the timeout. '
__eq__ =
__format__ =
__ge__ =
__getattribute__ =
__gt__ =
__hash__ =
__init__ =
__init_subclass__ =
__le__ =
__lt__ =
__module__ = 'pexpect.exceptions'
__ne__ =
__new__ =
__reduce__ =
__reduce_ex__ =
__repr__ =
__setattr__ =
__setstate__ =
__sizeof__ =
__str__ =
__subclasshook__ =
__suppress_context__ = False
__traceback__ =
__weakref__ = None
args = ("Timeout exceeded.\n
value = "Timeout exceeded.\n
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.
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:
match: None
match_index: None
exitstatus: None
flag_eof: False
pid: 119
child_fd: 101
closed: False
timeout: 40
delimiter:
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:')
2025-04-22 13:45:56,251 - DEBUG - No XMPP flaps were noticed during the test
2025-04-22 13:45:56,251 - INFO -
2025-04-22 13:45:56,251 - INFO - END TEST : test_vm_file_trf_scp_tests : FAILED[0:03:06]
2025-04-22 13:45:56,251 - INFO - --------------------------------------------------------------------------------
2025-04-22 13:45:56,922 - INFO - Deleted project: ctest-TestBasicVMVNx-80098524, ID : f2e14379-8551-477d-9d34-7197666fc1ff