2024-09-04 11:14:23,538 - INFO - Reading existing Domain with UUID 5fc23b5e-6535-4002-b7dc-a80fda751e6b 2024-09-04 11:14:23,571 - INFO - Using existing domain ['admin_domain'](5fc23b5e-6535-4002-b7dc-a80fda751e6b) 2024-09-04 11:14:24,036 - INFO - Project ctest-TestRoutersBasic-78377217 not found, creating it 2024-09-04 11:14:24,967 - INFO - Created Project:ctest-TestRoutersBasic-78377217, ID : 6c7e6113-eb69-419e-9b27-111d6d0e6a56 2024-09-04 11:14:27,870 - INFO - ================================================================================ 2024-09-04 11:14:27,871 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-04 11:14:27,871 - 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-04 11:14:28,350 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.0.0.17': '0'}} with 2024-09-04 11:14:28,351 - INFO - Initial checks done. Running the testcase now 2024-09-04 11:14:28,351 - INFO - 2024-09-04 11:14:29,292 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-78377217 2024-09-04 11:14:29,400 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-78377217 2024-09-04 11:14:29,815 - DEBUG - Reading firewall policy {'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-78377217', 'default']} 2024-09-04 11:14:30,526 - DEBUG - Response for create_network : {'network': {'id': '74bf4a19-bd61-405a-8fdd-dad477da1fae', 'name': 'ctest-vn-37275565', 'tenant_id': '6c7e6113eb69419e9b27111d6d0e6a56', 'project_id': '6c7e6113eb69419e9b27111d6d0e6a56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-78377217', 'ctest-vn-37275565'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-04 11:14:30,782 - DEBUG - Response for create_subnet : {'subnet': {'id': '41e1bac0-31f1-49ab-b099-5cae82179971', 'name': '', 'tenant_id': '6c7e6113eb69419e9b27111d6d0e6a56', 'network_id': '74bf4a19-bd61-405a-8fdd-dad477da1fae', 'ip_version': 4, 'cidr': '90.76.242.192/26', 'allocation_pools': [{'start': '90.76.242.194', 'end': '90.76.242.254'}], 'gateway_ip': '90.76.242.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-04T11:14:30.658671', 'updated_at': '2024-09-04T11:14:30.658671', 'dns_server_address': '90.76.242.194', 'tags': [], 'project_id': '6c7e6113eb69419e9b27111d6d0e6a56'}} 2024-09-04 11:14:30,858 - INFO - Created VN ctest-vn-37275565 2024-09-04 11:14:30,920 - DEBUG - VN ctest-vn-37275565 UUID is 74bf4a19-bd61-405a-8fdd-dad477da1fae 2024-09-04 11:14:31,660 - DEBUG - Response for create_network : {'network': {'id': '33bf9360-14f4-47f6-81cd-2dc3ea660495', 'name': 'ctest-ext_vn-75161132', 'tenant_id': '6c7e6113eb69419e9b27111d6d0e6a56', 'project_id': '6c7e6113eb69419e9b27111d6d0e6a56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-78377217', 'ctest-ext_vn-75161132'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-04 11:14:31,982 - DEBUG - Response for create_subnet : {'subnet': {'id': '68c8ff3d-bbde-49e8-9e9b-025a47c49e5b', 'name': '', 'tenant_id': '6c7e6113eb69419e9b27111d6d0e6a56', 'network_id': '33bf9360-14f4-47f6-81cd-2dc3ea660495', 'ip_version': 4, 'cidr': '94.39.30.64/26', 'allocation_pools': [{'start': '94.39.30.66', 'end': '94.39.30.126'}], 'gateway_ip': '94.39.30.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-04T11:14:31.807181', 'updated_at': '2024-09-04T11:14:31.807181', 'dns_server_address': '94.39.30.66', 'tags': [], 'project_id': '6c7e6113eb69419e9b27111d6d0e6a56'}} 2024-09-04 11:14:32,066 - INFO - Created VN ctest-ext_vn-75161132 2024-09-04 11:14:32,128 - DEBUG - VN ctest-ext_vn-75161132 UUID is 33bf9360-14f4-47f6-81cd-2dc3ea660495 2024-09-04 11:14:32,500 - DEBUG - Services list from nova: [, , ] 2024-09-04 11:14:34,185 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-402-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-402-1) 2024-09-04 11:14:35,833 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-402-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-402-1) 2024-09-04 11:14:36,005 - INFO - Setting gateway for router 5510fce1-21ef-4f14-9aef-0e14f446ca39 to network 33bf9360-14f4-47f6-81cd-2dc3ea660495 2024-09-04 11:14:36,172 - INFO - Adding interface with subnet_id 41e1bac0-31f1-49ab-b099-5cae82179971, port_id None to router 5510fce1-21ef-4f14-9aef-0e14f446ca39 2024-09-04 11:14:36,879 - INFO - Waiting for VM ctest-TestRoutersBasic-78377217-23529463 to be up.. 2024-09-04 11:14:37,066 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-04 11:14:42,267 - DEBUG - VM is in ACTIVE state now 2024-09-04 11:14:42,267 - INFO - VM name : ctest-TestRoutersBasic-78377217-23529463 2024-09-04 11:14:42,448 - DEBUG - VM ctest-TestRoutersBasic-78377217-23529463 ID is 5a18bb42-db42-4112-9d31-375077267ce1 2024-09-04 11:14:42,485 - DEBUG - VM ctest-TestRoutersBasic-78377217-23529463 launched on Node cn-jenkins-deploy-platform-juju-os-402-1 2024-09-04 11:14:42,678 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-machine/5a18bb42-db42-4112-9d31-375077267ce1 2024-09-04 11:14:43,078 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-machine/5a18bb42-db42-4112-9d31-375077267ce1 2024-09-04 11:14:43,198 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-machine-interface/a4b435cf-4cbb-4ef8-bfbb-964182c70567 2024-09-04 11:14:46,708 - 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-09-04 11:14:46,708 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-78377217-23529463 failed! 2024-09-04 11:14:46,780 - DEBUG - Gateway for vn admin_domain:ctest-TestRoutersBasic-78377217:ctest-vn-37275565 is 90.76.242.193 and allocation pool is NOT set 2024-09-04 11:14:50,905 - 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 1019ms') 2024-09-04 11:14:50,906 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-78377217-23529463 failed! 2024-09-04 11:14:50,991 - DEBUG - Gateway for vn admin_domain:ctest-TestRoutersBasic-78377217:ctest-vn-37275565 is 90.76.242.193 and allocation pool is NOT set 2024-09-04 11:14:53,130 - 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.27 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.00 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 = 1.004/3.139/5.274/2.135 ms') 2024-09-04 11:14:53,130 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-78377217-23529463 passed 2024-09-04 11:14:53,312 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 11:14:53,312 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-78377217-23529463, IP 90.76.242.195, Port 22 2024-09-04 11:14:53,563 - DEBUG - VM ctest-TestRoutersBasic-78377217-23529463 is ready for SSH connections 2024-09-04 11:14:53,563 - INFO - Waiting for VM ctest-TestRoutersBasic-78377217-76479573 to be up.. 2024-09-04 11:14:53,840 - DEBUG - VM is in ACTIVE state now 2024-09-04 11:14:53,841 - INFO - VM name : ctest-TestRoutersBasic-78377217-76479573 2024-09-04 11:14:54,105 - DEBUG - VM ctest-TestRoutersBasic-78377217-76479573 ID is 9c940b91-93a2-4290-9b83-9dd2a385097c 2024-09-04 11:14:54,105 - DEBUG - VM ctest-TestRoutersBasic-78377217-76479573 launched on Node cn-jenkins-deploy-platform-juju-os-402-1 2024-09-04 11:14:54,345 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-machine/9c940b91-93a2-4290-9b83-9dd2a385097c 2024-09-04 11:14:54,413 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-machine-interface/ff797830-3f82-42bb-88c4-c69cbc7363bb 2024-09-04 11:14:56,002 - 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=10.1 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.815 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.815/5.440/10.065/4.625 ms') 2024-09-04 11:14:56,003 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-78377217-76479573 passed 2024-09-04 11:14:56,204 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 11:14:56,204 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-78377217-76479573, IP 94.39.30.67, Port 22 2024-09-04 11:14:56,483 - DEBUG - VM ctest-TestRoutersBasic-78377217-76479573 is ready for SSH connections 2024-09-04 11:14:56,484 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 11:14:56,484 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 94.39.30.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-09-04 11:14:56,484 - DEBUG - ping -s 56 -c 3 -W 1 94.39.30.67 2024-09-04 11:15:00,712 - DEBUG - PING 94.39.30.67 (94.39.30.67): 56 data bytes 64 bytes from 94.39.30.67: seq=0 ttl=62 time=10.915 ms 64 bytes from 94.39.30.67: seq=1 ttl=62 time=2.019 ms 64 bytes from 94.39.30.67: seq=2 ttl=62 time=1.892 ms --- 94.39.30.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.892/4.942/10.915 ms 2024-09-04 11:15:00,712 - INFO - Ping to IP 94.39.30.67 from VM ctest-TestRoutersBasic-78377217-23529463 passed 2024-09-04 11:15:00,713 - INFO - Deleting interface with subnet_id 41e1bac0-31f1-49ab-b099-5cae82179971, port_id None from router 5510fce1-21ef-4f14-9aef-0e14f446ca39 2024-09-04 11:15:01,274 - INFO - Deleting VM ctest-TestRoutersBasic-78377217-76479573 2024-09-04 11:15:01,389 - INFO - Deleting VM ctest-TestRoutersBasic-78377217-23529463 2024-09-04 11:15:01,524 - INFO - Deleting VN ctest-ext_vn-75161132 2024-09-04 11:15:01,771 - DEBUG - VN 33bf9360-14f4-47f6-81cd-2dc3ea660495 still in use: Unable to complete operation on network 33bf9360-14f4-47f6-81cd-2dc3ea660495. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a3719550-7b21-4830-8133-38c32c9e6184'] 2024-09-04 11:15:01,772 - WARNING - Deleting VN ctest-ext_vn-75161132 failed..Will retry 2024-09-04 11:15:04,088 - DEBUG - Response for deleting network () 2024-09-04 11:15:04,088 - INFO - Deleting VN ctest-vn-37275565 2024-09-04 11:15:04,348 - DEBUG - Response for deleting network () 2024-09-04 11:15:04,846 - DEBUG - No XMPP flaps were noticed during the test 2024-09-04 11:15:04,846 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:37] 2024-09-04 11:15:04,846 - INFO - -------------------------------------------------------------------------------- 2024-09-04 11:15:05,981 - INFO - Deleted project: ctest-TestRoutersBasic-78377217, ID : 6c7e6113-eb69-419e-9b27-111d6d0e6a56