2024-09-19 02:40:34,906 - INFO - Domain Default found not creating 2024-09-19 02:40:35,091 - INFO - Project ctest-TestRoutersBasic-04639636 not found, creating it 2024-09-19 02:40:35,646 - INFO - Created Project:ctest-TestRoutersBasic-04639636, ID : 2a71ffd3-b351-4d85-b5aa-46099aa71d83 2024-09-19 02:40:37,502 - INFO - ================================================================================ 2024-09-19 02:40:37,502 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-19 02:40:37,502 - 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-09-19 02:40:37,767 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.12': '0'}} with 2024-09-19 02:40:37,767 - INFO - Initial checks done. Running the testcase now 2024-09-19 02:40:37,767 - INFO - 2024-09-19 02:40:38,611 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-04639636 2024-09-19 02:40:38,712 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-04639636 2024-09-19 02:40:39,068 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-04639636', 'default']} 2024-09-19 02:40:39,482 - DEBUG - Response for create_network : {'network': {'id': '20484681-a3d8-459c-80be-c1b3c1b3bac6', 'name': 'ctest-vn-17323761', 'tenant_id': '2a71ffd3b3514d85b5aa46099aa71d83', 'project_id': '2a71ffd3b3514d85b5aa46099aa71d83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-04639636', 'ctest-vn-17323761'], 'port_security_enabled': True, 'description': ''}} 2024-09-19 02:40:39,703 - DEBUG - Response for create_subnet : {'subnet': {'id': '77dab91c-71d0-4ada-b3de-bded7d53f7ab', 'name': '', 'tenant_id': '2a71ffd3b3514d85b5aa46099aa71d83', 'network_id': '20484681-a3d8-459c-80be-c1b3c1b3bac6', 'ip_version': 4, 'cidr': '223.144.39.0/26', 'allocation_pools': [{'start': '223.144.39.2', 'end': '223.144.39.62'}], 'gateway_ip': '223.144.39.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.144.39.2', 'tags': [], 'project_id': '2a71ffd3b3514d85b5aa46099aa71d83'}} 2024-09-19 02:40:39,728 - INFO - Created VN ctest-vn-17323761 2024-09-19 02:40:39,789 - DEBUG - VN ctest-vn-17323761 UUID is 20484681-a3d8-459c-80be-c1b3c1b3bac6 2024-09-19 02:40:40,230 - DEBUG - Response for create_network : {'network': {'id': '48015bc8-ffa6-4794-a11c-dce309c9e683', 'name': 'ctest-ext_vn-87094820', 'tenant_id': '2a71ffd3b3514d85b5aa46099aa71d83', 'project_id': '2a71ffd3b3514d85b5aa46099aa71d83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-04639636', 'ctest-ext_vn-87094820'], 'port_security_enabled': True, 'description': ''}} 2024-09-19 02:40:40,465 - DEBUG - Response for create_subnet : {'subnet': {'id': '2ac57061-3701-4265-bd33-4e181b054a72', 'name': '', 'tenant_id': '2a71ffd3b3514d85b5aa46099aa71d83', 'network_id': '48015bc8-ffa6-4794-a11c-dce309c9e683', 'ip_version': 4, 'cidr': '5.86.28.64/26', 'allocation_pools': [{'start': '5.86.28.66', 'end': '5.86.28.126'}], 'gateway_ip': '5.86.28.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.86.28.66', 'tags': [], 'project_id': '2a71ffd3b3514d85b5aa46099aa71d83'}} 2024-09-19 02:40:40,490 - INFO - Created VN ctest-ext_vn-87094820 2024-09-19 02:40:40,560 - DEBUG - VN ctest-ext_vn-87094820 UUID is 48015bc8-ffa6-4794-a11c-dce309c9e683 2024-09-19 02:40:40,761 - DEBUG - Services list from nova: [, , ] 2024-09-19 02:40:42,023 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1997-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1997-1) 2024-09-19 02:40:43,487 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1997-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1997-1) 2024-09-19 02:40:43,580 - INFO - Setting gateway for router fad29f67-8cb5-4dd2-a7b5-5a7d803168b7 to network 48015bc8-ffa6-4794-a11c-dce309c9e683 2024-09-19 02:40:43,804 - INFO - Adding interface with subnet_id 77dab91c-71d0-4ada-b3de-bded7d53f7ab, port_id None to router fad29f67-8cb5-4dd2-a7b5-5a7d803168b7 2024-09-19 02:40:44,455 - INFO - Waiting for VM ctest-TestRoutersBasic-04639636-44606927 to be up.. 2024-09-19 02:40:44,654 - DEBUG - VM is in ACTIVE state now 2024-09-19 02:40:44,654 - INFO - VM name : ctest-TestRoutersBasic-04639636-44606927 2024-09-19 02:40:45,001 - DEBUG - VM ctest-TestRoutersBasic-04639636-44606927 ID is 042fae2d-57eb-4aae-8fcf-eb921a9fa472 2024-09-19 02:40:45,032 - DEBUG - VM ctest-TestRoutersBasic-04639636-44606927 launched on Node cn-jenkins-deploy-platform-ansible-os-1997-1 2024-09-19 02:40:45,234 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/042fae2d-57eb-4aae-8fcf-eb921a9fa472 2024-09-19 02:40:45,591 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/042fae2d-57eb-4aae-8fcf-eb921a9fa472 2024-09-19 02:40:45,665 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/fb6f5d05-1a2f-480d-a412-8386640c8739 2024-09-19 02:40:49,036 - 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 1004ms') 2024-09-19 02:40:49,037 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-04639636-44606927 failed! 2024-09-19 02:40:49,101 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-04639636:ctest-vn-17323761 is 223.144.39.1 and allocation pool is NOT set 2024-09-19 02:40:53,164 - 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 1002ms') 2024-09-19 02:40:53,165 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-04639636-44606927 failed! 2024-09-19 02:40:53,228 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-04639636:ctest-vn-17323761 is 223.144.39.1 and allocation pool is NOT set 2024-09-19 02:40:55,290 - 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.44 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.01 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.009/2.726/4.443/1.717 ms') 2024-09-19 02:40:55,290 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-04639636-44606927 passed 2024-09-19 02:40:55,513 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:40:55,513 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-04639636-44606927, IP 223.144.39.3, Port 22 2024-09-19 02:40:55,582 - 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-09-19 02:40:55,784 - DEBUG - VM ctest-TestRoutersBasic-04639636-44606927 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-19 02:41:00,785 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:41:00,786 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-04639636-44606927, IP 223.144.39.3, Port 22 2024-09-19 02:41:00,944 - DEBUG - VM ctest-TestRoutersBasic-04639636-44606927 is ready for SSH connections 2024-09-19 02:41:00,944 - INFO - Waiting for VM ctest-TestRoutersBasic-04639636-58061600 to be up.. 2024-09-19 02:41:01,035 - DEBUG - VM is in ACTIVE state now 2024-09-19 02:41:01,035 - INFO - VM name : ctest-TestRoutersBasic-04639636-58061600 2024-09-19 02:41:01,128 - DEBUG - VM ctest-TestRoutersBasic-04639636-58061600 ID is 4c7e6c4c-07be-4135-a648-6e5ff92b2c7f 2024-09-19 02:41:01,128 - DEBUG - VM ctest-TestRoutersBasic-04639636-58061600 launched on Node cn-jenkins-deploy-platform-ansible-os-1997-1 2024-09-19 02:41:01,219 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/4c7e6c4c-07be-4135-a648-6e5ff92b2c7f 2024-09-19 02:41:01,231 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/c2745486-22ac-4bd6-8751-fe2f8adfe1f4 2024-09-19 02:41:02,480 - 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.20 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.442 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 999ms\r\nrtt min/avg/max/mdev = 0.442/1.821/3.200/1.379 ms') 2024-09-19 02:41:02,480 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-04639636-58061600 passed 2024-09-19 02:41:02,640 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:41:02,640 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-04639636-58061600, IP 5.86.28.67, Port 22 2024-09-19 02:41:02,796 - DEBUG - VM ctest-TestRoutersBasic-04639636-58061600 is ready for SSH connections 2024-09-19 02:41:02,796 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:41:02,796 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 5.86.28.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-09-19 02:41:02,796 - DEBUG - ping -s 56 -c 3 -W 1 5.86.28.67 2024-09-19 02:41:06,556 - DEBUG - PING 5.86.28.67 (5.86.28.67): 56 data bytes 64 bytes from 5.86.28.67: seq=0 ttl=62 time=7.121 ms 64 bytes from 5.86.28.67: seq=1 ttl=62 time=1.267 ms 64 bytes from 5.86.28.67: seq=2 ttl=62 time=1.133 ms --- 5.86.28.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.133/3.173/7.121 ms 2024-09-19 02:41:06,556 - INFO - Ping to IP 5.86.28.67 from VM ctest-TestRoutersBasic-04639636-44606927 passed 2024-09-19 02:41:06,557 - INFO - Deleting interface with subnet_id 77dab91c-71d0-4ada-b3de-bded7d53f7ab, port_id None from router fad29f67-8cb5-4dd2-a7b5-5a7d803168b7 2024-09-19 02:41:06,808 - INFO - Deleting VM ctest-TestRoutersBasic-04639636-58061600 2024-09-19 02:41:06,885 - INFO - Deleting VM ctest-TestRoutersBasic-04639636-44606927 2024-09-19 02:41:07,043 - INFO - Deleting VN ctest-ext_vn-87094820 2024-09-19 02:41:07,169 - DEBUG - VN 48015bc8-ffa6-4794-a11c-dce309c9e683 still in use: Unable to complete operation on network 48015bc8-ffa6-4794-a11c-dce309c9e683. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-192cc87c-fd0a-4c75-8f7f-b82e75d21d57'] 2024-09-19 02:41:07,169 - WARNING - Deleting VN ctest-ext_vn-87094820 failed..Will retry 2024-09-19 02:41:09,308 - DEBUG - Response for deleting network () 2024-09-19 02:41:09,309 - INFO - Deleting VN ctest-vn-17323761 2024-09-19 02:41:09,462 - DEBUG - Response for deleting network () 2024-09-19 02:41:09,719 - DEBUG - No XMPP flaps were noticed during the test 2024-09-19 02:41:09,719 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2024-09-19 02:41:09,719 - INFO - -------------------------------------------------------------------------------- 2024-09-19 02:41:10,483 - INFO - Deleted project: ctest-TestRoutersBasic-04639636, ID : 2a71ffd3-b351-4d85-b5aa-46099aa71d83