2025-05-06 10:29:21,715 - INFO - Domain Default found not creating 2025-05-06 10:29:21,856 - INFO - Project ctest-TestRoutersBasic-89822143 not found, creating it 2025-05-06 10:29:22,316 - INFO - Created Project:ctest-TestRoutersBasic-89822143, ID : 0fe88ce5-f375-49fa-95a9-b8be6e67cc2c 2025-05-06 10:29:23,881 - INFO - ================================================================================ 2025-05-06 10:29:23,882 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-05-06 10:29:23,882 - 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-05-06 10:29:24,136 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.17': '0'}} with 2025-05-06 10:29:24,136 - INFO - Initial checks done. Running the testcase now 2025-05-06 10:29:24,136 - INFO - 2025-05-06 10:29:25,108 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-89822143 2025-05-06 10:29:25,226 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-89822143 2025-05-06 10:29:25,567 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89822143', 'default']} 2025-05-06 10:29:25,883 - DEBUG - Response for create_network : {'network': {'id': 'ea76f277-3ef4-421a-99fa-0af08dfed807', 'name': 'ctest-vn-75091621', 'tenant_id': '0fe88ce5f37549fa95a9b8be6e67cc2c', 'project_id': '0fe88ce5f37549fa95a9b8be6e67cc2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89822143', 'ctest-vn-75091621'], 'port_security_enabled': True, 'description': ''}} 2025-05-06 10:29:26,115 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c34bccc-fe44-449e-ad72-75003249a75b', 'name': '', 'tenant_id': '0fe88ce5f37549fa95a9b8be6e67cc2c', 'network_id': 'ea76f277-3ef4-421a-99fa-0af08dfed807', 'ip_version': 4, 'cidr': '102.89.29.128/26', 'allocation_pools': [{'start': '102.89.29.130', 'end': '102.89.29.190'}], 'gateway_ip': '102.89.29.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.89.29.130', 'tags': [], 'project_id': '0fe88ce5f37549fa95a9b8be6e67cc2c'}} 2025-05-06 10:29:26,134 - INFO - Created VN ctest-vn-75091621 2025-05-06 10:29:26,190 - DEBUG - VN ctest-vn-75091621 UUID is ea76f277-3ef4-421a-99fa-0af08dfed807 2025-05-06 10:29:26,532 - DEBUG - Response for create_network : {'network': {'id': '76eb5817-bfe1-4b26-b39a-4de881ee7370', 'name': 'ctest-ext_vn-18611274', 'tenant_id': '0fe88ce5f37549fa95a9b8be6e67cc2c', 'project_id': '0fe88ce5f37549fa95a9b8be6e67cc2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89822143', 'ctest-ext_vn-18611274'], 'port_security_enabled': True, 'description': ''}} 2025-05-06 10:29:26,729 - DEBUG - Response for create_subnet : {'subnet': {'id': '00ba8383-7542-474a-b2fb-1d327d9fbc70', 'name': '', 'tenant_id': '0fe88ce5f37549fa95a9b8be6e67cc2c', 'network_id': '76eb5817-bfe1-4b26-b39a-4de881ee7370', 'ip_version': 4, 'cidr': '26.112.180.64/26', 'allocation_pools': [{'start': '26.112.180.66', 'end': '26.112.180.126'}], 'gateway_ip': '26.112.180.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.112.180.66', 'tags': [], 'project_id': '0fe88ce5f37549fa95a9b8be6e67cc2c'}} 2025-05-06 10:29:26,747 - INFO - Created VN ctest-ext_vn-18611274 2025-05-06 10:29:26,802 - DEBUG - VN ctest-ext_vn-18611274 UUID is 76eb5817-bfe1-4b26-b39a-4de881ee7370 2025-05-06 10:29:26,971 - DEBUG - Services list from nova: [, , ] 2025-05-06 10:29:28,091 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3276-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3276-1) 2025-05-06 10:29:29,558 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3276-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3276-1) 2025-05-06 10:29:29,656 - INFO - Setting gateway for router 07d672c8-86a8-442b-963b-f9f1e8b28d5f to network 76eb5817-bfe1-4b26-b39a-4de881ee7370 2025-05-06 10:29:29,746 - INFO - Adding interface with subnet_id 4c34bccc-fe44-449e-ad72-75003249a75b, port_id None to router 07d672c8-86a8-442b-963b-f9f1e8b28d5f 2025-05-06 10:29:30,200 - INFO - Waiting for VM ctest-TestRoutersBasic-89822143-80435656 to be up.. 2025-05-06 10:29:30,401 - DEBUG - VM is in ACTIVE state now 2025-05-06 10:29:30,401 - INFO - VM name : ctest-TestRoutersBasic-89822143-80435656 2025-05-06 10:29:30,563 - DEBUG - VM ctest-TestRoutersBasic-89822143-80435656 ID is efa6f761-d9d6-4966-bf6a-ba7ecb7bd49a 2025-05-06 10:29:30,587 - DEBUG - VM ctest-TestRoutersBasic-89822143-80435656 launched on Node cn-jenkins-deploy-platform-ansible-os-3276-1 2025-05-06 10:29:30,707 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/efa6f761-d9d6-4966-bf6a-ba7ecb7bd49a 2025-05-06 10:29:31,082 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/efa6f761-d9d6-4966-bf6a-ba7ecb7bd49a 2025-05-06 10:29:31,124 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/9ac6c1cf-fc3d-44a3-aba8-0c4edefe445b 2025-05-06 10:29:34,393 - 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 1014ms') 2025-05-06 10:29:34,393 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-89822143-80435656 failed! 2025-05-06 10:29:34,454 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-89822143:ctest-vn-75091621 is 102.89.29.129 and allocation pool is NOT set 2025-05-06 10:29:38,544 - 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 1031ms') 2025-05-06 10:29:38,544 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-89822143-80435656 failed! 2025-05-06 10:29:38,610 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-89822143:ctest-vn-75091621 is 102.89.29.129 and allocation pool is NOT set 2025-05-06 10:29:40,685 - 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=5.78 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.16 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 = 2.159/3.968/5.778/1.809 ms') 2025-05-06 10:29:40,685 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-89822143-80435656 passed 2025-05-06 10:29:40,842 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-06 10:29:40,842 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-89822143-80435656, IP 102.89.29.131, Port 22 2025-05-06 10:29:40,998 - DEBUG - VM ctest-TestRoutersBasic-89822143-80435656 is ready for SSH connections 2025-05-06 10:29:40,998 - INFO - Waiting for VM ctest-TestRoutersBasic-89822143-80757592 to be up.. 2025-05-06 10:29:41,077 - DEBUG - VM is in ACTIVE state now 2025-05-06 10:29:41,077 - INFO - VM name : ctest-TestRoutersBasic-89822143-80757592 2025-05-06 10:29:41,156 - DEBUG - VM ctest-TestRoutersBasic-89822143-80757592 ID is dc50b919-f980-422e-9065-6643949a04c3 2025-05-06 10:29:41,156 - DEBUG - VM ctest-TestRoutersBasic-89822143-80757592 launched on Node cn-jenkins-deploy-platform-ansible-os-3276-1 2025-05-06 10:29:41,238 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/dc50b919-f980-422e-9065-6643949a04c3 2025-05-06 10:29:41,248 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/42f45bd5-c484-4a5b-b6a2-53eea2ba70f4 2025-05-06 10:29:42,502 - 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=5.14 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.16 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 = 2.157/3.647/5.138/1.490 ms') 2025-05-06 10:29:42,502 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-89822143-80757592 passed 2025-05-06 10:29:42,658 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-06 10:29:42,658 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-89822143-80757592, IP 26.112.180.67, Port 22 2025-05-06 10:29:42,826 - DEBUG - VM ctest-TestRoutersBasic-89822143-80757592 is ready for SSH connections 2025-05-06 10:29:42,826 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-06 10:29:42,826 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 26.112.180.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2025-05-06 10:29:42,826 - DEBUG - ping -s 56 -c 3 -W 1 26.112.180.67 2025-05-06 10:29:46,906 - DEBUG - PING 26.112.180.67 (26.112.180.67): 56 data bytes 64 bytes from 26.112.180.67: seq=0 ttl=62 time=5.398 ms 64 bytes from 26.112.180.67: seq=1 ttl=62 time=0.885 ms 64 bytes from 26.112.180.67: seq=2 ttl=62 time=0.953 ms --- 26.112.180.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.885/2.412/5.398 ms 2025-05-06 10:29:46,906 - INFO - Ping to IP 26.112.180.67 from VM ctest-TestRoutersBasic-89822143-80435656 passed 2025-05-06 10:29:46,906 - INFO - Deleting interface with subnet_id 4c34bccc-fe44-449e-ad72-75003249a75b, port_id None from router 07d672c8-86a8-442b-963b-f9f1e8b28d5f 2025-05-06 10:29:47,113 - INFO - Deleting VM ctest-TestRoutersBasic-89822143-80757592 2025-05-06 10:29:47,185 - INFO - Deleting VM ctest-TestRoutersBasic-89822143-80435656 2025-05-06 10:29:47,286 - INFO - Deleting VN ctest-ext_vn-18611274 2025-05-06 10:29:47,370 - DEBUG - VN 76eb5817-bfe1-4b26-b39a-4de881ee7370 still in use: Unable to complete operation on network 76eb5817-bfe1-4b26-b39a-4de881ee7370. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d53b567c-deb9-4dad-8d8f-daea75cc9c88'] 2025-05-06 10:29:47,370 - WARNING - Deleting VN ctest-ext_vn-18611274 failed..Will retry 2025-05-06 10:29:49,496 - DEBUG - Response for deleting network () 2025-05-06 10:29:49,497 - INFO - Deleting VN ctest-vn-75091621 2025-05-06 10:29:49,617 - DEBUG - Response for deleting network () 2025-05-06 10:29:49,886 - DEBUG - No XMPP flaps were noticed during the test 2025-05-06 10:29:49,886 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-05-06 10:29:49,887 - INFO - -------------------------------------------------------------------------------- 2025-05-06 10:29:50,646 - INFO - Deleted project: ctest-TestRoutersBasic-89822143, ID : 0fe88ce5-f375-49fa-95a9-b8be6e67cc2c