2024-11-04 03:43:38,071 - INFO - Domain Default found not creating 2024-11-04 03:43:38,246 - INFO - Project ctest-TestRoutersBasic-26635151 not found, creating it 2024-11-04 03:43:38,783 - INFO - Created Project:ctest-TestRoutersBasic-26635151, ID : 1d7c5e3e-df87-456c-b680-f711121de5a3 2024-11-04 03:43:40,326 - INFO - ================================================================================ 2024-11-04 03:43:40,326 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-04 03:43:40,326 - 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-04 03:43:40,588 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.22': '0'}} with 2024-11-04 03:43:40,589 - INFO - Initial checks done. Running the testcase now 2024-11-04 03:43:40,589 - INFO - 2024-11-04 03:43:41,368 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-26635151 2024-11-04 03:43:41,479 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-26635151 2024-11-04 03:43:41,827 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26635151', 'default']} 2024-11-04 03:43:42,294 - DEBUG - Response for create_network : {'network': {'id': '22d0135b-b90c-4b09-8be9-f5011e89fe59', 'name': 'ctest-vn-48455647', 'tenant_id': '1d7c5e3edf87456cb680f711121de5a3', 'project_id': '1d7c5e3edf87456cb680f711121de5a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26635151', 'ctest-vn-48455647'], 'port_security_enabled': True, 'description': ''}} 2024-11-04 03:43:42,493 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eed4a023-9914-4b28-b5e5-7c14447481a5', 'name': '', 'tenant_id': '1d7c5e3edf87456cb680f711121de5a3', 'network_id': '22d0135b-b90c-4b09-8be9-f5011e89fe59', 'ip_version': 4, 'cidr': '178.160.157.0/26', 'allocation_pools': [{'start': '178.160.157.2', 'end': '178.160.157.62'}], 'gateway_ip': '178.160.157.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.160.157.2', 'tags': [], 'project_id': '1d7c5e3edf87456cb680f711121de5a3'}} 2024-11-04 03:43:42,514 - INFO - Created VN ctest-vn-48455647 2024-11-04 03:43:42,575 - DEBUG - VN ctest-vn-48455647 UUID is 22d0135b-b90c-4b09-8be9-f5011e89fe59 2024-11-04 03:43:42,968 - DEBUG - Response for create_network : {'network': {'id': 'bcf53a77-a405-4a1d-9b85-293d3b10a534', 'name': 'ctest-ext_vn-11709060', 'tenant_id': '1d7c5e3edf87456cb680f711121de5a3', 'project_id': '1d7c5e3edf87456cb680f711121de5a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26635151', 'ctest-ext_vn-11709060'], 'port_security_enabled': True, 'description': ''}} 2024-11-04 03:43:43,140 - DEBUG - Response for create_subnet : {'subnet': {'id': '39c5c7cf-3354-482a-af4a-f5c3d5206e47', 'name': '', 'tenant_id': '1d7c5e3edf87456cb680f711121de5a3', 'network_id': 'bcf53a77-a405-4a1d-9b85-293d3b10a534', 'ip_version': 4, 'cidr': '166.198.20.0/26', 'allocation_pools': [{'start': '166.198.20.2', 'end': '166.198.20.62'}], 'gateway_ip': '166.198.20.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.198.20.2', 'tags': [], 'project_id': '1d7c5e3edf87456cb680f711121de5a3'}} 2024-11-04 03:43:43,167 - INFO - Created VN ctest-ext_vn-11709060 2024-11-04 03:43:43,230 - DEBUG - VN ctest-ext_vn-11709060 UUID is bcf53a77-a405-4a1d-9b85-293d3b10a534 2024-11-04 03:43:43,408 - DEBUG - Services list from nova: [, , ] 2024-11-04 03:43:44,544 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2195-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2195-1) 2024-11-04 03:43:45,838 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2195-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2195-1) 2024-11-04 03:43:45,925 - INFO - Setting gateway for router a3bd5c4c-cca5-45e6-9856-c1aa02b704c6 to network bcf53a77-a405-4a1d-9b85-293d3b10a534 2024-11-04 03:43:45,996 - INFO - Adding interface with subnet_id eed4a023-9914-4b28-b5e5-7c14447481a5, port_id None to router a3bd5c4c-cca5-45e6-9856-c1aa02b704c6 2024-11-04 03:43:46,334 - INFO - Waiting for VM ctest-TestRoutersBasic-26635151-51543864 to be up.. 2024-11-04 03:43:46,577 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-04 03:43:51,677 - DEBUG - VM is in ACTIVE state now 2024-11-04 03:43:51,677 - INFO - VM name : ctest-TestRoutersBasic-26635151-51543864 2024-11-04 03:43:51,774 - DEBUG - VM ctest-TestRoutersBasic-26635151-51543864 ID is abaa6729-93ad-495b-82dc-04a8a22e17c9 2024-11-04 03:43:51,801 - DEBUG - VM ctest-TestRoutersBasic-26635151-51543864 launched on Node cn-jenkins-deploy-platform-ansible-os-2195-1 2024-11-04 03:43:51,885 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/abaa6729-93ad-495b-82dc-04a8a22e17c9 2024-11-04 03:43:52,184 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/abaa6729-93ad-495b-82dc-04a8a22e17c9 2024-11-04 03:43:52,226 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/062002c8-3463-4dca-baa0-ee8b9e578fce 2024-11-04 03:43:55,515 - 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 1006ms') 2024-11-04 03:43:55,515 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-26635151-51543864 failed! 2024-11-04 03:43:55,583 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-26635151:ctest-vn-48455647 is 178.160.157.1 and allocation pool is NOT set 2024-11-04 03:43:57,649 - 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=4.33 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.467 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.467/2.397/4.327/1.930 ms') 2024-11-04 03:43:57,649 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-26635151-51543864 passed 2024-11-04 03:43:57,815 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-04 03:43:57,815 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-26635151-51543864, IP 178.160.157.3, Port 22 2024-11-04 03:43:57,970 - DEBUG - VM ctest-TestRoutersBasic-26635151-51543864 is ready for SSH connections 2024-11-04 03:43:57,970 - INFO - Waiting for VM ctest-TestRoutersBasic-26635151-43767620 to be up.. 2024-11-04 03:43:58,058 - DEBUG - VM is in ACTIVE state now 2024-11-04 03:43:58,058 - INFO - VM name : ctest-TestRoutersBasic-26635151-43767620 2024-11-04 03:43:58,192 - DEBUG - VM ctest-TestRoutersBasic-26635151-43767620 ID is 6383ebe1-afdc-4ce6-846f-3dbd7db07015 2024-11-04 03:43:58,192 - DEBUG - VM ctest-TestRoutersBasic-26635151-43767620 launched on Node cn-jenkins-deploy-platform-ansible-os-2195-1 2024-11-04 03:43:58,276 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/6383ebe1-afdc-4ce6-846f-3dbd7db07015 2024-11-04 03:43:58,286 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/0ee7ff72-144f-4b88-8eb1-e74ec20cb2ab 2024-11-04 03:43:59,541 - 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.01 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.424 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.424/1.715/3.006/1.291 ms') 2024-11-04 03:43:59,541 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-26635151-43767620 passed 2024-11-04 03:43:59,702 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-04 03:43:59,703 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-26635151-43767620, IP 166.198.20.3, Port 22 2024-11-04 03:43:59,867 - DEBUG - VM ctest-TestRoutersBasic-26635151-43767620 is ready for SSH connections 2024-11-04 03:43:59,867 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-04 03:43:59,867 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 166.198.20.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-11-04 03:43:59,867 - DEBUG - ping -s 56 -c 3 -W 1 166.198.20.3 2024-11-04 03:44:03,592 - DEBUG - PING 166.198.20.3 (166.198.20.3): 56 data bytes 64 bytes from 166.198.20.3: seq=0 ttl=62 time=6.010 ms 64 bytes from 166.198.20.3: seq=1 ttl=62 time=1.053 ms 64 bytes from 166.198.20.3: seq=2 ttl=62 time=1.186 ms --- 166.198.20.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.053/2.749/6.010 ms 2024-11-04 03:44:03,592 - INFO - Ping to IP 166.198.20.3 from VM ctest-TestRoutersBasic-26635151-51543864 passed 2024-11-04 03:44:03,593 - INFO - Deleting interface with subnet_id eed4a023-9914-4b28-b5e5-7c14447481a5, port_id None from router a3bd5c4c-cca5-45e6-9856-c1aa02b704c6 2024-11-04 03:44:03,882 - INFO - Deleting VM ctest-TestRoutersBasic-26635151-43767620 2024-11-04 03:44:03,975 - INFO - Deleting VM ctest-TestRoutersBasic-26635151-51543864 2024-11-04 03:44:04,096 - INFO - Deleting VN ctest-ext_vn-11709060 2024-11-04 03:44:04,228 - DEBUG - VN bcf53a77-a405-4a1d-9b85-293d3b10a534 still in use: Unable to complete operation on network bcf53a77-a405-4a1d-9b85-293d3b10a534. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-cd0aef79-602c-4547-978d-d2754ebfdfe5'] 2024-11-04 03:44:04,228 - WARNING - Deleting VN ctest-ext_vn-11709060 failed..Will retry 2024-11-04 03:44:06,348 - DEBUG - Response for deleting network () 2024-11-04 03:44:06,348 - INFO - Deleting VN ctest-vn-48455647 2024-11-04 03:44:06,464 - DEBUG - Response for deleting network () 2024-11-04 03:44:06,745 - DEBUG - No XMPP flaps were noticed during the test
2024-11-04 03:44:06,745 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-11-04 03:44:06,745 - INFO - -------------------------------------------------------------------------------- 2024-11-04 03:44:07,488 - INFO - Deleted project: ctest-TestRoutersBasic-26635151, ID : 1d7c5e3e-df87-456c-b680-f711121de5a3