2024-08-24 02:13:55,749 - INFO - Domain Default found not creating 2024-08-24 02:13:56,148 - INFO - Project ctest-TestRoutersBasic-79835466 not found, creating it 2024-08-24 02:13:56,986 - INFO - Created Project:ctest-TestRoutersBasic-79835466, ID : 1b1556ff-4944-4b20-8408-7844b8094107 2024-08-24 02:13:59,406 - INFO - ================================================================================ 2024-08-24 02:13:59,406 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-24 02:13:59,406 - 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-24 02:13:59,734 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.5': '0'}} with 2024-08-24 02:13:59,735 - INFO - Initial checks done. Running the testcase now 2024-08-24 02:13:59,735 - INFO - 2024-08-24 02:14:00,742 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-79835466 2024-08-24 02:14:00,852 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-79835466 2024-08-24 02:14:01,267 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-79835466', 'default']} 2024-08-24 02:14:02,015 - DEBUG - Response for create_network : {'network': {'id': 'b00ed14c-8075-4a50-9132-d37f383d7907', 'name': 'ctest-vn-63129403', 'tenant_id': '1b1556ff49444b2084087844b8094107', 'project_id': '1b1556ff49444b2084087844b8094107', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-79835466', 'ctest-vn-63129403'], 'port_security_enabled': True, 'description': ''}} 2024-08-24 02:14:02,256 - DEBUG - Response for create_subnet : {'subnet': {'id': '19a3d0d9-cc09-41bf-89d8-fef5995635b9', 'name': '', 'tenant_id': '1b1556ff49444b2084087844b8094107', 'network_id': 'b00ed14c-8075-4a50-9132-d37f383d7907', 'ip_version': 4, 'cidr': '59.179.176.128/26', 'allocation_pools': [{'start': '59.179.176.130', 'end': '59.179.176.190'}], 'gateway_ip': '59.179.176.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.179.176.130', 'tags': [], 'project_id': '1b1556ff49444b2084087844b8094107'}} 2024-08-24 02:14:02,285 - INFO - Created VN ctest-vn-63129403 2024-08-24 02:14:02,340 - DEBUG - VN ctest-vn-63129403 UUID is b00ed14c-8075-4a50-9132-d37f383d7907 2024-08-24 02:14:02,882 - DEBUG - Response for create_network : {'network': {'id': '8f990cbd-9379-4d57-b262-e34ddcff51b7', 'name': 'ctest-ext_vn-23660218', 'tenant_id': '1b1556ff49444b2084087844b8094107', 'project_id': '1b1556ff49444b2084087844b8094107', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-79835466', 'ctest-ext_vn-23660218'], 'port_security_enabled': True, 'description': ''}} 2024-08-24 02:14:03,066 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9f6ddd8-0604-482c-aa21-7ae56bdd5dc3', 'name': '', 'tenant_id': '1b1556ff49444b2084087844b8094107', 'network_id': '8f990cbd-9379-4d57-b262-e34ddcff51b7', 'ip_version': 4, 'cidr': '186.226.219.192/26', 'allocation_pools': [{'start': '186.226.219.194', 'end': '186.226.219.254'}], 'gateway_ip': '186.226.219.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.226.219.194', 'tags': [], 'project_id': '1b1556ff49444b2084087844b8094107'}} 2024-08-24 02:14:03,092 - INFO - Created VN ctest-ext_vn-23660218 2024-08-24 02:14:03,147 - DEBUG - VN ctest-ext_vn-23660218 UUID is 8f990cbd-9379-4d57-b262-e34ddcff51b7 2024-08-24 02:14:03,435 - DEBUG - Services list from nova: [, , ] 2024-08-24 02:14:05,110 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1737-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1737-1) 2024-08-24 02:14:06,754 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1737-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1737-1) 2024-08-24 02:14:06,855 - INFO - Setting gateway for router 71323df9-5a04-4486-9619-2615e62ab269 to network 8f990cbd-9379-4d57-b262-e34ddcff51b7 2024-08-24 02:14:06,917 - INFO - Adding interface with subnet_id 19a3d0d9-cc09-41bf-89d8-fef5995635b9, port_id None to router 71323df9-5a04-4486-9619-2615e62ab269 2024-08-24 02:14:07,260 - INFO - Waiting for VM ctest-TestRoutersBasic-79835466-65531988 to be up.. 2024-08-24 02:14:07,504 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-24 02:14:12,631 - DEBUG - VM is in ACTIVE state now 2024-08-24 02:14:12,631 - INFO - VM name : ctest-TestRoutersBasic-79835466-65531988 2024-08-24 02:14:12,715 - DEBUG - VM ctest-TestRoutersBasic-79835466-65531988 ID is b6840454-f1bc-4c49-8c2f-9f00486dc9f4 2024-08-24 02:14:12,737 - DEBUG - VM ctest-TestRoutersBasic-79835466-65531988 launched on Node cn-jenkins-deploy-platform-ansible-os-1737-1 2024-08-24 02:14:12,820 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/b6840454-f1bc-4c49-8c2f-9f00486dc9f4 2024-08-24 02:14:13,145 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/b6840454-f1bc-4c49-8c2f-9f00486dc9f4 2024-08-24 02:14:13,189 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/265b25c1-b0f1-499e-88f8-5b623092a14c 2024-08-24 02:14:16,496 - 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 1032ms') 2024-08-24 02:14:16,497 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-79835466-65531988 failed! 2024-08-24 02:14:16,584 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-79835466:ctest-vn-63129403 is 59.179.176.129 and allocation pool is NOT set 2024-08-24 02:14:18,658 - 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.03 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.07 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 = 1.068/3.049/5.030/1.981 ms') 2024-08-24 02:14:18,658 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-79835466-65531988 passed 2024-08-24 02:14:18,844 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-24 02:14:18,844 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-79835466-65531988, IP 59.179.176.131, Port 22 2024-08-24 02:14:19,054 - DEBUG - VM ctest-TestRoutersBasic-79835466-65531988 is ready for SSH connections 2024-08-24 02:14:19,054 - INFO - Waiting for VM ctest-TestRoutersBasic-79835466-45776984 to be up.. 2024-08-24 02:14:19,291 - DEBUG - VM is in ACTIVE state now 2024-08-24 02:14:19,291 - INFO - VM name : ctest-TestRoutersBasic-79835466-45776984 2024-08-24 02:14:19,453 - DEBUG - VM ctest-TestRoutersBasic-79835466-45776984 ID is 409421ee-1e59-4f2e-9597-a00ff7a78a2b 2024-08-24 02:14:19,454 - DEBUG - VM ctest-TestRoutersBasic-79835466-45776984 launched on Node cn-jenkins-deploy-platform-ansible-os-1737-1 2024-08-24 02:14:19,611 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/409421ee-1e59-4f2e-9597-a00ff7a78a2b 2024-08-24 02:14:19,624 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/2b803e6a-076d-46e0-82e6-db666b509c92 2024-08-24 02:14:20,962 - 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.97 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.643 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.643/2.304/3.966/1.661 ms') 2024-08-24 02:14:20,962 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-79835466-45776984 passed 2024-08-24 02:14:21,152 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-24 02:14:21,152 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-79835466-45776984, IP 186.226.219.195, Port 22 2024-08-24 02:14:21,344 - DEBUG - VM ctest-TestRoutersBasic-79835466-45776984 is ready for SSH connections 2024-08-24 02:14:21,344 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-24 02:14:21,345 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 186.226.219.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2024-08-24 02:14:21,345 - DEBUG - ping -s 56 -c 3 -W 1 186.226.219.195 2024-08-24 02:14:25,466 - DEBUG - PING 186.226.219.195 (186.226.219.195): 56 data bytes 64 bytes from 186.226.219.195: seq=0 ttl=62 time=9.635 ms 64 bytes from 186.226.219.195: seq=1 ttl=62 time=1.906 ms 64 bytes from 186.226.219.195: seq=2 ttl=62 time=1.824 ms --- 186.226.219.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.824/4.455/9.635 ms 2024-08-24 02:14:25,467 - INFO - Ping to IP 186.226.219.195 from VM ctest-TestRoutersBasic-79835466-65531988 passed 2024-08-24 02:14:25,467 - INFO - Deleting interface with subnet_id 19a3d0d9-cc09-41bf-89d8-fef5995635b9, port_id None from router 71323df9-5a04-4486-9619-2615e62ab269 2024-08-24 02:14:25,806 - INFO - Deleting VM ctest-TestRoutersBasic-79835466-45776984 2024-08-24 02:14:25,901 - INFO - Deleting VM ctest-TestRoutersBasic-79835466-65531988 2024-08-24 02:14:25,989 - INFO - Deleting VN ctest-ext_vn-23660218 2024-08-24 02:14:26,079 - DEBUG - VN 8f990cbd-9379-4d57-b262-e34ddcff51b7 still in use: Unable to complete operation on network 8f990cbd-9379-4d57-b262-e34ddcff51b7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6cddc887-923d-4e77-a300-2a3084634cbf'] 2024-08-24 02:14:26,079 - WARNING - Deleting VN ctest-ext_vn-23660218 failed..Will retry 2024-08-24 02:14:28,392 - DEBUG - Response for deleting network () 2024-08-24 02:14:28,392 - INFO - Deleting VN ctest-vn-63129403 2024-08-24 02:14:28,630 - DEBUG - Response for deleting network () 2024-08-24 02:14:28,965 - DEBUG - No XMPP flaps were noticed during the test 2024-08-24 02:14:28,965 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:29] 2024-08-24 02:14:28,966 - INFO - -------------------------------------------------------------------------------- 2024-08-24 02:14:30,003 - INFO - Deleted project: ctest-TestRoutersBasic-79835466, ID : 1b1556ff-4944-4b20-8408-7844b8094107