2024-09-19 02:23:16,605 - INFO - Reading existing Domain with UUID df30a39c-7ce1-425c-8d6f-05f52997b6ef 2024-09-19 02:23:16,618 - INFO - Using existing domain ['admin_domain'](df30a39c-7ce1-425c-8d6f-05f52997b6ef) 2024-09-19 02:23:16,809 - INFO - Project ctest-TestRoutersBasic-18275370 not found, creating it 2024-09-19 02:23:17,360 - INFO - Created Project:ctest-TestRoutersBasic-18275370, ID : f2d1a1c3-cf23-4edc-b333-85b4fbf48bce 2024-09-19 02:23:19,092 - INFO - ================================================================================ 2024-09-19 02:23:19,092 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-19 02:23:19,092 - 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:23:19,455 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.0.0.36': '0'}} with 2024-09-19 02:23:19,455 - INFO - Initial checks done. Running the testcase now 2024-09-19 02:23:19,455 - INFO - 2024-09-19 02:23:20,241 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-18275370 2024-09-19 02:23:20,341 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-18275370 2024-09-19 02:23:20,677 - DEBUG - Reading firewall policy {'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-18275370', 'default']} 2024-09-19 02:23:21,490 - DEBUG - Response for create_network : {'network': {'id': '3982ecae-3e2b-4cdc-a97c-3984f44962e3', 'name': 'ctest-vn-90379597', 'tenant_id': 'f2d1a1c3cf234edcb33385b4fbf48bce', 'project_id': 'f2d1a1c3cf234edcb33385b4fbf48bce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-18275370', 'ctest-vn-90379597'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-19 02:23:21,727 - DEBUG - Response for create_subnet : {'subnet': {'id': '6412c919-3f0a-43a0-bfc5-cf68dfd1bd95', 'name': '', 'tenant_id': 'f2d1a1c3cf234edcb33385b4fbf48bce', 'network_id': '3982ecae-3e2b-4cdc-a97c-3984f44962e3', 'ip_version': 4, 'cidr': '160.10.151.64/26', 'allocation_pools': [{'start': '160.10.151.66', 'end': '160.10.151.126'}], 'gateway_ip': '160.10.151.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-19T02:23:21.632575', 'updated_at': '2024-09-19T02:23:21.632575', 'dns_server_address': '160.10.151.66', 'tags': [], 'project_id': 'f2d1a1c3cf234edcb33385b4fbf48bce'}} 2024-09-19 02:23:21,791 - INFO - Created VN ctest-vn-90379597 2024-09-19 02:23:21,849 - DEBUG - VN ctest-vn-90379597 UUID is 3982ecae-3e2b-4cdc-a97c-3984f44962e3 2024-09-19 02:23:22,417 - DEBUG - Response for create_network : {'network': {'id': 'b35e77fe-f138-49e9-bd31-ad2fbda5f602', 'name': 'ctest-ext_vn-31452672', 'tenant_id': 'f2d1a1c3cf234edcb33385b4fbf48bce', 'project_id': 'f2d1a1c3cf234edcb33385b4fbf48bce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-18275370', 'ctest-ext_vn-31452672'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-19 02:23:22,666 - DEBUG - Response for create_subnet : {'subnet': {'id': '1da87fc8-a8da-470a-afdb-73cc121cd76a', 'name': '', 'tenant_id': 'f2d1a1c3cf234edcb33385b4fbf48bce', 'network_id': 'b35e77fe-f138-49e9-bd31-ad2fbda5f602', 'ip_version': 4, 'cidr': '214.10.91.192/26', 'allocation_pools': [{'start': '214.10.91.194', 'end': '214.10.91.254'}], 'gateway_ip': '214.10.91.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-19T02:23:22.557958', 'updated_at': '2024-09-19T02:23:22.557958', 'dns_server_address': '214.10.91.194', 'tags': [], 'project_id': 'f2d1a1c3cf234edcb33385b4fbf48bce'}} 2024-09-19 02:23:22,735 - INFO - Created VN ctest-ext_vn-31452672 2024-09-19 02:23:22,798 - DEBUG - VN ctest-ext_vn-31452672 UUID is b35e77fe-f138-49e9-bd31-ad2fbda5f602 2024-09-19 02:23:23,112 - DEBUG - Services list from nova: [, , ] 2024-09-19 02:23:24,198 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-428-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-428-1) 2024-09-19 02:23:25,505 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-428-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-428-1) 2024-09-19 02:23:25,661 - INFO - Setting gateway for router 4b296a06-ee1c-4f2a-a85e-476d6f2a6f92 to network b35e77fe-f138-49e9-bd31-ad2fbda5f602 2024-09-19 02:23:25,853 - INFO - Adding interface with subnet_id 6412c919-3f0a-43a0-bfc5-cf68dfd1bd95, port_id None to router 4b296a06-ee1c-4f2a-a85e-476d6f2a6f92 2024-09-19 02:23:26,516 - INFO - Waiting for VM ctest-TestRoutersBasic-18275370-07101494 to be up.. 2024-09-19 02:23:26,674 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-19 02:23:31,816 - DEBUG - VM is in ACTIVE state now 2024-09-19 02:23:31,816 - INFO - VM name : ctest-TestRoutersBasic-18275370-07101494 2024-09-19 02:23:31,955 - DEBUG - VM ctest-TestRoutersBasic-18275370-07101494 ID is a52d7131-a497-4bb8-95da-bb7a32262d4b 2024-09-19 02:23:31,979 - DEBUG - VM ctest-TestRoutersBasic-18275370-07101494 launched on Node cn-jenkins-deploy-platform-juju-os-428-1 2024-09-19 02:23:32,149 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-machine/a52d7131-a497-4bb8-95da-bb7a32262d4b 2024-09-19 02:23:32,495 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-machine/a52d7131-a497-4bb8-95da-bb7a32262d4b 2024-09-19 02:23:32,590 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-machine-interface/c9005bc5-5312-4efa-ab1b-0b31c2ac12bb 2024-09-19 02:23:36,090 - 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 1020ms') 2024-09-19 02:23:36,090 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-18275370-07101494 failed! 2024-09-19 02:23:36,149 - DEBUG - Gateway for vn admin_domain:ctest-TestRoutersBasic-18275370:ctest-vn-90379597 is 160.10.151.65 and allocation pool is NOT set 2024-09-19 02:23:38,235 - 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.66 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.525 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 = 0.525/2.593/4.662/2.068 ms') 2024-09-19 02:23:38,235 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-18275370-07101494 passed 2024-09-19 02:23:38,397 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:23:38,397 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-18275370-07101494, IP 160.10.151.67, Port 22 2024-09-19 02:23:38,603 - DEBUG - VM ctest-TestRoutersBasic-18275370-07101494 is ready for SSH connections 2024-09-19 02:23:38,603 - INFO - Waiting for VM ctest-TestRoutersBasic-18275370-97987820 to be up.. 2024-09-19 02:23:38,742 - DEBUG - VM is in ACTIVE state now 2024-09-19 02:23:38,742 - INFO - VM name : ctest-TestRoutersBasic-18275370-97987820 2024-09-19 02:23:38,874 - DEBUG - VM ctest-TestRoutersBasic-18275370-97987820 ID is a4a43d7d-5022-48bb-ac0a-f9478828f3fd 2024-09-19 02:23:38,874 - DEBUG - VM ctest-TestRoutersBasic-18275370-97987820 launched on Node cn-jenkins-deploy-platform-juju-os-428-1 2024-09-19 02:23:39,009 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-machine/a4a43d7d-5022-48bb-ac0a-f9478828f3fd 2024-09-19 02:23:39,066 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-machine-interface/698cb10d-c7e8-47fe-9300-d4efc3420441 2024-09-19 02:23:40,528 - 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=4.46 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.802 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.802/2.629/4.457/1.827 ms') 2024-09-19 02:23:40,528 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-18275370-97987820 passed 2024-09-19 02:23:40,693 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:23:40,694 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-18275370-97987820, IP 214.10.91.195, Port 22 2024-09-19 02:23:40,900 - DEBUG - VM ctest-TestRoutersBasic-18275370-97987820 is ready for SSH connections 2024-09-19 02:23:40,901 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:23:40,901 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 214.10.91.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-09-19 02:23:40,901 - DEBUG - ping -s 56 -c 3 -W 1 214.10.91.195 2024-09-19 02:23:44,578 - DEBUG - PING 214.10.91.195 (214.10.91.195): 56 data bytes 64 bytes from 214.10.91.195: seq=0 ttl=62 time=8.442 ms 64 bytes from 214.10.91.195: seq=1 ttl=62 time=0.881 ms 64 bytes from 214.10.91.195: seq=2 ttl=62 time=1.021 ms --- 214.10.91.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.881/3.448/8.442 ms 2024-09-19 02:23:44,578 - INFO - Ping to IP 214.10.91.195 from VM ctest-TestRoutersBasic-18275370-07101494 passed 2024-09-19 02:23:44,578 - INFO - Deleting interface with subnet_id 6412c919-3f0a-43a0-bfc5-cf68dfd1bd95, port_id None from router 4b296a06-ee1c-4f2a-a85e-476d6f2a6f92 2024-09-19 02:23:44,947 - INFO - Deleting VM ctest-TestRoutersBasic-18275370-97987820 2024-09-19 02:23:45,049 - INFO - Deleting VM ctest-TestRoutersBasic-18275370-07101494 2024-09-19 02:23:45,156 - INFO - Deleting VN ctest-ext_vn-31452672 2024-09-19 02:23:45,346 - DEBUG - VN b35e77fe-f138-49e9-bd31-ad2fbda5f602 still in use: Unable to complete operation on network b35e77fe-f138-49e9-bd31-ad2fbda5f602. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-048ff9db-751d-4818-be3a-9237cbcf034f'] 2024-09-19 02:23:45,346 - WARNING - Deleting VN ctest-ext_vn-31452672 failed..Will retry 2024-09-19 02:23:47,506 - DEBUG - Response for deleting network () 2024-09-19 02:23:47,506 - INFO - Deleting VN ctest-vn-90379597 2024-09-19 02:23:47,816 - DEBUG - Response for deleting network () 2024-09-19 02:23:48,191 - DEBUG - No XMPP flaps were noticed during the test 2024-09-19 02:23:48,191 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:29] 2024-09-19 02:23:48,191 - INFO - -------------------------------------------------------------------------------- 2024-09-19 02:23:48,909 - INFO - Deleted project: ctest-TestRoutersBasic-18275370, ID : f2d1a1c3-cf23-4edc-b333-85b4fbf48bce