2024-11-09 11:57:36,414 - INFO - Domain Default found not creating 2024-11-09 11:57:36,609 - INFO - Project ctest-TestRoutersBasic-48948132 not found, creating it 2024-11-09 11:57:37,156 - INFO - Created Project:ctest-TestRoutersBasic-48948132, ID : 0de8d7f3-a4d2-49cd-9f6d-b0ec58314da4 2024-11-09 11:57:38,852 - INFO - ================================================================================ 2024-11-09 11:57:38,852 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-09 11:57:38,852 - 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-09 11:57:39,120 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.7': '0'}} with 2024-11-09 11:57:39,120 - INFO - Initial checks done. Running the testcase now 2024-11-09 11:57:39,120 - INFO - 2024-11-09 11:57:39,873 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-48948132 2024-11-09 11:57:39,978 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-48948132 2024-11-09 11:57:40,313 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-48948132', 'default']} 2024-11-09 11:57:40,643 - DEBUG - Response for create_network : {'network': {'id': '553b202f-b217-43ac-882b-4a612a7d11f8', 'name': 'ctest-vn-44112745', 'tenant_id': '0de8d7f3a4d249cd9f6db0ec58314da4', 'project_id': '0de8d7f3a4d249cd9f6db0ec58314da4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-48948132', 'ctest-vn-44112745'], 'port_security_enabled': True, 'description': ''}} 2024-11-09 11:57:40,888 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a94ab536-5855-4c29-bdaa-89fdbe6eca80', 'name': '', 'tenant_id': '0de8d7f3a4d249cd9f6db0ec58314da4', 'network_id': '553b202f-b217-43ac-882b-4a612a7d11f8', 'ip_version': 4, 'cidr': '220.6.169.64/26', 'allocation_pools': [{'start': '220.6.169.66', 'end': '220.6.169.126'}], 'gateway_ip': '220.6.169.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.6.169.66', 'tags': [], 'project_id': '0de8d7f3a4d249cd9f6db0ec58314da4'}} 2024-11-09 11:57:40,912 - INFO - Created VN ctest-vn-44112745 2024-11-09 11:57:40,970 - DEBUG - VN ctest-vn-44112745 UUID is 553b202f-b217-43ac-882b-4a612a7d11f8 2024-11-09 11:57:41,357 - DEBUG - Response for create_network : {'network': {'id': 'a5fde163-f1ce-4214-9dde-264649608afc', 'name': 'ctest-ext_vn-98072903', 'tenant_id': '0de8d7f3a4d249cd9f6db0ec58314da4', 'project_id': '0de8d7f3a4d249cd9f6db0ec58314da4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-48948132', 'ctest-ext_vn-98072903'], 'port_security_enabled': True, 'description': ''}} 2024-11-09 11:57:41,611 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce9babe3-703b-471c-90f9-85b04d20c932', 'name': '', 'tenant_id': '0de8d7f3a4d249cd9f6db0ec58314da4', 'network_id': 'a5fde163-f1ce-4214-9dde-264649608afc', 'ip_version': 4, 'cidr': '174.111.122.64/26', 'allocation_pools': [{'start': '174.111.122.66', 'end': '174.111.122.126'}], 'gateway_ip': '174.111.122.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.111.122.66', 'tags': [], 'project_id': '0de8d7f3a4d249cd9f6db0ec58314da4'}} 2024-11-09 11:57:41,637 - INFO - Created VN ctest-ext_vn-98072903 2024-11-09 11:57:41,697 - DEBUG - VN ctest-ext_vn-98072903 UUID is a5fde163-f1ce-4214-9dde-264649608afc 2024-11-09 11:57:41,899 - DEBUG - Services list from nova: [, , ] 2024-11-09 11:57:43,020 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2245-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2245-1) 2024-11-09 11:57:44,468 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2245-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2245-1) 2024-11-09 11:57:44,586 - INFO - Setting gateway for router a975fddc-3c47-4be3-a0e4-6fc253697355 to network a5fde163-f1ce-4214-9dde-264649608afc 2024-11-09 11:57:44,682 - INFO - Adding interface with subnet_id a94ab536-5855-4c29-bdaa-89fdbe6eca80, port_id None to router a975fddc-3c47-4be3-a0e4-6fc253697355 2024-11-09 11:57:45,191 - INFO - Waiting for VM ctest-TestRoutersBasic-48948132-05244374 to be up.. 2024-11-09 11:57:45,363 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-09 11:57:50,517 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-09 11:57:55,625 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-09 11:58:00,709 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-09 11:58:05,820 - DEBUG - VM is in ACTIVE state now 2024-11-09 11:58:05,820 - INFO - VM name : ctest-TestRoutersBasic-48948132-05244374 2024-11-09 11:58:05,939 - DEBUG - VM ctest-TestRoutersBasic-48948132-05244374 ID is da5e33ff-7950-4c0f-80e9-b6970b0292e0 2024-11-09 11:58:05,958 - DEBUG - VM ctest-TestRoutersBasic-48948132-05244374 launched on Node cn-jenkins-deploy-platform-ansible-os-2245-1 2024-11-09 11:58:06,054 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/da5e33ff-7950-4c0f-80e9-b6970b0292e0 2024-11-09 11:58:06,366 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/da5e33ff-7950-4c0f-80e9-b6970b0292e0 2024-11-09 11:58:06,406 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/21aebfe4-a420-4383-a15a-3d252e4069fa 2024-11-09 11:58:09,697 - 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-09 11:58:09,698 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-48948132-05244374 failed! 2024-11-09 11:58:09,766 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-48948132:ctest-vn-44112745 is 220.6.169.65 and allocation pool is NOT set 2024-11-09 11:58:13,829 - 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=2 ttl=63 time=10.5 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 10.531/10.531/10.531/0.000 ms') 2024-11-09 11:58:13,829 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-48948132-05244374 passed 2024-11-09 11:58:13,998 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 11:58:13,998 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-48948132-05244374, IP 220.6.169.67, Port 22 2024-11-09 11:58:14,153 - DEBUG - VM ctest-TestRoutersBasic-48948132-05244374 is ready for SSH connections 2024-11-09 11:58:14,154 - INFO - Waiting for VM ctest-TestRoutersBasic-48948132-13064475 to be up.. 2024-11-09 11:58:14,240 - DEBUG - VM is in ACTIVE state now 2024-11-09 11:58:14,240 - INFO - VM name : ctest-TestRoutersBasic-48948132-13064475 2024-11-09 11:58:14,322 - DEBUG - VM ctest-TestRoutersBasic-48948132-13064475 ID is 3b223f06-4cec-49a3-96cb-5f1f7553bb2f 2024-11-09 11:58:14,323 - DEBUG - VM ctest-TestRoutersBasic-48948132-13064475 launched on Node cn-jenkins-deploy-platform-ansible-os-2245-1 2024-11-09 11:58:14,407 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/3b223f06-4cec-49a3-96cb-5f1f7553bb2f 2024-11-09 11:58:14,421 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/6b550a38-b815-41a7-ac1b-5a8d14701fc3 2024-11-09 11:58:15,684 - 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.05 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.477 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.477/1.764/3.051/1.287 ms') 2024-11-09 11:58:15,684 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-48948132-13064475 passed 2024-11-09 11:58:15,842 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 11:58:15,842 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-48948132-13064475, IP 174.111.122.67, Port 22 2024-11-09 11:58:16,001 - DEBUG - VM ctest-TestRoutersBasic-48948132-13064475 is ready for SSH connections 2024-11-09 11:58:16,002 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-09 11:58:16,002 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 174.111.122.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-11-09 11:58:16,002 - DEBUG - ping -s 56 -c 3 -W 1 174.111.122.67 2024-11-09 11:58:19,691 - DEBUG - PING 174.111.122.67 (174.111.122.67): 56 data bytes 64 bytes from 174.111.122.67: seq=0 ttl=62 time=5.433 ms 64 bytes from 174.111.122.67: seq=1 ttl=62 time=1.117 ms 64 bytes from 174.111.122.67: seq=2 ttl=62 time=1.122 ms --- 174.111.122.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.117/2.557/5.433 ms 2024-11-09 11:58:19,691 - INFO - Ping to IP 174.111.122.67 from VM ctest-TestRoutersBasic-48948132-05244374 passed 2024-11-09 11:58:19,692 - INFO - Deleting interface with subnet_id a94ab536-5855-4c29-bdaa-89fdbe6eca80, port_id None from router a975fddc-3c47-4be3-a0e4-6fc253697355 2024-11-09 11:58:19,941 - INFO - Deleting VM ctest-TestRoutersBasic-48948132-13064475 2024-11-09 11:58:20,013 - INFO - Deleting VM ctest-TestRoutersBasic-48948132-05244374 2024-11-09 11:58:20,140 - INFO - Deleting VN ctest-ext_vn-98072903 2024-11-09 11:58:20,265 - DEBUG - VN a5fde163-f1ce-4214-9dde-264649608afc still in use: Unable to complete operation on network a5fde163-f1ce-4214-9dde-264649608afc. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e4e691db-8682-4231-98ce-f4476bb6e663'] 2024-11-09 11:58:20,265 - WARNING - Deleting VN ctest-ext_vn-98072903 failed..Will retry 2024-11-09 11:58:22,390 - DEBUG - Response for deleting network () 2024-11-09 11:58:22,390 - INFO - Deleting VN ctest-vn-44112745 2024-11-09 11:58:22,541 - DEBUG - Response for deleting network () 2024-11-09 11:58:22,800 - DEBUG - No XMPP flaps were noticed during the test 2024-11-09 11:58:22,801 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:44] 2024-11-09 11:58:22,801 - INFO - -------------------------------------------------------------------------------- 2024-11-09 11:58:23,502 - INFO - Deleted project: ctest-TestRoutersBasic-48948132, ID : 0de8d7f3-a4d2-49cd-9f6d-b0ec58314da4