2025-08-20 13:39:31,126 - INFO - Domain Default found not creating 2025-08-20 13:39:31,321 - INFO - Project ctest-TestRoutersBasic-55391773 not found, creating it 2025-08-20 13:39:31,842 - INFO - Created Project:ctest-TestRoutersBasic-55391773, ID : 831e7711-d0f6-4fef-8db5-a952ff28de02 2025-08-20 13:39:33,393 - INFO - ================================================================================ 2025-08-20 13:39:33,393 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-20 13:39:33,393 - 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-08-20 13:39:33,650 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with 2025-08-20 13:39:33,650 - INFO - Initial checks done. Running the testcase now 2025-08-20 13:39:33,650 - INFO - 2025-08-20 13:39:34,393 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-55391773 2025-08-20 13:39:34,494 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-55391773 2025-08-20 13:39:34,834 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-55391773', 'default']} 2025-08-20 13:39:35,163 - DEBUG - Response for create_network : {'network': {'id': '86842efa-d626-4564-843d-1232eabffdfb', 'name': 'ctest-vn-41012519', 'tenant_id': '831e7711d0f64fef8db5a952ff28de02', 'project_id': '831e7711d0f64fef8db5a952ff28de02', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-55391773', 'ctest-vn-41012519'], 'port_security_enabled': True, 'description': ''}} 2025-08-20 13:39:35,348 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c315296-d8b6-4a27-9608-c57fe5260df5', 'name': '', 'tenant_id': '831e7711d0f64fef8db5a952ff28de02', 'network_id': '86842efa-d626-4564-843d-1232eabffdfb', 'ip_version': 4, 'cidr': '133.168.78.192/26', 'allocation_pools': [{'start': '133.168.78.194', 'end': '133.168.78.254'}], 'gateway_ip': '133.168.78.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.168.78.194', 'tags': [], 'project_id': '831e7711d0f64fef8db5a952ff28de02'}} 2025-08-20 13:39:35,373 - INFO - Created VN ctest-vn-41012519 2025-08-20 13:39:35,430 - DEBUG - VN ctest-vn-41012519 UUID is 86842efa-d626-4564-843d-1232eabffdfb 2025-08-20 13:39:35,808 - DEBUG - Response for create_network : {'network': {'id': 'ae5897c6-dd8d-4741-b7a6-94ab7a1881f4', 'name': 'ctest-ext_vn-31687440', 'tenant_id': '831e7711d0f64fef8db5a952ff28de02', 'project_id': '831e7711d0f64fef8db5a952ff28de02', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-55391773', 'ctest-ext_vn-31687440'], 'port_security_enabled': True, 'description': ''}} 2025-08-20 13:39:35,982 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db44e01d-c091-43ee-9cce-f855bccbb4a1', 'name': '', 'tenant_id': '831e7711d0f64fef8db5a952ff28de02', 'network_id': 'ae5897c6-dd8d-4741-b7a6-94ab7a1881f4', 'ip_version': 4, 'cidr': '129.242.48.64/26', 'allocation_pools': [{'start': '129.242.48.66', 'end': '129.242.48.126'}], 'gateway_ip': '129.242.48.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.242.48.66', 'tags': [], 'project_id': '831e7711d0f64fef8db5a952ff28de02'}} 2025-08-20 13:39:36,002 - INFO - Created VN ctest-ext_vn-31687440 2025-08-20 13:39:36,058 - DEBUG - VN ctest-ext_vn-31687440 UUID is ae5897c6-dd8d-4741-b7a6-94ab7a1881f4 2025-08-20 13:39:36,240 - DEBUG - Services list from nova: [, , ] 2025-08-20 13:39:37,282 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3897-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3897-1) 2025-08-20 13:39:38,425 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3897-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3897-1) 2025-08-20 13:39:38,513 - INFO - Setting gateway for router 8d0fb3e3-d8eb-4fd8-a763-2a0edf2601be to network ae5897c6-dd8d-4741-b7a6-94ab7a1881f4 2025-08-20 13:39:38,596 - INFO - Adding interface with subnet_id 6c315296-d8b6-4a27-9608-c57fe5260df5, port_id None to router 8d0fb3e3-d8eb-4fd8-a763-2a0edf2601be 2025-08-20 13:39:39,121 - INFO - Waiting for VM ctest-TestRoutersBasic-55391773-65794443 to be up.. 2025-08-20 13:39:39,236 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-20 13:39:44,321 - DEBUG - VM is in ACTIVE state now 2025-08-20 13:39:44,321 - INFO - VM name : ctest-TestRoutersBasic-55391773-65794443 2025-08-20 13:39:44,413 - DEBUG - VM ctest-TestRoutersBasic-55391773-65794443 ID is 22006772-1ac4-4ac8-881f-8feca74bf8f7 2025-08-20 13:39:44,440 - DEBUG - VM ctest-TestRoutersBasic-55391773-65794443 launched on Node cn-jenkins-deploy-platform-ansible-os-3897-1 2025-08-20 13:39:44,529 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/22006772-1ac4-4ac8-881f-8feca74bf8f7 2025-08-20 13:39:44,824 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/22006772-1ac4-4ac8-881f-8feca74bf8f7 2025-08-20 13:39:44,862 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/2d8e3cca-0535-435e-9656-ed58593dbd60 2025-08-20 13:39:48,117 - 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 1006ms') 2025-08-20 13:39:48,117 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-55391773-65794443 failed! 2025-08-20 13:39:48,178 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-55391773:ctest-vn-41012519 is 133.168.78.193 and allocation pool is NOT set 2025-08-20 13:39:50,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=4.31 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.13 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.131/2.720/4.309/1.589 ms') 2025-08-20 13:39:50,241 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-55391773-65794443 passed 2025-08-20 13:39:50,414 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-20 13:39:50,414 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-55391773-65794443, IP 133.168.78.195, Port 22 2025-08-20 13:39:50,577 - DEBUG - VM ctest-TestRoutersBasic-55391773-65794443 is ready for SSH connections 2025-08-20 13:39:50,577 - INFO - Waiting for VM ctest-TestRoutersBasic-55391773-52409152 to be up.. 2025-08-20 13:39:50,661 - DEBUG - VM is in ACTIVE state now 2025-08-20 13:39:50,661 - INFO - VM name : ctest-TestRoutersBasic-55391773-52409152 2025-08-20 13:39:50,737 - DEBUG - VM ctest-TestRoutersBasic-55391773-52409152 ID is 9c323b1b-b691-437c-bb51-24bdc8f37b4c 2025-08-20 13:39:50,737 - DEBUG - VM ctest-TestRoutersBasic-55391773-52409152 launched on Node cn-jenkins-deploy-platform-ansible-os-3897-1 2025-08-20 13:39:50,815 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/9c323b1b-b691-437c-bb51-24bdc8f37b4c 2025-08-20 13:39:50,825 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/c40ab3fe-fd93-41f1-a43e-91ebfe176eff 2025-08-20 13:39:52,071 - 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.20 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.368 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.368/1.782/3.196/1.414 ms') 2025-08-20 13:39:52,072 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-55391773-52409152 passed 2025-08-20 13:39:52,226 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-20 13:39:52,226 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-55391773-52409152, IP 129.242.48.67, Port 22 2025-08-20 13:39:52,378 - DEBUG - VM ctest-TestRoutersBasic-55391773-52409152 is ready for SSH connections 2025-08-20 13:39:52,378 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-20 13:39:52,378 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 129.242.48.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-08-20 13:39:52,378 - DEBUG - ping -s 56 -c 3 -W 1 129.242.48.67 2025-08-20 13:39:56,430 - DEBUG - PING 129.242.48.67 (129.242.48.67): 56 data bytes 64 bytes from 129.242.48.67: seq=0 ttl=62 time=8.296 ms 64 bytes from 129.242.48.67: seq=1 ttl=62 time=0.794 ms 64 bytes from 129.242.48.67: seq=2 ttl=62 time=1.109 ms --- 129.242.48.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.794/3.399/8.296 ms 2025-08-20 13:39:56,430 - INFO - Ping to IP 129.242.48.67 from VM ctest-TestRoutersBasic-55391773-65794443 passed 2025-08-20 13:39:56,430 - INFO - Deleting interface with subnet_id 6c315296-d8b6-4a27-9608-c57fe5260df5, port_id None from router 8d0fb3e3-d8eb-4fd8-a763-2a0edf2601be 2025-08-20 13:39:56,665 - INFO - Deleting VM ctest-TestRoutersBasic-55391773-52409152 2025-08-20 13:39:56,738 - INFO - Deleting VM ctest-TestRoutersBasic-55391773-65794443 2025-08-20 13:39:56,852 - INFO - Deleting VN ctest-ext_vn-31687440 2025-08-20 13:39:56,931 - DEBUG - VN ae5897c6-dd8d-4741-b7a6-94ab7a1881f4 still in use: Unable to complete operation on network ae5897c6-dd8d-4741-b7a6-94ab7a1881f4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-60af1827-0773-4a18-8d81-cacf3b3fdca2'] 2025-08-20 13:39:56,931 - WARNING - Deleting VN ctest-ext_vn-31687440 failed..Will retry 2025-08-20 13:39:59,050 - DEBUG - Response for deleting network () 2025-08-20 13:39:59,051 - INFO - Deleting VN ctest-vn-41012519 2025-08-20 13:39:59,181 - DEBUG - Response for deleting network () 2025-08-20 13:39:59,440 - DEBUG - No XMPP flaps were noticed during the test 2025-08-20 13:39:59,440 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-08-20 13:39:59,440 - INFO - -------------------------------------------------------------------------------- 2025-08-20 13:40:00,140 - INFO - Deleted project: ctest-TestRoutersBasic-55391773, ID : 831e7711-d0f6-4fef-8db5-a952ff28de02