2024-11-03 22:43:16,644 - INFO - Domain Default found not creating 2024-11-03 22:43:16,825 - INFO - Project ctest-TestRoutersBasic-68662443 not found, creating it 2024-11-03 22:43:17,334 - INFO - Created Project:ctest-TestRoutersBasic-68662443, ID : 233c11bd-1aa2-4651-8555-bb20c1ebb08a 2024-11-03 22:43:18,938 - INFO - ================================================================================ 2024-11-03 22:43:18,939 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-03 22:43:18,939 - 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-03 22:43:19,209 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.23': '0'}} with 2024-11-03 22:43:19,209 - INFO - Initial checks done. Running the testcase now 2024-11-03 22:43:19,209 - INFO - 2024-11-03 22:43:19,968 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-68662443 2024-11-03 22:43:20,071 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-68662443 2024-11-03 22:43:20,410 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68662443', 'default']} 2024-11-03 22:43:20,755 - DEBUG - Response for create_network : {'network': {'id': 'ec5017d2-4d90-4fe7-89bb-1969150edd9c', 'name': 'ctest-vn-82645052', 'tenant_id': '233c11bd1aa246518555bb20c1ebb08a', 'project_id': '233c11bd1aa246518555bb20c1ebb08a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68662443', 'ctest-vn-82645052'], 'port_security_enabled': True, 'description': ''}} 2024-11-03 22:43:20,977 - DEBUG - Response for create_subnet : {'subnet': {'id': '64044afe-b960-486b-8dd7-9f5897f205f6', 'name': '', 'tenant_id': '233c11bd1aa246518555bb20c1ebb08a', 'network_id': 'ec5017d2-4d90-4fe7-89bb-1969150edd9c', 'ip_version': 4, 'cidr': '174.155.114.192/26', 'allocation_pools': [{'start': '174.155.114.194', 'end': '174.155.114.254'}], 'gateway_ip': '174.155.114.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.155.114.194', 'tags': [], 'project_id': '233c11bd1aa246518555bb20c1ebb08a'}} 2024-11-03 22:43:21,006 - INFO - Created VN ctest-vn-82645052 2024-11-03 22:43:21,075 - DEBUG - VN ctest-vn-82645052 UUID is ec5017d2-4d90-4fe7-89bb-1969150edd9c 2024-11-03 22:43:21,465 - DEBUG - Response for create_network : {'network': {'id': 'e51528b7-4647-458c-9197-0419744c975a', 'name': 'ctest-ext_vn-33155825', 'tenant_id': '233c11bd1aa246518555bb20c1ebb08a', 'project_id': '233c11bd1aa246518555bb20c1ebb08a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68662443', 'ctest-ext_vn-33155825'], 'port_security_enabled': True, 'description': ''}} 2024-11-03 22:43:21,701 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f7645fd-af12-4e72-951c-d438cfa5b6df', 'name': '', 'tenant_id': '233c11bd1aa246518555bb20c1ebb08a', 'network_id': 'e51528b7-4647-458c-9197-0419744c975a', 'ip_version': 4, 'cidr': '19.175.230.0/26', 'allocation_pools': [{'start': '19.175.230.2', 'end': '19.175.230.62'}], 'gateway_ip': '19.175.230.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.175.230.2', 'tags': [], 'project_id': '233c11bd1aa246518555bb20c1ebb08a'}} 2024-11-03 22:43:21,722 - INFO - Created VN ctest-ext_vn-33155825 2024-11-03 22:43:21,779 - DEBUG - VN ctest-ext_vn-33155825 UUID is e51528b7-4647-458c-9197-0419744c975a 2024-11-03 22:43:21,970 - DEBUG - Services list from nova: [, , ] 2024-11-03 22:43:23,092 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2192-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2192-1) 2024-11-03 22:43:24,354 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2192-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2192-1) 2024-11-03 22:43:24,453 - INFO - Setting gateway for router 79fe4013-9f5f-401e-bfb5-372354c4d52a to network e51528b7-4647-458c-9197-0419744c975a 2024-11-03 22:43:24,578 - INFO - Adding interface with subnet_id 64044afe-b960-486b-8dd7-9f5897f205f6, port_id None to router 79fe4013-9f5f-401e-bfb5-372354c4d52a 2024-11-03 22:43:25,109 - INFO - Waiting for VM ctest-TestRoutersBasic-68662443-76753242 to be up.. 2024-11-03 22:43:25,292 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-03 22:43:30,383 - DEBUG - VM is in ACTIVE state now 2024-11-03 22:43:30,383 - INFO - VM name : ctest-TestRoutersBasic-68662443-76753242 2024-11-03 22:43:30,469 - DEBUG - VM ctest-TestRoutersBasic-68662443-76753242 ID is 319cede7-e76d-4e6b-a71c-7c6f4053208a 2024-11-03 22:43:30,489 - DEBUG - VM ctest-TestRoutersBasic-68662443-76753242 launched on Node cn-jenkins-deploy-platform-ansible-os-2192-1 2024-11-03 22:43:30,673 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/319cede7-e76d-4e6b-a71c-7c6f4053208a 2024-11-03 22:43:31,072 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/319cede7-e76d-4e6b-a71c-7c6f4053208a 2024-11-03 22:43:31,136 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/7ff792bc-1c1f-4bbf-9aa7-ddb1d4848326 2024-11-03 22:43:34,463 - 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 1031ms') 2024-11-03 22:43:34,464 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68662443-76753242 failed! 2024-11-03 22:43:34,526 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-68662443:ctest-vn-82645052 is 174.155.114.193 and allocation pool is NOT set 2024-11-03 22:43:36,585 - 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.14 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.14 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 1.139/2.138/3.138/0.999 ms') 2024-11-03 22:43:36,585 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68662443-76753242 passed 2024-11-03 22:43:36,750 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 22:43:36,751 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68662443-76753242, IP 174.155.114.195, Port 22 2024-11-03 22:43:36,925 - DEBUG - VM ctest-TestRoutersBasic-68662443-76753242 is ready for SSH connections 2024-11-03 22:43:36,925 - INFO - Waiting for VM ctest-TestRoutersBasic-68662443-91820191 to be up.. 2024-11-03 22:43:37,025 - DEBUG - VM is in ACTIVE state now 2024-11-03 22:43:37,025 - INFO - VM name : ctest-TestRoutersBasic-68662443-91820191 2024-11-03 22:43:37,120 - DEBUG - VM ctest-TestRoutersBasic-68662443-91820191 ID is bc5ad520-1db3-4f6e-abe8-1b583b3936c8 2024-11-03 22:43:37,120 - DEBUG - VM ctest-TestRoutersBasic-68662443-91820191 launched on Node cn-jenkins-deploy-platform-ansible-os-2192-1 2024-11-03 22:43:37,212 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/bc5ad520-1db3-4f6e-abe8-1b583b3936c8 2024-11-03 22:43:37,229 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/35103e1f-1ada-4e12-ad98-cd112835cae8 2024-11-03 22:43:38,508 - 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.14 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.498 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.498/1.816/3.135/1.318 ms') 2024-11-03 22:43:38,508 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-68662443-91820191 passed 2024-11-03 22:43:38,679 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 22:43:38,679 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68662443-91820191, IP 19.175.230.3, Port 22 2024-11-03 22:43:38,845 - DEBUG - VM ctest-TestRoutersBasic-68662443-91820191 is ready for SSH connections 2024-11-03 22:43:38,845 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 22:43:38,845 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 19.175.230.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-11-03 22:43:38,845 - DEBUG - ping -s 56 -c 3 -W 1 19.175.230.3 2024-11-03 22:43:42,557 - DEBUG - PING 19.175.230.3 (19.175.230.3): 56 data bytes 64 bytes from 19.175.230.3: seq=0 ttl=62 time=5.297 ms 64 bytes from 19.175.230.3: seq=1 ttl=62 time=0.968 ms 64 bytes from 19.175.230.3: seq=2 ttl=62 time=1.111 ms --- 19.175.230.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.968/2.458/5.297 ms 2024-11-03 22:43:42,558 - INFO - Ping to IP 19.175.230.3 from VM ctest-TestRoutersBasic-68662443-76753242 passed 2024-11-03 22:43:42,560 - INFO - Deleting interface with subnet_id 64044afe-b960-486b-8dd7-9f5897f205f6, port_id None from router 79fe4013-9f5f-401e-bfb5-372354c4d52a 2024-11-03 22:43:42,790 - INFO - Deleting VM ctest-TestRoutersBasic-68662443-91820191 2024-11-03 22:43:42,879 - INFO - Deleting VM ctest-TestRoutersBasic-68662443-76753242 2024-11-03 22:43:42,965 - INFO - Deleting VN ctest-ext_vn-33155825 2024-11-03 22:43:43,068 - DEBUG - VN e51528b7-4647-458c-9197-0419744c975a still in use: Unable to complete operation on network e51528b7-4647-458c-9197-0419744c975a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a763d505-3ef2-4372-b794-6884f5727259'] 2024-11-03 22:43:43,069 - WARNING - Deleting VN ctest-ext_vn-33155825 failed..Will retry 2024-11-03 22:43:45,221 - DEBUG - Response for deleting network () 2024-11-03 22:43:45,221 - INFO - Deleting VN ctest-vn-82645052 2024-11-03 22:43:45,344 - DEBUG - Response for deleting network () 2024-11-03 22:43:45,612 - DEBUG - No XMPP flaps were noticed during the test 2024-11-03 22:43:45,612 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2024-11-03 22:43:45,612 - INFO - -------------------------------------------------------------------------------- 2024-11-03 22:43:46,371 - INFO - Deleted project: ctest-TestRoutersBasic-68662443, ID : 233c11bd-1aa2-4651-8555-bb20c1ebb08a