2024-11-08 18:03:21,277 - INFO - Domain Default found not creating 2024-11-08 18:03:21,473 - INFO - Project ctest-TestRoutersBasic-98911041 not found, creating it 2024-11-08 18:03:22,012 - INFO - Created Project:ctest-TestRoutersBasic-98911041, ID : 1fc6bdfc-01b2-4600-8b54-d2ecf056ef21 2024-11-08 18:03:23,623 - INFO - ================================================================================ 2024-11-08 18:03:23,623 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-08 18:03:23,623 - 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-11-08 18:03:23,887 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.6': '0'}} with 2024-11-08 18:03:23,887 - INFO - Initial checks done. Running the testcase now 2024-11-08 18:03:23,888 - INFO - 2024-11-08 18:03:24,684 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-98911041 2024-11-08 18:03:24,788 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-98911041 2024-11-08 18:03:25,140 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-98911041', 'default']} 2024-11-08 18:03:25,476 - DEBUG - Response for create_network : {'network': {'id': '84ce09e5-4861-40e5-bf60-1795cfff485f', 'name': 'ctest-vn-44037921', 'tenant_id': '1fc6bdfc01b246008b54d2ecf056ef21', 'project_id': '1fc6bdfc01b246008b54d2ecf056ef21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-98911041', 'ctest-vn-44037921'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 18:03:25,650 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8a162c2-fae4-4483-99fd-2fa713c7d348', 'name': '', 'tenant_id': '1fc6bdfc01b246008b54d2ecf056ef21', 'network_id': '84ce09e5-4861-40e5-bf60-1795cfff485f', 'ip_version': 4, 'cidr': '48.159.108.128/26', 'allocation_pools': [{'start': '48.159.108.130', 'end': '48.159.108.190'}], 'gateway_ip': '48.159.108.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.159.108.130', 'tags': [], 'project_id': '1fc6bdfc01b246008b54d2ecf056ef21'}} 2024-11-08 18:03:25,671 - INFO - Created VN ctest-vn-44037921 2024-11-08 18:03:25,728 - DEBUG - VN ctest-vn-44037921 UUID is 84ce09e5-4861-40e5-bf60-1795cfff485f 2024-11-08 18:03:26,095 - DEBUG - Response for create_network : {'network': {'id': 'f1fb2b24-4169-469b-b233-196908094c13', 'name': 'ctest-ext_vn-09071496', 'tenant_id': '1fc6bdfc01b246008b54d2ecf056ef21', 'project_id': '1fc6bdfc01b246008b54d2ecf056ef21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-98911041', 'ctest-ext_vn-09071496'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 18:03:26,303 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f9b290ba-17f9-4ccc-b249-1ebda7b18b41', 'name': '', 'tenant_id': '1fc6bdfc01b246008b54d2ecf056ef21', 'network_id': 'f1fb2b24-4169-469b-b233-196908094c13', 'ip_version': 4, 'cidr': '34.210.99.128/26', 'allocation_pools': [{'start': '34.210.99.130', 'end': '34.210.99.190'}], 'gateway_ip': '34.210.99.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.210.99.130', 'tags': [], 'project_id': '1fc6bdfc01b246008b54d2ecf056ef21'}} 2024-11-08 18:03:26,327 - INFO - Created VN ctest-ext_vn-09071496 2024-11-08 18:03:26,384 - DEBUG - VN ctest-ext_vn-09071496 UUID is f1fb2b24-4169-469b-b233-196908094c13 2024-11-08 18:03:26,582 - DEBUG - Services list from nova: [, , ] 2024-11-08 18:03:27,746 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2238-30), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2238-30) 2024-11-08 18:03:29,081 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2238-30), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2238-30) 2024-11-08 18:03:29,166 - INFO - Setting gateway for router 0413f27a-8149-4d03-a5bd-af4fa5598136 to network f1fb2b24-4169-469b-b233-196908094c13 2024-11-08 18:03:29,247 - INFO - Adding interface with subnet_id f8a162c2-fae4-4483-99fd-2fa713c7d348, port_id None to router 0413f27a-8149-4d03-a5bd-af4fa5598136 2024-11-08 18:03:29,733 - INFO - Waiting for VM ctest-TestRoutersBasic-98911041-99357343 to be up.. 2024-11-08 18:03:29,971 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-08 18:03:35,095 - DEBUG - VM is in ACTIVE state now 2024-11-08 18:03:35,095 - INFO - VM name : ctest-TestRoutersBasic-98911041-99357343 2024-11-08 18:03:35,212 - DEBUG - VM ctest-TestRoutersBasic-98911041-99357343 ID is 0cbdd036-0cf6-4aa2-850b-928396d223c3 2024-11-08 18:03:35,232 - DEBUG - VM ctest-TestRoutersBasic-98911041-99357343 launched on Node cn-jenkins-deploy-platform-ansible-os-2238-30 2024-11-08 18:03:35,340 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/0cbdd036-0cf6-4aa2-850b-928396d223c3 2024-11-08 18:03:35,669 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/0cbdd036-0cf6-4aa2-850b-928396d223c3 2024-11-08 18:03:35,711 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/a9a16367-a8a5-4ea1-980d-d2abe621e8be 2024-11-08 18:03:39,011 - 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 1025ms') 2024-11-08 18:03:39,011 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-98911041-99357343 failed! 2024-11-08 18:03:39,073 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-98911041:ctest-vn-44037921 is 48.159.108.129 and allocation pool is NOT set 2024-11-08 18:03:41,138 - 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.76 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.462 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.462/2.109/3.757/1.647 ms') 2024-11-08 18:03:41,139 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-98911041-99357343 passed 2024-11-08 18:03:41,296 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 18:03:41,296 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-98911041-99357343, IP 48.159.108.131, Port 22 2024-11-08 18:03:41,470 - DEBUG - VM ctest-TestRoutersBasic-98911041-99357343 is ready for SSH connections 2024-11-08 18:03:41,470 - INFO - Waiting for VM ctest-TestRoutersBasic-98911041-69076091 to be up.. 2024-11-08 18:03:41,553 - DEBUG - VM is in ACTIVE state now 2024-11-08 18:03:41,554 - INFO - VM name : ctest-TestRoutersBasic-98911041-69076091 2024-11-08 18:03:41,636 - DEBUG - VM ctest-TestRoutersBasic-98911041-69076091 ID is ea51428f-702b-46ee-90e5-e2dac8a60580 2024-11-08 18:03:41,636 - DEBUG - VM ctest-TestRoutersBasic-98911041-69076091 launched on Node cn-jenkins-deploy-platform-ansible-os-2238-30 2024-11-08 18:03:41,726 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/ea51428f-702b-46ee-90e5-e2dac8a60580 2024-11-08 18:03:41,737 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/3948df7d-fe72-4102-af68-af8b69bab933 2024-11-08 18:03:42,994 - 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.81 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.567 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.567/1.688/2.809/1.121 ms') 2024-11-08 18:03:42,994 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-98911041-69076091 passed 2024-11-08 18:03:43,160 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 18:03:43,161 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-98911041-69076091, IP 34.210.99.131, Port 22 2024-11-08 18:03:43,316 - DEBUG - VM ctest-TestRoutersBasic-98911041-69076091 is ready for SSH connections 2024-11-08 18:03:43,316 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 18:03:43,316 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 34.210.99.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-11-08 18:03:43,316 - DEBUG - ping -s 56 -c 3 -W 1 34.210.99.131 2024-11-08 18:03:47,018 - DEBUG - PING 34.210.99.131 (34.210.99.131): 56 data bytes 64 bytes from 34.210.99.131: seq=0 ttl=62 time=7.783 ms 64 bytes from 34.210.99.131: seq=1 ttl=62 time=0.871 ms 64 bytes from 34.210.99.131: seq=2 ttl=62 time=0.857 ms --- 34.210.99.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.857/3.170/7.783 ms 2024-11-08 18:03:47,018 - INFO - Ping to IP 34.210.99.131 from VM ctest-TestRoutersBasic-98911041-99357343 passed 2024-11-08 18:03:47,018 - INFO - Deleting interface with subnet_id f8a162c2-fae4-4483-99fd-2fa713c7d348, port_id None from router 0413f27a-8149-4d03-a5bd-af4fa5598136 2024-11-08 18:03:47,235 - INFO - Deleting VM ctest-TestRoutersBasic-98911041-69076091 2024-11-08 18:03:47,320 - INFO - Deleting VM ctest-TestRoutersBasic-98911041-99357343 2024-11-08 18:03:47,410 - INFO - Deleting VN ctest-ext_vn-09071496 2024-11-08 18:03:47,501 - DEBUG - VN f1fb2b24-4169-469b-b233-196908094c13 still in use: Unable to complete operation on network f1fb2b24-4169-469b-b233-196908094c13. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2d901ad6-b750-4d28-aeb3-19720f05596a'] 2024-11-08 18:03:47,501 - WARNING - Deleting VN ctest-ext_vn-09071496 failed..Will retry 2024-11-08 18:03:49,618 - DEBUG - Response for deleting network () 2024-11-08 18:03:49,618 - INFO - Deleting VN ctest-vn-44037921 2024-11-08 18:03:49,730 - DEBUG - Response for deleting network () 2024-11-08 18:03:49,986 - DEBUG - No XMPP flaps were noticed during the test 2024-11-08 18:03:49,986 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-11-08 18:03:49,986 - INFO - -------------------------------------------------------------------------------- 2024-11-08 18:03:50,722 - INFO - Deleted project: ctest-TestRoutersBasic-98911041, ID : 1fc6bdfc-01b2-4600-8b54-d2ecf056ef21