2025-05-09 14:59:51,544 - INFO - Domain Default found not creating 2025-05-09 14:59:51,668 - INFO - Project ctest-TestRoutersBasic-27676374 not found, creating it 2025-05-09 14:59:52,098 - INFO - Created Project:ctest-TestRoutersBasic-27676374, ID : b1a824e3-acb9-4744-91b3-bdc9e621881f 2025-05-09 14:59:53,418 - INFO - ================================================================================ 2025-05-09 14:59:53,419 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-05-09 14:59:53,419 - 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-05-09 14:59:53,678 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-05-09 14:59:53,678 - INFO - Initial checks done. Running the testcase now 2025-05-09 14:59:53,678 - INFO - 2025-05-09 14:59:54,357 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-27676374 2025-05-09 14:59:54,453 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-27676374 2025-05-09 14:59:54,784 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27676374', 'default']} 2025-05-09 14:59:55,068 - DEBUG - Response for create_network : {'network': {'id': '0809852f-03dd-4370-989c-2327a1e9a4bf', 'name': 'ctest-vn-49828113', 'tenant_id': 'b1a824e3acb9474491b3bdc9e621881f', 'project_id': 'b1a824e3acb9474491b3bdc9e621881f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27676374', 'ctest-vn-49828113'], 'port_security_enabled': True, 'description': ''}} 2025-05-09 14:59:55,225 - DEBUG - Response for create_subnet : {'subnet': {'id': '4427c52f-e60e-493a-b878-2208d47d585c', 'name': '', 'tenant_id': 'b1a824e3acb9474491b3bdc9e621881f', 'network_id': '0809852f-03dd-4370-989c-2327a1e9a4bf', 'ip_version': 4, 'cidr': '73.253.33.128/26', 'allocation_pools': [{'start': '73.253.33.130', 'end': '73.253.33.190'}], 'gateway_ip': '73.253.33.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.253.33.130', 'tags': [], 'project_id': 'b1a824e3acb9474491b3bdc9e621881f'}} 2025-05-09 14:59:55,241 - INFO - Created VN ctest-vn-49828113 2025-05-09 14:59:55,292 - DEBUG - VN ctest-vn-49828113 UUID is 0809852f-03dd-4370-989c-2327a1e9a4bf 2025-05-09 14:59:55,611 - DEBUG - Response for create_network : {'network': {'id': '3d2082d2-2e3e-41e6-950d-20c9c77f5343', 'name': 'ctest-ext_vn-86902970', 'tenant_id': 'b1a824e3acb9474491b3bdc9e621881f', 'project_id': 'b1a824e3acb9474491b3bdc9e621881f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27676374', 'ctest-ext_vn-86902970'], 'port_security_enabled': True, 'description': ''}} 2025-05-09 14:59:55,809 - DEBUG - Response for create_subnet : {'subnet': {'id': '196c7d05-5a82-49c8-b43f-7317a614b69a', 'name': '', 'tenant_id': 'b1a824e3acb9474491b3bdc9e621881f', 'network_id': '3d2082d2-2e3e-41e6-950d-20c9c77f5343', 'ip_version': 4, 'cidr': '97.189.84.128/26', 'allocation_pools': [{'start': '97.189.84.130', 'end': '97.189.84.190'}], 'gateway_ip': '97.189.84.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.189.84.130', 'tags': [], 'project_id': 'b1a824e3acb9474491b3bdc9e621881f'}} 2025-05-09 14:59:55,824 - INFO - Created VN ctest-ext_vn-86902970 2025-05-09 14:59:55,876 - DEBUG - VN ctest-ext_vn-86902970 UUID is 3d2082d2-2e3e-41e6-950d-20c9c77f5343 2025-05-09 14:59:56,065 - DEBUG - Services list from nova: [, , ] 2025-05-09 14:59:57,014 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3293-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3293-1) 2025-05-09 14:59:58,134 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3293-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3293-1) 2025-05-09 14:59:58,206 - INFO - Setting gateway for router 1129d9ac-6dc3-46eb-9636-3f4d87dd8e5a to network 3d2082d2-2e3e-41e6-950d-20c9c77f5343 2025-05-09 14:59:58,291 - INFO - Adding interface with subnet_id 4427c52f-e60e-493a-b878-2208d47d585c, port_id None to router 1129d9ac-6dc3-46eb-9636-3f4d87dd8e5a 2025-05-09 14:59:58,743 - INFO - Waiting for VM ctest-TestRoutersBasic-27676374-92140738 to be up.. 2025-05-09 14:59:58,957 - DEBUG - VM is in ACTIVE state now 2025-05-09 14:59:58,957 - INFO - VM name : ctest-TestRoutersBasic-27676374-92140738 2025-05-09 14:59:59,097 - DEBUG - VM ctest-TestRoutersBasic-27676374-92140738 ID is 9eb5bd70-226f-4a03-941e-27cb1b812029 2025-05-09 14:59:59,138 - DEBUG - VM ctest-TestRoutersBasic-27676374-92140738 launched on Node cn-jenkins-deploy-platform-ansible-os-3293-1 2025-05-09 14:59:59,222 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/9eb5bd70-226f-4a03-941e-27cb1b812029 2025-05-09 14:59:59,525 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/9eb5bd70-226f-4a03-941e-27cb1b812029 2025-05-09 14:59:59,574 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/1f8b1b45-55d5-42aa-94a1-dd6d39db89b5 2025-05-09 15:00:02,857 - 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 1030ms') 2025-05-09 15:00:02,857 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-27676374-92140738 failed! 2025-05-09 15:00:02,916 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-27676374:ctest-vn-49828113 is 73.253.33.129 and allocation pool is NOT set 2025-05-09 15:00:06,988 - 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 1007ms') 2025-05-09 15:00:06,988 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-27676374-92140738 failed! 2025-05-09 15:00:07,044 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-27676374:ctest-vn-49828113 is 73.253.33.129 and allocation pool is NOT set 2025-05-09 15:00:09,104 - 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=4.40 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.82 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.819/3.111/4.403/1.292 ms') 2025-05-09 15:00:09,104 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-27676374-92140738 passed 2025-05-09 15:00:09,252 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-09 15:00:09,252 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-27676374-92140738, IP 73.253.33.131, Port 22 2025-05-09 15:00:09,407 - DEBUG - VM ctest-TestRoutersBasic-27676374-92140738 is ready for SSH connections 2025-05-09 15:00:09,408 - INFO - Waiting for VM ctest-TestRoutersBasic-27676374-15319232 to be up.. 2025-05-09 15:00:09,473 - DEBUG - VM is in ACTIVE state now 2025-05-09 15:00:09,473 - INFO - VM name : ctest-TestRoutersBasic-27676374-15319232 2025-05-09 15:00:09,535 - DEBUG - VM ctest-TestRoutersBasic-27676374-15319232 ID is 4f97b099-ba4c-4e1b-a09e-4343ea6bb26a 2025-05-09 15:00:09,535 - DEBUG - VM ctest-TestRoutersBasic-27676374-15319232 launched on Node cn-jenkins-deploy-platform-ansible-os-3293-1 2025-05-09 15:00:09,599 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/4f97b099-ba4c-4e1b-a09e-4343ea6bb26a 2025-05-09 15:00:09,607 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/8b76509e-3531-4433-bf01-319fbe4b1de1 2025-05-09 15:00:10,846 - 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.95 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.785 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.785/1.867/2.949/1.082 ms') 2025-05-09 15:00:10,846 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-27676374-15319232 passed 2025-05-09 15:00:10,996 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-09 15:00:10,996 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-27676374-15319232, IP 97.189.84.131, Port 22 2025-05-09 15:00:11,152 - DEBUG - VM ctest-TestRoutersBasic-27676374-15319232 is ready for SSH connections 2025-05-09 15:00:11,152 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-09 15:00:11,153 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 97.189.84.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-05-09 15:00:11,153 - DEBUG - ping -s 56 -c 3 -W 1 97.189.84.131 2025-05-09 15:00:14,816 - DEBUG - PING 97.189.84.131 (97.189.84.131): 56 data bytes 64 bytes from 97.189.84.131: seq=0 ttl=62 time=5.417 ms 64 bytes from 97.189.84.131: seq=1 ttl=62 time=0.759 ms 64 bytes from 97.189.84.131: seq=2 ttl=62 time=0.764 ms --- 97.189.84.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.759/2.313/5.417 ms 2025-05-09 15:00:14,817 - INFO - Ping to IP 97.189.84.131 from VM ctest-TestRoutersBasic-27676374-92140738 passed 2025-05-09 15:00:14,817 - INFO - Deleting interface with subnet_id 4427c52f-e60e-493a-b878-2208d47d585c, port_id None from router 1129d9ac-6dc3-46eb-9636-3f4d87dd8e5a 2025-05-09 15:00:14,983 - INFO - Deleting VM ctest-TestRoutersBasic-27676374-15319232 2025-05-09 15:00:15,054 - INFO - Deleting VM ctest-TestRoutersBasic-27676374-92140738 2025-05-09 15:00:15,120 - INFO - Deleting VN ctest-ext_vn-86902970 2025-05-09 15:00:15,180 - DEBUG - VN 3d2082d2-2e3e-41e6-950d-20c9c77f5343 still in use: Unable to complete operation on network 3d2082d2-2e3e-41e6-950d-20c9c77f5343. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-981db2ef-e75f-4518-a1e8-d88d25e7bc5c'] 2025-05-09 15:00:15,180 - WARNING - Deleting VN ctest-ext_vn-86902970 failed..Will retry 2025-05-09 15:00:17,290 - DEBUG - Response for deleting network () 2025-05-09 15:00:17,290 - INFO - Deleting VN ctest-vn-49828113 2025-05-09 15:00:17,384 - DEBUG - Response for deleting network () 2025-05-09 15:00:17,641 - DEBUG - No XMPP flaps were noticed during the test 2025-05-09 15:00:17,641 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:24] 2025-05-09 15:00:17,641 - INFO - -------------------------------------------------------------------------------- 2025-05-09 15:00:18,275 - INFO - Deleted project: ctest-TestRoutersBasic-27676374, ID : b1a824e3-acb9-4744-91b3-bdc9e621881f