2024-12-26 02:14:19,876 - INFO - Domain Default found not creating 2024-12-26 02:14:20,029 - INFO - Project ctest-TestRoutersBasic-14298053 not found, creating it 2024-12-26 02:14:20,503 - INFO - Created Project:ctest-TestRoutersBasic-14298053, ID : 767c371b-6a6d-4b5a-a200-20f75d053930 2024-12-26 02:14:22,060 - INFO - ================================================================================ 2024-12-26 02:14:22,060 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-12-26 02:14:22,060 - 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-12-26 02:14:22,316 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.0.0.22': '0'}} with 2024-12-26 02:14:22,317 - INFO - Initial checks done. Running the testcase now 2024-12-26 02:14:22,317 - INFO - 2024-12-26 02:14:23,032 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-14298053 2024-12-26 02:14:23,134 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-14298053 2024-12-26 02:14:23,461 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-14298053', 'default']} 2024-12-26 02:14:23,779 - DEBUG - Response for create_network : {'network': {'id': '3f7683ed-61bb-43b3-bb20-f637db103fb9', 'name': 'ctest-vn-28289247', 'tenant_id': '767c371b6a6d4b5aa20020f75d053930', 'project_id': '767c371b6a6d4b5aa20020f75d053930', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-14298053', 'ctest-vn-28289247'], 'port_security_enabled': True, 'description': ''}} 2024-12-26 02:14:23,953 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d14dd3f-48ce-4921-9ea2-bec7235f6750', 'name': '', 'tenant_id': '767c371b6a6d4b5aa20020f75d053930', 'network_id': '3f7683ed-61bb-43b3-bb20-f637db103fb9', 'ip_version': 4, 'cidr': '51.18.126.64/26', 'allocation_pools': [{'start': '51.18.126.66', 'end': '51.18.126.126'}], 'gateway_ip': '51.18.126.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.18.126.66', 'tags': [], 'project_id': '767c371b6a6d4b5aa20020f75d053930'}} 2024-12-26 02:14:23,974 - INFO - Created VN ctest-vn-28289247 2024-12-26 02:14:24,025 - DEBUG - VN ctest-vn-28289247 UUID is 3f7683ed-61bb-43b3-bb20-f637db103fb9 2024-12-26 02:14:24,350 - DEBUG - Response for create_network : {'network': {'id': '7b250127-ef42-45cc-b9eb-bded451c7deb', 'name': 'ctest-ext_vn-22190064', 'tenant_id': '767c371b6a6d4b5aa20020f75d053930', 'project_id': '767c371b6a6d4b5aa20020f75d053930', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-14298053', 'ctest-ext_vn-22190064'], 'port_security_enabled': True, 'description': ''}} 2024-12-26 02:14:24,548 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a5056b9-dc4b-4318-b4d4-9655b00feaa9', 'name': '', 'tenant_id': '767c371b6a6d4b5aa20020f75d053930', 'network_id': '7b250127-ef42-45cc-b9eb-bded451c7deb', 'ip_version': 4, 'cidr': '119.47.112.0/26', 'allocation_pools': [{'start': '119.47.112.2', 'end': '119.47.112.62'}], 'gateway_ip': '119.47.112.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.47.112.2', 'tags': [], 'project_id': '767c371b6a6d4b5aa20020f75d053930'}} 2024-12-26 02:14:24,570 - INFO - Created VN ctest-ext_vn-22190064 2024-12-26 02:14:24,625 - DEBUG - VN ctest-ext_vn-22190064 UUID is 7b250127-ef42-45cc-b9eb-bded451c7deb 2024-12-26 02:14:24,791 - DEBUG - Services list from nova: [, , ] 2024-12-26 02:14:25,803 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2496-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2496-1) 2024-12-26 02:14:26,955 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2496-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2496-1) 2024-12-26 02:14:27,032 - INFO - Setting gateway for router 2cd473dc-4018-4385-8c62-fea5a9c22ec7 to network 7b250127-ef42-45cc-b9eb-bded451c7deb 2024-12-26 02:14:27,103 - INFO - Adding interface with subnet_id 2d14dd3f-48ce-4921-9ea2-bec7235f6750, port_id None to router 2cd473dc-4018-4385-8c62-fea5a9c22ec7 2024-12-26 02:14:27,628 - INFO - Waiting for VM ctest-TestRoutersBasic-14298053-19307508 to be up.. 2024-12-26 02:14:27,807 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-12-26 02:14:32,900 - DEBUG - VM is in ACTIVE state now 2024-12-26 02:14:32,900 - INFO - VM name : ctest-TestRoutersBasic-14298053-19307508 2024-12-26 02:14:32,976 - DEBUG - VM ctest-TestRoutersBasic-14298053-19307508 ID is 6b43c325-06ba-441b-8ce4-68469d1ad0cf 2024-12-26 02:14:32,997 - DEBUG - VM ctest-TestRoutersBasic-14298053-19307508 launched on Node cn-jenkins-deploy-platform-ansible-os-2496-1. 2024-12-26 02:14:33,076 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/6b43c325-06ba-441b-8ce4-68469d1ad0cf 2024-12-26 02:14:33,373 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/6b43c325-06ba-441b-8ce4-68469d1ad0cf 2024-12-26 02:14:33,405 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/ee25f339-1b10-462a-b2c9-c1bbfee0feeb 2024-12-26 02:14:36,678 - 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 1031ms') 2024-12-26 02:14:36,678 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-14298053-19307508 failed! 2024-12-26 02:14:36,738 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-14298053:ctest-vn-28289247 is 51.18.126.65 and allocation pool is NOT set 2024-12-26 02:14:38,796 - 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.70 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.513 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.513/2.105/3.698/1.592 ms') 2024-12-26 02:14:38,796 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-14298053-19307508 passed 2024-12-26 02:14:38,950 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-26 02:14:38,950 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-14298053-19307508, IP 51.18.126.67, Port 22 2024-12-26 02:14:39,106 - DEBUG - VM ctest-TestRoutersBasic-14298053-19307508 is ready for SSH connections 2024-12-26 02:14:39,106 - INFO - Waiting for VM ctest-TestRoutersBasic-14298053-86635644 to be up.. 2024-12-26 02:14:39,183 - DEBUG - VM is in ACTIVE state now 2024-12-26 02:14:39,183 - INFO - VM name : ctest-TestRoutersBasic-14298053-86635644 2024-12-26 02:14:39,260 - DEBUG - VM ctest-TestRoutersBasic-14298053-86635644 ID is c4fcb0ce-a57a-46d7-b4a2-59fe8451534b 2024-12-26 02:14:39,260 - DEBUG - VM ctest-TestRoutersBasic-14298053-86635644 launched on Node cn-jenkins-deploy-platform-ansible-os-2496-1. 2024-12-26 02:14:39,335 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/c4fcb0ce-a57a-46d7-b4a2-59fe8451534b 2024-12-26 02:14:39,344 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/271c6756-329d-4b74-a4ad-8a9297fa5582 2024-12-26 02:14:40,588 - 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.44 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.455 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 = 0.455/1.948/3.441/1.493 ms') 2024-12-26 02:14:40,588 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-14298053-86635644 passed 2024-12-26 02:14:40,742 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-26 02:14:40,742 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-14298053-86635644, IP 119.47.112.3, Port 22 2024-12-26 02:14:40,897 - DEBUG - VM ctest-TestRoutersBasic-14298053-86635644 is ready for SSH connections 2024-12-26 02:14:40,897 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-26 02:14:40,897 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 119.47.112.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-12-26 02:14:40,898 - DEBUG - ping -s 56 -c 3 -W 1 119.47.112.3 2024-12-26 02:14:44,593 - DEBUG - PING 119.47.112.3 (119.47.112.3): 56 data bytes 64 bytes from 119.47.112.3: seq=0 ttl=62 time=5.977 ms 64 bytes from 119.47.112.3: seq=1 ttl=62 time=1.013 ms 64 bytes from 119.47.112.3: seq=2 ttl=62 time=0.790 ms --- 119.47.112.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.790/2.593/5.977 ms 2024-12-26 02:14:44,594 - INFO - Ping to IP 119.47.112.3 from VM ctest-TestRoutersBasic-14298053-19307508 passed 2024-12-26 02:14:44,594 - INFO - Deleting interface with subnet_id 2d14dd3f-48ce-4921-9ea2-bec7235f6750, port_id None from router 2cd473dc-4018-4385-8c62-fea5a9c22ec7 2024-12-26 02:14:44,822 - INFO - Deleting VM ctest-TestRoutersBasic-14298053-86635644 2024-12-26 02:14:44,908 - INFO - Deleting VM ctest-TestRoutersBasic-14298053-19307508 2024-12-26 02:14:44,999 - INFO - Deleting VN ctest-ext_vn-22190064 2024-12-26 02:14:45,108 - DEBUG - VN 7b250127-ef42-45cc-b9eb-bded451c7deb still in use: Unable to complete operation on network 7b250127-ef42-45cc-b9eb-bded451c7deb. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0747062a-f57e-4edf-9186-4a2a8fa46f97'] 2024-12-26 02:14:45,109 - WARNING - Deleting VN ctest-ext_vn-22190064 failed..Will retry 2024-12-26 02:14:47,222 - DEBUG - Response for deleting network () 2024-12-26 02:14:47,222 - INFO - Deleting VN ctest-vn-28289247 2024-12-26 02:14:47,351 - DEBUG - Response for deleting network () 2024-12-26 02:14:47,611 - DEBUG - No XMPP flaps were noticed during the test
2024-12-26 02:14:47,611 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25]
2024-12-26 02:14:47,611 - INFO - -------------------------------------------------------------------------------- 2024-12-26 02:14:48,303 - INFO - Deleted project: ctest-TestRoutersBasic-14298053, ID : 767c371b-6a6d-4b5a-a200-20f75d053930