2025-01-14 22:17:26,725 - INFO - Domain Default found not creating 2025-01-14 22:17:26,862 - INFO - Project ctest-TestRoutersBasic-25457431 not found, creating it 2025-01-14 22:17:27,301 - INFO - Created Project:ctest-TestRoutersBasic-25457431, ID : cedb091f-f2cf-4456-8701-bc0dacea2a81 2025-01-14 22:17:28,675 - INFO - ================================================================================ 2025-01-14 22:17:28,675 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-14 22:17:28,675 - 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-14 22:17:28,931 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.26': '0'}} with 2025-01-14 22:17:28,931 - INFO - Initial checks done. Running the testcase now 2025-01-14 22:17:28,931 - INFO - 2025-01-14 22:17:29,627 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-25457431 2025-01-14 22:17:29,724 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-25457431 2025-01-14 22:17:30,048 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25457431', 'default']} 2025-01-14 22:17:30,358 - DEBUG - Response for create_network : {'network': {'id': 'c32a7df6-a2a4-448f-9b90-187799dd2b5b', 'name': 'ctest-vn-27500562', 'tenant_id': 'cedb091ff2cf44568701bc0dacea2a81', 'project_id': 'cedb091ff2cf44568701bc0dacea2a81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25457431', 'ctest-vn-27500562'], 'port_security_enabled': True, 'description': ''}} 2025-01-14 22:17:30,555 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8819841-115f-49c6-9ecc-aee24f1dd7f6', 'name': '', 'tenant_id': 'cedb091ff2cf44568701bc0dacea2a81', 'network_id': 'c32a7df6-a2a4-448f-9b90-187799dd2b5b', 'ip_version': 4, 'cidr': '35.245.162.192/26', 'allocation_pools': [{'start': '35.245.162.194', 'end': '35.245.162.254'}], 'gateway_ip': '35.245.162.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.245.162.194', 'tags': [], 'project_id': 'cedb091ff2cf44568701bc0dacea2a81'}} 2025-01-14 22:17:30,573 - INFO - Created VN ctest-vn-27500562 2025-01-14 22:17:30,624 - DEBUG - VN ctest-vn-27500562 UUID is c32a7df6-a2a4-448f-9b90-187799dd2b5b 2025-01-14 22:17:30,950 - DEBUG - Response for create_network : {'network': {'id': 'ded193fe-722d-4f21-96f6-80086a241778', 'name': 'ctest-ext_vn-64467577', 'tenant_id': 'cedb091ff2cf44568701bc0dacea2a81', 'project_id': 'cedb091ff2cf44568701bc0dacea2a81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-25457431', 'ctest-ext_vn-64467577'], 'port_security_enabled': True, 'description': ''}} 2025-01-14 22:17:31,111 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b6b27bfb-4de8-4206-ad8a-f9abc223f9e7', 'name': '', 'tenant_id': 'cedb091ff2cf44568701bc0dacea2a81', 'network_id': 'ded193fe-722d-4f21-96f6-80086a241778', 'ip_version': 4, 'cidr': '170.240.52.192/26', 'allocation_pools': [{'start': '170.240.52.194', 'end': '170.240.52.254'}], 'gateway_ip': '170.240.52.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.240.52.194', 'tags': [], 'project_id': 'cedb091ff2cf44568701bc0dacea2a81'}} 2025-01-14 22:17:31,129 - INFO - Created VN ctest-ext_vn-64467577 2025-01-14 22:17:31,180 - DEBUG - VN ctest-ext_vn-64467577 UUID is ded193fe-722d-4f21-96f6-80086a241778 2025-01-14 22:17:31,383 - DEBUG - Services list from nova: [, , ] 2025-01-14 22:17:32,369 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2631-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2631-1) 2025-01-14 22:17:33,473 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2631-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2631-1) 2025-01-14 22:17:33,548 - INFO - Setting gateway for router c20f923a-6f5b-4b33-99ac-8986fb88592f to network ded193fe-722d-4f21-96f6-80086a241778 2025-01-14 22:17:33,612 - INFO - Adding interface with subnet_id c8819841-115f-49c6-9ecc-aee24f1dd7f6, port_id None to router c20f923a-6f5b-4b33-99ac-8986fb88592f 2025-01-14 22:17:34,076 - INFO - Waiting for VM ctest-TestRoutersBasic-25457431-49690504 to be up.. 2025-01-14 22:17:34,291 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-14 22:17:39,372 - DEBUG - VM is in ACTIVE state now 2025-01-14 22:17:39,372 - INFO - VM name : ctest-TestRoutersBasic-25457431-49690504 2025-01-14 22:17:39,449 - DEBUG - VM ctest-TestRoutersBasic-25457431-49690504 ID is e7c1ce2c-2dc0-4e5e-b1ef-35f7d9ce3f37 2025-01-14 22:17:39,466 - DEBUG - VM ctest-TestRoutersBasic-25457431-49690504 launched on Node cn-jenkins-deploy-platform-ansible-os-2631-1 2025-01-14 22:17:39,537 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/e7c1ce2c-2dc0-4e5e-b1ef-35f7d9ce3f37 2025-01-14 22:17:39,831 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/e7c1ce2c-2dc0-4e5e-b1ef-35f7d9ce3f37 2025-01-14 22:17:39,862 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/433a3745-fb56-48d6-afbc-6169221cb830 2025-01-14 22:17:43,127 - 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 1015ms') 2025-01-14 22:17:43,127 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-25457431-49690504 failed! 2025-01-14 22:17:43,180 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-25457431:ctest-vn-27500562 is 35.245.162.193 and allocation pool is NOT set 2025-01-14 22:17:45,243 - 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.19 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.358 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 = 0.358/1.772/3.186/1.414 ms') 2025-01-14 22:17:45,243 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-25457431-49690504 passed 2025-01-14 22:17:45,348 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 22:17:45,348 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-25457431-49690504, IP 35.245.162.195, Port 22 2025-01-14 22:17:45,504 - DEBUG - VM ctest-TestRoutersBasic-25457431-49690504 is ready for SSH connections 2025-01-14 22:17:45,504 - INFO - Waiting for VM ctest-TestRoutersBasic-25457431-86176118 to be up.. 2025-01-14 22:17:45,578 - DEBUG - VM is in ACTIVE state now 2025-01-14 22:17:45,578 - INFO - VM name : ctest-TestRoutersBasic-25457431-86176118 2025-01-14 22:17:45,669 - DEBUG - VM ctest-TestRoutersBasic-25457431-86176118 ID is 80aa23d4-2776-424e-bc3e-1eedf3ae8ce6 2025-01-14 22:17:45,670 - DEBUG - VM ctest-TestRoutersBasic-25457431-86176118 launched on Node cn-jenkins-deploy-platform-ansible-os-2631-1 2025-01-14 22:17:45,740 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/80aa23d4-2776-424e-bc3e-1eedf3ae8ce6 2025-01-14 22:17:45,749 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/c0651550-541f-4390-ace5-819fb1c1c7e7 2025-01-14 22:17:46,992 - 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.61 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.502 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.502/1.555/2.608/1.053 ms') 2025-01-14 22:17:46,992 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-25457431-86176118 passed 2025-01-14 22:17:47,144 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 22:17:47,144 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-25457431-86176118, IP 170.240.52.195, Port 22 2025-01-14 22:17:47,296 - DEBUG - VM ctest-TestRoutersBasic-25457431-86176118 is ready for SSH connections 2025-01-14 22:17:47,296 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 22:17:47,296 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 170.240.52.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-01-14 22:17:47,297 - DEBUG - ping -s 56 -c 3 -W 1 170.240.52.195 2025-01-14 22:17:51,251 - DEBUG - PING 170.240.52.195 (170.240.52.195): 56 data bytes 64 bytes from 170.240.52.195: seq=0 ttl=62 time=5.689 ms 64 bytes from 170.240.52.195: seq=1 ttl=62 time=0.894 ms 64 bytes from 170.240.52.195: seq=2 ttl=62 time=0.988 ms --- 170.240.52.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.894/2.523/5.689 ms 2025-01-14 22:17:51,251 - INFO - Ping to IP 170.240.52.195 from VM ctest-TestRoutersBasic-25457431-49690504 passed 2025-01-14 22:17:51,251 - INFO - Deleting interface with subnet_id c8819841-115f-49c6-9ecc-aee24f1dd7f6, port_id None from router c20f923a-6f5b-4b33-99ac-8986fb88592f 2025-01-14 22:17:51,440 - INFO - Deleting VM ctest-TestRoutersBasic-25457431-86176118 2025-01-14 22:17:51,502 - INFO - Deleting VM ctest-TestRoutersBasic-25457431-49690504 2025-01-14 22:17:51,571 - INFO - Deleting VN ctest-ext_vn-64467577 2025-01-14 22:17:51,641 - DEBUG - VN ded193fe-722d-4f21-96f6-80086a241778 still in use: Unable to complete operation on network ded193fe-722d-4f21-96f6-80086a241778. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2578ac68-f508-4dda-8bd8-48d10210be89'] 2025-01-14 22:17:51,641 - WARNING - Deleting VN ctest-ext_vn-64467577 failed..Will retry 2025-01-14 22:17:53,758 - DEBUG - Response for deleting network () 2025-01-14 22:17:53,759 - INFO - Deleting VN ctest-vn-27500562 2025-01-14 22:17:53,860 - DEBUG - Response for deleting network () 2025-01-14 22:17:54,118 - DEBUG - No XMPP flaps were noticed during the test
2025-01-14 22:17:54,118 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2025-01-14 22:17:54,118 - INFO - -------------------------------------------------------------------------------- 2025-01-14 22:17:54,774 - INFO - Deleted project: ctest-TestRoutersBasic-25457431, ID : cedb091f-f2cf-4456-8701-bc0dacea2a81