2025-07-22 11:28:46,691 - INFO - Domain Default found not creating 2025-07-22 11:28:46,864 - INFO - Project ctest-TestRoutersBasic-88261418 not found, creating it 2025-07-22 11:28:47,349 - INFO - Created Project:ctest-TestRoutersBasic-88261418, ID : a82b1075-0fc2-4e24-a609-fea67412d295 2025-07-22 11:28:48,862 - INFO - ================================================================================ 2025-07-22 11:28:48,862 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-07-22 11:28:48,862 - 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-22 11:28:49,123 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.18': '0'}} with 2025-07-22 11:28:49,123 - INFO - Initial checks done. Running the testcase now 2025-07-22 11:28:49,123 - INFO - 2025-07-22 11:28:49,846 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-88261418 2025-07-22 11:28:49,945 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-88261418 2025-07-22 11:28:50,276 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-88261418', 'default']} 2025-07-22 11:28:50,584 - DEBUG - Response for create_network : {'network': {'id': '71f52eca-5ac9-49b8-8b99-776af4367dde', 'name': 'ctest-vn-07339970', 'tenant_id': 'a82b10750fc24e24a609fea67412d295', 'project_id': 'a82b10750fc24e24a609fea67412d295', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-88261418', 'ctest-vn-07339970'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 11:28:50,811 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf9ca91d-e4b4-4785-a06a-c2e33eae0ebd', 'name': '', 'tenant_id': 'a82b10750fc24e24a609fea67412d295', 'network_id': '71f52eca-5ac9-49b8-8b99-776af4367dde', 'ip_version': 4, 'cidr': '78.190.229.192/26', 'allocation_pools': [{'start': '78.190.229.194', 'end': '78.190.229.254'}], 'gateway_ip': '78.190.229.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.190.229.194', 'tags': [], 'project_id': 'a82b10750fc24e24a609fea67412d295'}} 2025-07-22 11:28:50,833 - INFO - Created VN ctest-vn-07339970 2025-07-22 11:28:50,889 - DEBUG - VN ctest-vn-07339970 UUID is 71f52eca-5ac9-49b8-8b99-776af4367dde 2025-07-22 11:28:51,231 - DEBUG - Response for create_network : {'network': {'id': '48c33f6d-32e9-46ee-ad22-437963d5d4d5', 'name': 'ctest-ext_vn-07428758', 'tenant_id': 'a82b10750fc24e24a609fea67412d295', 'project_id': 'a82b10750fc24e24a609fea67412d295', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-88261418', 'ctest-ext_vn-07428758'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 11:28:51,434 - DEBUG - Response for create_subnet : {'subnet': {'id': '8940ec63-d056-4dd6-ab45-57a73454f76f', 'name': '', 'tenant_id': 'a82b10750fc24e24a609fea67412d295', 'network_id': '48c33f6d-32e9-46ee-ad22-437963d5d4d5', 'ip_version': 4, 'cidr': '221.49.126.64/26', 'allocation_pools': [{'start': '221.49.126.66', 'end': '221.49.126.126'}], 'gateway_ip': '221.49.126.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.49.126.66', 'tags': [], 'project_id': 'a82b10750fc24e24a609fea67412d295'}} 2025-07-22 11:28:51,458 - INFO - Created VN ctest-ext_vn-07428758 2025-07-22 11:28:51,513 - DEBUG - VN ctest-ext_vn-07428758 UUID is 48c33f6d-32e9-46ee-ad22-437963d5d4d5 2025-07-22 11:28:51,693 - DEBUG - Services list from nova: [, , ] 2025-07-22 11:28:52,745 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3689-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3689-1) 2025-07-22 11:28:53,897 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3689-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3689-1) 2025-07-22 11:28:53,983 - INFO - Setting gateway for router 4c66f9f6-e444-4034-a359-535411930f8d to network 48c33f6d-32e9-46ee-ad22-437963d5d4d5 2025-07-22 11:28:54,067 - INFO - Adding interface with subnet_id cf9ca91d-e4b4-4785-a06a-c2e33eae0ebd, port_id None to router 4c66f9f6-e444-4034-a359-535411930f8d 2025-07-22 11:28:54,478 - INFO - Waiting for VM ctest-TestRoutersBasic-88261418-86913697 to be up.. 2025-07-22 11:28:54,665 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-22 11:28:59,748 - DEBUG - VM is in ACTIVE state now 2025-07-22 11:28:59,748 - INFO - VM name : ctest-TestRoutersBasic-88261418-86913697 2025-07-22 11:28:59,832 - DEBUG - VM ctest-TestRoutersBasic-88261418-86913697 ID is bd48f4b8-86fc-49f9-9ce6-1f7d82938d1a 2025-07-22 11:28:59,862 - DEBUG - VM ctest-TestRoutersBasic-88261418-86913697 launched on Node cn-jenkins-deploy-platform-ansible-os-3689-1 2025-07-22 11:28:59,945 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/bd48f4b8-86fc-49f9-9ce6-1f7d82938d1a 2025-07-22 11:29:00,245 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/bd48f4b8-86fc-49f9-9ce6-1f7d82938d1a 2025-07-22 11:29:00,281 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/2ed1a201-a41a-4f74-bf9b-ce62003a40bb 2025-07-22 11:29:03,537 - 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 1011ms') 2025-07-22 11:29:03,537 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-88261418-86913697 failed! 2025-07-22 11:29:03,593 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-88261418:ctest-vn-07339970 is 78.190.229.193 and allocation pool is NOT set 2025-07-22 11:29:05,650 - 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.41 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.398 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.398/1.906/3.414/1.508 ms') 2025-07-22 11:29:05,650 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-88261418-86913697 passed 2025-07-22 11:29:05,805 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 11:29:05,805 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-88261418-86913697, IP 78.190.229.195, Port 22 2025-07-22 11:29:05,961 - DEBUG - VM ctest-TestRoutersBasic-88261418-86913697 is ready for SSH connections 2025-07-22 11:29:05,961 - INFO - Waiting for VM ctest-TestRoutersBasic-88261418-76392581 to be up.. 2025-07-22 11:29:06,051 - DEBUG - VM is in ACTIVE state now 2025-07-22 11:29:06,051 - INFO - VM name : ctest-TestRoutersBasic-88261418-76392581 2025-07-22 11:29:06,141 - DEBUG - VM ctest-TestRoutersBasic-88261418-76392581 ID is 6157a2f2-592d-46f4-8a34-366d862567b8 2025-07-22 11:29:06,141 - DEBUG - VM ctest-TestRoutersBasic-88261418-76392581 launched on Node cn-jenkins-deploy-platform-ansible-os-3689-1 2025-07-22 11:29:06,224 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/6157a2f2-592d-46f4-8a34-366d862567b8 2025-07-22 11:29:06,235 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/74fcf15d-4d75-47ea-991d-d1e83f8d82ed 2025-07-22 11:29:07,486 - 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.90 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.62 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 = 1.620/3.261/4.903/1.641 ms') 2025-07-22 11:29:07,487 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-88261418-76392581 passed 2025-07-22 11:29:07,637 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 11:29:07,637 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-88261418-76392581, IP 221.49.126.67, Port 22 2025-07-22 11:29:07,703 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-07-22 11:29:07,789 - DEBUG - VM ctest-TestRoutersBasic-88261418-76392581 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-22 11:29:12,790 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 11:29:12,790 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-88261418-76392581, IP 221.49.126.67, Port 22 2025-07-22 11:29:12,948 - DEBUG - VM ctest-TestRoutersBasic-88261418-76392581 is ready for SSH connections 2025-07-22 11:29:12,948 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 11:29:12,949 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 221.49.126.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-07-22 11:29:12,949 - DEBUG - ping -s 56 -c 3 -W 1 221.49.126.67 2025-07-22 11:29:17,006 - DEBUG - PING 221.49.126.67 (221.49.126.67): 56 data bytes 64 bytes from 221.49.126.67: seq=0 ttl=62 time=6.496 ms 64 bytes from 221.49.126.67: seq=1 ttl=62 time=1.096 ms 64 bytes from 221.49.126.67: seq=2 ttl=62 time=0.961 ms --- 221.49.126.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.961/2.851/6.496 ms 2025-07-22 11:29:17,006 - INFO - Ping to IP 221.49.126.67 from VM ctest-TestRoutersBasic-88261418-86913697 passed 2025-07-22 11:29:17,006 - INFO - Deleting interface with subnet_id cf9ca91d-e4b4-4785-a06a-c2e33eae0ebd, port_id None from router 4c66f9f6-e444-4034-a359-535411930f8d 2025-07-22 11:29:17,211 - INFO - Deleting VM ctest-TestRoutersBasic-88261418-76392581 2025-07-22 11:29:17,318 - INFO - Deleting VM ctest-TestRoutersBasic-88261418-86913697 2025-07-22 11:29:17,418 - INFO - Deleting VN ctest-ext_vn-07428758 2025-07-22 11:29:17,494 - DEBUG - VN 48c33f6d-32e9-46ee-ad22-437963d5d4d5 still in use: Unable to complete operation on network 48c33f6d-32e9-46ee-ad22-437963d5d4d5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f999011d-6dd8-473d-b815-1977564d15c8'] 2025-07-22 11:29:17,495 - WARNING - Deleting VN ctest-ext_vn-07428758 failed..Will retry 2025-07-22 11:29:19,619 - DEBUG - Response for deleting network () 2025-07-22 11:29:19,619 - INFO - Deleting VN ctest-vn-07339970 2025-07-22 11:29:19,767 - DEBUG - Response for deleting network () 2025-07-22 11:29:20,023 - DEBUG - No XMPP flaps were noticed during the test
2025-07-22 11:29:20,023 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2025-07-22 11:29:20,023 - INFO - -------------------------------------------------------------------------------- 2025-07-22 11:29:20,726 - INFO - Deleted project: ctest-TestRoutersBasic-88261418, ID : a82b1075-0fc2-4e24-a609-fea67412d295