2025-04-15 16:18:30,052 - INFO - Domain Default found not creating
2025-04-15 16:18:30,231 - INFO - Project ctest-TestRoutersBasic-69970507 not found, creating it
2025-04-15 16:18:30,731 - INFO - Created Project:ctest-TestRoutersBasic-69970507, ID : 16e5516f-b78b-4ec4-85cb-8b0057ec59bc
2025-04-15 16:18:32,202 - INFO - ================================================================================
2025-04-15 16:18:32,202 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity
2025-04-15 16:18:32,202 - 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
2025-04-15 16:18:32,455 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.0.0.65': '0'}} with
2025-04-15 16:18:32,455 - INFO - Initial checks done. Running the testcase now
2025-04-15 16:18:32,456 - INFO -
2025-04-15 16:18:33,451 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-69970507
2025-04-15 16:18:33,547 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-69970507
2025-04-15 16:18:33,895 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-69970507', 'default']}
2025-04-15 16:18:34,198 - DEBUG - Response for create_network : {'network': {'id': 'e846fb6d-f532-4fe2-94e9-e505fc6bb82d', 'name': 'ctest-vn-39903561', 'tenant_id': '16e5516fb78b4ec485cb8b0057ec59bc', 'project_id': '16e5516fb78b4ec485cb8b0057ec59bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-69970507', 'ctest-vn-39903561'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 16:18:34,364 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed7ec9b8-d361-48aa-8744-03b2b96a02ca', 'name': '', 'tenant_id': '16e5516fb78b4ec485cb8b0057ec59bc', 'network_id': 'e846fb6d-f532-4fe2-94e9-e505fc6bb82d', 'ip_version': 4, 'cidr': '209.160.36.192/26', 'allocation_pools': [{'start': '209.160.36.194', 'end': '209.160.36.254'}], 'gateway_ip': '209.160.36.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.160.36.194', 'tags': [], 'project_id': '16e5516fb78b4ec485cb8b0057ec59bc'}}
2025-04-15 16:18:34,382 - INFO - Created VN ctest-vn-39903561
2025-04-15 16:18:34,439 - DEBUG - VN ctest-vn-39903561 UUID is e846fb6d-f532-4fe2-94e9-e505fc6bb82d
2025-04-15 16:18:34,811 - DEBUG - Response for create_network : {'network': {'id': '339396b0-1320-4ded-80c9-081157e681e3', 'name': 'ctest-ext_vn-13465522', 'tenant_id': '16e5516fb78b4ec485cb8b0057ec59bc', 'project_id': '16e5516fb78b4ec485cb8b0057ec59bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-69970507', 'ctest-ext_vn-13465522'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 16:18:35,050 - DEBUG - Response for create_subnet : {'subnet': {'id': '6fbef52b-027f-4aaa-8a21-444276e2f14c', 'name': '', 'tenant_id': '16e5516fb78b4ec485cb8b0057ec59bc', 'network_id': '339396b0-1320-4ded-80c9-081157e681e3', 'ip_version': 4, 'cidr': '217.148.57.192/26', 'allocation_pools': [{'start': '217.148.57.194', 'end': '217.148.57.254'}], 'gateway_ip': '217.148.57.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.148.57.194', 'tags': [], 'project_id': '16e5516fb78b4ec485cb8b0057ec59bc'}}
2025-04-15 16:18:35,074 - INFO - Created VN ctest-ext_vn-13465522
2025-04-15 16:18:35,127 - DEBUG - VN ctest-ext_vn-13465522 UUID is 339396b0-1320-4ded-80c9-081157e681e3
2025-04-15 16:18:35,328 - DEBUG - Services list from nova: [, , ]
2025-04-15 16:18:36,344 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3120-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3120-1)
2025-04-15 16:18:37,589 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3120-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3120-1)
2025-04-15 16:18:37,666 - INFO - Setting gateway for router d323a57e-abae-450b-8fff-e6eabde899e5 to network 339396b0-1320-4ded-80c9-081157e681e3
2025-04-15 16:18:37,744 - INFO - Adding interface with subnet_id ed7ec9b8-d361-48aa-8744-03b2b96a02ca, port_id None to router d323a57e-abae-450b-8fff-e6eabde899e5
2025-04-15 16:18:38,062 - INFO - Waiting for VM ctest-TestRoutersBasic-69970507-29121209 to be up..
2025-04-15 16:18:38,208 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-04-15 16:18:43,299 - DEBUG - VM is in ACTIVE state now
2025-04-15 16:18:43,299 - INFO - VM name : ctest-TestRoutersBasic-69970507-29121209
2025-04-15 16:18:43,389 - DEBUG - VM ctest-TestRoutersBasic-69970507-29121209 ID is 3cc485b8-3d3a-493e-89b0-77bdd6a80cbe
2025-04-15 16:18:43,410 - DEBUG - VM ctest-TestRoutersBasic-69970507-29121209 launched on Node cn-jenkins-deploy-platform-ansible-os-3120-1.
2025-04-15 16:18:43,507 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/3cc485b8-3d3a-493e-89b0-77bdd6a80cbe
2025-04-15 16:18:43,813 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/3cc485b8-3d3a-493e-89b0-77bdd6a80cbe
2025-04-15 16:18:43,852 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/efc3ed4d-4065-411c-8a72-559d55aac9aa
2025-04-15 16:18:47,128 - 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 1022ms')
2025-04-15 16:18:47,128 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-69970507-29121209 failed!
2025-04-15 16:18:47,179 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-69970507:ctest-vn-39903561 is 209.160.36.193 and allocation pool is NOT set
2025-04-15 16:18:49,240 - 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=3.29 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.463 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.463/1.877/3.292/1.414 ms')
2025-04-15 16:18:49,240 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-69970507-29121209 passed
2025-04-15 16:18:49,391 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-15 16:18:49,391 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-69970507-29121209, IP 209.160.36.195, Port 22
2025-04-15 16:18:49,555 - DEBUG - VM ctest-TestRoutersBasic-69970507-29121209 is ready for SSH connections
2025-04-15 16:18:49,555 - INFO - Waiting for VM ctest-TestRoutersBasic-69970507-17889209 to be up..
2025-04-15 16:18:49,647 - DEBUG - VM is in ACTIVE state now
2025-04-15 16:18:49,647 - INFO - VM name : ctest-TestRoutersBasic-69970507-17889209
2025-04-15 16:18:49,735 - DEBUG - VM ctest-TestRoutersBasic-69970507-17889209 ID is bacd5a0a-6f2f-4d1e-b8fe-3b5a8b42e6ac
2025-04-15 16:18:49,735 - DEBUG - VM ctest-TestRoutersBasic-69970507-17889209 launched on Node cn-jenkins-deploy-platform-ansible-os-3120-1.
2025-04-15 16:18:49,828 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/bacd5a0a-6f2f-4d1e-b8fe-3b5a8b42e6ac
2025-04-15 16:18:49,836 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/3a9e9405-e34f-45cc-9a0a-4a2637aa41e4
2025-04-15 16:18:51,089 - 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=4.27 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.473 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 = 0.473/2.369/4.266/1.896 ms')
2025-04-15 16:18:51,089 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-69970507-17889209 passed
2025-04-15 16:18:51,239 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-15 16:18:51,239 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-69970507-17889209, IP 217.148.57.195, Port 22
2025-04-15 16:18:51,391 - DEBUG - VM ctest-TestRoutersBasic-69970507-17889209 is ready for SSH connections
2025-04-15 16:18:51,391 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-15 16:18:51,391 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 217.148.57.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123
2025-04-15 16:18:51,391 - DEBUG - ping -s 56 -c 3 -W 1 217.148.57.195
2025-04-15 16:18:56,181 - DEBUG - PING 217.148.57.195 (217.148.57.195): 56 data bytes
--- 217.148.57.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 16:18:56,181 - WARNING - Ping to IP 217.148.57.195 from VM ctest-TestRoutersBasic-69970507-29121209 failed
2025-04-15 16:18:57,182 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 217.148.57.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123
2025-04-15 16:18:57,182 - DEBUG - ping -s 56 -c 3 -W 1 217.148.57.195
2025-04-15 16:19:00,383 - DEBUG - PING 217.148.57.195 (217.148.57.195): 56 data bytes
--- 217.148.57.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 16:19:00,383 - WARNING - Ping to IP 217.148.57.195 from VM ctest-TestRoutersBasic-69970507-29121209 failed
2025-04-15 16:19:01,384 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 217.148.57.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123
2025-04-15 16:19:01,384 - DEBUG - ping -s 56 -c 3 -W 1 217.148.57.195
2025-04-15 16:19:04,600 - DEBUG - PING 217.148.57.195 (217.148.57.195): 56 data bytes
--- 217.148.57.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 16:19:04,600 - WARNING - Ping to IP 217.148.57.195 from VM ctest-TestRoutersBasic-69970507-29121209 failed
2025-04-15 16:19:05,601 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 217.148.57.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123
2025-04-15 16:19:05,601 - DEBUG - ping -s 56 -c 3 -W 1 217.148.57.195
2025-04-15 16:19:08,827 - DEBUG - PING 217.148.57.195 (217.148.57.195): 56 data bytes
--- 217.148.57.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 16:19:08,827 - WARNING - Ping to IP 217.148.57.195 from VM ctest-TestRoutersBasic-69970507-29121209 failed
2025-04-15 16:19:09,827 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 217.148.57.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123
2025-04-15 16:19:09,828 - DEBUG - ping -s 56 -c 3 -W 1 217.148.57.195
2025-04-15 16:19:13,026 - DEBUG - PING 217.148.57.195 (217.148.57.195): 56 data bytes
--- 217.148.57.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 16:19:13,027 - WARNING - Ping to IP 217.148.57.195 from VM ctest-TestRoutersBasic-69970507-29121209 failed
2025-04-15 16:19:14,028 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 217.148.57.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123
2025-04-15 16:19:14,028 - DEBUG - ping -s 56 -c 3 -W 1 217.148.57.195
2025-04-15 16:19:17,233 - DEBUG - PING 217.148.57.195 (217.148.57.195): 56 data bytes
--- 217.148.57.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 16:19:17,233 - WARNING - Ping to IP 217.148.57.195 from VM ctest-TestRoutersBasic-69970507-29121209 failed
2025-04-15 16:19:18,234 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 217.148.57.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123
2025-04-15 16:19:18,234 - DEBUG - ping -s 56 -c 3 -W 1 217.148.57.195
2025-04-15 16:19:21,438 - DEBUG - PING 217.148.57.195 (217.148.57.195): 56 data bytes
--- 217.148.57.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 16:19:21,438 - WARNING - Ping to IP 217.148.57.195 from VM ctest-TestRoutersBasic-69970507-29121209 failed
2025-04-15 16:19:22,439 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 217.148.57.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123
2025-04-15 16:19:22,439 - DEBUG - ping -s 56 -c 3 -W 1 217.148.57.195
2025-04-15 16:19:25,675 - DEBUG - PING 217.148.57.195 (217.148.57.195): 56 data bytes
--- 217.148.57.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 16:19:25,675 - WARNING - Ping to IP 217.148.57.195 from VM ctest-TestRoutersBasic-69970507-29121209 failed
2025-04-15 16:19:26,676 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 217.148.57.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123
2025-04-15 16:19:26,676 - DEBUG - ping -s 56 -c 3 -W 1 217.148.57.195
2025-04-15 16:19:29,888 - DEBUG - PING 217.148.57.195 (217.148.57.195): 56 data bytes
--- 217.148.57.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 16:19:29,888 - WARNING - Ping to IP 217.148.57.195 from VM ctest-TestRoutersBasic-69970507-29121209 failed
2025-04-15 16:19:30,888 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 217.148.57.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123
2025-04-15 16:19:30,889 - DEBUG - ping -s 56 -c 3 -W 1 217.148.57.195
2025-04-15 16:19:34,088 - DEBUG - PING 217.148.57.195 (217.148.57.195): 56 data bytes
--- 217.148.57.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 16:19:34,088 - WARNING - Ping to IP 217.148.57.195 from VM ctest-TestRoutersBasic-69970507-29121209 failed
2025-04-15 16:19:35,090 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 217.148.57.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123
2025-04-15 16:19:35,090 - DEBUG - ping -s 56 -c 3 -W 1 217.148.57.195
2025-04-15 16:19:38,324 - DEBUG - PING 217.148.57.195 (217.148.57.195): 56 data bytes
--- 217.148.57.195 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
2025-04-15 16:19:38,324 - WARNING - Ping to IP 217.148.57.195 from VM ctest-TestRoutersBasic-69970507-29121209 failed
2025-04-15 16:19:38,325 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-04-15 16:19:38,326 - INFO - Deleting interface with subnet_id ed7ec9b8-d361-48aa-8744-03b2b96a02ca, port_id None from router d323a57e-abae-450b-8fff-e6eabde899e5
2025-04-15 16:19:38,524 - INFO - Deleting VM ctest-TestRoutersBasic-69970507-17889209
2025-04-15 16:19:38,610 - INFO - Deleting VM ctest-TestRoutersBasic-69970507-29121209
2025-04-15 16:19:38,705 - INFO - Deleting VN ctest-ext_vn-13465522
2025-04-15 16:19:38,797 - DEBUG - VN 339396b0-1320-4ded-80c9-081157e681e3 still in use: Unable to complete operation on network 339396b0-1320-4ded-80c9-081157e681e3. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-9270ea1e-f667-479b-afe1-494bbcf2925c']
2025-04-15 16:19:38,797 - WARNING - Deleting VN ctest-ext_vn-13465522 failed..Will retry
2025-04-15 16:19:40,909 - DEBUG - Response for deleting network ()
2025-04-15 16:19:40,909 - INFO - Deleting VN ctest-vn-39903561
2025-04-15 16:19:41,027 - DEBUG - Response for deleting network ()
2025-04-15 16:19:41,275 - ERROR - AssertionError
Python 3.9.21: /usr/bin/python3
Tue Apr 15 16:19:38 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/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
vm1_fixture =
vm1_fixture.ping_with_certainty = .deco_retry....xture: ctest-TestRoutersBasic-69970507-29121209>>
vm2_fixture =
vm2_fixture.vm_ip = '217.148.57.195'
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 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/neutron/test_routers_basic.py", line 51, in test_basic_snat_behavior_without_external_connectivity
assert vm1_fixture.ping_with_certainty(
AssertionError: Ping from vm_left to vm_right through snat failed
2025-04-15 16:19:41,283 - DEBUG - No XMPP flaps were noticed during the test
2025-04-15 16:19:41,284 - INFO -
2025-04-15 16:19:41,284 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : FAILED[0:01:09]
2025-04-15 16:19:41,284 - INFO - --------------------------------------------------------------------------------
2025-04-15 16:19:41,936 - INFO - Deleted project: ctest-TestRoutersBasic-69970507, ID : 16e5516f-b78b-4ec4-85cb-8b0057ec59bc