2025-04-23 13:34:24,203 - INFO - Domain Default found not creating 2025-04-23 13:34:24,336 - INFO - Project ctest-TestRoutersBasic-78938618 not found, creating it 2025-04-23 13:34:24,769 - INFO - Created Project:ctest-TestRoutersBasic-78938618, ID : b9e7ebc3-ca52-4d86-8d7f-0666dfd15aec 2025-04-23 13:34:25,957 - INFO - ================================================================================ 2025-04-23 13:34:25,957 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-23 13:34:25,958 - 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-04-23 13:34:26,214 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-04-23 13:34:26,214 - INFO - Initial checks done. Running the testcase now 2025-04-23 13:34:26,214 - INFO - 2025-04-23 13:34:26,821 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-78938618 2025-04-23 13:34:26,916 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-78938618 2025-04-23 13:34:27,236 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-78938618', 'default']} 2025-04-23 13:34:27,509 - DEBUG - Response for create_network : {'network': {'id': '15acce19-82ca-4a2d-9986-9b84a74306d7', 'name': 'ctest-vn-01633607', 'tenant_id': 'b9e7ebc3ca524d868d7f0666dfd15aec', 'project_id': 'b9e7ebc3ca524d868d7f0666dfd15aec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-78938618', 'ctest-vn-01633607'], 'port_security_enabled': True, 'description': ''}} 2025-04-23 13:34:27,709 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d5bc325-1634-4ccd-a1b8-cf74c2c49d99', 'name': '', 'tenant_id': 'b9e7ebc3ca524d868d7f0666dfd15aec', 'network_id': '15acce19-82ca-4a2d-9986-9b84a74306d7', 'ip_version': 4, 'cidr': '31.238.147.192/26', 'allocation_pools': [{'start': '31.238.147.194', 'end': '31.238.147.254'}], 'gateway_ip': '31.238.147.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.238.147.194', 'tags': [], 'project_id': 'b9e7ebc3ca524d868d7f0666dfd15aec'}} 2025-04-23 13:34:27,724 - INFO - Created VN ctest-vn-01633607 2025-04-23 13:34:27,780 - DEBUG - VN ctest-vn-01633607 UUID is 15acce19-82ca-4a2d-9986-9b84a74306d7 2025-04-23 13:34:28,100 - DEBUG - Response for create_network : {'network': {'id': 'c5cf55b1-d5ce-498a-8315-5248f10b01e1', 'name': 'ctest-ext_vn-07550633', 'tenant_id': 'b9e7ebc3ca524d868d7f0666dfd15aec', 'project_id': 'b9e7ebc3ca524d868d7f0666dfd15aec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-78938618', 'ctest-ext_vn-07550633'], 'port_security_enabled': True, 'description': ''}} 2025-04-23 13:34:28,240 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c816e47c-66cb-4979-8b53-4c779d9a7639', 'name': '', 'tenant_id': 'b9e7ebc3ca524d868d7f0666dfd15aec', 'network_id': 'c5cf55b1-d5ce-498a-8315-5248f10b01e1', 'ip_version': 4, 'cidr': '6.253.153.192/26', 'allocation_pools': [{'start': '6.253.153.194', 'end': '6.253.153.254'}], 'gateway_ip': '6.253.153.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.253.153.194', 'tags': [], 'project_id': 'b9e7ebc3ca524d868d7f0666dfd15aec'}} 2025-04-23 13:34:28,254 - INFO - Created VN ctest-ext_vn-07550633 2025-04-23 13:34:28,304 - DEBUG - VN ctest-ext_vn-07550633 UUID is c5cf55b1-d5ce-498a-8315-5248f10b01e1 2025-04-23 13:34:28,489 - DEBUG - Services list from nova: [, , ] 2025-04-23 13:34:29,354 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3185-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3185-1) 2025-04-23 13:34:30,348 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3185-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3185-1) 2025-04-23 13:34:30,415 - INFO - Setting gateway for router 339204d8-e49f-429c-bbf1-d6579e87c303 to network c5cf55b1-d5ce-498a-8315-5248f10b01e1 2025-04-23 13:34:30,499 - INFO - Adding interface with subnet_id 2d5bc325-1634-4ccd-a1b8-cf74c2c49d99, port_id None to router 339204d8-e49f-429c-bbf1-d6579e87c303 2025-04-23 13:34:30,871 - INFO - Waiting for VM ctest-TestRoutersBasic-78938618-91805884 to be up.. 2025-04-23 13:34:31,027 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-23 13:34:36,101 - DEBUG - VM is in ACTIVE state now 2025-04-23 13:34:36,101 - INFO - VM name : ctest-TestRoutersBasic-78938618-91805884 2025-04-23 13:34:36,163 - DEBUG - VM ctest-TestRoutersBasic-78938618-91805884 ID is 9f37e36a-8a04-460a-8d9d-407c083be581 2025-04-23 13:34:36,178 - DEBUG - VM ctest-TestRoutersBasic-78938618-91805884 launched on Node cn-jenkins-deploy-platform-ansible-os-3185-1 2025-04-23 13:34:36,241 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/9f37e36a-8a04-460a-8d9d-407c083be581 2025-04-23 13:34:36,499 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/9f37e36a-8a04-460a-8d9d-407c083be581 2025-04-23 13:34:36,528 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/24a0794e-709e-4b88-a92a-1c0f2d407d36 2025-04-23 13:34:39,766 - 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=2 ttl=63 time=4.07 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1008ms\r\nrtt min/avg/max/mdev = 4.073/4.073/4.073/0.000 ms') 2025-04-23 13:34:39,766 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-78938618-91805884 passed 2025-04-23 13:34:39,912 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 13:34:39,912 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-78938618-91805884, IP 31.238.147.195, Port 22 2025-04-23 13:34:40,074 - DEBUG - VM ctest-TestRoutersBasic-78938618-91805884 is ready for SSH connections 2025-04-23 13:34:40,074 - INFO - Waiting for VM ctest-TestRoutersBasic-78938618-20928744 to be up.. 2025-04-23 13:34:40,139 - DEBUG - VM is in ACTIVE state now 2025-04-23 13:34:40,139 - INFO - VM name : ctest-TestRoutersBasic-78938618-20928744 2025-04-23 13:34:40,199 - DEBUG - VM ctest-TestRoutersBasic-78938618-20928744 ID is b21ef0be-08ea-41b6-a4b6-ca56b84411c3 2025-04-23 13:34:40,199 - DEBUG - VM ctest-TestRoutersBasic-78938618-20928744 launched on Node cn-jenkins-deploy-platform-ansible-os-3185-1 2025-04-23 13:34:40,261 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/b21ef0be-08ea-41b6-a4b6-ca56b84411c3 2025-04-23 13:34:40,268 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/627b5ac9-de13-4d45-99eb-30a5eb9887a0 2025-04-23 13:34:41,510 - 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.60 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.06 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 = 2.600/2.831/3.062/0.231 ms') 2025-04-23 13:34:41,510 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-78938618-20928744 passed 2025-04-23 13:34:41,656 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 13:34:41,656 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-78938618-20928744, IP 6.253.153.195, Port 22 2025-04-23 13:34:41,712 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-04-23 13:34:41,773 - DEBUG - VM ctest-TestRoutersBasic-78938618-20928744 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-23 13:34:46,773 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 13:34:46,773 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-78938618-20928744, IP 6.253.153.195, Port 22 2025-04-23 13:34:46,924 - DEBUG - VM ctest-TestRoutersBasic-78938618-20928744 is ready for SSH connections 2025-04-23 13:34:46,924 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 13:34:46,924 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 6.253.153.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-04-23 13:34:46,924 - DEBUG - ping -s 56 -c 3 -W 1 6.253.153.195 2025-04-23 13:34:50,791 - DEBUG - PING 6.253.153.195 (6.253.153.195): 56 data bytes 64 bytes from 6.253.153.195: seq=0 ttl=62 time=5.512 ms 64 bytes from 6.253.153.195: seq=1 ttl=62 time=0.745 ms 64 bytes from 6.253.153.195: seq=2 ttl=62 time=0.843 ms --- 6.253.153.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.745/2.366/5.512 ms 2025-04-23 13:34:50,791 - INFO - Ping to IP 6.253.153.195 from VM ctest-TestRoutersBasic-78938618-91805884 passed 2025-04-23 13:34:50,791 - INFO - Deleting interface with subnet_id 2d5bc325-1634-4ccd-a1b8-cf74c2c49d99, port_id None from router 339204d8-e49f-429c-bbf1-d6579e87c303 2025-04-23 13:34:50,955 - INFO - Deleting VM ctest-TestRoutersBasic-78938618-20928744 2025-04-23 13:34:51,009 - INFO - Deleting VM ctest-TestRoutersBasic-78938618-91805884 2025-04-23 13:34:51,076 - INFO - Deleting VN ctest-ext_vn-07550633 2025-04-23 13:34:51,132 - DEBUG - VN c5cf55b1-d5ce-498a-8315-5248f10b01e1 still in use: Unable to complete operation on network c5cf55b1-d5ce-498a-8315-5248f10b01e1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c79dfa41-efa1-4338-a30a-b97375c89fd4'] 2025-04-23 13:34:51,132 - WARNING - Deleting VN ctest-ext_vn-07550633 failed..Will retry 2025-04-23 13:34:53,219 - DEBUG - Response for deleting network () 2025-04-23 13:34:53,220 - INFO - Deleting VN ctest-vn-01633607 2025-04-23 13:34:53,295 - DEBUG - Response for deleting network () 2025-04-23 13:34:53,549 - DEBUG - No XMPP flaps were noticed during the test 2025-04-23 13:34:53,549 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:28] 2025-04-23 13:34:53,550 - INFO - -------------------------------------------------------------------------------- 2025-04-23 13:34:54,151 - INFO - Deleted project: ctest-TestRoutersBasic-78938618, ID : b9e7ebc3-ca52-4d86-8d7f-0666dfd15aec