2024-08-21 18:29:19,659 - INFO - Domain Default found not creating 2024-08-21 18:29:19,828 - INFO - Project ctest-TestRoutersBasic-93343576 not found, creating it 2024-08-21 18:29:20,300 - INFO - Created Project:ctest-TestRoutersBasic-93343576, ID : 78e18730-8fd2-422d-81aa-5210d7080255 2024-08-21 18:29:21,926 - INFO - ================================================================================ 2024-08-21 18:29:21,926 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-21 18:29:21,926 - 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 2024-08-21 18:29:22,186 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.12': '0'}} with 2024-08-21 18:29:22,186 - INFO - Initial checks done. Running the testcase now 2024-08-21 18:29:22,187 - INFO - 2024-08-21 18:29:22,909 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-93343576 2024-08-21 18:29:23,004 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-93343576 2024-08-21 18:29:23,323 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-93343576', 'default']} 2024-08-21 18:29:23,623 - DEBUG - Response for create_network : {'network': {'id': 'cd5a408c-5a10-49c6-ba27-ab6a67b1fb38', 'name': 'ctest-vn-12435716', 'tenant_id': '78e187308fd2422d81aa5210d7080255', 'project_id': '78e187308fd2422d81aa5210d7080255', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-93343576', 'ctest-vn-12435716'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 18:29:23,855 - DEBUG - Response for create_subnet : {'subnet': {'id': '0554f032-6fd8-4552-9506-ceb768bb97e5', 'name': '', 'tenant_id': '78e187308fd2422d81aa5210d7080255', 'network_id': 'cd5a408c-5a10-49c6-ba27-ab6a67b1fb38', 'ip_version': 4, 'cidr': '23.146.8.64/26', 'allocation_pools': [{'start': '23.146.8.66', 'end': '23.146.8.126'}], 'gateway_ip': '23.146.8.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.146.8.66', 'tags': [], 'project_id': '78e187308fd2422d81aa5210d7080255'}} 2024-08-21 18:29:23,876 - INFO - Created VN ctest-vn-12435716 2024-08-21 18:29:23,928 - DEBUG - VN ctest-vn-12435716 UUID is cd5a408c-5a10-49c6-ba27-ab6a67b1fb38 2024-08-21 18:29:24,337 - DEBUG - Response for create_network : {'network': {'id': '34d06dcf-8c29-4d74-a905-eeb99875fc40', 'name': 'ctest-ext_vn-89626372', 'tenant_id': '78e187308fd2422d81aa5210d7080255', 'project_id': '78e187308fd2422d81aa5210d7080255', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-93343576', 'ctest-ext_vn-89626372'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 18:29:24,578 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e56ffcb7-2c80-407f-be4b-6365ea194d42', 'name': '', 'tenant_id': '78e187308fd2422d81aa5210d7080255', 'network_id': '34d06dcf-8c29-4d74-a905-eeb99875fc40', 'ip_version': 4, 'cidr': '112.99.109.64/26', 'allocation_pools': [{'start': '112.99.109.66', 'end': '112.99.109.126'}], 'gateway_ip': '112.99.109.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.99.109.66', 'tags': [], 'project_id': '78e187308fd2422d81aa5210d7080255'}} 2024-08-21 18:29:24,598 - INFO - Created VN ctest-ext_vn-89626372 2024-08-21 18:29:24,656 - DEBUG - VN ctest-ext_vn-89626372 UUID is 34d06dcf-8c29-4d74-a905-eeb99875fc40 2024-08-21 18:29:24,836 - DEBUG - Services list from nova: [, , ] 2024-08-21 18:29:25,928 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1696-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1696-1) 2024-08-21 18:29:27,120 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1696-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1696-1) 2024-08-21 18:29:27,216 - INFO - Setting gateway for router b8375d12-152d-4647-a009-f9b8ec2f78b8 to network 34d06dcf-8c29-4d74-a905-eeb99875fc40 2024-08-21 18:29:27,289 - INFO - Adding interface with subnet_id 0554f032-6fd8-4552-9506-ceb768bb97e5, port_id None to router b8375d12-152d-4647-a009-f9b8ec2f78b8 2024-08-21 18:29:27,746 - INFO - Waiting for VM ctest-TestRoutersBasic-93343576-52000203 to be up.. 2024-08-21 18:29:27,903 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 18:29:32,989 - DEBUG - VM is in ACTIVE state now 2024-08-21 18:29:32,989 - INFO - VM name : ctest-TestRoutersBasic-93343576-52000203 2024-08-21 18:29:33,070 - DEBUG - VM ctest-TestRoutersBasic-93343576-52000203 ID is 4d43cbda-1c67-4465-9ec8-7b6ac5205844 2024-08-21 18:29:33,089 - DEBUG - VM ctest-TestRoutersBasic-93343576-52000203 launched on Node cn-jenkins-deploy-platform-ansible-os-1696-1 2024-08-21 18:29:33,172 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/4d43cbda-1c67-4465-9ec8-7b6ac5205844 2024-08-21 18:29:33,469 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/4d43cbda-1c67-4465-9ec8-7b6ac5205844 2024-08-21 18:29:33,507 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/d2a80fa5-7efa-4ea4-9e43-2baa44dfad7f 2024-08-21 18:29:36,759 - 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 1010ms') 2024-08-21 18:29:36,759 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-93343576-52000203 failed! 2024-08-21 18:29:36,812 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-93343576:ctest-vn-12435716 is 23.146.8.65 and allocation pool is NOT set 2024-08-21 18:29:38,874 - 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=3.34 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.724 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.724/2.029/3.335/1.305 ms') 2024-08-21 18:29:38,874 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-93343576-52000203 passed 2024-08-21 18:29:39,024 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 18:29:39,024 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-93343576-52000203, IP 23.146.8.67, Port 22 2024-08-21 18:29:39,179 - DEBUG - VM ctest-TestRoutersBasic-93343576-52000203 is ready for SSH connections 2024-08-21 18:29:39,179 - INFO - Waiting for VM ctest-TestRoutersBasic-93343576-03935556 to be up.. 2024-08-21 18:29:39,282 - DEBUG - VM is in ACTIVE state now 2024-08-21 18:29:39,282 - INFO - VM name : ctest-TestRoutersBasic-93343576-03935556 2024-08-21 18:29:39,359 - DEBUG - VM ctest-TestRoutersBasic-93343576-03935556 ID is bd59ddf7-4861-43ba-8094-5d6fffddf7ed 2024-08-21 18:29:39,359 - DEBUG - VM ctest-TestRoutersBasic-93343576-03935556 launched on Node cn-jenkins-deploy-platform-ansible-os-1696-1 2024-08-21 18:29:39,441 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/bd59ddf7-4861-43ba-8094-5d6fffddf7ed 2024-08-21 18:29:39,455 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/3aeabe99-7a50-4261-bb0e-fa1f76b43185 2024-08-21 18:29:40,701 - 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.36 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.389 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.389/1.874/3.360/1.485 ms') 2024-08-21 18:29:40,702 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-93343576-03935556 passed 2024-08-21 18:29:40,856 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 18:29:40,856 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-93343576-03935556, IP 112.99.109.67, Port 22 2024-08-21 18:29:41,015 - DEBUG - VM ctest-TestRoutersBasic-93343576-03935556 is ready for SSH connections 2024-08-21 18:29:41,015 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 18:29:41,015 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.99.109.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2024-08-21 18:29:41,015 - DEBUG - ping -s 56 -c 3 -W 1 112.99.109.67 2024-08-21 18:29:44,714 - DEBUG - PING 112.99.109.67 (112.99.109.67): 56 data bytes 64 bytes from 112.99.109.67: seq=0 ttl=62 time=8.771 ms 64 bytes from 112.99.109.67: seq=1 ttl=62 time=1.048 ms 64 bytes from 112.99.109.67: seq=2 ttl=62 time=0.833 ms --- 112.99.109.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.833/3.550/8.771 ms 2024-08-21 18:29:44,714 - INFO - Ping to IP 112.99.109.67 from VM ctest-TestRoutersBasic-93343576-52000203 passed 2024-08-21 18:29:44,715 - INFO - Deleting interface with subnet_id 0554f032-6fd8-4552-9506-ceb768bb97e5, port_id None from router b8375d12-152d-4647-a009-f9b8ec2f78b8 2024-08-21 18:29:44,942 - INFO - Deleting VM ctest-TestRoutersBasic-93343576-03935556 2024-08-21 18:29:45,017 - INFO - Deleting VM ctest-TestRoutersBasic-93343576-52000203 2024-08-21 18:29:45,103 - INFO - Deleting VN ctest-ext_vn-89626372 2024-08-21 18:29:45,183 - DEBUG - VN 34d06dcf-8c29-4d74-a905-eeb99875fc40 still in use: Unable to complete operation on network 34d06dcf-8c29-4d74-a905-eeb99875fc40. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ea6536c6-c06f-4610-b95e-9d705e16caad'] 2024-08-21 18:29:45,183 - WARNING - Deleting VN ctest-ext_vn-89626372 failed..Will retry 2024-08-21 18:29:47,288 - DEBUG - Response for deleting network () 2024-08-21 18:29:47,288 - INFO - Deleting VN ctest-vn-12435716 2024-08-21 18:29:47,408 - DEBUG - Response for deleting network () 2024-08-21 18:29:47,661 - DEBUG - No XMPP flaps were noticed during the test 2024-08-21 18:29:47,661 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-08-21 18:29:47,661 - INFO - -------------------------------------------------------------------------------- 2024-08-21 18:29:48,361 - INFO - Deleted project: ctest-TestRoutersBasic-93343576, ID : 78e18730-8fd2-422d-81aa-5210d7080255