2024-09-18 03:10:04,860 - INFO - Domain Default found not creating 2024-09-18 03:10:05,023 - INFO - Project ctest-TestRoutersBasic-17990822 not found, creating it 2024-09-18 03:10:05,529 - INFO - Created Project:ctest-TestRoutersBasic-17990822, ID : 13fd1bdd-4760-4b88-afe7-400ec8a81936 2024-09-18 03:10:07,090 - INFO - ================================================================================ 2024-09-18 03:10:07,090 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-18 03:10:07,090 - 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-09-18 03:10:07,346 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.27': '0'}} with 2024-09-18 03:10:07,346 - INFO - Initial checks done. Running the testcase now 2024-09-18 03:10:07,346 - INFO - 2024-09-18 03:10:08,054 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-17990822 2024-09-18 03:10:08,152 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-17990822 2024-09-18 03:10:08,484 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-17990822', 'default']} 2024-09-18 03:10:08,806 - DEBUG - Response for create_network : {'network': {'id': 'c738512d-c741-40c7-bcc1-549318d6ba24', 'name': 'ctest-vn-49479001', 'tenant_id': '13fd1bdd47604b88afe7400ec8a81936', 'project_id': '13fd1bdd47604b88afe7400ec8a81936', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-17990822', 'ctest-vn-49479001'], 'port_security_enabled': True, 'description': ''}} 2024-09-18 03:10:08,987 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c7f123f6-b30f-46ac-8ceb-d6f701b9a748', 'name': '', 'tenant_id': '13fd1bdd47604b88afe7400ec8a81936', 'network_id': 'c738512d-c741-40c7-bcc1-549318d6ba24', 'ip_version': 4, 'cidr': '116.144.149.128/26', 'allocation_pools': [{'start': '116.144.149.130', 'end': '116.144.149.190'}], 'gateway_ip': '116.144.149.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.144.149.130', 'tags': [], 'project_id': '13fd1bdd47604b88afe7400ec8a81936'}} 2024-09-18 03:10:09,007 - INFO - Created VN ctest-vn-49479001 2024-09-18 03:10:09,068 - DEBUG - VN ctest-vn-49479001 UUID is c738512d-c741-40c7-bcc1-549318d6ba24 2024-09-18 03:10:09,420 - DEBUG - Response for create_network : {'network': {'id': 'e80e9716-79e9-475a-a89b-7e9274af69de', 'name': 'ctest-ext_vn-72201884', 'tenant_id': '13fd1bdd47604b88afe7400ec8a81936', 'project_id': '13fd1bdd47604b88afe7400ec8a81936', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-17990822', 'ctest-ext_vn-72201884'], 'port_security_enabled': True, 'description': ''}} 2024-09-18 03:10:09,588 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd4ef34f2-d7a5-42ea-a29a-b505a1f7fec9', 'name': '', 'tenant_id': '13fd1bdd47604b88afe7400ec8a81936', 'network_id': 'e80e9716-79e9-475a-a89b-7e9274af69de', 'ip_version': 4, 'cidr': '48.139.174.128/26', 'allocation_pools': [{'start': '48.139.174.130', 'end': '48.139.174.190'}], 'gateway_ip': '48.139.174.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.139.174.130', 'tags': [], 'project_id': '13fd1bdd47604b88afe7400ec8a81936'}} 2024-09-18 03:10:09,611 - INFO - Created VN ctest-ext_vn-72201884 2024-09-18 03:10:09,668 - DEBUG - VN ctest-ext_vn-72201884 UUID is e80e9716-79e9-475a-a89b-7e9274af69de 2024-09-18 03:10:09,850 - DEBUG - Services list from nova: [, , ] 2024-09-18 03:10:10,876 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1982-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1982-1) 2024-09-18 03:10:12,049 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1982-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1982-1) 2024-09-18 03:10:12,134 - INFO - Setting gateway for router 714e5472-7735-4ae6-900f-cd16847d179c to network e80e9716-79e9-475a-a89b-7e9274af69de 2024-09-18 03:10:12,215 - INFO - Adding interface with subnet_id c7f123f6-b30f-46ac-8ceb-d6f701b9a748, port_id None to router 714e5472-7735-4ae6-900f-cd16847d179c 2024-09-18 03:10:12,585 - INFO - Waiting for VM ctest-TestRoutersBasic-17990822-95618603 to be up.. 2024-09-18 03:10:12,747 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-18 03:10:17,855 - DEBUG - VM is in ACTIVE state now 2024-09-18 03:10:17,856 - INFO - VM name : ctest-TestRoutersBasic-17990822-95618603 2024-09-18 03:10:17,951 - DEBUG - VM ctest-TestRoutersBasic-17990822-95618603 ID is 1c46a8c3-89db-4c92-8e60-83df5cfa94dd 2024-09-18 03:10:17,977 - DEBUG - VM ctest-TestRoutersBasic-17990822-95618603 launched on Node cn-jenkins-deploy-platform-ansible-os-1982-1 2024-09-18 03:10:18,073 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/1c46a8c3-89db-4c92-8e60-83df5cfa94dd 2024-09-18 03:10:18,378 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/1c46a8c3-89db-4c92-8e60-83df5cfa94dd 2024-09-18 03:10:18,422 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/712fbf56-07d1-44e6-b507-bbb6389f5c9b 2024-09-18 03:10:21,693 - 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') 2024-09-18 03:10:21,693 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-17990822-95618603 failed! 2024-09-18 03:10:21,752 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-17990822:ctest-vn-49479001 is 116.144.149.129 and allocation pool is NOT set 2024-09-18 03:10:23,808 - 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.12 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.424 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.424/1.773/3.122/1.349 ms') 2024-09-18 03:10:23,808 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-17990822-95618603 passed 2024-09-18 03:10:23,968 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 03:10:23,969 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-17990822-95618603, IP 116.144.149.131, Port 22 2024-09-18 03:10:24,120 - DEBUG - VM ctest-TestRoutersBasic-17990822-95618603 is ready for SSH connections 2024-09-18 03:10:24,120 - INFO - Waiting for VM ctest-TestRoutersBasic-17990822-22201624 to be up.. 2024-09-18 03:10:24,197 - DEBUG - VM is in ACTIVE state now 2024-09-18 03:10:24,197 - INFO - VM name : ctest-TestRoutersBasic-17990822-22201624 2024-09-18 03:10:24,272 - DEBUG - VM ctest-TestRoutersBasic-17990822-22201624 ID is c5f11f3e-4854-4320-afec-f5b75c463b7b 2024-09-18 03:10:24,272 - DEBUG - VM ctest-TestRoutersBasic-17990822-22201624 launched on Node cn-jenkins-deploy-platform-ansible-os-1982-1 2024-09-18 03:10:24,345 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/c5f11f3e-4854-4320-afec-f5b75c463b7b 2024-09-18 03:10:24,355 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/5112fb2e-1d2d-4842-b8a0-0be02da62310 2024-09-18 03:10:25,608 - 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.36 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.499 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.499/1.929/3.360/1.430 ms') 2024-09-18 03:10:25,608 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-17990822-22201624 passed 2024-09-18 03:10:25,764 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 03:10:25,765 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-17990822-22201624, IP 48.139.174.131, Port 22 2024-09-18 03:10:25,916 - DEBUG - VM ctest-TestRoutersBasic-17990822-22201624 is ready for SSH connections 2024-09-18 03:10:25,916 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 03:10:25,916 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 48.139.174.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-09-18 03:10:25,916 - DEBUG - ping -s 56 -c 3 -W 1 48.139.174.131 2024-09-18 03:10:29,602 - DEBUG - PING 48.139.174.131 (48.139.174.131): 56 data bytes 64 bytes from 48.139.174.131: seq=0 ttl=62 time=4.450 ms 64 bytes from 48.139.174.131: seq=1 ttl=62 time=0.870 ms 64 bytes from 48.139.174.131: seq=2 ttl=62 time=0.881 ms --- 48.139.174.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.870/2.067/4.450 ms 2024-09-18 03:10:29,602 - INFO - Ping to IP 48.139.174.131 from VM ctest-TestRoutersBasic-17990822-95618603 passed 2024-09-18 03:10:29,602 - INFO - Deleting interface with subnet_id c7f123f6-b30f-46ac-8ceb-d6f701b9a748, port_id None from router 714e5472-7735-4ae6-900f-cd16847d179c 2024-09-18 03:10:29,803 - INFO - Deleting VM ctest-TestRoutersBasic-17990822-22201624 2024-09-18 03:10:29,872 - INFO - Deleting VM ctest-TestRoutersBasic-17990822-95618603 2024-09-18 03:10:29,951 - INFO - Deleting VN ctest-ext_vn-72201884 2024-09-18 03:10:30,025 - DEBUG - VN e80e9716-79e9-475a-a89b-7e9274af69de still in use: Unable to complete operation on network e80e9716-79e9-475a-a89b-7e9274af69de. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5c290b34-6d05-4520-b591-bf978b44825d'] 2024-09-18 03:10:30,026 - WARNING - Deleting VN ctest-ext_vn-72201884 failed..Will retry 2024-09-18 03:10:32,138 - DEBUG - Response for deleting network () 2024-09-18 03:10:32,138 - INFO - Deleting VN ctest-vn-49479001 2024-09-18 03:10:32,263 - DEBUG - Response for deleting network () 2024-09-18 03:10:32,525 - DEBUG - No XMPP flaps were noticed during the test 2024-09-18 03:10:32,526 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2024-09-18 03:10:32,526 - INFO - -------------------------------------------------------------------------------- 2024-09-18 03:10:33,232 - INFO - Deleted project: ctest-TestRoutersBasic-17990822, ID : 13fd1bdd-4760-4b88-afe7-400ec8a81936