2025-02-13 16:55:35,128 - INFO - Domain Default found not creating 2025-02-13 16:55:35,300 - INFO - Project ctest-TestRoutersBasic-19734901 not found, creating it 2025-02-13 16:55:35,779 - INFO - Created Project:ctest-TestRoutersBasic-19734901, ID : 83321d10-bfaa-449b-bd37-12ae91718e9a 2025-02-13 16:55:37,261 - INFO - ================================================================================ 2025-02-13 16:55:37,261 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-02-13 16:55:37,261 - 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-02-13 16:55:37,515 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.7': '0'}} with 2025-02-13 16:55:37,516 - INFO - Initial checks done. Running the testcase now 2025-02-13 16:55:37,516 - INFO - 2025-02-13 16:55:38,258 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-19734901 2025-02-13 16:55:38,365 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-19734901 2025-02-13 16:55:38,709 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-19734901', 'default']} 2025-02-13 16:55:39,046 - DEBUG - Response for create_network : {'network': {'id': '357708ae-0b56-41b7-9b6b-c48b38d027f8', 'name': 'ctest-vn-96523003', 'tenant_id': '83321d10bfaa449bbd3712ae91718e9a', 'project_id': '83321d10bfaa449bbd3712ae91718e9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-19734901', 'ctest-vn-96523003'], 'port_security_enabled': True, 'description': ''}} 2025-02-13 16:55:39,273 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aed9ddb3-f84a-4d2a-b0de-8624989be3ae', 'name': '', 'tenant_id': '83321d10bfaa449bbd3712ae91718e9a', 'network_id': '357708ae-0b56-41b7-9b6b-c48b38d027f8', 'ip_version': 4, 'cidr': '43.42.105.0/26', 'allocation_pools': [{'start': '43.42.105.2', 'end': '43.42.105.62'}], 'gateway_ip': '43.42.105.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.42.105.2', 'tags': [], 'project_id': '83321d10bfaa449bbd3712ae91718e9a'}} 2025-02-13 16:55:39,296 - INFO - Created VN ctest-vn-96523003 2025-02-13 16:55:39,349 - DEBUG - VN ctest-vn-96523003 UUID is 357708ae-0b56-41b7-9b6b-c48b38d027f8 2025-02-13 16:55:39,705 - DEBUG - Response for create_network : {'network': {'id': 'bea4292b-fd8a-41e8-b990-4ee3bd92317d', 'name': 'ctest-ext_vn-95811319', 'tenant_id': '83321d10bfaa449bbd3712ae91718e9a', 'project_id': '83321d10bfaa449bbd3712ae91718e9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-19734901', 'ctest-ext_vn-95811319'], 'port_security_enabled': True, 'description': ''}} 2025-02-13 16:55:39,883 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf21af86-12c8-484b-8f53-7d5551cfd8d7', 'name': '', 'tenant_id': '83321d10bfaa449bbd3712ae91718e9a', 'network_id': 'bea4292b-fd8a-41e8-b990-4ee3bd92317d', 'ip_version': 4, 'cidr': '34.36.131.128/26', 'allocation_pools': [{'start': '34.36.131.130', 'end': '34.36.131.190'}], 'gateway_ip': '34.36.131.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.36.131.130', 'tags': [], 'project_id': '83321d10bfaa449bbd3712ae91718e9a'}} 2025-02-13 16:55:39,904 - INFO - Created VN ctest-ext_vn-95811319 2025-02-13 16:55:39,965 - DEBUG - VN ctest-ext_vn-95811319 UUID is bea4292b-fd8a-41e8-b990-4ee3bd92317d 2025-02-13 16:55:40,153 - DEBUG - Services list from nova: [, , ] 2025-02-13 16:55:41,214 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2736-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2736-1) 2025-02-13 16:55:42,502 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2736-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2736-1) 2025-02-13 16:55:42,597 - INFO - Setting gateway for router 54ebb93b-0cfa-494c-922e-fcb5b1446179 to network bea4292b-fd8a-41e8-b990-4ee3bd92317d 2025-02-13 16:55:42,675 - INFO - Adding interface with subnet_id aed9ddb3-f84a-4d2a-b0de-8624989be3ae, port_id None to router 54ebb93b-0cfa-494c-922e-fcb5b1446179 2025-02-13 16:55:43,166 - INFO - Waiting for VM ctest-TestRoutersBasic-19734901-12800119 to be up.. 2025-02-13 16:55:43,383 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-13 16:55:48,469 - DEBUG - VM is in ACTIVE state now 2025-02-13 16:55:48,469 - INFO - VM name : ctest-TestRoutersBasic-19734901-12800119 2025-02-13 16:55:48,567 - DEBUG - VM ctest-TestRoutersBasic-19734901-12800119 ID is e3a66ff0-a2bc-4808-a796-2d673b14af42 2025-02-13 16:55:48,588 - DEBUG - VM ctest-TestRoutersBasic-19734901-12800119 launched on Node cn-jenkins-deploy-platform-ansible-os-2736-1 2025-02-13 16:55:48,671 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/e3a66ff0-a2bc-4808-a796-2d673b14af42 2025-02-13 16:55:48,970 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/e3a66ff0-a2bc-4808-a796-2d673b14af42 2025-02-13 16:55:49,008 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/cd24dbac-c96d-42f0-bcce-994ab317309e 2025-02-13 16:55:52,272 - 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 1014ms') 2025-02-13 16:55:52,273 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-19734901-12800119 failed! 2025-02-13 16:55:52,329 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-19734901:ctest-vn-96523003 is 43.42.105.1 and allocation pool is NOT set 2025-02-13 16:55:54,396 - 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=2.08 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 = 2.080/3.240/4.400/1.160 ms') 2025-02-13 16:55:54,396 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-19734901-12800119 passed 2025-02-13 16:55:54,553 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-13 16:55:54,553 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-19734901-12800119, IP 43.42.105.3, Port 22 2025-02-13 16:55:54,717 - DEBUG - VM ctest-TestRoutersBasic-19734901-12800119 is ready for SSH connections 2025-02-13 16:55:54,717 - INFO - Waiting for VM ctest-TestRoutersBasic-19734901-59922081 to be up.. 2025-02-13 16:55:54,829 - DEBUG - VM is in ACTIVE state now 2025-02-13 16:55:54,829 - INFO - VM name : ctest-TestRoutersBasic-19734901-59922081 2025-02-13 16:55:54,928 - DEBUG - VM ctest-TestRoutersBasic-19734901-59922081 ID is 662e4d89-ad84-41fd-a999-0a5c84a97794 2025-02-13 16:55:54,928 - DEBUG - VM ctest-TestRoutersBasic-19734901-59922081 launched on Node cn-jenkins-deploy-platform-ansible-os-2736-1 2025-02-13 16:55:55,040 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/662e4d89-ad84-41fd-a999-0a5c84a97794 2025-02-13 16:55:55,051 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/0622ca4e-0684-4040-abe8-12d1a5e40aaa 2025-02-13 16:55:56,309 - 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.90 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.481 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.481/1.691/2.902/1.210 ms') 2025-02-13 16:55:56,309 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-19734901-59922081 passed 2025-02-13 16:55:56,465 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-13 16:55:56,465 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-19734901-59922081, IP 34.36.131.131, Port 22 2025-02-13 16:55:56,621 - DEBUG - VM ctest-TestRoutersBasic-19734901-59922081 is ready for SSH connections 2025-02-13 16:55:56,621 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-13 16:55:56,621 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 34.36.131.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-02-13 16:55:56,621 - DEBUG - ping -s 56 -c 3 -W 1 34.36.131.131 2025-02-13 16:56:00,668 - DEBUG - PING 34.36.131.131 (34.36.131.131): 56 data bytes 64 bytes from 34.36.131.131: seq=0 ttl=62 time=7.289 ms 64 bytes from 34.36.131.131: seq=1 ttl=62 time=1.296 ms 64 bytes from 34.36.131.131: seq=2 ttl=62 time=1.157 ms --- 34.36.131.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.157/3.247/7.289 ms 2025-02-13 16:56:00,668 - INFO - Ping to IP 34.36.131.131 from VM ctest-TestRoutersBasic-19734901-12800119 passed 2025-02-13 16:56:00,668 - INFO - Deleting interface with subnet_id aed9ddb3-f84a-4d2a-b0de-8624989be3ae, port_id None from router 54ebb93b-0cfa-494c-922e-fcb5b1446179 2025-02-13 16:56:00,896 - INFO - Deleting VM ctest-TestRoutersBasic-19734901-59922081 2025-02-13 16:56:00,992 - INFO - Deleting VM ctest-TestRoutersBasic-19734901-12800119 2025-02-13 16:56:01,085 - INFO - Deleting VN ctest-ext_vn-95811319 2025-02-13 16:56:01,211 - DEBUG - VN bea4292b-fd8a-41e8-b990-4ee3bd92317d still in use: Unable to complete operation on network bea4292b-fd8a-41e8-b990-4ee3bd92317d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ec9703f3-37b2-4fd5-b9c2-d471129cadfa'] 2025-02-13 16:56:01,211 - WARNING - Deleting VN ctest-ext_vn-95811319 failed..Will retry 2025-02-13 16:56:03,341 - DEBUG - Response for deleting network () 2025-02-13 16:56:03,341 - INFO - Deleting VN ctest-vn-96523003 2025-02-13 16:56:03,477 - DEBUG - Response for deleting network () 2025-02-13 16:56:03,739 - DEBUG - No XMPP flaps were noticed during the test
2025-02-13 16:56:03,740 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2025-02-13 16:56:03,740 - INFO - -------------------------------------------------------------------------------- 2025-02-13 16:56:04,438 - INFO - Deleted project: ctest-TestRoutersBasic-19734901, ID : 83321d10-bfaa-449b-bd37-12ae91718e9a