2024-11-13 11:51:39,586 - INFO - Domain Default found not creating 2024-11-13 11:51:39,762 - INFO - Project ctest-TestRoutersBasic-55455371 not found, creating it 2024-11-13 11:51:40,267 - INFO - Created Project:ctest-TestRoutersBasic-55455371, ID : 3a868a4a-a694-4dd2-ab62-f9526a2a1641 2024-11-13 11:51:41,769 - INFO - ================================================================================ 2024-11-13 11:51:41,770 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-13 11:51:41,770 - 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-13 11:51:42,030 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.17': '0'}} with 2024-11-13 11:51:42,030 - INFO - Initial checks done. Running the testcase now 2024-11-13 11:51:42,031 - INFO - 2024-11-13 11:51:42,807 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-55455371 2024-11-13 11:51:42,912 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-55455371 2024-11-13 11:51:43,268 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-55455371', 'default']} 2024-11-13 11:51:43,589 - DEBUG - Response for create_network : {'network': {'id': 'e00ae3a9-97ce-4151-8511-0534e979c70a', 'name': 'ctest-vn-26560950', 'tenant_id': '3a868a4aa6944dd2ab62f9526a2a1641', 'project_id': '3a868a4aa6944dd2ab62f9526a2a1641', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-55455371', 'ctest-vn-26560950'], 'port_security_enabled': True, 'description': ''}} 2024-11-13 11:51:43,753 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f81f31f-07eb-4a55-857a-9644eab96caf', 'name': '', 'tenant_id': '3a868a4aa6944dd2ab62f9526a2a1641', 'network_id': 'e00ae3a9-97ce-4151-8511-0534e979c70a', 'ip_version': 4, 'cidr': '134.229.15.64/26', 'allocation_pools': [{'start': '134.229.15.66', 'end': '134.229.15.126'}], 'gateway_ip': '134.229.15.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.229.15.66', 'tags': [], 'project_id': '3a868a4aa6944dd2ab62f9526a2a1641'}} 2024-11-13 11:51:43,772 - INFO - Created VN ctest-vn-26560950 2024-11-13 11:51:43,828 - DEBUG - VN ctest-vn-26560950 UUID is e00ae3a9-97ce-4151-8511-0534e979c70a 2024-11-13 11:51:44,188 - DEBUG - Response for create_network : {'network': {'id': 'a0eeeb70-4231-4572-951b-437df1b99445', 'name': 'ctest-ext_vn-00003233', 'tenant_id': '3a868a4aa6944dd2ab62f9526a2a1641', 'project_id': '3a868a4aa6944dd2ab62f9526a2a1641', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-55455371', 'ctest-ext_vn-00003233'], 'port_security_enabled': True, 'description': ''}} 2024-11-13 11:51:44,381 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6d991de-89d1-4cca-83a9-f43139908653', 'name': '', 'tenant_id': '3a868a4aa6944dd2ab62f9526a2a1641', 'network_id': 'a0eeeb70-4231-4572-951b-437df1b99445', 'ip_version': 4, 'cidr': '219.70.138.192/26', 'allocation_pools': [{'start': '219.70.138.194', 'end': '219.70.138.254'}], 'gateway_ip': '219.70.138.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.70.138.194', 'tags': [], 'project_id': '3a868a4aa6944dd2ab62f9526a2a1641'}} 2024-11-13 11:51:44,401 - INFO - Created VN ctest-ext_vn-00003233 2024-11-13 11:51:44,460 - DEBUG - VN ctest-ext_vn-00003233 UUID is a0eeeb70-4231-4572-951b-437df1b99445 2024-11-13 11:51:44,654 - DEBUG - Services list from nova: [, , ] 2024-11-13 11:51:45,710 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2283-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2283-1) 2024-11-13 11:51:46,934 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2283-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2283-1) 2024-11-13 11:51:47,005 - INFO - Setting gateway for router 3e451265-af41-4fe6-aee7-1f91ad6bf2ab to network a0eeeb70-4231-4572-951b-437df1b99445 2024-11-13 11:51:47,082 - INFO - Adding interface with subnet_id 1f81f31f-07eb-4a55-857a-9644eab96caf, port_id None to router 3e451265-af41-4fe6-aee7-1f91ad6bf2ab 2024-11-13 11:51:47,561 - INFO - Waiting for VM ctest-TestRoutersBasic-55455371-57518449 to be up.. 2024-11-13 11:51:47,796 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-13 11:51:52,889 - DEBUG - VM is in ACTIVE state now 2024-11-13 11:51:52,889 - INFO - VM name : ctest-TestRoutersBasic-55455371-57518449 2024-11-13 11:51:52,995 - DEBUG - VM ctest-TestRoutersBasic-55455371-57518449 ID is ec301058-8050-4e9f-8847-2a6f1c7d5452 2024-11-13 11:51:53,020 - DEBUG - VM ctest-TestRoutersBasic-55455371-57518449 launched on Node cn-jenkins-deploy-platform-ansible-os-2283-1 2024-11-13 11:51:53,145 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/ec301058-8050-4e9f-8847-2a6f1c7d5452 2024-11-13 11:51:53,455 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/ec301058-8050-4e9f-8847-2a6f1c7d5452 2024-11-13 11:51:53,490 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/5a581477-5d63-4fd5-aeb7-b67c8d927537 2024-11-13 11:51:56,786 - 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 1023ms') 2024-11-13 11:51:56,786 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-55455371-57518449 failed! 2024-11-13 11:51:56,852 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-55455371:ctest-vn-26560950 is 134.229.15.65 and allocation pool is NOT set 2024-11-13 11:51:58,912 - 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.21 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.923 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.923/3.065/5.207/2.142 ms') 2024-11-13 11:51:58,912 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-55455371-57518449 passed 2024-11-13 11:51:59,080 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 11:51:59,080 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-55455371-57518449, IP 134.229.15.67, Port 22 2024-11-13 11:51:59,240 - DEBUG - VM ctest-TestRoutersBasic-55455371-57518449 is ready for SSH connections 2024-11-13 11:51:59,240 - INFO - Waiting for VM ctest-TestRoutersBasic-55455371-71257282 to be up.. 2024-11-13 11:51:59,323 - DEBUG - VM is in ACTIVE state now 2024-11-13 11:51:59,323 - INFO - VM name : ctest-TestRoutersBasic-55455371-71257282 2024-11-13 11:51:59,405 - DEBUG - VM ctest-TestRoutersBasic-55455371-71257282 ID is 30425bd0-c638-4632-9010-b9869874b3a8 2024-11-13 11:51:59,405 - DEBUG - VM ctest-TestRoutersBasic-55455371-71257282 launched on Node cn-jenkins-deploy-platform-ansible-os-2283-1 2024-11-13 11:51:59,499 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/30425bd0-c638-4632-9010-b9869874b3a8 2024-11-13 11:51:59,512 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/528d0c8d-c886-4c2f-ac3d-eb6ac6e316d7 2024-11-13 11:52:00,777 - 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.86 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.401 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.401/1.628/2.855/1.227 ms') 2024-11-13 11:52:00,777 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-55455371-71257282 passed 2024-11-13 11:52:00,932 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 11:52:00,932 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-55455371-71257282, IP 219.70.138.195, Port 22 2024-11-13 11:52:01,102 - DEBUG - VM ctest-TestRoutersBasic-55455371-71257282 is ready for SSH connections 2024-11-13 11:52:01,102 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 11:52:01,102 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 219.70.138.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-11-13 11:52:01,102 - DEBUG - ping -s 56 -c 3 -W 1 219.70.138.195 2024-11-13 11:52:04,825 - DEBUG - PING 219.70.138.195 (219.70.138.195): 56 data bytes 64 bytes from 219.70.138.195: seq=0 ttl=62 time=7.849 ms 64 bytes from 219.70.138.195: seq=1 ttl=62 time=0.987 ms 64 bytes from 219.70.138.195: seq=2 ttl=62 time=0.839 ms --- 219.70.138.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.839/3.225/7.849 ms 2024-11-13 11:52:04,826 - INFO - Ping to IP 219.70.138.195 from VM ctest-TestRoutersBasic-55455371-57518449 passed 2024-11-13 11:52:04,826 - INFO - Deleting interface with subnet_id 1f81f31f-07eb-4a55-857a-9644eab96caf, port_id None from router 3e451265-af41-4fe6-aee7-1f91ad6bf2ab 2024-11-13 11:52:05,090 - INFO - Deleting VM ctest-TestRoutersBasic-55455371-71257282 2024-11-13 11:52:05,179 - INFO - Deleting VM ctest-TestRoutersBasic-55455371-57518449 2024-11-13 11:52:05,272 - INFO - Deleting VN ctest-ext_vn-00003233 2024-11-13 11:52:05,362 - DEBUG - VN a0eeeb70-4231-4572-951b-437df1b99445 still in use: Unable to complete operation on network a0eeeb70-4231-4572-951b-437df1b99445. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e22c4f08-0bee-485e-a313-e1b41e3cf13f'] 2024-11-13 11:52:05,362 - WARNING - Deleting VN ctest-ext_vn-00003233 failed..Will retry 2024-11-13 11:52:07,505 - DEBUG - Response for deleting network () 2024-11-13 11:52:07,505 - INFO - Deleting VN ctest-vn-26560950 2024-11-13 11:52:07,645 - DEBUG - Response for deleting network () 2024-11-13 11:52:07,898 - DEBUG - No XMPP flaps were noticed during the test 2024-11-13 11:52:07,899 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-11-13 11:52:07,899 - INFO - -------------------------------------------------------------------------------- 2024-11-13 11:52:08,612 - INFO - Deleted project: ctest-TestRoutersBasic-55455371, ID : 3a868a4a-a694-4dd2-ab62-f9526a2a1641