2025-04-14 12:41:06,489 - INFO - Domain Default found not creating 2025-04-14 12:41:06,663 - INFO - Project ctest-TestRoutersBasic-72224272 not found, creating it 2025-04-14 12:41:07,148 - INFO - Created Project:ctest-TestRoutersBasic-72224272, ID : 3448ef48-5d1f-41af-97cd-428e284b6291 2025-04-14 12:41:08,670 - INFO - ================================================================================ 2025-04-14 12:41:08,670 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-14 12:41:08,670 - 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-14 12:41:08,924 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-04-14 12:41:08,924 - INFO - Initial checks done. Running the testcase now 2025-04-14 12:41:08,924 - INFO - 2025-04-14 12:41:09,680 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-72224272 2025-04-14 12:41:09,782 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-72224272 2025-04-14 12:41:10,130 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-72224272', 'default']} 2025-04-14 12:41:10,501 - DEBUG - Response for create_network : {'network': {'id': '57891d39-f74e-458e-84a5-fae676471e62', 'name': 'ctest-vn-12554751', 'tenant_id': '3448ef485d1f41af97cd428e284b6291', 'project_id': '3448ef485d1f41af97cd428e284b6291', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-72224272', 'ctest-vn-12554751'], 'port_security_enabled': True, 'description': ''}} 2025-04-14 12:41:10,739 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e4c9737-09d0-4a5d-bbf0-4c9f855376ac', 'name': '', 'tenant_id': '3448ef485d1f41af97cd428e284b6291', 'network_id': '57891d39-f74e-458e-84a5-fae676471e62', 'ip_version': 4, 'cidr': '6.48.8.128/26', 'allocation_pools': [{'start': '6.48.8.130', 'end': '6.48.8.190'}], 'gateway_ip': '6.48.8.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.48.8.130', 'tags': [], 'project_id': '3448ef485d1f41af97cd428e284b6291'}} 2025-04-14 12:41:10,766 - INFO - Created VN ctest-vn-12554751 2025-04-14 12:41:10,826 - DEBUG - VN ctest-vn-12554751 UUID is 57891d39-f74e-458e-84a5-fae676471e62 2025-04-14 12:41:11,214 - DEBUG - Response for create_network : {'network': {'id': '2bc6a420-2fec-47e5-b35c-4844032229c4', 'name': 'ctest-ext_vn-57538155', 'tenant_id': '3448ef485d1f41af97cd428e284b6291', 'project_id': '3448ef485d1f41af97cd428e284b6291', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-72224272', 'ctest-ext_vn-57538155'], 'port_security_enabled': True, 'description': ''}} 2025-04-14 12:41:11,454 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa567336-954a-4e55-8e01-fd4d9ed78c93', 'name': '', 'tenant_id': '3448ef485d1f41af97cd428e284b6291', 'network_id': '2bc6a420-2fec-47e5-b35c-4844032229c4', 'ip_version': 4, 'cidr': '65.36.177.192/26', 'allocation_pools': [{'start': '65.36.177.194', 'end': '65.36.177.254'}], 'gateway_ip': '65.36.177.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.36.177.194', 'tags': [], 'project_id': '3448ef485d1f41af97cd428e284b6291'}} 2025-04-14 12:41:11,475 - INFO - Created VN ctest-ext_vn-57538155 2025-04-14 12:41:11,534 - DEBUG - VN ctest-ext_vn-57538155 UUID is 2bc6a420-2fec-47e5-b35c-4844032229c4 2025-04-14 12:41:11,713 - DEBUG - Services list from nova: [, , ] 2025-04-14 12:41:12,819 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3095-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3095-1) 2025-04-14 12:41:14,095 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3095-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3095-1) 2025-04-14 12:41:14,190 - INFO - Setting gateway for router 7a6cff4f-72ea-43f0-a6f7-782e817772d2 to network 2bc6a420-2fec-47e5-b35c-4844032229c4 2025-04-14 12:41:14,261 - INFO - Adding interface with subnet_id 7e4c9737-09d0-4a5d-bbf0-4c9f855376ac, port_id None to router 7a6cff4f-72ea-43f0-a6f7-782e817772d2 2025-04-14 12:41:14,664 - INFO - Waiting for VM ctest-TestRoutersBasic-72224272-55271451 to be up.. 2025-04-14 12:41:14,858 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-14 12:41:19,961 - DEBUG - VM is in ACTIVE state now 2025-04-14 12:41:19,961 - INFO - VM name : ctest-TestRoutersBasic-72224272-55271451 2025-04-14 12:41:20,049 - DEBUG - VM ctest-TestRoutersBasic-72224272-55271451 ID is f42aefae-8235-4f09-bc0f-b4dfbfa3ef1f 2025-04-14 12:41:20,073 - DEBUG - VM ctest-TestRoutersBasic-72224272-55271451 launched on Node cn-jenkins-deploy-platform-ansible-os-3095-1 2025-04-14 12:41:20,168 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/f42aefae-8235-4f09-bc0f-b4dfbfa3ef1f 2025-04-14 12:41:20,471 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/f42aefae-8235-4f09-bc0f-b4dfbfa3ef1f 2025-04-14 12:41:20,505 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/740b67c2-b86e-4b58-bd77-18cb43e9dbf1 2025-04-14 12:41:23,778 - 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 1026ms') 2025-04-14 12:41:23,778 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-72224272-55271451 failed! 2025-04-14 12:41:23,834 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-72224272:ctest-vn-12554751 is 6.48.8.129 and allocation pool is NOT set 2025-04-14 12:41:25,905 - 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=5.97 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.44 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.435/4.201/5.968/1.766 ms') 2025-04-14 12:41:25,905 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-72224272-55271451 passed 2025-04-14 12:41:26,062 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 12:41:26,062 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-72224272-55271451, IP 6.48.8.131, Port 22 2025-04-14 12:41:26,232 - DEBUG - VM ctest-TestRoutersBasic-72224272-55271451 is ready for SSH connections 2025-04-14 12:41:26,232 - INFO - Waiting for VM ctest-TestRoutersBasic-72224272-17332302 to be up.. 2025-04-14 12:41:26,325 - DEBUG - VM is in ACTIVE state now 2025-04-14 12:41:26,325 - INFO - VM name : ctest-TestRoutersBasic-72224272-17332302 2025-04-14 12:41:26,417 - DEBUG - VM ctest-TestRoutersBasic-72224272-17332302 ID is 7cf24ad5-47d4-4d3b-b8e5-372ed0fcea27 2025-04-14 12:41:26,417 - DEBUG - VM ctest-TestRoutersBasic-72224272-17332302 launched on Node cn-jenkins-deploy-platform-ansible-os-3095-1 2025-04-14 12:41:26,512 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/7cf24ad5-47d4-4d3b-b8e5-372ed0fcea27 2025-04-14 12:41:26,524 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/dfa1505d-4372-46ed-a2bf-0000c4ba4e69 2025-04-14 12:41:27,783 - 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=3.33 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.685 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.685/2.009/3.333/1.324 ms') 2025-04-14 12:41:27,783 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-72224272-17332302 passed 2025-04-14 12:41:27,954 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 12:41:27,954 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-72224272-17332302, IP 65.36.177.195, Port 22 2025-04-14 12:41:28,121 - DEBUG - VM ctest-TestRoutersBasic-72224272-17332302 is ready for SSH connections 2025-04-14 12:41:28,121 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 12:41:28,121 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 65.36.177.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-04-14 12:41:28,121 - DEBUG - ping -s 56 -c 3 -W 1 65.36.177.195 2025-04-14 12:41:32,240 - DEBUG - PING 65.36.177.195 (65.36.177.195): 56 data bytes 64 bytes from 65.36.177.195: seq=0 ttl=62 time=6.940 ms 64 bytes from 65.36.177.195: seq=1 ttl=62 time=1.028 ms 64 bytes from 65.36.177.195: seq=2 ttl=62 time=1.091 ms --- 65.36.177.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.028/3.019/6.940 ms 2025-04-14 12:41:32,241 - INFO - Ping to IP 65.36.177.195 from VM ctest-TestRoutersBasic-72224272-55271451 passed 2025-04-14 12:41:32,241 - INFO - Deleting interface with subnet_id 7e4c9737-09d0-4a5d-bbf0-4c9f855376ac, port_id None from router 7a6cff4f-72ea-43f0-a6f7-782e817772d2 2025-04-14 12:41:32,460 - INFO - Deleting VM ctest-TestRoutersBasic-72224272-17332302 2025-04-14 12:41:32,534 - INFO - Deleting VM ctest-TestRoutersBasic-72224272-55271451 2025-04-14 12:41:32,640 - INFO - Deleting VN ctest-ext_vn-57538155 2025-04-14 12:41:32,727 - DEBUG - VN 2bc6a420-2fec-47e5-b35c-4844032229c4 still in use: Unable to complete operation on network 2bc6a420-2fec-47e5-b35c-4844032229c4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4c9b6fc7-df64-4a56-a97f-ba70a39ac8e2'] 2025-04-14 12:41:32,728 - WARNING - Deleting VN ctest-ext_vn-57538155 failed..Will retry 2025-04-14 12:41:34,848 - DEBUG - Response for deleting network () 2025-04-14 12:41:34,848 - INFO - Deleting VN ctest-vn-12554751 2025-04-14 12:41:34,972 - DEBUG - Response for deleting network () 2025-04-14 12:41:35,229 - DEBUG - No XMPP flaps were noticed during the test
2025-04-14 12:41:35,229 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27]
2025-04-14 12:41:35,229 - INFO - -------------------------------------------------------------------------------- 2025-04-14 12:41:35,929 - INFO - Deleted project: ctest-TestRoutersBasic-72224272, ID : 3448ef48-5d1f-41af-97cd-428e284b6291