2025-03-28 18:17:17,027 - INFO - Domain Default found not creating 2025-03-28 18:17:17,198 - INFO - Project ctest-TestRoutersBasic-39158677 not found, creating it 2025-03-28 18:17:17,698 - INFO - Created Project:ctest-TestRoutersBasic-39158677, ID : 88fa0c7c-ead7-420d-b9e7-4c64f2606c9d 2025-03-28 18:17:19,204 - INFO - ================================================================================ 2025-03-28 18:17:19,205 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-28 18:17:19,205 - 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-03-28 18:17:19,473 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.5': '0'}} with 2025-03-28 18:17:19,473 - INFO - Initial checks done. Running the testcase now 2025-03-28 18:17:19,473 - INFO - 2025-03-28 18:17:20,221 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-39158677 2025-03-28 18:17:20,321 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-39158677 2025-03-28 18:17:20,665 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-39158677', 'default']} 2025-03-28 18:17:20,982 - DEBUG - Response for create_network : {'network': {'id': 'fa6a2752-3009-458a-bc03-0636b293240f', 'name': 'ctest-vn-61185651', 'tenant_id': '88fa0c7cead7420db9e74c64f2606c9d', 'project_id': '88fa0c7cead7420db9e74c64f2606c9d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-39158677', 'ctest-vn-61185651'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 18:17:21,218 - DEBUG - Response for create_subnet : {'subnet': {'id': '06b0d89b-ffa9-4a6f-9ec6-643ca43610e3', 'name': '', 'tenant_id': '88fa0c7cead7420db9e74c64f2606c9d', 'network_id': 'fa6a2752-3009-458a-bc03-0636b293240f', 'ip_version': 4, 'cidr': '91.60.169.64/26', 'allocation_pools': [{'start': '91.60.169.66', 'end': '91.60.169.126'}], 'gateway_ip': '91.60.169.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.60.169.66', 'tags': [], 'project_id': '88fa0c7cead7420db9e74c64f2606c9d'}} 2025-03-28 18:17:21,240 - INFO - Created VN ctest-vn-61185651 2025-03-28 18:17:21,293 - DEBUG - VN ctest-vn-61185651 UUID is fa6a2752-3009-458a-bc03-0636b293240f 2025-03-28 18:17:21,650 - DEBUG - Response for create_network : {'network': {'id': '137c1bad-4f2e-4489-9dbd-8a30131c76e6', 'name': 'ctest-ext_vn-05993189', 'tenant_id': '88fa0c7cead7420db9e74c64f2606c9d', 'project_id': '88fa0c7cead7420db9e74c64f2606c9d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-39158677', 'ctest-ext_vn-05993189'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 18:17:21,879 - DEBUG - Response for create_subnet : {'subnet': {'id': '39f8da11-a5e0-4eb0-b881-d0b5f29ad7ef', 'name': '', 'tenant_id': '88fa0c7cead7420db9e74c64f2606c9d', 'network_id': '137c1bad-4f2e-4489-9dbd-8a30131c76e6', 'ip_version': 4, 'cidr': '23.170.191.128/26', 'allocation_pools': [{'start': '23.170.191.130', 'end': '23.170.191.190'}], 'gateway_ip': '23.170.191.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.170.191.130', 'tags': [], 'project_id': '88fa0c7cead7420db9e74c64f2606c9d'}} 2025-03-28 18:17:21,903 - INFO - Created VN ctest-ext_vn-05993189 2025-03-28 18:17:21,957 - DEBUG - VN ctest-ext_vn-05993189 UUID is 137c1bad-4f2e-4489-9dbd-8a30131c76e6 2025-03-28 18:17:22,160 - DEBUG - Services list from nova: [, , ] 2025-03-28 18:17:23,251 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2994-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2994-1) 2025-03-28 18:17:24,430 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2994-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2994-1) 2025-03-28 18:17:24,521 - INFO - Setting gateway for router 61d7180a-843b-415d-9ee3-16e3773ed86f to network 137c1bad-4f2e-4489-9dbd-8a30131c76e6 2025-03-28 18:17:24,587 - INFO - Adding interface with subnet_id 06b0d89b-ffa9-4a6f-9ec6-643ca43610e3, port_id None to router 61d7180a-843b-415d-9ee3-16e3773ed86f 2025-03-28 18:17:24,986 - INFO - Waiting for VM ctest-TestRoutersBasic-39158677-65045502 to be up.. 2025-03-28 18:17:25,146 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-28 18:17:30,228 - DEBUG - VM is in ACTIVE state now 2025-03-28 18:17:30,228 - INFO - VM name : ctest-TestRoutersBasic-39158677-65045502 2025-03-28 18:17:30,324 - DEBUG - VM ctest-TestRoutersBasic-39158677-65045502 ID is 0c0407ac-376b-4956-ad31-7fcf22d1d2a6 2025-03-28 18:17:30,351 - DEBUG - VM ctest-TestRoutersBasic-39158677-65045502 launched on Node cn-jenkins-deploy-platform-ansible-os-2994-1 2025-03-28 18:17:30,441 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/0c0407ac-376b-4956-ad31-7fcf22d1d2a6 2025-03-28 18:17:30,745 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/0c0407ac-376b-4956-ad31-7fcf22d1d2a6 2025-03-28 18:17:30,783 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/c71cc1ea-633d-470a-a827-488d32b6b3e2 2025-03-28 18:17:34,079 - 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 1030ms') 2025-03-28 18:17:34,079 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-39158677-65045502 failed! 2025-03-28 18:17:34,138 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-39158677:ctest-vn-61185651 is 91.60.169.65 and allocation pool is NOT set 2025-03-28 18:17:36,205 - 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.51 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.625 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.625/2.569/4.513/1.944 ms') 2025-03-28 18:17:36,206 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-39158677-65045502 passed 2025-03-28 18:17:36,389 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 18:17:36,390 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-39158677-65045502, IP 91.60.169.67, Port 22 2025-03-28 18:17:36,560 - DEBUG - VM ctest-TestRoutersBasic-39158677-65045502 is ready for SSH connections 2025-03-28 18:17:36,560 - INFO - Waiting for VM ctest-TestRoutersBasic-39158677-02683786 to be up.. 2025-03-28 18:17:36,696 - DEBUG - VM is in ACTIVE state now 2025-03-28 18:17:36,696 - INFO - VM name : ctest-TestRoutersBasic-39158677-02683786 2025-03-28 18:17:36,785 - DEBUG - VM ctest-TestRoutersBasic-39158677-02683786 ID is 6ac92274-b783-4eec-bcf6-c7297270cdf9 2025-03-28 18:17:36,786 - DEBUG - VM ctest-TestRoutersBasic-39158677-02683786 launched on Node cn-jenkins-deploy-platform-ansible-os-2994-1 2025-03-28 18:17:36,878 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/6ac92274-b783-4eec-bcf6-c7297270cdf9 2025-03-28 18:17:36,888 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/2b52c434-a64a-4e24-963d-d96f9f8e6068 2025-03-28 18:17:38,146 - 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.95 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.465 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.465/1.708/2.952/1.243 ms') 2025-03-28 18:17:38,147 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-39158677-02683786 passed 2025-03-28 18:17:38,309 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 18:17:38,309 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-39158677-02683786, IP 23.170.191.131, Port 22 2025-03-28 18:17:38,476 - DEBUG - VM ctest-TestRoutersBasic-39158677-02683786 is ready for SSH connections 2025-03-28 18:17:38,476 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 18:17:38,477 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 23.170.191.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2025-03-28 18:17:38,477 - DEBUG - ping -s 56 -c 3 -W 1 23.170.191.131 2025-03-28 18:17:42,199 - DEBUG - PING 23.170.191.131 (23.170.191.131): 56 data bytes 64 bytes from 23.170.191.131: seq=0 ttl=62 time=7.203 ms 64 bytes from 23.170.191.131: seq=1 ttl=62 time=1.033 ms 64 bytes from 23.170.191.131: seq=2 ttl=62 time=1.210 ms --- 23.170.191.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.033/3.148/7.203 ms 2025-03-28 18:17:42,199 - INFO - Ping to IP 23.170.191.131 from VM ctest-TestRoutersBasic-39158677-65045502 passed 2025-03-28 18:17:42,200 - INFO - Deleting interface with subnet_id 06b0d89b-ffa9-4a6f-9ec6-643ca43610e3, port_id None from router 61d7180a-843b-415d-9ee3-16e3773ed86f 2025-03-28 18:17:42,444 - INFO - Deleting VM ctest-TestRoutersBasic-39158677-02683786 2025-03-28 18:17:42,524 - INFO - Deleting VM ctest-TestRoutersBasic-39158677-65045502 2025-03-28 18:17:42,622 - INFO - Deleting VN ctest-ext_vn-05993189 2025-03-28 18:17:42,724 - DEBUG - VN 137c1bad-4f2e-4489-9dbd-8a30131c76e6 still in use: Unable to complete operation on network 137c1bad-4f2e-4489-9dbd-8a30131c76e6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-33563d00-6d43-4ded-b491-d844a6186987'] 2025-03-28 18:17:42,725 - WARNING - Deleting VN ctest-ext_vn-05993189 failed..Will retry 2025-03-28 18:17:44,859 - DEBUG - Response for deleting network () 2025-03-28 18:17:44,859 - INFO - Deleting VN ctest-vn-61185651 2025-03-28 18:17:45,033 - DEBUG - Response for deleting network () 2025-03-28 18:17:45,292 - DEBUG - No XMPP flaps were noticed during the test 2025-03-28 18:17:45,292 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-03-28 18:17:45,292 - INFO - -------------------------------------------------------------------------------- 2025-03-28 18:17:46,014 - INFO - Deleted project: ctest-TestRoutersBasic-39158677, ID : 88fa0c7c-ead7-420d-b9e7-4c64f2606c9d