2024-08-26 23:41:52,423 - INFO - Domain Default found not creating 2024-08-26 23:41:52,583 - INFO - Project ctest-TestRoutersBasic-46555719 not found, creating it 2024-08-26 23:41:53,118 - INFO - Created Project:ctest-TestRoutersBasic-46555719, ID : 4e59f205-376d-4055-ad0b-763248ee361d 2024-08-26 23:41:54,744 - INFO - ================================================================================ 2024-08-26 23:41:54,744 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-26 23:41:54,744 - 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 2024-08-26 23:41:54,999 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.6': '0'}} with 2024-08-26 23:41:54,999 - INFO - Initial checks done. Running the testcase now 2024-08-26 23:41:54,999 - INFO - 2024-08-26 23:41:55,714 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-46555719 2024-08-26 23:41:55,809 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-46555719 2024-08-26 23:41:56,129 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-46555719', 'default']} 2024-08-26 23:41:56,437 - DEBUG - Response for create_network : {'network': {'id': '39d63d6b-9d62-4cbc-a2fd-9019bbb23c13', 'name': 'ctest-vn-32386225', 'tenant_id': '4e59f205376d4055ad0b763248ee361d', 'project_id': '4e59f205376d4055ad0b763248ee361d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-46555719', 'ctest-vn-32386225'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 23:41:56,732 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d9f804f-3426-4399-b99a-8dfa4a3562af', 'name': '', 'tenant_id': '4e59f205376d4055ad0b763248ee361d', 'network_id': '39d63d6b-9d62-4cbc-a2fd-9019bbb23c13', 'ip_version': 4, 'cidr': '53.241.35.64/26', 'allocation_pools': [{'start': '53.241.35.66', 'end': '53.241.35.126'}], 'gateway_ip': '53.241.35.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.241.35.66', 'tags': [], 'project_id': '4e59f205376d4055ad0b763248ee361d'}} 2024-08-26 23:41:56,753 - INFO - Created VN ctest-vn-32386225 2024-08-26 23:41:56,805 - DEBUG - VN ctest-vn-32386225 UUID is 39d63d6b-9d62-4cbc-a2fd-9019bbb23c13 2024-08-26 23:41:57,147 - DEBUG - Response for create_network : {'network': {'id': '2c70ee0f-a4d1-405c-ad33-553068b58fa3', 'name': 'ctest-ext_vn-84089601', 'tenant_id': '4e59f205376d4055ad0b763248ee361d', 'project_id': '4e59f205376d4055ad0b763248ee361d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-46555719', 'ctest-ext_vn-84089601'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 23:41:57,374 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd26a0986-2525-4de1-a1f2-f919bdf78d99', 'name': '', 'tenant_id': '4e59f205376d4055ad0b763248ee361d', 'network_id': '2c70ee0f-a4d1-405c-ad33-553068b58fa3', 'ip_version': 4, 'cidr': '197.109.130.64/26', 'allocation_pools': [{'start': '197.109.130.66', 'end': '197.109.130.126'}], 'gateway_ip': '197.109.130.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.109.130.66', 'tags': [], 'project_id': '4e59f205376d4055ad0b763248ee361d'}} 2024-08-26 23:41:57,395 - INFO - Created VN ctest-ext_vn-84089601 2024-08-26 23:41:57,445 - DEBUG - VN ctest-ext_vn-84089601 UUID is 2c70ee0f-a4d1-405c-ad33-553068b58fa3 2024-08-26 23:41:57,611 - DEBUG - Services list from nova: [, , ] 2024-08-26 23:41:58,622 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1780-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1780-1) 2024-08-26 23:41:59,797 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1780-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1780-1) 2024-08-26 23:41:59,887 - INFO - Setting gateway for router d9e0f76b-afb6-422d-85c6-dee5e9b62c8a to network 2c70ee0f-a4d1-405c-ad33-553068b58fa3 2024-08-26 23:41:59,966 - INFO - Adding interface with subnet_id 3d9f804f-3426-4399-b99a-8dfa4a3562af, port_id None to router d9e0f76b-afb6-422d-85c6-dee5e9b62c8a 2024-08-26 23:42:00,255 - INFO - Waiting for VM ctest-TestRoutersBasic-46555719-68834759 to be up.. 2024-08-26 23:42:00,357 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-26 23:42:05,455 - DEBUG - VM is in ACTIVE state now 2024-08-26 23:42:05,456 - INFO - VM name : ctest-TestRoutersBasic-46555719-68834759 2024-08-26 23:42:05,536 - DEBUG - VM ctest-TestRoutersBasic-46555719-68834759 ID is 55b2385a-cbc1-4ddb-bd01-956a06fa7871 2024-08-26 23:42:05,555 - DEBUG - VM ctest-TestRoutersBasic-46555719-68834759 launched on Node cn-jenkins-deploy-platform-ansible-os-1780-1 2024-08-26 23:42:05,637 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/55b2385a-cbc1-4ddb-bd01-956a06fa7871 2024-08-26 23:42:05,931 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/55b2385a-cbc1-4ddb-bd01-956a06fa7871 2024-08-26 23:42:05,968 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/7afec035-69a7-42fd-9447-531cffcb70f8 2024-08-26 23:42:09,228 - 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 1010ms') 2024-08-26 23:42:09,228 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-46555719-68834759 failed! 2024-08-26 23:42:09,281 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-46555719:ctest-vn-32386225 is 53.241.35.65 and allocation pool is NOT set 2024-08-26 23:42:11,347 - 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=5.19 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.61 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 = 2.613/3.901/5.190/1.288 ms') 2024-08-26 23:42:11,347 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-46555719-68834759 passed 2024-08-26 23:42:11,497 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 23:42:11,497 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-46555719-68834759, IP 53.241.35.67, Port 22 2024-08-26 23:42:11,662 - DEBUG - VM ctest-TestRoutersBasic-46555719-68834759 is ready for SSH connections 2024-08-26 23:42:11,662 - INFO - Waiting for VM ctest-TestRoutersBasic-46555719-33951322 to be up.. 2024-08-26 23:42:11,748 - DEBUG - VM is in ACTIVE state now 2024-08-26 23:42:11,748 - INFO - VM name : ctest-TestRoutersBasic-46555719-33951322 2024-08-26 23:42:11,823 - DEBUG - VM ctest-TestRoutersBasic-46555719-33951322 ID is 5cd0da20-31df-4c02-8b08-10636332679a 2024-08-26 23:42:11,823 - DEBUG - VM ctest-TestRoutersBasic-46555719-33951322 launched on Node cn-jenkins-deploy-platform-ansible-os-1780-1 2024-08-26 23:42:11,901 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/5cd0da20-31df-4c02-8b08-10636332679a 2024-08-26 23:42:11,910 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/529fff25-b8dc-41c6-9f91-27d9bde8712b 2024-08-26 23:42:13,150 - 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.74 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.77 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 = 1.769/2.753/3.738/0.984 ms') 2024-08-26 23:42:13,150 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-46555719-33951322 passed 2024-08-26 23:42:13,301 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 23:42:13,301 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-46555719-33951322, IP 197.109.130.67, Port 22 2024-08-26 23:42:13,453 - DEBUG - VM ctest-TestRoutersBasic-46555719-33951322 is ready for SSH connections 2024-08-26 23:42:13,453 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 23:42:13,453 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 197.109.130.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-08-26 23:42:13,453 - DEBUG - ping -s 56 -c 3 -W 1 197.109.130.67 2024-08-26 23:42:17,126 - DEBUG - PING 197.109.130.67 (197.109.130.67): 56 data bytes 64 bytes from 197.109.130.67: seq=0 ttl=62 time=6.425 ms 64 bytes from 197.109.130.67: seq=1 ttl=62 time=0.851 ms 64 bytes from 197.109.130.67: seq=2 ttl=62 time=0.839 ms --- 197.109.130.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.839/2.705/6.425 ms 2024-08-26 23:42:17,126 - INFO - Ping to IP 197.109.130.67 from VM ctest-TestRoutersBasic-46555719-68834759 passed 2024-08-26 23:42:17,126 - INFO - Deleting interface with subnet_id 3d9f804f-3426-4399-b99a-8dfa4a3562af, port_id None from router d9e0f76b-afb6-422d-85c6-dee5e9b62c8a 2024-08-26 23:42:17,384 - INFO - Deleting VM ctest-TestRoutersBasic-46555719-33951322 2024-08-26 23:42:17,447 - INFO - Deleting VM ctest-TestRoutersBasic-46555719-68834759 2024-08-26 23:42:18,044 - INFO - Deleting VN ctest-ext_vn-84089601 2024-08-26 23:42:18,120 - DEBUG - VN 2c70ee0f-a4d1-405c-ad33-553068b58fa3 still in use: Unable to complete operation on network 2c70ee0f-a4d1-405c-ad33-553068b58fa3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8d51f9d6-2204-4089-994b-f7e27e321bd5'] 2024-08-26 23:42:18,120 - WARNING - Deleting VN ctest-ext_vn-84089601 failed..Will retry 2024-08-26 23:42:20,236 - DEBUG - Response for deleting network () 2024-08-26 23:42:20,236 - INFO - Deleting VN ctest-vn-32386225 2024-08-26 23:42:20,349 - DEBUG - Response for deleting network () 2024-08-26 23:42:20,602 - DEBUG - No XMPP flaps were noticed during the test 2024-08-26 23:42:20,602 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-08-26 23:42:20,602 - INFO - -------------------------------------------------------------------------------- 2024-08-26 23:42:21,261 - INFO - Deleted project: ctest-TestRoutersBasic-46555719, ID : 4e59f205-376d-4055-ad0b-763248ee361d