2025-05-09 04:43:09,845 - INFO - Domain Default found not creating 2025-05-09 04:43:09,977 - INFO - Project ctest-TestRoutersBasic-67863830 not found, creating it 2025-05-09 04:43:10,419 - INFO - Created Project:ctest-TestRoutersBasic-67863830, ID : 2c461822-1ee0-4381-ab81-86e8c58cd253 2025-05-09 04:43:11,921 - INFO - ================================================================================ 2025-05-09 04:43:11,921 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-05-09 04:43:11,921 - 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 04:43:12,178 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-05-09 04:43:12,178 - INFO - Initial checks done. Running the testcase now 2025-05-09 04:43:12,178 - INFO - 2025-05-09 04:43:12,951 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-67863830 2025-05-09 04:43:13,046 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-67863830 2025-05-09 04:43:13,374 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67863830', 'default']} 2025-05-09 04:43:13,670 - DEBUG - Response for create_network : {'network': {'id': 'd5521d19-9aa8-4be7-a331-2a2c1b33f9ff', 'name': 'ctest-vn-69489600', 'tenant_id': '2c4618221ee04381ab8186e8c58cd253', 'project_id': '2c4618221ee04381ab8186e8c58cd253', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67863830', 'ctest-vn-69489600'], 'port_security_enabled': True, 'description': ''}} 2025-05-09 04:43:13,850 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a7dc799c-33e2-45e2-a341-48a9171ed624', 'name': '', 'tenant_id': '2c4618221ee04381ab8186e8c58cd253', 'network_id': 'd5521d19-9aa8-4be7-a331-2a2c1b33f9ff', 'ip_version': 4, 'cidr': '114.9.123.64/26', 'allocation_pools': [{'start': '114.9.123.66', 'end': '114.9.123.126'}], 'gateway_ip': '114.9.123.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.9.123.66', 'tags': [], 'project_id': '2c4618221ee04381ab8186e8c58cd253'}} 2025-05-09 04:43:13,867 - INFO - Created VN ctest-vn-69489600 2025-05-09 04:43:13,918 - DEBUG - VN ctest-vn-69489600 UUID is d5521d19-9aa8-4be7-a331-2a2c1b33f9ff 2025-05-09 04:43:14,256 - DEBUG - Response for create_network : {'network': {'id': 'c6d49bcf-cb10-402c-9e6f-d2d522334183', 'name': 'ctest-ext_vn-14495109', 'tenant_id': '2c4618221ee04381ab8186e8c58cd253', 'project_id': '2c4618221ee04381ab8186e8c58cd253', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67863830', 'ctest-ext_vn-14495109'], 'port_security_enabled': True, 'description': ''}} 2025-05-09 04:43:14,459 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa062566-7cca-4a97-a3be-8f9fd10df585', 'name': '', 'tenant_id': '2c4618221ee04381ab8186e8c58cd253', 'network_id': 'c6d49bcf-cb10-402c-9e6f-d2d522334183', 'ip_version': 4, 'cidr': '65.135.178.128/26', 'allocation_pools': [{'start': '65.135.178.130', 'end': '65.135.178.190'}], 'gateway_ip': '65.135.178.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.135.178.130', 'tags': [], 'project_id': '2c4618221ee04381ab8186e8c58cd253'}} 2025-05-09 04:43:14,477 - INFO - Created VN ctest-ext_vn-14495109 2025-05-09 04:43:14,534 - DEBUG - VN ctest-ext_vn-14495109 UUID is c6d49bcf-cb10-402c-9e6f-d2d522334183 2025-05-09 04:43:14,744 - DEBUG - Services list from nova: [, , ] 2025-05-09 04:43:15,815 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3292-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3292-1) 2025-05-09 04:43:16,990 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3292-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3292-1) 2025-05-09 04:43:17,052 - INFO - Setting gateway for router c201a9c5-cf63-4153-988e-b3256c987868 to network c6d49bcf-cb10-402c-9e6f-d2d522334183 2025-05-09 04:43:17,141 - INFO - Adding interface with subnet_id a7dc799c-33e2-45e2-a341-48a9171ed624, port_id None to router c201a9c5-cf63-4153-988e-b3256c987868 2025-05-09 04:43:17,436 - INFO - Waiting for VM ctest-TestRoutersBasic-67863830-91158914 to be up.. 2025-05-09 04:43:17,586 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-09 04:43:22,670 - DEBUG - VM is in ACTIVE state now 2025-05-09 04:43:22,670 - INFO - VM name : ctest-TestRoutersBasic-67863830-91158914 2025-05-09 04:43:22,742 - DEBUG - VM ctest-TestRoutersBasic-67863830-91158914 ID is f5839d2f-7059-4921-a243-958ba802eb41 2025-05-09 04:43:22,760 - DEBUG - VM ctest-TestRoutersBasic-67863830-91158914 launched on Node cn-jenkins-deploy-platform-ansible-os-3292-1 2025-05-09 04:43:22,830 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/f5839d2f-7059-4921-a243-958ba802eb41 2025-05-09 04:43:23,177 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/f5839d2f-7059-4921-a243-958ba802eb41 2025-05-09 04:43:23,208 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/5ba5d413-3693-4e9f-8dc8-6489c30c87f8 2025-05-09 04:43:26,489 - 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 1027ms') 2025-05-09 04:43:26,489 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-67863830-91158914 failed! 2025-05-09 04:43:26,546 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-67863830:ctest-vn-69489600 is 114.9.123.65 and allocation pool is NOT set 2025-05-09 04:43:28,601 - 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.33 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.392 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 = 0.392/1.861/3.331/1.469 ms') 2025-05-09 04:43:28,601 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-67863830-91158914 passed 2025-05-09 04:43:28,754 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-09 04:43:28,754 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-67863830-91158914, IP 114.9.123.67, Port 22 2025-05-09 04:43:28,913 - DEBUG - VM ctest-TestRoutersBasic-67863830-91158914 is ready for SSH connections 2025-05-09 04:43:28,913 - INFO - Waiting for VM ctest-TestRoutersBasic-67863830-30008646 to be up.. 2025-05-09 04:43:28,985 - DEBUG - VM is in ACTIVE state now 2025-05-09 04:43:28,985 - INFO - VM name : ctest-TestRoutersBasic-67863830-30008646 2025-05-09 04:43:29,116 - DEBUG - VM ctest-TestRoutersBasic-67863830-30008646 ID is 0cf7ed2a-ebb8-44ac-91d5-9d796f3212e1 2025-05-09 04:43:29,116 - DEBUG - VM ctest-TestRoutersBasic-67863830-30008646 launched on Node cn-jenkins-deploy-platform-ansible-os-3292-1 2025-05-09 04:43:29,242 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/0cf7ed2a-ebb8-44ac-91d5-9d796f3212e1 2025-05-09 04:43:29,251 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/28444efc-1f0b-4c90-9e85-48a1bc24a98a 2025-05-09 04:43:30,514 - 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.98 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.363 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.363/1.673/2.984/1.310 ms') 2025-05-09 04:43:30,514 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-67863830-30008646 passed 2025-05-09 04:43:30,674 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-09 04:43:30,674 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-67863830-30008646, IP 65.135.178.131, Port 22 2025-05-09 04:43:30,826 - DEBUG - VM ctest-TestRoutersBasic-67863830-30008646 is ready for SSH connections 2025-05-09 04:43:30,826 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-09 04:43:30,826 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 65.135.178.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-05-09 04:43:30,826 - DEBUG - ping -s 56 -c 3 -W 1 65.135.178.131 2025-05-09 04:43:34,525 - DEBUG - PING 65.135.178.131 (65.135.178.131): 56 data bytes 64 bytes from 65.135.178.131: seq=0 ttl=62 time=5.819 ms 64 bytes from 65.135.178.131: seq=1 ttl=62 time=0.926 ms 64 bytes from 65.135.178.131: seq=2 ttl=62 time=1.314 ms --- 65.135.178.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.926/2.686/5.819 ms 2025-05-09 04:43:34,525 - INFO - Ping to IP 65.135.178.131 from VM ctest-TestRoutersBasic-67863830-91158914 passed 2025-05-09 04:43:34,525 - INFO - Deleting interface with subnet_id a7dc799c-33e2-45e2-a341-48a9171ed624, port_id None from router c201a9c5-cf63-4153-988e-b3256c987868 2025-05-09 04:43:34,747 - INFO - Deleting VM ctest-TestRoutersBasic-67863830-30008646 2025-05-09 04:43:34,815 - INFO - Deleting VM ctest-TestRoutersBasic-67863830-91158914 2025-05-09 04:43:34,900 - INFO - Deleting VN ctest-ext_vn-14495109 2025-05-09 04:43:34,966 - DEBUG - VN c6d49bcf-cb10-402c-9e6f-d2d522334183 still in use: Unable to complete operation on network c6d49bcf-cb10-402c-9e6f-d2d522334183. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-68686870-4e94-4003-a008-9fb1cde10202'] 2025-05-09 04:43:34,967 - WARNING - Deleting VN ctest-ext_vn-14495109 failed..Will retry 2025-05-09 04:43:37,063 - DEBUG - Response for deleting network () 2025-05-09 04:43:37,063 - INFO - Deleting VN ctest-vn-69489600 2025-05-09 04:43:37,166 - DEBUG - Response for deleting network () 2025-05-09 04:43:37,420 - DEBUG - No XMPP flaps were noticed during the test
2025-05-09 04:43:37,421 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2025-05-09 04:43:37,421 - INFO - -------------------------------------------------------------------------------- 2025-05-09 04:43:38,126 - INFO - Deleted project: ctest-TestRoutersBasic-67863830, ID : 2c461822-1ee0-4381-ab81-86e8c58cd253