2024-08-21 12:10:15,762 - INFO - Domain Default found not creating 2024-08-21 12:10:15,966 - INFO - Project ctest-TestRoutersBasic-13977783 not found, creating it 2024-08-21 12:10:16,454 - INFO - Created Project:ctest-TestRoutersBasic-13977783, ID : 87d039ac-0748-4676-bb08-6a441ae91947 2024-08-21 12:10:18,051 - INFO - ================================================================================ 2024-08-21 12:10:18,051 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-21 12:10:18,051 - 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-08-21 12:10:18,322 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.10': '0'}} with 2024-08-21 12:10:18,322 - INFO - Initial checks done. Running the testcase now 2024-08-21 12:10:18,322 - INFO - 2024-08-21 12:10:19,036 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-13977783 2024-08-21 12:10:19,137 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-13977783 2024-08-21 12:10:22,133 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-13977783', 'default']} 2024-08-21 12:10:22,463 - DEBUG - Response for create_network : {'network': {'id': 'a06f5ef4-d85e-4d31-bb20-80e58f7bd73c', 'name': 'ctest-vn-30041518', 'tenant_id': '87d039ac07484676bb086a441ae91947', 'project_id': '87d039ac07484676bb086a441ae91947', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-13977783', 'ctest-vn-30041518'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 12:10:22,692 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad45495f-f40f-4d0f-bc8d-73c6213e64f1', 'name': '', 'tenant_id': '87d039ac07484676bb086a441ae91947', 'network_id': 'a06f5ef4-d85e-4d31-bb20-80e58f7bd73c', 'ip_version': 4, 'cidr': '65.111.41.0/26', 'allocation_pools': [{'start': '65.111.41.2', 'end': '65.111.41.62'}], 'gateway_ip': '65.111.41.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.111.41.2', 'tags': [], 'project_id': '87d039ac07484676bb086a441ae91947'}} 2024-08-21 12:10:22,712 - INFO - Created VN ctest-vn-30041518 2024-08-21 12:10:22,765 - DEBUG - VN ctest-vn-30041518 UUID is a06f5ef4-d85e-4d31-bb20-80e58f7bd73c 2024-08-21 12:10:23,110 - DEBUG - Response for create_network : {'network': {'id': 'd6c5a2fc-633f-492d-a368-39f88816df5b', 'name': 'ctest-ext_vn-55763301', 'tenant_id': '87d039ac07484676bb086a441ae91947', 'project_id': '87d039ac07484676bb086a441ae91947', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-13977783', 'ctest-ext_vn-55763301'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 12:10:23,349 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f524031-6493-452b-b922-6702990f5a71', 'name': '', 'tenant_id': '87d039ac07484676bb086a441ae91947', 'network_id': 'd6c5a2fc-633f-492d-a368-39f88816df5b', 'ip_version': 4, 'cidr': '203.172.251.64/26', 'allocation_pools': [{'start': '203.172.251.66', 'end': '203.172.251.126'}], 'gateway_ip': '203.172.251.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.172.251.66', 'tags': [], 'project_id': '87d039ac07484676bb086a441ae91947'}} 2024-08-21 12:10:23,371 - INFO - Created VN ctest-ext_vn-55763301 2024-08-21 12:10:23,421 - DEBUG - VN ctest-ext_vn-55763301 UUID is d6c5a2fc-633f-492d-a368-39f88816df5b 2024-08-21 12:10:23,615 - DEBUG - Services list from nova: [, , ] 2024-08-21 12:10:24,694 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1682-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1682-1) 2024-08-21 12:10:25,961 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1682-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1682-1) 2024-08-21 12:10:26,037 - INFO - Setting gateway for router 27113d67-1746-4014-a87c-b579ec5124df to network d6c5a2fc-633f-492d-a368-39f88816df5b 2024-08-21 12:10:26,109 - INFO - Adding interface with subnet_id ad45495f-f40f-4d0f-bc8d-73c6213e64f1, port_id None to router 27113d67-1746-4014-a87c-b579ec5124df 2024-08-21 12:10:26,591 - INFO - Waiting for VM ctest-TestRoutersBasic-13977783-61991879 to be up.. 2024-08-21 12:10:26,746 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 12:10:31,840 - DEBUG - VM is in ACTIVE state now 2024-08-21 12:10:31,840 - INFO - VM name : ctest-TestRoutersBasic-13977783-61991879 2024-08-21 12:10:34,661 - DEBUG - VM ctest-TestRoutersBasic-13977783-61991879 ID is 5a913ca4-5be5-416a-9887-57ace7275ad2 2024-08-21 12:10:34,688 - DEBUG - VM ctest-TestRoutersBasic-13977783-61991879 launched on Node cn-jenkins-deploy-platform-ansible-os-1682-1 2024-08-21 12:10:34,794 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/5a913ca4-5be5-416a-9887-57ace7275ad2 2024-08-21 12:10:35,140 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/5a913ca4-5be5-416a-9887-57ace7275ad2 2024-08-21 12:10:35,223 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/fbe5de34-379d-4264-8ed9-d51d98ede201 2024-08-21 12:10:38,514 - 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-08-21 12:10:38,515 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-13977783-61991879 failed! 2024-08-21 12:10:38,569 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-13977783:ctest-vn-30041518 is 65.111.41.1 and allocation pool is NOT set 2024-08-21 12:10:40,854 - 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=1226 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=216 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1011ms\r\nrtt min/avg/max/mdev = 216.081/721.234/1226.387/505.153 ms, pipe 2') 2024-08-21 12:10:40,922 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-13977783-61991879 passed 2024-08-21 12:10:41,073 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 12:10:41,074 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-13977783-61991879, IP 65.111.41.3, Port 22 2024-08-21 12:10:41,143 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-08-21 12:10:41,232 - DEBUG - VM ctest-TestRoutersBasic-13977783-61991879 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-21 12:10:46,233 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 12:10:46,233 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-13977783-61991879, IP 65.111.41.3, Port 22 2024-08-21 12:10:46,385 - DEBUG - VM ctest-TestRoutersBasic-13977783-61991879 is ready for SSH connections 2024-08-21 12:10:46,385 - INFO - Waiting for VM ctest-TestRoutersBasic-13977783-73178264 to be up.. 2024-08-21 12:10:46,463 - DEBUG - VM is in ACTIVE state now 2024-08-21 12:10:46,464 - INFO - VM name : ctest-TestRoutersBasic-13977783-73178264 2024-08-21 12:10:46,542 - DEBUG - VM ctest-TestRoutersBasic-13977783-73178264 ID is 5b67c15f-7d29-4a31-af97-ab83445c6024 2024-08-21 12:10:46,542 - DEBUG - VM ctest-TestRoutersBasic-13977783-73178264 launched on Node cn-jenkins-deploy-platform-ansible-os-1682-1 2024-08-21 12:10:46,622 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/5b67c15f-7d29-4a31-af97-ab83445c6024 2024-08-21 12:10:46,632 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/5cf99d6f-6707-4288-bf18-577da5fa2e95 2024-08-21 12:10:47,866 - 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.75 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.389 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.389/1.571/2.754/1.182 ms') 2024-08-21 12:10:47,866 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-13977783-73178264 passed 2024-08-21 12:10:48,017 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 12:10:48,018 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-13977783-73178264, IP 203.172.251.67, Port 22 2024-08-21 12:10:48,173 - DEBUG - VM ctest-TestRoutersBasic-13977783-73178264 is ready for SSH connections 2024-08-21 12:10:48,173 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 12:10:48,173 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 203.172.251.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-08-21 12:10:48,173 - DEBUG - ping -s 56 -c 3 -W 1 203.172.251.67 2024-08-21 12:10:51,854 - DEBUG - PING 203.172.251.67 (203.172.251.67): 56 data bytes 64 bytes from 203.172.251.67: seq=0 ttl=62 time=6.757 ms 64 bytes from 203.172.251.67: seq=1 ttl=62 time=0.876 ms 64 bytes from 203.172.251.67: seq=2 ttl=62 time=0.985 ms --- 203.172.251.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.876/2.872/6.757 ms 2024-08-21 12:10:51,854 - INFO - Ping to IP 203.172.251.67 from VM ctest-TestRoutersBasic-13977783-61991879 passed 2024-08-21 12:10:51,855 - INFO - Deleting interface with subnet_id ad45495f-f40f-4d0f-bc8d-73c6213e64f1, port_id None from router 27113d67-1746-4014-a87c-b579ec5124df 2024-08-21 12:10:52,096 - INFO - Deleting VM ctest-TestRoutersBasic-13977783-73178264 2024-08-21 12:10:52,163 - INFO - Deleting VM ctest-TestRoutersBasic-13977783-61991879 2024-08-21 12:10:52,248 - INFO - Deleting VN ctest-ext_vn-55763301 2024-08-21 12:10:52,316 - DEBUG - VN d6c5a2fc-633f-492d-a368-39f88816df5b still in use: Unable to complete operation on network d6c5a2fc-633f-492d-a368-39f88816df5b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-beb28954-88e6-43cc-80e2-bc0c766ce538'] 2024-08-21 12:10:52,316 - WARNING - Deleting VN ctest-ext_vn-55763301 failed..Will retry 2024-08-21 12:10:54,427 - DEBUG - Response for deleting network () 2024-08-21 12:10:54,427 - INFO - Deleting VN ctest-vn-30041518 2024-08-21 12:10:54,537 - DEBUG - Response for deleting network () 2024-08-21 12:10:54,795 - DEBUG - No XMPP flaps were noticed during the test 2024-08-21 12:10:54,795 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:36] 2024-08-21 12:10:54,795 - INFO - -------------------------------------------------------------------------------- 2024-08-21 12:10:55,482 - INFO - Deleted project: ctest-TestRoutersBasic-13977783, ID : 87d039ac-0748-4676-bb08-6a441ae91947