2025-08-11 18:32:34,091 - INFO - Domain Default found not creating 2025-08-11 18:32:34,208 - INFO - Project ctest-TestRoutersBasic-39248734 not found, creating it 2025-08-11 18:32:34,663 - INFO - Created Project:ctest-TestRoutersBasic-39248734, ID : 71ee0ee6-4ee3-498d-a6f0-816affef3f36 2025-08-11 18:32:35,968 - INFO - ================================================================================ 2025-08-11 18:32:35,968 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-11 18:32:35,969 - 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-11 18:32:36,219 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-08-11 18:32:36,219 - INFO - Initial checks done. Running the testcase now 2025-08-11 18:32:36,219 - INFO - 2025-08-11 18:32:36,896 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-39248734 2025-08-11 18:32:36,989 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-39248734 2025-08-11 18:32:37,309 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-39248734', 'default']} 2025-08-11 18:32:37,582 - DEBUG - Response for create_network : {'network': {'id': 'c206a10d-c303-4420-ab3d-7f24b5300c7f', 'name': 'ctest-vn-52471513', 'tenant_id': '71ee0ee64ee3498da6f0816affef3f36', 'project_id': '71ee0ee64ee3498da6f0816affef3f36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-39248734', 'ctest-vn-52471513'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 18:32:37,783 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a62108a-bfc4-4833-8d71-12d30afb83a7', 'name': '', 'tenant_id': '71ee0ee64ee3498da6f0816affef3f36', 'network_id': 'c206a10d-c303-4420-ab3d-7f24b5300c7f', 'ip_version': 4, 'cidr': '11.205.10.64/26', 'allocation_pools': [{'start': '11.205.10.66', 'end': '11.205.10.126'}], 'gateway_ip': '11.205.10.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.205.10.66', 'tags': [], 'project_id': '71ee0ee64ee3498da6f0816affef3f36'}} 2025-08-11 18:32:37,798 - INFO - Created VN ctest-vn-52471513 2025-08-11 18:32:37,849 - DEBUG - VN ctest-vn-52471513 UUID is c206a10d-c303-4420-ab3d-7f24b5300c7f 2025-08-11 18:32:38,180 - DEBUG - Response for create_network : {'network': {'id': '244ceb41-b5a0-4da8-8f99-59fac31d1806', 'name': 'ctest-ext_vn-71226675', 'tenant_id': '71ee0ee64ee3498da6f0816affef3f36', 'project_id': '71ee0ee64ee3498da6f0816affef3f36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-39248734', 'ctest-ext_vn-71226675'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 18:32:38,358 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a847414f-d5c5-446c-ad7a-50e7ab21442d', 'name': '', 'tenant_id': '71ee0ee64ee3498da6f0816affef3f36', 'network_id': '244ceb41-b5a0-4da8-8f99-59fac31d1806', 'ip_version': 4, 'cidr': '83.197.9.192/26', 'allocation_pools': [{'start': '83.197.9.194', 'end': '83.197.9.254'}], 'gateway_ip': '83.197.9.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.197.9.194', 'tags': [], 'project_id': '71ee0ee64ee3498da6f0816affef3f36'}} 2025-08-11 18:32:38,374 - INFO - Created VN ctest-ext_vn-71226675 2025-08-11 18:32:38,425 - DEBUG - VN ctest-ext_vn-71226675 UUID is 244ceb41-b5a0-4da8-8f99-59fac31d1806 2025-08-11 18:32:38,615 - DEBUG - Services list from nova: [, , ] 2025-08-11 18:32:39,544 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3820-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3820-1) 2025-08-11 18:32:40,583 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3820-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3820-1) 2025-08-11 18:32:40,650 - INFO - Setting gateway for router 33f0af6d-8d72-4bad-af43-0f99ca9f521e to network 244ceb41-b5a0-4da8-8f99-59fac31d1806 2025-08-11 18:32:40,717 - INFO - Adding interface with subnet_id 8a62108a-bfc4-4833-8d71-12d30afb83a7, port_id None to router 33f0af6d-8d72-4bad-af43-0f99ca9f521e 2025-08-11 18:32:41,017 - INFO - Waiting for VM ctest-TestRoutersBasic-39248734-76988840 to be up.. 2025-08-11 18:32:41,199 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-11 18:32:46,278 - DEBUG - VM is in ACTIVE state now 2025-08-11 18:32:46,278 - INFO - VM name : ctest-TestRoutersBasic-39248734-76988840 2025-08-11 18:32:46,390 - DEBUG - VM ctest-TestRoutersBasic-39248734-76988840 ID is 0d4e32ba-91d4-4aad-a493-8d69308fa733 2025-08-11 18:32:46,429 - DEBUG - VM ctest-TestRoutersBasic-39248734-76988840 launched on Node cn-jenkins-deploy-platform-ansible-os-3820-1 2025-08-11 18:32:46,533 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/0d4e32ba-91d4-4aad-a493-8d69308fa733 2025-08-11 18:32:46,833 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/0d4e32ba-91d4-4aad-a493-8d69308fa733 2025-08-11 18:32:46,860 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/50c5e0de-432c-45fa-848e-eb73523ea68e 2025-08-11 18:32:50,135 - 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=2 ttl=63 time=9.88 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1028ms\r\nrtt min/avg/max/mdev = 9.876/9.876/9.876/0.000 ms') 2025-08-11 18:32:50,135 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-39248734-76988840 passed 2025-08-11 18:32:50,284 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 18:32:50,284 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-39248734-76988840, IP 11.205.10.67, Port 22 2025-08-11 18:32:50,340 - 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-08-11 18:32:50,409 - DEBUG - VM ctest-TestRoutersBasic-39248734-76988840 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-11 18:32:55,410 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 18:32:55,410 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-39248734-76988840, IP 11.205.10.67, Port 22 2025-08-11 18:32:55,571 - DEBUG - VM ctest-TestRoutersBasic-39248734-76988840 is ready for SSH connections 2025-08-11 18:32:55,572 - INFO - Waiting for VM ctest-TestRoutersBasic-39248734-50439501 to be up.. 2025-08-11 18:32:55,636 - DEBUG - VM is in ACTIVE state now 2025-08-11 18:32:55,636 - INFO - VM name : ctest-TestRoutersBasic-39248734-50439501 2025-08-11 18:32:55,697 - DEBUG - VM ctest-TestRoutersBasic-39248734-50439501 ID is c9dbc09f-3df2-4b54-8f5b-c007ac7ad0ff 2025-08-11 18:32:55,697 - DEBUG - VM ctest-TestRoutersBasic-39248734-50439501 launched on Node cn-jenkins-deploy-platform-ansible-os-3820-1 2025-08-11 18:32:55,758 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/c9dbc09f-3df2-4b54-8f5b-c007ac7ad0ff 2025-08-11 18:32:55,765 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/5084d170-3b90-4c59-a2fc-16b1522e4b61 2025-08-11 18:32:56,994 - 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.58 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.342 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.342/1.459/2.577/1.117 ms') 2025-08-11 18:32:56,994 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-39248734-50439501 passed 2025-08-11 18:32:57,141 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 18:32:57,141 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-39248734-50439501, IP 83.197.9.195, Port 22 2025-08-11 18:32:57,312 - DEBUG - VM ctest-TestRoutersBasic-39248734-50439501 is ready for SSH connections 2025-08-11 18:32:57,312 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 18:32:57,312 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 83.197.9.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-08-11 18:32:57,313 - DEBUG - ping -s 56 -c 3 -W 1 83.197.9.195 2025-08-11 18:33:00,954 - DEBUG - PING 83.197.9.195 (83.197.9.195): 56 data bytes 64 bytes from 83.197.9.195: seq=0 ttl=62 time=5.587 ms 64 bytes from 83.197.9.195: seq=1 ttl=62 time=0.752 ms 64 bytes from 83.197.9.195: seq=2 ttl=62 time=0.967 ms --- 83.197.9.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.752/2.435/5.587 ms 2025-08-11 18:33:00,954 - INFO - Ping to IP 83.197.9.195 from VM ctest-TestRoutersBasic-39248734-76988840 passed 2025-08-11 18:33:00,954 - INFO - Deleting interface with subnet_id 8a62108a-bfc4-4833-8d71-12d30afb83a7, port_id None from router 33f0af6d-8d72-4bad-af43-0f99ca9f521e 2025-08-11 18:33:01,133 - INFO - Deleting VM ctest-TestRoutersBasic-39248734-50439501 2025-08-11 18:33:01,195 - INFO - Deleting VM ctest-TestRoutersBasic-39248734-76988840 2025-08-11 18:33:01,283 - INFO - Deleting VN ctest-ext_vn-71226675 2025-08-11 18:33:01,369 - DEBUG - VN 244ceb41-b5a0-4da8-8f99-59fac31d1806 still in use: Unable to complete operation on network 244ceb41-b5a0-4da8-8f99-59fac31d1806. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ce324f3d-3067-4eb7-b2f1-6faaf6856fee'] 2025-08-11 18:33:01,369 - WARNING - Deleting VN ctest-ext_vn-71226675 failed..Will retry 2025-08-11 18:33:03,486 - DEBUG - Response for deleting network () 2025-08-11 18:33:03,486 - INFO - Deleting VN ctest-vn-52471513 2025-08-11 18:33:03,603 - DEBUG - Response for deleting network () 2025-08-11 18:33:03,862 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 18:33:03,862 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:28]
2025-08-11 18:33:03,862 - INFO - -------------------------------------------------------------------------------- 2025-08-11 18:33:04,518 - INFO - Deleted project: ctest-TestRoutersBasic-39248734, ID : 71ee0ee6-4ee3-498d-a6f0-816affef3f36