2024-09-03 14:29:22,907 - INFO - Reading existing Domain with UUID 2de1d231-db55-4838-af7f-331e8edb8f37 2024-09-03 14:29:22,920 - INFO - Using existing domain ['admin_domain'](2de1d231-db55-4838-af7f-331e8edb8f37) 2024-09-03 14:29:23,142 - INFO - Project ctest-TestRoutersBasic-50644648 not found, creating it 2024-09-03 14:29:23,709 - INFO - Created Project:ctest-TestRoutersBasic-50644648, ID : 5e73b978-419a-4905-b196-6276c2acdd2e 2024-09-03 14:29:25,666 - INFO - ================================================================================ 2024-09-03 14:29:25,666 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-03 14:29:25,666 - 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-03 14:29:26,068 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.0.0.50': '0'}} with 2024-09-03 14:29:26,068 - INFO - Initial checks done. Running the testcase now 2024-09-03 14:29:26,068 - INFO - 2024-09-03 14:29:26,882 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-50644648 2024-09-03 14:29:26,986 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-50644648 2024-09-03 14:29:27,322 - DEBUG - Reading firewall policy {'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-50644648', 'default']} 2024-09-03 14:29:27,847 - DEBUG - Response for create_network : {'network': {'id': 'e20bc5c1-0e3c-4adf-b5de-d638f78ec001', 'name': 'ctest-vn-08426587', 'tenant_id': '5e73b978419a4905b1966276c2acdd2e', 'project_id': '5e73b978419a4905b1966276c2acdd2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-50644648', 'ctest-vn-08426587'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-03 14:29:28,135 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f3a32538-32b3-4954-9f9f-322dadb5c83f', 'name': '', 'tenant_id': '5e73b978419a4905b1966276c2acdd2e', 'network_id': 'e20bc5c1-0e3c-4adf-b5de-d638f78ec001', 'ip_version': 4, 'cidr': '2.196.142.64/26', 'allocation_pools': [{'start': '2.196.142.66', 'end': '2.196.142.126'}], 'gateway_ip': '2.196.142.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-03T14:29:28.023313', 'updated_at': '2024-09-03T14:29:28.023313', 'dns_server_address': '2.196.142.66', 'tags': [], 'project_id': '5e73b978419a4905b1966276c2acdd2e'}} 2024-09-03 14:29:28,208 - INFO - Created VN ctest-vn-08426587 2024-09-03 14:29:28,262 - DEBUG - VN ctest-vn-08426587 UUID is e20bc5c1-0e3c-4adf-b5de-d638f78ec001 2024-09-03 14:29:28,823 - DEBUG - Response for create_network : {'network': {'id': '5812ff72-ff5c-45bf-8e1c-75b4bce46a85', 'name': 'ctest-ext_vn-51590739', 'tenant_id': '5e73b978419a4905b1966276c2acdd2e', 'project_id': '5e73b978419a4905b1966276c2acdd2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-50644648', 'ctest-ext_vn-51590739'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-03 14:29:29,064 - DEBUG - Response for create_subnet : {'subnet': {'id': '69ae9365-828b-4868-8d76-a5bf112f8e91', 'name': '', 'tenant_id': '5e73b978419a4905b1966276c2acdd2e', 'network_id': '5812ff72-ff5c-45bf-8e1c-75b4bce46a85', 'ip_version': 4, 'cidr': '199.57.223.64/26', 'allocation_pools': [{'start': '199.57.223.66', 'end': '199.57.223.126'}], 'gateway_ip': '199.57.223.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-03T14:29:28.962259', 'updated_at': '2024-09-03T14:29:28.962259', 'dns_server_address': '199.57.223.66', 'tags': [], 'project_id': '5e73b978419a4905b1966276c2acdd2e'}} 2024-09-03 14:29:29,132 - INFO - Created VN ctest-ext_vn-51590739 2024-09-03 14:29:29,190 - DEBUG - VN ctest-ext_vn-51590739 UUID is 5812ff72-ff5c-45bf-8e1c-75b4bce46a85 2024-09-03 14:29:29,490 - DEBUG - Services list from nova: [, , ] 2024-09-03 14:29:30,668 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-400-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-400-1) 2024-09-03 14:29:31,973 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-400-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-400-1) 2024-09-03 14:29:32,135 - INFO - Setting gateway for router dede8c1d-d1bd-47bc-a41f-06e52447df6b to network 5812ff72-ff5c-45bf-8e1c-75b4bce46a85 2024-09-03 14:29:32,303 - INFO - Adding interface with subnet_id f3a32538-32b3-4954-9f9f-322dadb5c83f, port_id None to router dede8c1d-d1bd-47bc-a41f-06e52447df6b 2024-09-03 14:29:32,928 - INFO - Waiting for VM ctest-TestRoutersBasic-50644648-74580465 to be up.. 2024-09-03 14:29:33,121 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-03 14:29:38,267 - DEBUG - VM is in ACTIVE state now 2024-09-03 14:29:38,267 - INFO - VM name : ctest-TestRoutersBasic-50644648-74580465 2024-09-03 14:29:38,439 - DEBUG - VM ctest-TestRoutersBasic-50644648-74580465 ID is 3f7f70fc-68ec-4446-b3a4-8f44b295a5cf 2024-09-03 14:29:38,464 - DEBUG - VM ctest-TestRoutersBasic-50644648-74580465 launched on Node cn-jenkins-deploy-platform-juju-os-400-1 2024-09-03 14:29:38,616 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-machine/3f7f70fc-68ec-4446-b3a4-8f44b295a5cf 2024-09-03 14:29:38,970 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-machine/3f7f70fc-68ec-4446-b3a4-8f44b295a5cf 2024-09-03 14:29:39,067 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-machine-interface/7b548159-8841-4dc7-9dd8-e5ff1c7d90ca 2024-09-03 14:29:42,556 - 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-03 14:29:42,556 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50644648-74580465 failed! 2024-09-03 14:29:42,614 - DEBUG - Gateway for vn admin_domain:ctest-TestRoutersBasic-50644648:ctest-vn-08426587 is 2.196.142.65 and allocation pool is NOT set 2024-09-03 14:29:44,712 - 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=8.78 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=4.22 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 = 4.221/6.500/8.780/2.279 ms') 2024-09-03 14:29:44,712 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50644648-74580465 passed 2024-09-03 14:29:44,886 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 14:29:44,886 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50644648-74580465, IP 2.196.142.67, Port 22 2024-09-03 14:29:44,973 - 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-03 14:29:45,131 - DEBUG - VM ctest-TestRoutersBasic-50644648-74580465 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-03 14:29:50,132 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 14:29:50,133 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50644648-74580465, IP 2.196.142.67, Port 22 2024-09-03 14:29:50,380 - DEBUG - VM ctest-TestRoutersBasic-50644648-74580465 is ready for SSH connections 2024-09-03 14:29:50,380 - INFO - Waiting for VM ctest-TestRoutersBasic-50644648-95211810 to be up.. 2024-09-03 14:29:50,529 - DEBUG - VM is in ACTIVE state now 2024-09-03 14:29:50,530 - INFO - VM name : ctest-TestRoutersBasic-50644648-95211810 2024-09-03 14:29:50,682 - DEBUG - VM ctest-TestRoutersBasic-50644648-95211810 ID is 9bc0e4e8-05bb-4f3a-91ba-a1f52e752e6c 2024-09-03 14:29:50,683 - DEBUG - VM ctest-TestRoutersBasic-50644648-95211810 launched on Node cn-jenkins-deploy-platform-juju-os-400-1 2024-09-03 14:29:50,839 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-machine/9bc0e4e8-05bb-4f3a-91ba-a1f52e752e6c 2024-09-03 14:29:50,895 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-machine-interface/d0a80f0e-3517-4f3f-8367-e5a7343cdf87 2024-09-03 14:29:52,376 - 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.85 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.502 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.502/2.176/3.851/1.674 ms') 2024-09-03 14:29:52,377 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-50644648-95211810 passed 2024-09-03 14:29:52,538 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 14:29:52,538 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50644648-95211810, IP 199.57.223.67, Port 22 2024-09-03 14:29:52,753 - DEBUG - VM ctest-TestRoutersBasic-50644648-95211810 is ready for SSH connections 2024-09-03 14:29:52,753 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 14:29:52,753 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 199.57.223.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2024-09-03 14:29:52,753 - DEBUG - ping -s 56 -c 3 -W 1 199.57.223.67 2024-09-03 14:29:56,465 - DEBUG - PING 199.57.223.67 (199.57.223.67): 56 data bytes 64 bytes from 199.57.223.67: seq=0 ttl=62 time=5.070 ms 64 bytes from 199.57.223.67: seq=1 ttl=62 time=0.971 ms 64 bytes from 199.57.223.67: seq=2 ttl=62 time=1.053 ms --- 199.57.223.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.971/2.364/5.070 ms 2024-09-03 14:29:56,465 - INFO - Ping to IP 199.57.223.67 from VM ctest-TestRoutersBasic-50644648-74580465 passed 2024-09-03 14:29:56,466 - INFO - Deleting interface with subnet_id f3a32538-32b3-4954-9f9f-322dadb5c83f, port_id None from router dede8c1d-d1bd-47bc-a41f-06e52447df6b 2024-09-03 14:29:56,921 - INFO - Deleting VM ctest-TestRoutersBasic-50644648-95211810 2024-09-03 14:29:57,086 - INFO - Deleting VM ctest-TestRoutersBasic-50644648-74580465 2024-09-03 14:29:57,206 - INFO - Deleting VN ctest-ext_vn-51590739 2024-09-03 14:29:57,413 - DEBUG - VN 5812ff72-ff5c-45bf-8e1c-75b4bce46a85 still in use: Unable to complete operation on network 5812ff72-ff5c-45bf-8e1c-75b4bce46a85. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e45c1830-091b-43b7-8784-9dc5d3834338'] 2024-09-03 14:29:57,413 - WARNING - Deleting VN ctest-ext_vn-51590739 failed..Will retry 2024-09-03 14:29:59,614 - DEBUG - Response for deleting network () 2024-09-03 14:29:59,614 - INFO - Deleting VN ctest-vn-08426587 2024-09-03 14:29:59,807 - DEBUG - Response for deleting network () 2024-09-03 14:30:00,203 - DEBUG - No XMPP flaps were noticed during the test
2024-09-03 14:30:00,203 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:35]
2024-09-03 14:30:00,203 - INFO - -------------------------------------------------------------------------------- 2024-09-03 14:30:01,110 - INFO - Deleted project: ctest-TestRoutersBasic-50644648, ID : 5e73b978-419a-4905-b196-6276c2acdd2e