2024-09-06 17:51:31,583 - INFO - Domain Default found not creating 2024-09-06 17:51:31,742 - INFO - Project ctest-TestRoutersBasic-90927063 not found, creating it 2024-09-06 17:51:33,968 - INFO - Created Project:ctest-TestRoutersBasic-90927063, ID : a27238a1-1df4-4640-b5a1-30586730af24 2024-09-06 17:51:37,150 - INFO - ================================================================================ 2024-09-06 17:51:37,150 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-06 17:51:37,151 - 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-06 17:51:37,404 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.33': '0'}} with 2024-09-06 17:51:37,404 - INFO - Initial checks done. Running the testcase now 2024-09-06 17:51:37,404 - INFO - 2024-09-06 17:51:38,211 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-90927063 2024-09-06 17:51:38,311 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-90927063 2024-09-06 17:51:38,630 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90927063', 'default']} 2024-09-06 17:51:38,936 - DEBUG - Response for create_network : {'network': {'id': '8ea17337-935c-4385-b738-77985342ff83', 'name': 'ctest-vn-33136826', 'tenant_id': 'a27238a11df44640b5a130586730af24', 'project_id': 'a27238a11df44640b5a130586730af24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90927063', 'ctest-vn-33136826'], 'port_security_enabled': True, 'description': ''}} 2024-09-06 17:51:39,157 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a67ed68-135d-4f61-abab-82d58bb36c0f', 'name': '', 'tenant_id': 'a27238a11df44640b5a130586730af24', 'network_id': '8ea17337-935c-4385-b738-77985342ff83', 'ip_version': 4, 'cidr': '103.100.4.64/26', 'allocation_pools': [{'start': '103.100.4.66', 'end': '103.100.4.126'}], 'gateway_ip': '103.100.4.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.100.4.66', 'tags': [], 'project_id': 'a27238a11df44640b5a130586730af24'}} 2024-09-06 17:51:39,178 - INFO - Created VN ctest-vn-33136826 2024-09-06 17:51:39,234 - DEBUG - VN ctest-vn-33136826 UUID is 8ea17337-935c-4385-b738-77985342ff83 2024-09-06 17:51:39,553 - DEBUG - Response for create_network : {'network': {'id': '8971c7e2-7eb0-4a0d-8762-9ca9f1200aca', 'name': 'ctest-ext_vn-24795168', 'tenant_id': 'a27238a11df44640b5a130586730af24', 'project_id': 'a27238a11df44640b5a130586730af24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90927063', 'ctest-ext_vn-24795168'], 'port_security_enabled': True, 'description': ''}} 2024-09-06 17:51:39,730 - DEBUG - Response for create_subnet : {'subnet': {'id': '71e9d16c-dfdc-4fc9-a8a6-2e3bebcf6170', 'name': '', 'tenant_id': 'a27238a11df44640b5a130586730af24', 'network_id': '8971c7e2-7eb0-4a0d-8762-9ca9f1200aca', 'ip_version': 4, 'cidr': '80.12.36.0/26', 'allocation_pools': [{'start': '80.12.36.2', 'end': '80.12.36.62'}], 'gateway_ip': '80.12.36.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.12.36.2', 'tags': [], 'project_id': 'a27238a11df44640b5a130586730af24'}} 2024-09-06 17:51:39,750 - INFO - Created VN ctest-ext_vn-24795168 2024-09-06 17:51:39,802 - DEBUG - VN ctest-ext_vn-24795168 UUID is 8971c7e2-7eb0-4a0d-8762-9ca9f1200aca 2024-09-06 17:51:39,971 - DEBUG - Services list from nova: [, , ] 2024-09-06 17:51:41,021 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1867-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1867-1) 2024-09-06 17:51:42,149 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1867-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1867-1) 2024-09-06 17:51:43,215 - INFO - Setting gateway for router b92b5e7e-88c3-400e-ae39-2da6c5417c7c to network 8971c7e2-7eb0-4a0d-8762-9ca9f1200aca 2024-09-06 17:51:43,279 - INFO - Adding interface with subnet_id 2a67ed68-135d-4f61-abab-82d58bb36c0f, port_id None to router b92b5e7e-88c3-400e-ae39-2da6c5417c7c 2024-09-06 17:51:43,580 - INFO - Waiting for VM ctest-TestRoutersBasic-90927063-00365205 to be up.. 2024-09-06 17:51:43,688 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-06 17:51:50,389 - DEBUG - VM is in ACTIVE state now 2024-09-06 17:51:50,389 - INFO - VM name : ctest-TestRoutersBasic-90927063-00365205 2024-09-06 17:51:50,500 - DEBUG - VM ctest-TestRoutersBasic-90927063-00365205 ID is e40e1ca2-3400-4daf-a675-510b06b654e5 2024-09-06 17:51:50,526 - DEBUG - VM ctest-TestRoutersBasic-90927063-00365205 launched on Node cn-jenkins-deploy-platform-ansible-os-1867-1 2024-09-06 17:51:50,623 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/e40e1ca2-3400-4daf-a675-510b06b654e5 2024-09-06 17:51:50,934 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/e40e1ca2-3400-4daf-a675-510b06b654e5 2024-09-06 17:51:50,968 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/7c12a2c9-7f18-419e-911e-36809a242799 2024-09-06 17:51:54,217 - 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 1006ms') 2024-09-06 17:51:54,217 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-90927063-00365205 failed! 2024-09-06 17:51:54,270 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-90927063:ctest-vn-33136826 is 103.100.4.65 and allocation pool is NOT set 2024-09-06 17:51:56,333 - 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=2.80 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.840 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.840/1.820/2.800/0.980 ms') 2024-09-06 17:51:56,334 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-90927063-00365205 passed 2024-09-06 17:51:56,495 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 17:51:56,495 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-90927063-00365205, IP 103.100.4.67, Port 22 2024-09-06 17:51:57,664 - DEBUG - VM ctest-TestRoutersBasic-90927063-00365205 is ready for SSH connections 2024-09-06 17:51:57,664 - INFO - Waiting for VM ctest-TestRoutersBasic-90927063-25516958 to be up.. 2024-09-06 17:51:57,755 - DEBUG - VM is in ACTIVE state now 2024-09-06 17:51:57,755 - INFO - VM name : ctest-TestRoutersBasic-90927063-25516958 2024-09-06 17:51:57,849 - DEBUG - VM ctest-TestRoutersBasic-90927063-25516958 ID is a10db75e-cb5e-4b33-8288-d8ff8253b930 2024-09-06 17:51:57,851 - DEBUG - VM ctest-TestRoutersBasic-90927063-25516958 launched on Node cn-jenkins-deploy-platform-ansible-os-1867-1 2024-09-06 17:51:57,934 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/a10db75e-cb5e-4b33-8288-d8ff8253b930 2024-09-06 17:51:57,945 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/29bc8b3a-1a27-4a5a-aa3f-9f1c966ab963 2024-09-06 17:51:59,191 - 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.77 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.00 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 = 2.767/2.882/2.998/0.115 ms') 2024-09-06 17:51:59,191 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-90927063-25516958 passed 2024-09-06 17:51:59,338 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 17:51:59,339 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-90927063-25516958, IP 80.12.36.3, Port 22 2024-09-06 17:51:59,494 - DEBUG - VM ctest-TestRoutersBasic-90927063-25516958 is ready for SSH connections 2024-09-06 17:51:59,494 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 17:51:59,494 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 80.12.36.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-09-06 17:51:59,494 - DEBUG - ping -s 56 -c 3 -W 1 80.12.36.3 2024-09-06 17:52:03,184 - DEBUG - PING 80.12.36.3 (80.12.36.3): 56 data bytes 64 bytes from 80.12.36.3: seq=0 ttl=62 time=6.841 ms 64 bytes from 80.12.36.3: seq=1 ttl=62 time=0.885 ms 64 bytes from 80.12.36.3: seq=2 ttl=62 time=0.916 ms --- 80.12.36.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.885/2.880/6.841 ms 2024-09-06 17:52:03,184 - INFO - Ping to IP 80.12.36.3 from VM ctest-TestRoutersBasic-90927063-00365205 passed 2024-09-06 17:52:03,185 - INFO - Deleting interface with subnet_id 2a67ed68-135d-4f61-abab-82d58bb36c0f, port_id None from router b92b5e7e-88c3-400e-ae39-2da6c5417c7c 2024-09-06 17:52:03,401 - INFO - Deleting VM ctest-TestRoutersBasic-90927063-25516958 2024-09-06 17:52:03,482 - INFO - Deleting VM ctest-TestRoutersBasic-90927063-00365205 2024-09-06 17:52:03,568 - INFO - Deleting VN ctest-ext_vn-24795168 2024-09-06 17:52:03,655 - DEBUG - VN 8971c7e2-7eb0-4a0d-8762-9ca9f1200aca still in use: Unable to complete operation on network 8971c7e2-7eb0-4a0d-8762-9ca9f1200aca. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1fa85748-61d9-4993-9f5b-7673503de1de'] 2024-09-06 17:52:03,655 - WARNING - Deleting VN ctest-ext_vn-24795168 failed..Will retry 2024-09-06 17:52:05,756 - DEBUG - Response for deleting network () 2024-09-06 17:52:05,756 - INFO - Deleting VN ctest-vn-33136826 2024-09-06 17:52:05,898 - DEBUG - Response for deleting network () 2024-09-06 17:52:06,152 - DEBUG - No XMPP flaps were noticed during the test 2024-09-06 17:52:06,152 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:29] 2024-09-06 17:52:06,152 - INFO - -------------------------------------------------------------------------------- 2024-09-06 17:52:06,832 - INFO - Deleted project: ctest-TestRoutersBasic-90927063, ID : a27238a1-1df4-4640-b5a1-30586730af24