2025-01-08 22:10:41,578 - INFO - Domain Default found not creating 2025-01-08 22:10:41,734 - INFO - Project ctest-TestRoutersBasic-80371752 not found, creating it 2025-01-08 22:10:42,206 - INFO - Created Project:ctest-TestRoutersBasic-80371752, ID : 42f58cd0-a959-4462-bf65-0c7f588caa57 2025-01-08 22:10:43,622 - INFO - ================================================================================ 2025-01-08 22:10:43,623 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-08 22:10:43,623 - 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-01-08 22:10:43,886 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.22': '0'}} with 2025-01-08 22:10:43,886 - INFO - Initial checks done. Running the testcase now 2025-01-08 22:10:43,886 - INFO - 2025-01-08 22:10:44,590 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-80371752 2025-01-08 22:10:44,689 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-80371752 2025-01-08 22:10:45,028 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80371752', 'default']} 2025-01-08 22:10:45,353 - DEBUG - Response for create_network : {'network': {'id': 'fcfd591f-4109-4093-af90-3ff27b8824ea', 'name': 'ctest-vn-36241226', 'tenant_id': '42f58cd0a9594462bf650c7f588caa57', 'project_id': '42f58cd0a9594462bf650c7f588caa57', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80371752', 'ctest-vn-36241226'], 'port_security_enabled': True, 'description': ''}} 2025-01-08 22:10:45,526 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a0ae34a6-d8d0-436c-bc96-2c84300a225b', 'name': '', 'tenant_id': '42f58cd0a9594462bf650c7f588caa57', 'network_id': 'fcfd591f-4109-4093-af90-3ff27b8824ea', 'ip_version': 4, 'cidr': '20.134.215.192/26', 'allocation_pools': [{'start': '20.134.215.194', 'end': '20.134.215.254'}], 'gateway_ip': '20.134.215.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.134.215.194', 'tags': [], 'project_id': '42f58cd0a9594462bf650c7f588caa57'}} 2025-01-08 22:10:45,546 - INFO - Created VN ctest-vn-36241226 2025-01-08 22:10:45,596 - DEBUG - VN ctest-vn-36241226 UUID is fcfd591f-4109-4093-af90-3ff27b8824ea 2025-01-08 22:10:45,925 - DEBUG - Response for create_network : {'network': {'id': 'c39112ca-e218-4c1f-9083-571ea36c2528', 'name': 'ctest-ext_vn-91739286', 'tenant_id': '42f58cd0a9594462bf650c7f588caa57', 'project_id': '42f58cd0a9594462bf650c7f588caa57', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80371752', 'ctest-ext_vn-91739286'], 'port_security_enabled': True, 'description': ''}} 2025-01-08 22:10:46,159 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe159460-e1cb-419f-87de-7fbae62adcc0', 'name': '', 'tenant_id': '42f58cd0a9594462bf650c7f588caa57', 'network_id': 'c39112ca-e218-4c1f-9083-571ea36c2528', 'ip_version': 4, 'cidr': '8.167.101.0/26', 'allocation_pools': [{'start': '8.167.101.2', 'end': '8.167.101.62'}], 'gateway_ip': '8.167.101.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.167.101.2', 'tags': [], 'project_id': '42f58cd0a9594462bf650c7f588caa57'}} 2025-01-08 22:10:46,177 - INFO - Created VN ctest-ext_vn-91739286 2025-01-08 22:10:46,228 - DEBUG - VN ctest-ext_vn-91739286 UUID is c39112ca-e218-4c1f-9083-571ea36c2528 2025-01-08 22:10:46,433 - DEBUG - Services list from nova: [, , ] 2025-01-08 22:10:47,455 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2570-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2570-1) 2025-01-08 22:10:48,614 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2570-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2570-1) 2025-01-08 22:10:48,722 - INFO - Setting gateway for router 5084d7fb-30f6-4e38-8404-ef5e953cd0ae to network c39112ca-e218-4c1f-9083-571ea36c2528 2025-01-08 22:10:48,805 - INFO - Adding interface with subnet_id a0ae34a6-d8d0-436c-bc96-2c84300a225b, port_id None to router 5084d7fb-30f6-4e38-8404-ef5e953cd0ae 2025-01-08 22:10:49,288 - INFO - Waiting for VM ctest-TestRoutersBasic-80371752-15077493 to be up.. 2025-01-08 22:10:49,420 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-08 22:10:54,502 - DEBUG - VM is in ACTIVE state now 2025-01-08 22:10:54,502 - INFO - VM name : ctest-TestRoutersBasic-80371752-15077493 2025-01-08 22:10:54,579 - DEBUG - VM ctest-TestRoutersBasic-80371752-15077493 ID is 2f973b63-aa76-4667-bb26-e366154526eb 2025-01-08 22:10:54,597 - DEBUG - VM ctest-TestRoutersBasic-80371752-15077493 launched on Node cn-jenkins-deploy-platform-ansible-os-2570-1 2025-01-08 22:10:54,682 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/2f973b63-aa76-4667-bb26-e366154526eb 2025-01-08 22:10:54,982 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/2f973b63-aa76-4667-bb26-e366154526eb 2025-01-08 22:10:55,015 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/e2c28346-d856-4dbb-a275-c461012245ab 2025-01-08 22:10:58,290 - 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 1030ms') 2025-01-08 22:10:58,290 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-80371752-15077493 failed! 2025-01-08 22:10:58,348 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-80371752:ctest-vn-36241226 is 20.134.215.193 and allocation pool is NOT set 2025-01-08 22:11:00,410 - 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.66 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.400 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.400/2.028/3.656/1.628 ms') 2025-01-08 22:11:00,410 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-80371752-15077493 passed 2025-01-08 22:11:00,561 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 22:11:00,561 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-80371752-15077493, IP 20.134.215.195, Port 22 2025-01-08 22:11:00,717 - DEBUG - VM ctest-TestRoutersBasic-80371752-15077493 is ready for SSH connections 2025-01-08 22:11:00,717 - INFO - Waiting for VM ctest-TestRoutersBasic-80371752-33681496 to be up.. 2025-01-08 22:11:00,802 - DEBUG - VM is in ACTIVE state now 2025-01-08 22:11:00,803 - INFO - VM name : ctest-TestRoutersBasic-80371752-33681496 2025-01-08 22:11:00,882 - DEBUG - VM ctest-TestRoutersBasic-80371752-33681496 ID is b88b1ab3-4a09-4c2a-8a30-7504522fcb9a 2025-01-08 22:11:00,882 - DEBUG - VM ctest-TestRoutersBasic-80371752-33681496 launched on Node cn-jenkins-deploy-platform-ansible-os-2570-1 2025-01-08 22:11:00,981 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/b88b1ab3-4a09-4c2a-8a30-7504522fcb9a 2025-01-08 22:11:00,990 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/90412535-9069-4a2a-96bc-88ed87ddab5e 2025-01-08 22:11:02,242 - 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=2.86 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.508 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.508/1.684/2.861/1.176 ms') 2025-01-08 22:11:02,242 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-80371752-33681496 passed 2025-01-08 22:11:02,393 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 22:11:02,393 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-80371752-33681496, IP 8.167.101.3, Port 22 2025-01-08 22:11:02,548 - DEBUG - VM ctest-TestRoutersBasic-80371752-33681496 is ready for SSH connections 2025-01-08 22:11:02,548 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 22:11:02,548 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 8.167.101.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2025-01-08 22:11:02,548 - DEBUG - ping -s 56 -c 3 -W 1 8.167.101.3 2025-01-08 22:11:06,560 - DEBUG - PING 8.167.101.3 (8.167.101.3): 56 data bytes 64 bytes from 8.167.101.3: seq=0 ttl=62 time=5.093 ms 64 bytes from 8.167.101.3: seq=1 ttl=62 time=0.861 ms 64 bytes from 8.167.101.3: seq=2 ttl=62 time=1.113 ms --- 8.167.101.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.861/2.355/5.093 ms 2025-01-08 22:11:06,560 - INFO - Ping to IP 8.167.101.3 from VM ctest-TestRoutersBasic-80371752-15077493 passed 2025-01-08 22:11:06,560 - INFO - Deleting interface with subnet_id a0ae34a6-d8d0-436c-bc96-2c84300a225b, port_id None from router 5084d7fb-30f6-4e38-8404-ef5e953cd0ae 2025-01-08 22:11:06,776 - INFO - Deleting VM ctest-TestRoutersBasic-80371752-33681496 2025-01-08 22:11:06,848 - INFO - Deleting VM ctest-TestRoutersBasic-80371752-15077493 2025-01-08 22:11:06,940 - INFO - Deleting VN ctest-ext_vn-91739286 2025-01-08 22:11:07,023 - DEBUG - VN c39112ca-e218-4c1f-9083-571ea36c2528 still in use: Unable to complete operation on network c39112ca-e218-4c1f-9083-571ea36c2528. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-da82e147-97fd-4df2-b906-9bcec4c7af3d'] 2025-01-08 22:11:07,023 - WARNING - Deleting VN ctest-ext_vn-91739286 failed..Will retry 2025-01-08 22:11:09,172 - DEBUG - Response for deleting network () 2025-01-08 22:11:09,172 - INFO - Deleting VN ctest-vn-36241226 2025-01-08 22:11:09,295 - DEBUG - Response for deleting network () 2025-01-08 22:11:09,556 - DEBUG - No XMPP flaps were noticed during the test 2025-01-08 22:11:09,556 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-01-08 22:11:09,557 - INFO - -------------------------------------------------------------------------------- 2025-01-08 22:11:10,253 - INFO - Deleted project: ctest-TestRoutersBasic-80371752, ID : 42f58cd0-a959-4462-bf65-0c7f588caa57