2024-11-10 15:30:21,297 - INFO - Domain Default found not creating 2024-11-10 15:30:21,480 - INFO - Project ctest-TestRoutersBasic-18351685 not found, creating it 2024-11-10 15:30:22,022 - INFO - Created Project:ctest-TestRoutersBasic-18351685, ID : f760b4ea-814b-4b06-b674-26e5c1ff1bda 2024-11-10 15:30:23,639 - INFO - ================================================================================ 2024-11-10 15:30:23,639 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-10 15:30:23,639 - 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-10 15:30:23,911 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.13': '0'}} with 2024-11-10 15:30:23,911 - INFO - Initial checks done. Running the testcase now 2024-11-10 15:30:23,911 - INFO - 2024-11-10 15:30:24,672 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-18351685 2024-11-10 15:30:24,773 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-18351685 2024-11-10 15:30:25,125 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-18351685', 'default']} 2024-11-10 15:30:25,550 - DEBUG - Response for create_network : {'network': {'id': 'd6d199e9-25bf-4585-bf38-eb18915d7a57', 'name': 'ctest-vn-31344569', 'tenant_id': 'f760b4ea814b4b06b67426e5c1ff1bda', 'project_id': 'f760b4ea814b4b06b67426e5c1ff1bda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-18351685', 'ctest-vn-31344569'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 15:30:25,727 - DEBUG - Response for create_subnet : {'subnet': {'id': '3825ae0a-b85b-4bbd-8ee0-c386059f78b2', 'name': '', 'tenant_id': 'f760b4ea814b4b06b67426e5c1ff1bda', 'network_id': 'd6d199e9-25bf-4585-bf38-eb18915d7a57', 'ip_version': 4, 'cidr': '204.155.22.128/26', 'allocation_pools': [{'start': '204.155.22.130', 'end': '204.155.22.190'}], 'gateway_ip': '204.155.22.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.155.22.130', 'tags': [], 'project_id': 'f760b4ea814b4b06b67426e5c1ff1bda'}} 2024-11-10 15:30:25,748 - INFO - Created VN ctest-vn-31344569 2024-11-10 15:30:25,809 - DEBUG - VN ctest-vn-31344569 UUID is d6d199e9-25bf-4585-bf38-eb18915d7a57 2024-11-10 15:30:26,166 - DEBUG - Response for create_network : {'network': {'id': '98e77b59-9976-4f1d-bde5-a6f0948438b8', 'name': 'ctest-ext_vn-52948351', 'tenant_id': 'f760b4ea814b4b06b67426e5c1ff1bda', 'project_id': 'f760b4ea814b4b06b67426e5c1ff1bda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-18351685', 'ctest-ext_vn-52948351'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 15:30:26,360 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa394f78-c1df-4211-a791-3578bf427999', 'name': '', 'tenant_id': 'f760b4ea814b4b06b67426e5c1ff1bda', 'network_id': '98e77b59-9976-4f1d-bde5-a6f0948438b8', 'ip_version': 4, 'cidr': '92.120.53.64/26', 'allocation_pools': [{'start': '92.120.53.66', 'end': '92.120.53.126'}], 'gateway_ip': '92.120.53.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.120.53.66', 'tags': [], 'project_id': 'f760b4ea814b4b06b67426e5c1ff1bda'}} 2024-11-10 15:30:26,381 - INFO - Created VN ctest-ext_vn-52948351 2024-11-10 15:30:26,441 - DEBUG - VN ctest-ext_vn-52948351 UUID is 98e77b59-9976-4f1d-bde5-a6f0948438b8 2024-11-10 15:30:26,632 - DEBUG - Services list from nova: [, , ] 2024-11-10 15:30:27,734 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2252-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2252-1) 2024-11-10 15:30:28,982 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2252-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2252-1) 2024-11-10 15:30:29,067 - INFO - Setting gateway for router 3956d6f0-b351-4fc4-8bde-9a9208cf3d5e to network 98e77b59-9976-4f1d-bde5-a6f0948438b8 2024-11-10 15:30:29,149 - INFO - Adding interface with subnet_id 3825ae0a-b85b-4bbd-8ee0-c386059f78b2, port_id None to router 3956d6f0-b351-4fc4-8bde-9a9208cf3d5e 2024-11-10 15:30:29,575 - INFO - Waiting for VM ctest-TestRoutersBasic-18351685-43204710 to be up.. 2024-11-10 15:30:29,717 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 15:30:34,825 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 15:30:39,916 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 15:30:45,003 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 15:30:50,110 - DEBUG - VM is in ACTIVE state now 2024-11-10 15:30:50,110 - INFO - VM name : ctest-TestRoutersBasic-18351685-43204710 2024-11-10 15:30:50,218 - DEBUG - VM ctest-TestRoutersBasic-18351685-43204710 ID is f845ec96-dcb7-4af1-a866-dbb2caa552b9 2024-11-10 15:30:50,238 - DEBUG - VM ctest-TestRoutersBasic-18351685-43204710 launched on Node cn-jenkins-deploy-platform-ansible-os-2252-1 2024-11-10 15:30:50,327 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/f845ec96-dcb7-4af1-a866-dbb2caa552b9 2024-11-10 15:30:50,645 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/f845ec96-dcb7-4af1-a866-dbb2caa552b9 2024-11-10 15:30:50,689 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/01ca206a-da21-4673-a3ae-9a11a736fce8 2024-11-10 15:30:53,969 - 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 1022ms') 2024-11-10 15:30:53,969 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-18351685-43204710 failed! 2024-11-10 15:30:54,033 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-18351685:ctest-vn-31344569 is 204.155.22.129 and allocation pool is NOT set 2024-11-10 15:30:56,101 - 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=11.0 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.44 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 = 2.441/6.719/10.997/4.278 ms') 2024-11-10 15:30:56,101 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-18351685-43204710 passed 2024-11-10 15:30:56,265 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 15:30:56,265 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-18351685-43204710, IP 204.155.22.131, Port 22 2024-11-10 15:30:56,431 - DEBUG - VM ctest-TestRoutersBasic-18351685-43204710 is ready for SSH connections 2024-11-10 15:30:56,431 - INFO - Waiting for VM ctest-TestRoutersBasic-18351685-23525632 to be up.. 2024-11-10 15:30:56,533 - DEBUG - VM is in ACTIVE state now 2024-11-10 15:30:56,533 - INFO - VM name : ctest-TestRoutersBasic-18351685-23525632 2024-11-10 15:30:56,629 - DEBUG - VM ctest-TestRoutersBasic-18351685-23525632 ID is b910dcd4-7d37-401a-a999-b8b2f2a9a0b2 2024-11-10 15:30:56,629 - DEBUG - VM ctest-TestRoutersBasic-18351685-23525632 launched on Node cn-jenkins-deploy-platform-ansible-os-2252-1 2024-11-10 15:30:56,722 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/b910dcd4-7d37-401a-a999-b8b2f2a9a0b2 2024-11-10 15:30:56,732 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/38df8aef-d0fc-44d7-9b39-8ccb51e78ec8 2024-11-10 15:30:57,987 - 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.50 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.882 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.882/2.190/3.499/1.308 ms') 2024-11-10 15:30:57,987 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-18351685-23525632 passed 2024-11-10 15:30:58,153 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 15:30:58,153 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-18351685-23525632, IP 92.120.53.67, Port 22 2024-11-10 15:30:58,317 - DEBUG - VM ctest-TestRoutersBasic-18351685-23525632 is ready for SSH connections 2024-11-10 15:30:58,317 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 15:30:58,317 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 92.120.53.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2024-11-10 15:30:58,317 - DEBUG - ping -s 56 -c 3 -W 1 92.120.53.67 2024-11-10 15:31:02,032 - DEBUG - PING 92.120.53.67 (92.120.53.67): 56 data bytes 64 bytes from 92.120.53.67: seq=0 ttl=62 time=5.483 ms 64 bytes from 92.120.53.67: seq=1 ttl=62 time=1.240 ms 64 bytes from 92.120.53.67: seq=2 ttl=62 time=1.293 ms --- 92.120.53.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.240/2.672/5.483 ms 2024-11-10 15:31:02,032 - INFO - Ping to IP 92.120.53.67 from VM ctest-TestRoutersBasic-18351685-43204710 passed 2024-11-10 15:31:02,033 - INFO - Deleting interface with subnet_id 3825ae0a-b85b-4bbd-8ee0-c386059f78b2, port_id None from router 3956d6f0-b351-4fc4-8bde-9a9208cf3d5e 2024-11-10 15:31:02,275 - INFO - Deleting VM ctest-TestRoutersBasic-18351685-23525632 2024-11-10 15:31:02,344 - INFO - Deleting VM ctest-TestRoutersBasic-18351685-43204710 2024-11-10 15:31:02,443 - INFO - Deleting VN ctest-ext_vn-52948351 2024-11-10 15:31:02,537 - DEBUG - VN 98e77b59-9976-4f1d-bde5-a6f0948438b8 still in use: Unable to complete operation on network 98e77b59-9976-4f1d-bde5-a6f0948438b8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2728f895-9dd7-4379-8f76-9c69f65fe366'] 2024-11-10 15:31:02,537 - WARNING - Deleting VN ctest-ext_vn-52948351 failed..Will retry 2024-11-10 15:31:04,673 - DEBUG - Response for deleting network () 2024-11-10 15:31:04,673 - INFO - Deleting VN ctest-vn-31344569 2024-11-10 15:31:04,822 - DEBUG - Response for deleting network () 2024-11-10 15:31:05,091 - DEBUG - No XMPP flaps were noticed during the test 2024-11-10 15:31:05,091 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:42] 2024-11-10 15:31:05,092 - INFO - -------------------------------------------------------------------------------- 2024-11-10 15:31:05,934 - INFO - Deleted project: ctest-TestRoutersBasic-18351685, ID : f760b4ea-814b-4b06-b674-26e5c1ff1bda