2025-06-04 12:01:54,300 - INFO - Domain Default found not creating 2025-06-04 12:01:54,458 - INFO - Project ctest-TestRoutersBasic-93338622 not found, creating it 2025-06-04 12:01:54,945 - INFO - Created Project:ctest-TestRoutersBasic-93338622, ID : 3523cd1f-16cc-4c85-8c1b-c4cc2d861d70 2025-06-04 12:01:56,581 - INFO - ================================================================================ 2025-06-04 12:01:56,581 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-04 12:01:56,581 - 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-06-04 12:01:56,844 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-06-04 12:01:56,844 - INFO - Initial checks done. Running the testcase now 2025-06-04 12:01:56,845 - INFO - 2025-06-04 12:01:57,664 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-93338622 2025-06-04 12:01:57,761 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-93338622 2025-06-04 12:01:58,094 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-93338622', 'default']} 2025-06-04 12:01:58,410 - DEBUG - Response for create_network : {'network': {'id': '88841b0f-daf7-4ddd-98bf-f05777ced57a', 'name': 'ctest-vn-66872521', 'tenant_id': '3523cd1f16cc4c858c1bc4cc2d861d70', 'project_id': '3523cd1f16cc4c858c1bc4cc2d861d70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-93338622', 'ctest-vn-66872521'], 'port_security_enabled': True, 'description': ''}} 2025-06-04 12:01:58,601 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af6d92d0-0e9a-4d36-a6ab-fb8c429cb8ee', 'name': '', 'tenant_id': '3523cd1f16cc4c858c1bc4cc2d861d70', 'network_id': '88841b0f-daf7-4ddd-98bf-f05777ced57a', 'ip_version': 4, 'cidr': '185.88.239.64/26', 'allocation_pools': [{'start': '185.88.239.66', 'end': '185.88.239.126'}], 'gateway_ip': '185.88.239.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.88.239.66', 'tags': [], 'project_id': '3523cd1f16cc4c858c1bc4cc2d861d70'}} 2025-06-04 12:01:58,622 - INFO - Created VN ctest-vn-66872521 2025-06-04 12:01:58,677 - DEBUG - VN ctest-vn-66872521 UUID is 88841b0f-daf7-4ddd-98bf-f05777ced57a 2025-06-04 12:01:59,025 - DEBUG - Response for create_network : {'network': {'id': 'af7ae419-eb49-4956-b77d-f7bb58865439', 'name': 'ctest-ext_vn-95423136', 'tenant_id': '3523cd1f16cc4c858c1bc4cc2d861d70', 'project_id': '3523cd1f16cc4c858c1bc4cc2d861d70', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-93338622', 'ctest-ext_vn-95423136'], 'port_security_enabled': True, 'description': ''}} 2025-06-04 12:01:59,225 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f474f1aa-b466-4dfa-8602-ccdd3101df5e', 'name': '', 'tenant_id': '3523cd1f16cc4c858c1bc4cc2d861d70', 'network_id': 'af7ae419-eb49-4956-b77d-f7bb58865439', 'ip_version': 4, 'cidr': '95.12.121.64/26', 'allocation_pools': [{'start': '95.12.121.66', 'end': '95.12.121.126'}], 'gateway_ip': '95.12.121.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.12.121.66', 'tags': [], 'project_id': '3523cd1f16cc4c858c1bc4cc2d861d70'}} 2025-06-04 12:01:59,245 - INFO - Created VN ctest-ext_vn-95423136 2025-06-04 12:01:59,301 - DEBUG - VN ctest-ext_vn-95423136 UUID is af7ae419-eb49-4956-b77d-f7bb58865439 2025-06-04 12:01:59,482 - DEBUG - Services list from nova: [, , ] 2025-06-04 12:02:00,653 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3398-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3398-1) 2025-06-04 12:02:02,026 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3398-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3398-1) 2025-06-04 12:02:02,135 - INFO - Setting gateway for router 8d6c852a-09c9-4dfa-95ee-e80230053220 to network af7ae419-eb49-4956-b77d-f7bb58865439 2025-06-04 12:02:02,243 - INFO - Adding interface with subnet_id af6d92d0-0e9a-4d36-a6ab-fb8c429cb8ee, port_id None to router 8d6c852a-09c9-4dfa-95ee-e80230053220 2025-06-04 12:02:02,833 - INFO - Waiting for VM ctest-TestRoutersBasic-93338622-36517241 to be up.. 2025-06-04 12:02:03,018 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-04 12:02:08,109 - DEBUG - VM is in ACTIVE state now 2025-06-04 12:02:08,109 - INFO - VM name : ctest-TestRoutersBasic-93338622-36517241 2025-06-04 12:02:08,194 - DEBUG - VM ctest-TestRoutersBasic-93338622-36517241 ID is 151c82c5-8183-476a-a10a-03c6a3db7eaa 2025-06-04 12:02:08,216 - DEBUG - VM ctest-TestRoutersBasic-93338622-36517241 launched on Node cn-jenkins-deploy-platform-ansible-os-3398-1 2025-06-04 12:02:08,316 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/151c82c5-8183-476a-a10a-03c6a3db7eaa 2025-06-04 12:02:08,656 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/151c82c5-8183-476a-a10a-03c6a3db7eaa 2025-06-04 12:02:08,696 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/5d70f6a0-d432-4fef-8d2d-0b5750d453cd 2025-06-04 12:02:11,975 - 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 1005ms') 2025-06-04 12:02:11,975 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-93338622-36517241 failed! 2025-06-04 12:02:12,033 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-93338622:ctest-vn-66872521 is 185.88.239.65 and allocation pool is NOT set 2025-06-04 12:02:14,094 - 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.70 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.25 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 = 1.246/2.971/4.697/1.725 ms') 2025-06-04 12:02:14,095 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-93338622-36517241 passed 2025-06-04 12:02:14,253 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-04 12:02:14,253 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-93338622-36517241, IP 185.88.239.67, Port 22 2025-06-04 12:02:14,320 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-06-04 12:02:14,406 - DEBUG - VM ctest-TestRoutersBasic-93338622-36517241 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-04 12:02:19,407 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-04 12:02:19,407 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-93338622-36517241, IP 185.88.239.67, Port 22 2025-06-04 12:02:19,584 - DEBUG - VM ctest-TestRoutersBasic-93338622-36517241 is ready for SSH connections 2025-06-04 12:02:19,584 - INFO - Waiting for VM ctest-TestRoutersBasic-93338622-16524029 to be up.. 2025-06-04 12:02:19,672 - DEBUG - VM is in ACTIVE state now 2025-06-04 12:02:19,672 - INFO - VM name : ctest-TestRoutersBasic-93338622-16524029 2025-06-04 12:02:19,765 - DEBUG - VM ctest-TestRoutersBasic-93338622-16524029 ID is 1b200c8b-91f2-41d1-8b51-b2bc8c014697 2025-06-04 12:02:19,766 - DEBUG - VM ctest-TestRoutersBasic-93338622-16524029 launched on Node cn-jenkins-deploy-platform-ansible-os-3398-1 2025-06-04 12:02:19,843 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/1b200c8b-91f2-41d1-8b51-b2bc8c014697 2025-06-04 12:02:19,855 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/9203563b-c0c3-46be-8a23-831aefe9e2ef 2025-06-04 12:02:21,099 - 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.96 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.428 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.428/1.696/2.964/1.268 ms') 2025-06-04 12:02:21,099 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-93338622-16524029 passed 2025-06-04 12:02:21,253 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-04 12:02:21,253 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-93338622-16524029, IP 95.12.121.67, Port 22 2025-06-04 12:02:21,409 - DEBUG - VM ctest-TestRoutersBasic-93338622-16524029 is ready for SSH connections 2025-06-04 12:02:21,410 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-04 12:02:21,410 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 95.12.121.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-04 12:02:21,410 - DEBUG - ping -s 56 -c 3 -W 1 95.12.121.67 2025-06-04 12:02:25,133 - DEBUG - PING 95.12.121.67 (95.12.121.67): 56 data bytes 64 bytes from 95.12.121.67: seq=0 ttl=62 time=8.161 ms 64 bytes from 95.12.121.67: seq=1 ttl=62 time=0.862 ms 64 bytes from 95.12.121.67: seq=2 ttl=62 time=1.134 ms --- 95.12.121.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.862/3.385/8.161 ms 2025-06-04 12:02:25,133 - INFO - Ping to IP 95.12.121.67 from VM ctest-TestRoutersBasic-93338622-36517241 passed 2025-06-04 12:02:25,133 - INFO - Deleting interface with subnet_id af6d92d0-0e9a-4d36-a6ab-fb8c429cb8ee, port_id None from router 8d6c852a-09c9-4dfa-95ee-e80230053220 2025-06-04 12:02:25,360 - INFO - Deleting VM ctest-TestRoutersBasic-93338622-16524029 2025-06-04 12:02:25,437 - INFO - Deleting VM ctest-TestRoutersBasic-93338622-36517241 2025-06-04 12:02:25,541 - INFO - Deleting VN ctest-ext_vn-95423136 2025-06-04 12:02:25,617 - DEBUG - VN af7ae419-eb49-4956-b77d-f7bb58865439 still in use: Unable to complete operation on network af7ae419-eb49-4956-b77d-f7bb58865439. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-833ceb41-cf77-4e25-afaf-1eb7befa50ec'] 2025-06-04 12:02:25,617 - WARNING - Deleting VN ctest-ext_vn-95423136 failed..Will retry 2025-06-04 12:02:27,737 - DEBUG - Response for deleting network () 2025-06-04 12:02:27,737 - INFO - Deleting VN ctest-vn-66872521 2025-06-04 12:02:27,873 - DEBUG - Response for deleting network () 2025-06-04 12:02:28,132 - DEBUG - No XMPP flaps were noticed during the test
2025-06-04 12:02:28,132 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2025-06-04 12:02:28,132 - INFO - -------------------------------------------------------------------------------- 2025-06-04 12:02:28,897 - INFO - Deleted project: ctest-TestRoutersBasic-93338622, ID : 3523cd1f-16cc-4c85-8c1b-c4cc2d861d70