2025-01-15 19:19:26,616 - INFO - Domain Default found not creating 2025-01-15 19:19:26,759 - INFO - Project ctest-TestRoutersBasic-79277517 not found, creating it 2025-01-15 19:19:27,265 - INFO - Created Project:ctest-TestRoutersBasic-79277517, ID : 2bdc7748-fb4a-4fa8-a24d-4bcb5d855b93 2025-01-15 19:19:28,669 - INFO - ================================================================================ 2025-01-15 19:19:28,669 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-15 19:19:28,669 - 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-15 19:19:28,928 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2025-01-15 19:19:28,928 - INFO - Initial checks done. Running the testcase now 2025-01-15 19:19:28,928 - INFO - 2025-01-15 19:19:29,611 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-79277517 2025-01-15 19:19:29,706 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-79277517 2025-01-15 19:19:30,038 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-79277517', 'default']} 2025-01-15 19:19:30,342 - DEBUG - Response for create_network : {'network': {'id': '15c9a9da-4bb1-4ca8-a6fe-ec90c397260a', 'name': 'ctest-vn-04147403', 'tenant_id': '2bdc7748fb4a4fa8a24d4bcb5d855b93', 'project_id': '2bdc7748fb4a4fa8a24d4bcb5d855b93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-79277517', 'ctest-vn-04147403'], 'port_security_enabled': True, 'description': ''}} 2025-01-15 19:19:30,493 - DEBUG - Response for create_subnet : {'subnet': {'id': '27bb68d7-f3ca-419a-880c-79d1733b3e63', 'name': '', 'tenant_id': '2bdc7748fb4a4fa8a24d4bcb5d855b93', 'network_id': '15c9a9da-4bb1-4ca8-a6fe-ec90c397260a', 'ip_version': 4, 'cidr': '190.149.177.0/26', 'allocation_pools': [{'start': '190.149.177.2', 'end': '190.149.177.62'}], 'gateway_ip': '190.149.177.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.149.177.2', 'tags': [], 'project_id': '2bdc7748fb4a4fa8a24d4bcb5d855b93'}} 2025-01-15 19:19:30,512 - INFO - Created VN ctest-vn-04147403 2025-01-15 19:19:30,566 - DEBUG - VN ctest-vn-04147403 UUID is 15c9a9da-4bb1-4ca8-a6fe-ec90c397260a 2025-01-15 19:19:30,872 - DEBUG - Response for create_network : {'network': {'id': 'f83f405c-f011-4a62-ab15-44da069030e0', 'name': 'ctest-ext_vn-44006971', 'tenant_id': '2bdc7748fb4a4fa8a24d4bcb5d855b93', 'project_id': '2bdc7748fb4a4fa8a24d4bcb5d855b93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-79277517', 'ctest-ext_vn-44006971'], 'port_security_enabled': True, 'description': ''}} 2025-01-15 19:19:31,047 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cd9bece3-576e-417f-9fbd-53693928610d', 'name': '', 'tenant_id': '2bdc7748fb4a4fa8a24d4bcb5d855b93', 'network_id': 'f83f405c-f011-4a62-ab15-44da069030e0', 'ip_version': 4, 'cidr': '22.205.150.192/26', 'allocation_pools': [{'start': '22.205.150.194', 'end': '22.205.150.254'}], 'gateway_ip': '22.205.150.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.205.150.194', 'tags': [], 'project_id': '2bdc7748fb4a4fa8a24d4bcb5d855b93'}} 2025-01-15 19:19:31,064 - INFO - Created VN ctest-ext_vn-44006971 2025-01-15 19:19:31,118 - DEBUG - VN ctest-ext_vn-44006971 UUID is f83f405c-f011-4a62-ab15-44da069030e0 2025-01-15 19:19:31,338 - DEBUG - Services list from nova: [, , ] 2025-01-15 19:19:32,330 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2644-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2644-1) 2025-01-15 19:19:33,421 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2644-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2644-1) 2025-01-15 19:19:33,508 - INFO - Setting gateway for router ac3eca6a-29c7-4642-ac3b-59d2467ca7e2 to network f83f405c-f011-4a62-ab15-44da069030e0 2025-01-15 19:19:33,577 - INFO - Adding interface with subnet_id 27bb68d7-f3ca-419a-880c-79d1733b3e63, port_id None to router ac3eca6a-29c7-4642-ac3b-59d2467ca7e2 2025-01-15 19:19:33,911 - INFO - Waiting for VM ctest-TestRoutersBasic-79277517-71150330 to be up.. 2025-01-15 19:19:34,048 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-15 19:19:39,127 - DEBUG - VM is in ACTIVE state now 2025-01-15 19:19:39,127 - INFO - VM name : ctest-TestRoutersBasic-79277517-71150330 2025-01-15 19:19:39,211 - DEBUG - VM ctest-TestRoutersBasic-79277517-71150330 ID is 4b10c519-602f-43ec-afb2-1f1a6e3f6627 2025-01-15 19:19:39,230 - DEBUG - VM ctest-TestRoutersBasic-79277517-71150330 launched on Node cn-jenkins-deploy-platform-ansible-os-2644-1 2025-01-15 19:19:39,313 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/4b10c519-602f-43ec-afb2-1f1a6e3f6627 2025-01-15 19:19:39,607 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/4b10c519-602f-43ec-afb2-1f1a6e3f6627 2025-01-15 19:19:39,641 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/b18f3466-1161-44e2-858a-5abdab5eedb3 2025-01-15 19:19:42,912 - 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 1018ms') 2025-01-15 19:19:42,912 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-79277517-71150330 failed! 2025-01-15 19:19:42,974 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-79277517:ctest-vn-04147403 is 190.149.177.1 and allocation pool is NOT set 2025-01-15 19:19:45,035 - 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.65 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.793 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.793/2.221/3.650/1.428 ms') 2025-01-15 19:19:45,035 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-79277517-71150330 passed 2025-01-15 19:19:45,190 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 19:19:45,190 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-79277517-71150330, IP 190.149.177.3, Port 22 2025-01-15 19:19:45,345 - DEBUG - VM ctest-TestRoutersBasic-79277517-71150330 is ready for SSH connections 2025-01-15 19:19:45,345 - INFO - Waiting for VM ctest-TestRoutersBasic-79277517-97081863 to be up.. 2025-01-15 19:19:45,418 - DEBUG - VM is in ACTIVE state now 2025-01-15 19:19:45,418 - INFO - VM name : ctest-TestRoutersBasic-79277517-97081863 2025-01-15 19:19:45,502 - DEBUG - VM ctest-TestRoutersBasic-79277517-97081863 ID is e1265bf1-b2aa-44bf-b3aa-a7873ed5a6cd 2025-01-15 19:19:45,502 - DEBUG - VM ctest-TestRoutersBasic-79277517-97081863 launched on Node cn-jenkins-deploy-platform-ansible-os-2644-1 2025-01-15 19:19:45,570 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/e1265bf1-b2aa-44bf-b3aa-a7873ed5a6cd 2025-01-15 19:19:45,578 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/a8f089ae-1da6-4ee6-a5a2-eeee3890eddc 2025-01-15 19:19:46,825 - 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.74 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.458 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.458/1.598/2.739/1.140 ms') 2025-01-15 19:19:46,825 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-79277517-97081863 passed 2025-01-15 19:19:46,974 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 19:19:46,974 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-79277517-97081863, IP 22.205.150.195, Port 22 2025-01-15 19:19:47,130 - DEBUG - VM ctest-TestRoutersBasic-79277517-97081863 is ready for SSH connections 2025-01-15 19:19:47,130 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 19:19:47,130 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 22.205.150.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-01-15 19:19:47,130 - DEBUG - ping -s 56 -c 3 -W 1 22.205.150.195 2025-01-15 19:19:51,093 - DEBUG - PING 22.205.150.195 (22.205.150.195): 56 data bytes 64 bytes from 22.205.150.195: seq=0 ttl=62 time=6.298 ms 64 bytes from 22.205.150.195: seq=1 ttl=62 time=0.702 ms 64 bytes from 22.205.150.195: seq=2 ttl=62 time=0.992 ms --- 22.205.150.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.702/2.664/6.298 ms 2025-01-15 19:19:51,093 - INFO - Ping to IP 22.205.150.195 from VM ctest-TestRoutersBasic-79277517-71150330 passed 2025-01-15 19:19:51,093 - INFO - Deleting interface with subnet_id 27bb68d7-f3ca-419a-880c-79d1733b3e63, port_id None from router ac3eca6a-29c7-4642-ac3b-59d2467ca7e2 2025-01-15 19:19:51,299 - INFO - Deleting VM ctest-TestRoutersBasic-79277517-97081863 2025-01-15 19:19:51,359 - INFO - Deleting VM ctest-TestRoutersBasic-79277517-71150330 2025-01-15 19:19:51,426 - INFO - Deleting VN ctest-ext_vn-44006971 2025-01-15 19:19:51,506 - DEBUG - VN f83f405c-f011-4a62-ab15-44da069030e0 still in use: Unable to complete operation on network f83f405c-f011-4a62-ab15-44da069030e0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3260fdf6-8482-4e51-8eb1-68178db35a53'] 2025-01-15 19:19:51,506 - WARNING - Deleting VN ctest-ext_vn-44006971 failed..Will retry 2025-01-15 19:19:53,618 - DEBUG - Response for deleting network () 2025-01-15 19:19:53,618 - INFO - Deleting VN ctest-vn-04147403 2025-01-15 19:19:53,735 - DEBUG - Response for deleting network () 2025-01-15 19:19:53,987 - DEBUG - No XMPP flaps were noticed during the test 2025-01-15 19:19:53,987 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-01-15 19:19:53,988 - INFO - -------------------------------------------------------------------------------- 2025-01-15 19:19:54,632 - INFO - Deleted project: ctest-TestRoutersBasic-79277517, ID : 2bdc7748-fb4a-4fa8-a24d-4bcb5d855b93