2025-07-17 09:41:56,606 - INFO - Domain Default found not creating 2025-07-17 09:41:56,815 - INFO - Project ctest-TestRoutersBasic-15298947 not found, creating it 2025-07-17 09:41:57,347 - INFO - Created Project:ctest-TestRoutersBasic-15298947, ID : bce6b9c9-9da7-4110-9980-065494a96afd 2025-07-17 09:41:59,082 - INFO - ================================================================================ 2025-07-17 09:41:59,082 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-07-17 09:41:59,082 - 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-07-17 09:41:59,353 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with 2025-07-17 09:41:59,353 - INFO - Initial checks done. Running the testcase now 2025-07-17 09:41:59,353 - INFO - 2025-07-17 09:42:00,187 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-15298947 2025-07-17 09:42:00,291 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-15298947 2025-07-17 09:42:00,632 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15298947', 'default']} 2025-07-17 09:42:00,978 - DEBUG - Response for create_network : {'network': {'id': '957301ff-e290-4766-880a-6603f27d64b1', 'name': 'ctest-vn-40956607', 'tenant_id': 'bce6b9c99da741109980065494a96afd', 'project_id': 'bce6b9c99da741109980065494a96afd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15298947', 'ctest-vn-40956607'], 'port_security_enabled': True, 'description': ''}} 2025-07-17 09:42:01,138 - DEBUG - Response for create_subnet : {'subnet': {'id': '116a48ac-8a8f-41ce-9289-32afd165a89f', 'name': '', 'tenant_id': 'bce6b9c99da741109980065494a96afd', 'network_id': '957301ff-e290-4766-880a-6603f27d64b1', 'ip_version': 4, 'cidr': '191.47.193.192/26', 'allocation_pools': [{'start': '191.47.193.194', 'end': '191.47.193.254'}], 'gateway_ip': '191.47.193.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.47.193.194', 'tags': [], 'project_id': 'bce6b9c99da741109980065494a96afd'}} 2025-07-17 09:42:01,160 - INFO - Created VN ctest-vn-40956607 2025-07-17 09:42:01,219 - DEBUG - VN ctest-vn-40956607 UUID is 957301ff-e290-4766-880a-6603f27d64b1 2025-07-17 09:42:01,583 - DEBUG - Response for create_network : {'network': {'id': 'f28e3e29-0dd6-4525-acdf-de002f22b2b9', 'name': 'ctest-ext_vn-19869316', 'tenant_id': 'bce6b9c99da741109980065494a96afd', 'project_id': 'bce6b9c99da741109980065494a96afd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-15298947', 'ctest-ext_vn-19869316'], 'port_security_enabled': True, 'description': ''}} 2025-07-17 09:42:01,811 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c271d8c-4f15-4e8f-baad-3f739a8bfa75', 'name': '', 'tenant_id': 'bce6b9c99da741109980065494a96afd', 'network_id': 'f28e3e29-0dd6-4525-acdf-de002f22b2b9', 'ip_version': 4, 'cidr': '151.8.133.64/26', 'allocation_pools': [{'start': '151.8.133.66', 'end': '151.8.133.126'}], 'gateway_ip': '151.8.133.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.8.133.66', 'tags': [], 'project_id': 'bce6b9c99da741109980065494a96afd'}} 2025-07-17 09:42:01,832 - INFO - Created VN ctest-ext_vn-19869316 2025-07-17 09:42:01,886 - DEBUG - VN ctest-ext_vn-19869316 UUID is f28e3e29-0dd6-4525-acdf-de002f22b2b9 2025-07-17 09:42:02,084 - DEBUG - Services list from nova: [, , ] 2025-07-17 09:42:03,324 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3652-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3652-1) 2025-07-17 09:42:04,745 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3652-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3652-1) 2025-07-17 09:42:04,840 - INFO - Setting gateway for router 52519357-91e5-4249-8386-75812be58f5f to network f28e3e29-0dd6-4525-acdf-de002f22b2b9 2025-07-17 09:42:04,947 - INFO - Adding interface with subnet_id 116a48ac-8a8f-41ce-9289-32afd165a89f, port_id None to router 52519357-91e5-4249-8386-75812be58f5f 2025-07-17 09:42:05,480 - INFO - Waiting for VM ctest-TestRoutersBasic-15298947-08302761 to be up.. 2025-07-17 09:42:05,658 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-17 09:42:10,744 - DEBUG - VM is in ACTIVE state now 2025-07-17 09:42:10,744 - INFO - VM name : ctest-TestRoutersBasic-15298947-08302761 2025-07-17 09:42:10,839 - DEBUG - VM ctest-TestRoutersBasic-15298947-08302761 ID is dcf221c2-4a0c-4dc5-8b03-ffdbdfca8292 2025-07-17 09:42:10,862 - DEBUG - VM ctest-TestRoutersBasic-15298947-08302761 launched on Node cn-jenkins-deploy-platform-ansible-os-3652-1 2025-07-17 09:42:10,956 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/dcf221c2-4a0c-4dc5-8b03-ffdbdfca8292 2025-07-17 09:42:11,302 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/dcf221c2-4a0c-4dc5-8b03-ffdbdfca8292 2025-07-17 09:42:11,347 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/e0b10b57-e551-4613-b894-5cf2c73f49c5 2025-07-17 09:42:14,616 - 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 1008ms') 2025-07-17 09:42:14,616 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-15298947-08302761 failed! 2025-07-17 09:42:14,682 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-15298947:ctest-vn-40956607 is 191.47.193.193 and allocation pool is NOT set 2025-07-17 09:42:16,754 - 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=8.13 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.933 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.933/4.529/8.125/3.596 ms') 2025-07-17 09:42:16,754 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-15298947-08302761 passed 2025-07-17 09:42:16,919 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 09:42:16,919 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15298947-08302761, IP 191.47.193.195, Port 22 2025-07-17 09:42:16,980 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-07-17 09:42:17,111 - DEBUG - VM ctest-TestRoutersBasic-15298947-08302761 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-17 09:42:22,112 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 09:42:22,112 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15298947-08302761, IP 191.47.193.195, Port 22 2025-07-17 09:42:22,280 - DEBUG - VM ctest-TestRoutersBasic-15298947-08302761 is ready for SSH connections 2025-07-17 09:42:22,281 - INFO - Waiting for VM ctest-TestRoutersBasic-15298947-18850091 to be up.. 2025-07-17 09:42:22,381 - DEBUG - VM is in ACTIVE state now 2025-07-17 09:42:22,381 - INFO - VM name : ctest-TestRoutersBasic-15298947-18850091 2025-07-17 09:42:22,473 - DEBUG - VM ctest-TestRoutersBasic-15298947-18850091 ID is 82cbb58c-19ce-45f8-81fa-558d484abe5e 2025-07-17 09:42:22,473 - DEBUG - VM ctest-TestRoutersBasic-15298947-18850091 launched on Node cn-jenkins-deploy-platform-ansible-os-3652-1 2025-07-17 09:42:22,557 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/82cbb58c-19ce-45f8-81fa-558d484abe5e 2025-07-17 09:42:22,567 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/979322c1-b684-4458-a134-1d5a2f6674fb 2025-07-17 09:42:23,901 - 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.64 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.600 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.600/2.119/3.639/1.519 ms') 2025-07-17 09:42:23,901 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-15298947-18850091 passed 2025-07-17 09:42:24,062 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 09:42:24,063 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-15298947-18850091, IP 151.8.133.67, Port 22 2025-07-17 09:42:24,232 - DEBUG - VM ctest-TestRoutersBasic-15298947-18850091 is ready for SSH connections 2025-07-17 09:42:24,232 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 09:42:24,232 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 151.8.133.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-07-17 09:42:24,232 - DEBUG - ping -s 56 -c 3 -W 1 151.8.133.67 2025-07-17 09:42:28,052 - DEBUG - PING 151.8.133.67 (151.8.133.67): 56 data bytes 64 bytes from 151.8.133.67: seq=0 ttl=62 time=6.180 ms 64 bytes from 151.8.133.67: seq=1 ttl=62 time=1.222 ms 64 bytes from 151.8.133.67: seq=2 ttl=62 time=1.277 ms --- 151.8.133.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.222/2.893/6.180 ms 2025-07-17 09:42:28,052 - INFO - Ping to IP 151.8.133.67 from VM ctest-TestRoutersBasic-15298947-08302761 passed 2025-07-17 09:42:28,052 - INFO - Deleting interface with subnet_id 116a48ac-8a8f-41ce-9289-32afd165a89f, port_id None from router 52519357-91e5-4249-8386-75812be58f5f 2025-07-17 09:42:28,377 - INFO - Deleting VM ctest-TestRoutersBasic-15298947-18850091 2025-07-17 09:42:28,469 - INFO - Deleting VM ctest-TestRoutersBasic-15298947-08302761 2025-07-17 09:42:28,572 - INFO - Deleting VN ctest-ext_vn-19869316 2025-07-17 09:42:28,682 - DEBUG - VN f28e3e29-0dd6-4525-acdf-de002f22b2b9 still in use: Unable to complete operation on network f28e3e29-0dd6-4525-acdf-de002f22b2b9. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-31a5925f-2ffa-44c9-9acf-d08f70742e22'] 2025-07-17 09:42:28,682 - WARNING - Deleting VN ctest-ext_vn-19869316 failed..Will retry 2025-07-17 09:42:30,831 - DEBUG - Response for deleting network () 2025-07-17 09:42:30,831 - INFO - Deleting VN ctest-vn-40956607 2025-07-17 09:42:30,981 - DEBUG - Response for deleting network () 2025-07-17 09:42:31,252 - DEBUG - No XMPP flaps were noticed during the test
2025-07-17 09:42:31,252 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2025-07-17 09:42:31,252 - INFO - -------------------------------------------------------------------------------- 2025-07-17 09:42:31,994 - INFO - Deleted project: ctest-TestRoutersBasic-15298947, ID : bce6b9c9-9da7-4110-9980-065494a96afd