2024-10-29 11:29:56,642 - INFO - Domain Default found not creating 2024-10-29 11:29:56,877 - INFO - Project ctest-TestRoutersBasic-50833937 not found, creating it 2024-10-29 11:29:57,417 - INFO - Created Project:ctest-TestRoutersBasic-50833937, ID : d7deb3b7-b428-4434-b5f5-89bef50b6c4f 2024-10-29 11:29:59,311 - INFO - ================================================================================ 2024-10-29 11:29:59,311 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-29 11:29:59,311 - 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-10-29 11:29:59,582 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.12': '0'}} with 2024-10-29 11:29:59,582 - INFO - Initial checks done. Running the testcase now 2024-10-29 11:29:59,583 - INFO - 2024-10-29 11:30:00,575 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-50833937 2024-10-29 11:30:00,686 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-50833937 2024-10-29 11:30:01,042 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50833937', 'default']} 2024-10-29 11:30:01,403 - DEBUG - Response for create_network : {'network': {'id': '5f42f434-3656-418e-ab89-c791a5d479d5', 'name': 'ctest-vn-34582450', 'tenant_id': 'd7deb3b7b4284434b5f589bef50b6c4f', 'project_id': 'd7deb3b7b4284434b5f589bef50b6c4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50833937', 'ctest-vn-34582450'], 'port_security_enabled': True, 'description': ''}} 2024-10-29 11:30:01,594 - DEBUG - Response for create_subnet : {'subnet': {'id': 'deeb6467-b2d0-4579-a36f-0c0b93098973', 'name': '', 'tenant_id': 'd7deb3b7b4284434b5f589bef50b6c4f', 'network_id': '5f42f434-3656-418e-ab89-c791a5d479d5', 'ip_version': 4, 'cidr': '94.146.166.128/26', 'allocation_pools': [{'start': '94.146.166.130', 'end': '94.146.166.190'}], 'gateway_ip': '94.146.166.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.146.166.130', 'tags': [], 'project_id': 'd7deb3b7b4284434b5f589bef50b6c4f'}} 2024-10-29 11:30:01,621 - INFO - Created VN ctest-vn-34582450 2024-10-29 11:30:01,694 - DEBUG - VN ctest-vn-34582450 UUID is 5f42f434-3656-418e-ab89-c791a5d479d5 2024-10-29 11:30:02,123 - DEBUG - Response for create_network : {'network': {'id': '99c0d2f8-966b-4024-b32f-26a74523461b', 'name': 'ctest-ext_vn-20915759', 'tenant_id': 'd7deb3b7b4284434b5f589bef50b6c4f', 'project_id': 'd7deb3b7b4284434b5f589bef50b6c4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50833937', 'ctest-ext_vn-20915759'], 'port_security_enabled': True, 'description': ''}} 2024-10-29 11:30:02,360 - DEBUG - Response for create_subnet : {'subnet': {'id': '3142eabf-1f0c-4e50-ad3f-10e0d0635534', 'name': '', 'tenant_id': 'd7deb3b7b4284434b5f589bef50b6c4f', 'network_id': '99c0d2f8-966b-4024-b32f-26a74523461b', 'ip_version': 4, 'cidr': '214.53.185.64/26', 'allocation_pools': [{'start': '214.53.185.66', 'end': '214.53.185.126'}], 'gateway_ip': '214.53.185.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.53.185.66', 'tags': [], 'project_id': 'd7deb3b7b4284434b5f589bef50b6c4f'}} 2024-10-29 11:30:02,384 - INFO - Created VN ctest-ext_vn-20915759 2024-10-29 11:30:02,446 - DEBUG - VN ctest-ext_vn-20915759 UUID is 99c0d2f8-966b-4024-b32f-26a74523461b 2024-10-29 11:30:02,652 - DEBUG - Services list from nova: [, , ] 2024-10-29 11:30:03,900 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2175-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2175-1) 2024-10-29 11:30:05,299 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2175-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2175-1) 2024-10-29 11:30:05,388 - INFO - Setting gateway for router 81cc8a26-5975-4238-804d-9d55fda25c62 to network 99c0d2f8-966b-4024-b32f-26a74523461b 2024-10-29 11:30:05,501 - INFO - Adding interface with subnet_id deeb6467-b2d0-4579-a36f-0c0b93098973, port_id None to router 81cc8a26-5975-4238-804d-9d55fda25c62 2024-10-29 11:30:06,024 - INFO - Waiting for VM ctest-TestRoutersBasic-50833937-81327774 to be up.. 2024-10-29 11:30:06,248 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-29 11:30:11,347 - DEBUG - VM is in ACTIVE state now 2024-10-29 11:30:11,347 - INFO - VM name : ctest-TestRoutersBasic-50833937-81327774 2024-10-29 11:30:11,458 - DEBUG - VM ctest-TestRoutersBasic-50833937-81327774 ID is 457bb916-20d7-4ec6-9ea7-3374a6af5238 2024-10-29 11:30:11,501 - DEBUG - VM ctest-TestRoutersBasic-50833937-81327774 launched on Node cn-jenkins-deploy-platform-ansible-os-2175-1 2024-10-29 11:30:11,634 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/457bb916-20d7-4ec6-9ea7-3374a6af5238 2024-10-29 11:30:11,980 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/457bb916-20d7-4ec6-9ea7-3374a6af5238 2024-10-29 11:30:12,025 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/fdf37e24-3a39-48aa-b37e-2617fe0e0bb5 2024-10-29 11:30:15,316 - 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 1013ms') 2024-10-29 11:30:15,316 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50833937-81327774 failed! 2024-10-29 11:30:15,378 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-50833937:ctest-vn-34582450 is 94.146.166.129 and allocation pool is NOT set 2024-10-29 11:30:17,442 - 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=5.66 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.51 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.507/3.581/5.655/2.074 ms') 2024-10-29 11:30:17,442 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50833937-81327774 passed 2024-10-29 11:30:17,606 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 11:30:17,607 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50833937-81327774, IP 94.146.166.131, Port 22 2024-10-29 11:30:17,777 - DEBUG - VM ctest-TestRoutersBasic-50833937-81327774 is ready for SSH connections 2024-10-29 11:30:17,777 - INFO - Waiting for VM ctest-TestRoutersBasic-50833937-81884867 to be up.. 2024-10-29 11:30:17,888 - DEBUG - VM is in ACTIVE state now 2024-10-29 11:30:17,888 - INFO - VM name : ctest-TestRoutersBasic-50833937-81884867 2024-10-29 11:30:18,019 - DEBUG - VM ctest-TestRoutersBasic-50833937-81884867 ID is edb53abc-1ab0-497e-b07f-293f39958578 2024-10-29 11:30:18,019 - DEBUG - VM ctest-TestRoutersBasic-50833937-81884867 launched on Node cn-jenkins-deploy-platform-ansible-os-2175-1 2024-10-29 11:30:18,135 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/edb53abc-1ab0-497e-b07f-293f39958578 2024-10-29 11:30:18,148 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/9dddc401-2116-4dd9-b9f6-fc617a0b89a0 2024-10-29 11:30:19,430 - 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.93 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.19 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 = 1.192/2.558/3.925/1.366 ms') 2024-10-29 11:30:19,431 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-50833937-81884867 passed 2024-10-29 11:30:19,594 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 11:30:19,595 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50833937-81884867, IP 214.53.185.67, Port 22 2024-10-29 11:30:19,660 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-10-29 11:30:19,758 - DEBUG - VM ctest-TestRoutersBasic-50833937-81884867 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-29 11:30:24,758 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 11:30:24,759 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50833937-81884867, IP 214.53.185.67, Port 22 2024-10-29 11:30:24,930 - DEBUG - VM ctest-TestRoutersBasic-50833937-81884867 is ready for SSH connections 2024-10-29 11:30:24,930 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 11:30:24,930 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 214.53.185.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-10-29 11:30:24,930 - DEBUG - ping -s 56 -c 3 -W 1 214.53.185.67 2024-10-29 11:30:28,693 - DEBUG - PING 214.53.185.67 (214.53.185.67): 56 data bytes 64 bytes from 214.53.185.67: seq=0 ttl=62 time=7.293 ms 64 bytes from 214.53.185.67: seq=1 ttl=62 time=1.110 ms 64 bytes from 214.53.185.67: seq=2 ttl=62 time=1.055 ms --- 214.53.185.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.055/3.152/7.293 ms 2024-10-29 11:30:28,694 - INFO - Ping to IP 214.53.185.67 from VM ctest-TestRoutersBasic-50833937-81327774 passed 2024-10-29 11:30:28,694 - INFO - Deleting interface with subnet_id deeb6467-b2d0-4579-a36f-0c0b93098973, port_id None from router 81cc8a26-5975-4238-804d-9d55fda25c62 2024-10-29 11:30:28,965 - INFO - Deleting VM ctest-TestRoutersBasic-50833937-81884867 2024-10-29 11:30:29,082 - INFO - Deleting VM ctest-TestRoutersBasic-50833937-81327774 2024-10-29 11:30:29,184 - INFO - Deleting VN ctest-ext_vn-20915759 2024-10-29 11:30:29,286 - DEBUG - VN 99c0d2f8-966b-4024-b32f-26a74523461b still in use: Unable to complete operation on network 99c0d2f8-966b-4024-b32f-26a74523461b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3b9eb31c-cd7f-4c79-ae1d-0cf7241fdf86'] 2024-10-29 11:30:29,287 - WARNING - Deleting VN ctest-ext_vn-20915759 failed..Will retry 2024-10-29 11:30:31,424 - DEBUG - Response for deleting network () 2024-10-29 11:30:31,424 - INFO - Deleting VN ctest-vn-34582450 2024-10-29 11:30:31,560 - DEBUG - Response for deleting network () 2024-10-29 11:30:31,828 - DEBUG - No XMPP flaps were noticed during the test
2024-10-29 11:30:31,828 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2024-10-29 11:30:31,829 - INFO - -------------------------------------------------------------------------------- 2024-10-29 11:30:32,659 - INFO - Deleted project: ctest-TestRoutersBasic-50833937, ID : d7deb3b7-b428-4434-b5f5-89bef50b6c4f