2024-10-23 13:54:46,332 - INFO - Domain Default found not creating 2024-10-23 13:54:46,553 - INFO - Project ctest-TestRoutersBasic-87236578 not found, creating it 2024-10-23 13:54:47,090 - INFO - Created Project:ctest-TestRoutersBasic-87236578, ID : 44ae860d-8266-4940-942d-c98c1bca60f2 2024-10-23 13:54:48,808 - INFO - ================================================================================ 2024-10-23 13:54:48,808 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-23 13:54:48,808 - INFO - TEST DESCRIPTION : Create an external network, a router set router-gateway to external network launch a private network and attach it to router validate left vm pinging right vm through Snat 2024-10-23 13:54:49,077 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.5': '0'}} with 2024-10-23 13:54:49,077 - INFO - Initial checks done. Running the testcase now 2024-10-23 13:54:49,077 - INFO - 2024-10-23 13:54:49,878 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-87236578 2024-10-23 13:54:49,980 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-87236578 2024-10-23 13:54:50,331 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-87236578', 'default']} 2024-10-23 13:54:50,673 - DEBUG - Response for create_network : {'network': {'id': '6e574ac6-511e-4c2b-b2e9-1a9948f3f61b', 'name': 'ctest-vn-65884777', 'tenant_id': '44ae860d82664940942dc98c1bca60f2', 'project_id': '44ae860d82664940942dc98c1bca60f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-87236578', 'ctest-vn-65884777'], 'port_security_enabled': True, 'description': ''}} 2024-10-23 13:54:50,850 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a05e4dfa-15c1-4c77-a57b-e508fa5ae28f', 'name': '', 'tenant_id': '44ae860d82664940942dc98c1bca60f2', 'network_id': '6e574ac6-511e-4c2b-b2e9-1a9948f3f61b', 'ip_version': 4, 'cidr': '56.139.179.0/26', 'allocation_pools': [{'start': '56.139.179.2', 'end': '56.139.179.62'}], 'gateway_ip': '56.139.179.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.139.179.2', 'tags': [], 'project_id': '44ae860d82664940942dc98c1bca60f2'}} 2024-10-23 13:54:50,873 - INFO - Created VN ctest-vn-65884777 2024-10-23 13:54:50,936 - DEBUG - VN ctest-vn-65884777 UUID is 6e574ac6-511e-4c2b-b2e9-1a9948f3f61b 2024-10-23 13:54:51,306 - DEBUG - Response for create_network : {'network': {'id': 'fd035201-2d03-4cfd-a6a5-9c25a78cefc3', 'name': 'ctest-ext_vn-43520504', 'tenant_id': '44ae860d82664940942dc98c1bca60f2', 'project_id': '44ae860d82664940942dc98c1bca60f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-87236578', 'ctest-ext_vn-43520504'], 'port_security_enabled': True, 'description': ''}} 2024-10-23 13:54:51,532 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ffb437a1-8636-48d8-a355-461468c34b62', 'name': '', 'tenant_id': '44ae860d82664940942dc98c1bca60f2', 'network_id': 'fd035201-2d03-4cfd-a6a5-9c25a78cefc3', 'ip_version': 4, 'cidr': '49.23.127.0/26', 'allocation_pools': [{'start': '49.23.127.2', 'end': '49.23.127.62'}], 'gateway_ip': '49.23.127.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.23.127.2', 'tags': [], 'project_id': '44ae860d82664940942dc98c1bca60f2'}} 2024-10-23 13:54:51,555 - INFO - Created VN ctest-ext_vn-43520504 2024-10-23 13:54:51,612 - DEBUG - VN ctest-ext_vn-43520504 UUID is fd035201-2d03-4cfd-a6a5-9c25a78cefc3 2024-10-23 13:54:51,806 - DEBUG - Services list from nova: [, , ] 2024-10-23 13:54:52,917 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2129-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2129-1) 2024-10-23 13:54:54,162 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2129-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2129-1) 2024-10-23 13:54:54,249 - INFO - Setting gateway for router 4fe63c2e-c65e-4b3d-9a10-260e8075baf8 to network fd035201-2d03-4cfd-a6a5-9c25a78cefc3 2024-10-23 13:54:54,346 - INFO - Adding interface with subnet_id a05e4dfa-15c1-4c77-a57b-e508fa5ae28f, port_id None to router 4fe63c2e-c65e-4b3d-9a10-260e8075baf8 2024-10-23 13:54:54,729 - INFO - Waiting for VM ctest-TestRoutersBasic-87236578-06560212 to be up.. 2024-10-23 13:54:54,928 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-23 13:55:00,030 - DEBUG - VM is in ACTIVE state now 2024-10-23 13:55:00,031 - INFO - VM name : ctest-TestRoutersBasic-87236578-06560212 2024-10-23 13:55:00,134 - DEBUG - VM ctest-TestRoutersBasic-87236578-06560212 ID is a7dee09c-c6bf-462d-81ac-b29fe3ab76f9 2024-10-23 13:55:00,157 - DEBUG - VM ctest-TestRoutersBasic-87236578-06560212 launched on Node cn-jenkins-deploy-platform-ansible-os-2129-1 2024-10-23 13:55:00,250 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/a7dee09c-c6bf-462d-81ac-b29fe3ab76f9 2024-10-23 13:55:00,556 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/a7dee09c-c6bf-462d-81ac-b29fe3ab76f9 2024-10-23 13:55:00,596 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/aa9b6a2f-eb23-4cdc-b345-e4c9a162ea27 2024-10-23 13:55:03,891 - 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 1029ms') 2024-10-23 13:55:03,891 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-87236578-06560212 failed! 2024-10-23 13:55:03,956 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-87236578:ctest-vn-65884777 is 56.139.179.1 and allocation pool is NOT set 2024-10-23 13:55:06,026 - 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=4.78 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.96 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 = 1.958/3.369/4.781/1.411 ms') 2024-10-23 13:55:06,026 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-87236578-06560212 passed 2024-10-23 13:55:06,152 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 13:55:06,152 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-87236578-06560212, IP 56.139.179.3, Port 22 2024-10-23 13:55:06,323 - DEBUG - VM ctest-TestRoutersBasic-87236578-06560212 is ready for SSH connections 2024-10-23 13:55:06,323 - INFO - Waiting for VM ctest-TestRoutersBasic-87236578-63105359 to be up.. 2024-10-23 13:55:06,421 - DEBUG - VM is in ACTIVE state now 2024-10-23 13:55:06,422 - INFO - VM name : ctest-TestRoutersBasic-87236578-63105359 2024-10-23 13:55:06,510 - DEBUG - VM ctest-TestRoutersBasic-87236578-63105359 ID is 1ad6aa88-4a1c-4d55-8fc3-8b8ce7384a67 2024-10-23 13:55:06,511 - DEBUG - VM ctest-TestRoutersBasic-87236578-63105359 launched on Node cn-jenkins-deploy-platform-ansible-os-2129-1 2024-10-23 13:55:06,610 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/1ad6aa88-4a1c-4d55-8fc3-8b8ce7384a67 2024-10-23 13:55:06,624 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/d09d3ce4-a1c4-4b91-bd78-37a7bc12a705 2024-10-23 13:55:07,890 - 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=3.78 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.07 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.066/2.420/3.775/1.354 ms') 2024-10-23 13:55:07,890 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-87236578-63105359 passed 2024-10-23 13:55:08,052 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 13:55:08,052 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-87236578-63105359, IP 49.23.127.3, Port 22 2024-10-23 13:55:08,219 - DEBUG - VM ctest-TestRoutersBasic-87236578-63105359 is ready for SSH connections 2024-10-23 13:55:08,219 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 13:55:08,220 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 49.23.127.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-10-23 13:55:08,220 - DEBUG - ping -s 56 -c 3 -W 1 49.23.127.3 2024-10-23 13:55:12,940 - DEBUG - PING 49.23.127.3 (49.23.127.3): 56 data bytes --- 49.23.127.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-23 13:55:12,940 - WARNING - Ping to IP 49.23.127.3 from VM ctest-TestRoutersBasic-87236578-06560212 failed 2024-10-23 13:55:13,941 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 49.23.127.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-10-23 13:55:13,941 - DEBUG - ping -s 56 -c 3 -W 1 49.23.127.3 2024-10-23 13:55:17,167 - DEBUG - PING 49.23.127.3 (49.23.127.3): 56 data bytes --- 49.23.127.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-23 13:55:17,167 - WARNING - Ping to IP 49.23.127.3 from VM ctest-TestRoutersBasic-87236578-06560212 failed 2024-10-23 13:55:18,168 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 49.23.127.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-10-23 13:55:18,168 - DEBUG - ping -s 56 -c 3 -W 1 49.23.127.3 2024-10-23 13:55:21,392 - DEBUG - PING 49.23.127.3 (49.23.127.3): 56 data bytes --- 49.23.127.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-23 13:55:21,393 - WARNING - Ping to IP 49.23.127.3 from VM ctest-TestRoutersBasic-87236578-06560212 failed 2024-10-23 13:55:22,394 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 49.23.127.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-10-23 13:55:22,394 - DEBUG - ping -s 56 -c 3 -W 1 49.23.127.3 2024-10-23 13:55:25,617 - DEBUG - PING 49.23.127.3 (49.23.127.3): 56 data bytes --- 49.23.127.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-23 13:55:25,617 - WARNING - Ping to IP 49.23.127.3 from VM ctest-TestRoutersBasic-87236578-06560212 failed 2024-10-23 13:55:26,619 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 49.23.127.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-10-23 13:55:26,619 - DEBUG - ping -s 56 -c 3 -W 1 49.23.127.3 2024-10-23 13:55:29,832 - DEBUG - PING 49.23.127.3 (49.23.127.3): 56 data bytes --- 49.23.127.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-23 13:55:29,832 - WARNING - Ping to IP 49.23.127.3 from VM ctest-TestRoutersBasic-87236578-06560212 failed 2024-10-23 13:55:30,833 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 49.23.127.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-10-23 13:55:30,833 - DEBUG - ping -s 56 -c 3 -W 1 49.23.127.3 2024-10-23 13:55:34,053 - DEBUG - PING 49.23.127.3 (49.23.127.3): 56 data bytes --- 49.23.127.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-23 13:55:34,054 - WARNING - Ping to IP 49.23.127.3 from VM ctest-TestRoutersBasic-87236578-06560212 failed 2024-10-23 13:55:35,054 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 49.23.127.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-10-23 13:55:35,055 - DEBUG - ping -s 56 -c 3 -W 1 49.23.127.3 2024-10-23 13:55:38,316 - DEBUG - PING 49.23.127.3 (49.23.127.3): 56 data bytes --- 49.23.127.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-23 13:55:38,317 - WARNING - Ping to IP 49.23.127.3 from VM ctest-TestRoutersBasic-87236578-06560212 failed 2024-10-23 13:55:39,317 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 49.23.127.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-10-23 13:55:39,318 - DEBUG - ping -s 56 -c 3 -W 1 49.23.127.3 2024-10-23 13:55:42,540 - DEBUG - PING 49.23.127.3 (49.23.127.3): 56 data bytes --- 49.23.127.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-23 13:55:42,541 - WARNING - Ping to IP 49.23.127.3 from VM ctest-TestRoutersBasic-87236578-06560212 failed 2024-10-23 13:55:43,541 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 49.23.127.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-10-23 13:55:43,541 - DEBUG - ping -s 56 -c 3 -W 1 49.23.127.3 2024-10-23 13:55:46,751 - DEBUG - PING 49.23.127.3 (49.23.127.3): 56 data bytes --- 49.23.127.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-23 13:55:46,751 - WARNING - Ping to IP 49.23.127.3 from VM ctest-TestRoutersBasic-87236578-06560212 failed 2024-10-23 13:55:47,752 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 49.23.127.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-10-23 13:55:47,752 - DEBUG - ping -s 56 -c 3 -W 1 49.23.127.3 2024-10-23 13:55:50,956 - DEBUG - PING 49.23.127.3 (49.23.127.3): 56 data bytes --- 49.23.127.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-23 13:55:50,956 - WARNING - Ping to IP 49.23.127.3 from VM ctest-TestRoutersBasic-87236578-06560212 failed 2024-10-23 13:55:51,958 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 49.23.127.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-10-23 13:55:51,958 - DEBUG - ping -s 56 -c 3 -W 1 49.23.127.3 2024-10-23 13:55:55,179 - DEBUG - PING 49.23.127.3 (49.23.127.3): 56 data bytes --- 49.23.127.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-23 13:55:55,179 - WARNING - Ping to IP 49.23.127.3 from VM ctest-TestRoutersBasic-87236578-06560212 failed 2024-10-23 13:55:55,187 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 13:55:55,188 - INFO - Deleting interface with subnet_id a05e4dfa-15c1-4c77-a57b-e508fa5ae28f, port_id None from router 4fe63c2e-c65e-4b3d-9a10-260e8075baf8 2024-10-23 13:55:55,433 - INFO - Deleting VM ctest-TestRoutersBasic-87236578-63105359 2024-10-23 13:55:55,505 - INFO - Deleting VM ctest-TestRoutersBasic-87236578-06560212 2024-10-23 13:55:55,595 - INFO - Deleting VN ctest-ext_vn-43520504 2024-10-23 13:55:55,681 - DEBUG - VN fd035201-2d03-4cfd-a6a5-9c25a78cefc3 still in use: Unable to complete operation on network fd035201-2d03-4cfd-a6a5-9c25a78cefc3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-42c2f012-dde1-4e4c-8f39-c4eda2e16cba'] 2024-10-23 13:55:55,681 - WARNING - Deleting VN ctest-ext_vn-43520504 failed..Will retry 2024-10-23 13:55:57,819 - DEBUG - Response for deleting network () 2024-10-23 13:55:57,819 - INFO - Deleting VN ctest-vn-65884777 2024-10-23 13:55:57,952 - DEBUG - Response for deleting network () 2024-10-23 13:55:58,210 - ERROR - AssertionError Python 3.6.8: /usr/bin/python3 Wed Oct 23 13:55:55 2024 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={}) 79 log.info('Initial checks done. Running the testcase now') 80 log.info('') 81 result = function(self, *args, **kwargs) 82 if self.inputs.upgrade: 83 pid = os.getpid() result = None function = self = args = () kwargs = {} /contrail-test/scripts/neutron/test_routers_basic.py in test_basic_snat_behavior_without_external_connectivity(self=) 49 vm1_fixture.wait_till_vm_is_up() 50 vm2_fixture.wait_till_vm_is_up() 51 assert vm1_fixture.ping_with_certainty( 52 vm2_fixture.vm_ip), 'Ping from vm_left to vm_right through snat failed' 53 return True vm2_fixture = vm2_fixture.vm_ip = '49.23.127.3' AssertionError: Ping from vm_left to vm_right through snat failed __cause__ = None __class__ = __context__ = None __delattr__ = __dict__ = {} __dir__ = __doc__ = 'Assertion failed.' __eq__ = __format__ = __ge__ = __getattribute__ = __gt__ = __hash__ = __init__ = __init_subclass__ = __le__ = __lt__ = __ne__ = __new__ = __reduce__ = __reduce_ex__ = __repr__ = __setattr__ = __setstate__ = __sizeof__ = __str__ = __subclasshook__ = __suppress_context__ = False __traceback__ = args = ('Ping from vm_left to vm_right through snat failed',) with_traceback = The above is a description of an error in a Python program. Here is the original traceback: Traceback (most recent call last): File "/contrail-test/tcutils/wrappers.py", line 81, in wrapper result = function(self, *args, **kwargs) File "/contrail-test/scripts/neutron/test_routers_basic.py", line 52, in test_basic_snat_behavior_without_external_connectivity vm2_fixture.vm_ip), 'Ping from vm_left to vm_right through snat failed' AssertionError: Ping from vm_left to vm_right through snat failed 2024-10-23 13:55:58,217 - DEBUG - No XMPP flaps were noticed during the test 2024-10-23 13:55:58,217 - INFO - 2024-10-23 13:55:58,217 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:10] 2024-10-23 13:55:58,217 - INFO - -------------------------------------------------------------------------------- 2024-10-23 13:55:58,953 - INFO - Deleted project: ctest-TestRoutersBasic-87236578, ID : 44ae860d-8266-4940-942d-c98c1bca60f2