2025-11-04 22:48:44,824 - INFO - Domain Default found not creating 2025-11-04 22:48:44,962 - INFO - Project ctest-TestRoutersBasic-02508304 not found, creating it 2025-11-04 22:48:45,393 - INFO - Created Project:ctest-TestRoutersBasic-02508304, ID : 3e7760b3-9378-4790-8e44-ba8cc9b1012e 2025-11-04 22:48:46,776 - INFO - ================================================================================ 2025-11-04 22:48:46,776 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-04 22:48:46,776 - 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-11-04 22:48:47,031 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with 2025-11-04 22:48:47,031 - INFO - Initial checks done. Running the testcase now 2025-11-04 22:48:47,031 - INFO - 2025-11-04 22:48:47,720 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-02508304 2025-11-04 22:48:47,814 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-02508304 2025-11-04 22:48:48,134 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-02508304', 'default']} 2025-11-04 22:48:48,413 - DEBUG - Response for create_network : {'network': {'id': '9ef8f8c9-8d61-4863-8199-bdabc9bef25b', 'name': 'ctest-vn-15598899', 'tenant_id': '3e7760b3937847908e44ba8cc9b1012e', 'project_id': '3e7760b3937847908e44ba8cc9b1012e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-02508304', 'ctest-vn-15598899'], 'port_security_enabled': True, 'description': ''}} 2025-11-04 22:48:48,567 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e8a41b4-d07d-4157-b767-3cb47ac8d42a', 'name': '', 'tenant_id': '3e7760b3937847908e44ba8cc9b1012e', 'network_id': '9ef8f8c9-8d61-4863-8199-bdabc9bef25b', 'ip_version': 4, 'cidr': '42.60.242.64/26', 'allocation_pools': [{'start': '42.60.242.66', 'end': '42.60.242.126'}], 'gateway_ip': '42.60.242.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.60.242.66', 'tags': [], 'project_id': '3e7760b3937847908e44ba8cc9b1012e'}} 2025-11-04 22:48:48,584 - INFO - Created VN ctest-vn-15598899 2025-11-04 22:48:48,634 - DEBUG - VN ctest-vn-15598899 UUID is 9ef8f8c9-8d61-4863-8199-bdabc9bef25b 2025-11-04 22:48:48,971 - DEBUG - Response for create_network : {'network': {'id': '7d969280-f30c-4931-b3ea-8bfa02ca2067', 'name': 'ctest-ext_vn-71110637', 'tenant_id': '3e7760b3937847908e44ba8cc9b1012e', 'project_id': '3e7760b3937847908e44ba8cc9b1012e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-02508304', 'ctest-ext_vn-71110637'], 'port_security_enabled': True, 'description': ''}} 2025-11-04 22:48:49,145 - DEBUG - Response for create_subnet : {'subnet': {'id': '7a4c37aa-2a3d-4868-a06c-c8eb4079c2bd', 'name': '', 'tenant_id': '3e7760b3937847908e44ba8cc9b1012e', 'network_id': '7d969280-f30c-4931-b3ea-8bfa02ca2067', 'ip_version': 4, 'cidr': '179.238.49.128/26', 'allocation_pools': [{'start': '179.238.49.130', 'end': '179.238.49.190'}], 'gateway_ip': '179.238.49.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.238.49.130', 'tags': [], 'project_id': '3e7760b3937847908e44ba8cc9b1012e'}} 2025-11-04 22:48:49,163 - INFO - Created VN ctest-ext_vn-71110637 2025-11-04 22:48:49,214 - DEBUG - VN ctest-ext_vn-71110637 UUID is 7d969280-f30c-4931-b3ea-8bfa02ca2067 2025-11-04 22:48:49,410 - DEBUG - Services list from nova: [, , ] 2025-11-04 22:48:50,442 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4625-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4625-1) 2025-11-04 22:48:51,540 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4625-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4625-1) 2025-11-04 22:48:51,604 - INFO - Setting gateway for router 590a5a4f-7869-4416-8fa6-ef202874fa32 to network 7d969280-f30c-4931-b3ea-8bfa02ca2067 2025-11-04 22:48:51,650 - INFO - Adding interface with subnet_id 0e8a41b4-d07d-4157-b767-3cb47ac8d42a, port_id None to router 590a5a4f-7869-4416-8fa6-ef202874fa32 2025-11-04 22:48:51,958 - INFO - Waiting for VM ctest-TestRoutersBasic-02508304-01971159 to be up.. 2025-11-04 22:48:52,087 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-04 22:48:57,159 - DEBUG - VM is in ACTIVE state now 2025-11-04 22:48:57,159 - INFO - VM name : ctest-TestRoutersBasic-02508304-01971159 2025-11-04 22:48:57,248 - DEBUG - VM ctest-TestRoutersBasic-02508304-01971159 ID is a25a4074-596f-4d57-8416-dab29ffee034 2025-11-04 22:48:57,266 - DEBUG - VM ctest-TestRoutersBasic-02508304-01971159 launched on Node cn-jenkins-deploy-platform-ansible-os-4625-1 2025-11-04 22:48:57,331 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/a25a4074-596f-4d57-8416-dab29ffee034 2025-11-04 22:48:57,622 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/a25a4074-596f-4d57-8416-dab29ffee034 2025-11-04 22:48:57,650 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/2aa99850-1f01-4837-804a-90a378b9cae0 2025-11-04 22:49:00,912 - 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-11-04 22:49:00,912 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-02508304-01971159 failed! 2025-11-04 22:49:00,966 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-02508304:ctest-vn-15598899 is 42.60.242.65 and allocation pool is NOT set 2025-11-04 22:49:03,026 - 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.01 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.645 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.645/2.328/4.012/1.683 ms') 2025-11-04 22:49:03,026 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-02508304-01971159 passed 2025-11-04 22:49:03,174 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-04 22:49:03,174 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-02508304-01971159, IP 42.60.242.67, Port 22 2025-11-04 22:49:03,326 - DEBUG - VM ctest-TestRoutersBasic-02508304-01971159 is ready for SSH connections 2025-11-04 22:49:03,326 - INFO - Waiting for VM ctest-TestRoutersBasic-02508304-91329083 to be up.. 2025-11-04 22:49:03,392 - DEBUG - VM is in ACTIVE state now 2025-11-04 22:49:03,393 - INFO - VM name : ctest-TestRoutersBasic-02508304-91329083 2025-11-04 22:49:03,466 - DEBUG - VM ctest-TestRoutersBasic-02508304-91329083 ID is 2f43909b-8731-427d-9abc-c834381d1218 2025-11-04 22:49:03,466 - DEBUG - VM ctest-TestRoutersBasic-02508304-91329083 launched on Node cn-jenkins-deploy-platform-ansible-os-4625-1 2025-11-04 22:49:03,542 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/2f43909b-8731-427d-9abc-c834381d1218 2025-11-04 22:49:03,550 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/b4ed5ec6-a37b-4d02-91f6-9d3de1e3e4ef 2025-11-04 22:49:04,795 - 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.83 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.490 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.490/1.660/2.831/1.170 ms') 2025-11-04 22:49:04,796 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-02508304-91329083 passed 2025-11-04 22:49:04,942 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-04 22:49:04,942 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-02508304-91329083, IP 179.238.49.131, Port 22 2025-11-04 22:49:05,102 - DEBUG - VM ctest-TestRoutersBasic-02508304-91329083 is ready for SSH connections 2025-11-04 22:49:05,102 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-04 22:49:05,102 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 179.238.49.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-11-04 22:49:05,102 - DEBUG - ping -s 56 -c 3 -W 1 179.238.49.131 2025-11-04 22:49:09,120 - DEBUG - PING 179.238.49.131 (179.238.49.131): 56 data bytes 64 bytes from 179.238.49.131: seq=0 ttl=62 time=5.233 ms 64 bytes from 179.238.49.131: seq=1 ttl=62 time=0.852 ms 64 bytes from 179.238.49.131: seq=2 ttl=62 time=0.849 ms --- 179.238.49.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.849/2.311/5.233 ms 2025-11-04 22:49:09,120 - INFO - Ping to IP 179.238.49.131 from VM ctest-TestRoutersBasic-02508304-01971159 passed 2025-11-04 22:49:09,120 - INFO - Deleting interface with subnet_id 0e8a41b4-d07d-4157-b767-3cb47ac8d42a, port_id None from router 590a5a4f-7869-4416-8fa6-ef202874fa32 2025-11-04 22:49:09,290 - INFO - Deleting VM ctest-TestRoutersBasic-02508304-91329083 2025-11-04 22:49:09,364 - INFO - Deleting VM ctest-TestRoutersBasic-02508304-01971159 2025-11-04 22:49:09,438 - INFO - Deleting VN ctest-ext_vn-71110637 2025-11-04 22:49:09,513 - DEBUG - VN 7d969280-f30c-4931-b3ea-8bfa02ca2067 still in use: Unable to complete operation on network 7d969280-f30c-4931-b3ea-8bfa02ca2067. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-df404a81-b437-4fdb-980a-abdd4ca84a69'] 2025-11-04 22:49:09,513 - WARNING - Deleting VN ctest-ext_vn-71110637 failed..Will retry 2025-11-04 22:49:11,611 - DEBUG - Response for deleting network () 2025-11-04 22:49:11,611 - INFO - Deleting VN ctest-vn-15598899 2025-11-04 22:49:11,698 - DEBUG - Response for deleting network () 2025-11-04 22:49:11,952 - DEBUG - No XMPP flaps were noticed during the test 2025-11-04 22:49:11,952 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-11-04 22:49:11,952 - INFO - -------------------------------------------------------------------------------- 2025-11-04 22:49:12,628 - INFO - Deleted project: ctest-TestRoutersBasic-02508304, ID : 3e7760b3-9378-4790-8e44-ba8cc9b1012e