2024-09-06 14:06:10,558 - INFO - Domain Default found not creating 2024-09-06 14:06:10,725 - INFO - Project ctest-TestRoutersBasic-89853342 not found, creating it 2024-09-06 14:06:11,255 - INFO - Created Project:ctest-TestRoutersBasic-89853342, ID : c7d8904d-55aa-46cc-83f1-05b842f8a58f 2024-09-06 14:06:12,945 - INFO - ================================================================================ 2024-09-06 14:06:12,946 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-06 14:06:12,946 - 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-06 14:06:13,216 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.5': '0'}} with 2024-09-06 14:06:13,217 - INFO - Initial checks done. Running the testcase now 2024-09-06 14:06:13,217 - INFO - 2024-09-06 14:06:13,956 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-89853342 2024-09-06 14:06:14,054 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-89853342 2024-09-06 14:06:14,378 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89853342', 'default']} 2024-09-06 14:06:14,704 - DEBUG - Response for create_network : {'network': {'id': '8fd36234-b5b2-4165-973b-dae523772985', 'name': 'ctest-vn-18246399', 'tenant_id': 'c7d8904d55aa46cc83f105b842f8a58f', 'project_id': 'c7d8904d55aa46cc83f105b842f8a58f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89853342', 'ctest-vn-18246399'], 'port_security_enabled': True, 'description': ''}} 2024-09-06 14:06:14,929 - DEBUG - Response for create_subnet : {'subnet': {'id': '17a7d16a-e2d8-487b-9377-968c2af861b2', 'name': '', 'tenant_id': 'c7d8904d55aa46cc83f105b842f8a58f', 'network_id': '8fd36234-b5b2-4165-973b-dae523772985', 'ip_version': 4, 'cidr': '38.58.84.192/26', 'allocation_pools': [{'start': '38.58.84.194', 'end': '38.58.84.254'}], 'gateway_ip': '38.58.84.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.58.84.194', 'tags': [], 'project_id': 'c7d8904d55aa46cc83f105b842f8a58f'}} 2024-09-06 14:06:14,952 - INFO - Created VN ctest-vn-18246399 2024-09-06 14:06:15,006 - DEBUG - VN ctest-vn-18246399 UUID is 8fd36234-b5b2-4165-973b-dae523772985 2024-09-06 14:06:15,357 - DEBUG - Response for create_network : {'network': {'id': '4a901c93-51ca-4991-a4c7-e63edb10aa63', 'name': 'ctest-ext_vn-04106666', 'tenant_id': 'c7d8904d55aa46cc83f105b842f8a58f', 'project_id': 'c7d8904d55aa46cc83f105b842f8a58f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89853342', 'ctest-ext_vn-04106666'], 'port_security_enabled': True, 'description': ''}} 2024-09-06 14:06:15,567 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a729b53-34f4-4759-b5d8-c29bd9d7e690', 'name': '', 'tenant_id': 'c7d8904d55aa46cc83f105b842f8a58f', 'network_id': '4a901c93-51ca-4991-a4c7-e63edb10aa63', 'ip_version': 4, 'cidr': '186.194.68.192/26', 'allocation_pools': [{'start': '186.194.68.194', 'end': '186.194.68.254'}], 'gateway_ip': '186.194.68.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.194.68.194', 'tags': [], 'project_id': 'c7d8904d55aa46cc83f105b842f8a58f'}} 2024-09-06 14:06:15,591 - INFO - Created VN ctest-ext_vn-04106666 2024-09-06 14:06:15,646 - DEBUG - VN ctest-ext_vn-04106666 UUID is 4a901c93-51ca-4991-a4c7-e63edb10aa63 2024-09-06 14:06:15,832 - DEBUG - Services list from nova: [, , ] 2024-09-06 14:06:16,955 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1861-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1861-1) 2024-09-06 14:06:18,273 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1861-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1861-1) 2024-09-06 14:06:18,367 - INFO - Setting gateway for router 0b6dd837-df14-478b-a1f0-2578d6035f77 to network 4a901c93-51ca-4991-a4c7-e63edb10aa63 2024-09-06 14:06:18,440 - INFO - Adding interface with subnet_id 17a7d16a-e2d8-487b-9377-968c2af861b2, port_id None to router 0b6dd837-df14-478b-a1f0-2578d6035f77 2024-09-06 14:06:18,890 - INFO - Waiting for VM ctest-TestRoutersBasic-89853342-97303950 to be up.. 2024-09-06 14:06:19,073 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-06 14:06:24,174 - DEBUG - VM is in ACTIVE state now 2024-09-06 14:06:24,174 - INFO - VM name : ctest-TestRoutersBasic-89853342-97303950 2024-09-06 14:06:24,280 - DEBUG - VM ctest-TestRoutersBasic-89853342-97303950 ID is 4e27fc9c-34ea-4e5e-a355-023034249ade 2024-09-06 14:06:24,305 - DEBUG - VM ctest-TestRoutersBasic-89853342-97303950 launched on Node cn-jenkins-deploy-platform-ansible-os-1861-1 2024-09-06 14:06:24,400 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/4e27fc9c-34ea-4e5e-a355-023034249ade 2024-09-06 14:06:24,699 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/4e27fc9c-34ea-4e5e-a355-023034249ade 2024-09-06 14:06:24,745 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/eea5e73e-13c3-42e2-ae79-b665707c3a08 2024-09-06 14:06:28,023 - 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 1027ms') 2024-09-06 14:06:28,024 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-89853342-97303950 failed! 2024-09-06 14:06:28,078 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-89853342:ctest-vn-18246399 is 38.58.84.193 and allocation pool is NOT set 2024-09-06 14:06:30,136 - 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=3.61 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.47 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.471/2.539/3.607/1.068 ms') 2024-09-06 14:06:30,137 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-89853342-97303950 passed 2024-09-06 14:06:30,286 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 14:06:30,286 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-89853342-97303950, IP 38.58.84.195, Port 22 2024-09-06 14:06:30,455 - DEBUG - VM ctest-TestRoutersBasic-89853342-97303950 is ready for SSH connections 2024-09-06 14:06:30,455 - INFO - Waiting for VM ctest-TestRoutersBasic-89853342-85717657 to be up.. 2024-09-06 14:06:30,550 - DEBUG - VM is in ACTIVE state now 2024-09-06 14:06:30,550 - INFO - VM name : ctest-TestRoutersBasic-89853342-85717657 2024-09-06 14:06:30,654 - DEBUG - VM ctest-TestRoutersBasic-89853342-85717657 ID is 7c5ba933-1a9c-4f02-a05f-3109c7797d9a 2024-09-06 14:06:30,655 - DEBUG - VM ctest-TestRoutersBasic-89853342-85717657 launched on Node cn-jenkins-deploy-platform-ansible-os-1861-1 2024-09-06 14:06:30,740 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/7c5ba933-1a9c-4f02-a05f-3109c7797d9a 2024-09-06 14:06:30,751 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/bd8384bc-2921-4b3d-bdf3-289909c89c6c 2024-09-06 14:06:31,992 - 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.16 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.449 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.449/1.806/3.163/1.357 ms') 2024-09-06 14:06:31,992 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-89853342-85717657 passed 2024-09-06 14:06:32,142 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 14:06:32,142 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-89853342-85717657, IP 186.194.68.195, Port 22 2024-09-06 14:06:32,308 - DEBUG - VM ctest-TestRoutersBasic-89853342-85717657 is ready for SSH connections 2024-09-06 14:06:32,308 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 14:06:32,308 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 186.194.68.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-09-06 14:06:32,308 - DEBUG - ping -s 56 -c 3 -W 1 186.194.68.195 2024-09-06 14:06:36,002 - DEBUG - PING 186.194.68.195 (186.194.68.195): 56 data bytes 64 bytes from 186.194.68.195: seq=0 ttl=62 time=7.873 ms 64 bytes from 186.194.68.195: seq=1 ttl=62 time=1.301 ms 64 bytes from 186.194.68.195: seq=2 ttl=62 time=1.078 ms --- 186.194.68.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.078/3.417/7.873 ms 2024-09-06 14:06:36,002 - INFO - Ping to IP 186.194.68.195 from VM ctest-TestRoutersBasic-89853342-97303950 passed 2024-09-06 14:06:36,002 - INFO - Deleting interface with subnet_id 17a7d16a-e2d8-487b-9377-968c2af861b2, port_id None from router 0b6dd837-df14-478b-a1f0-2578d6035f77 2024-09-06 14:06:36,221 - INFO - Deleting VM ctest-TestRoutersBasic-89853342-85717657 2024-09-06 14:06:36,292 - INFO - Deleting VM ctest-TestRoutersBasic-89853342-97303950 2024-09-06 14:06:36,375 - INFO - Deleting VN ctest-ext_vn-04106666 2024-09-06 14:06:36,472 - DEBUG - VN 4a901c93-51ca-4991-a4c7-e63edb10aa63 still in use: Unable to complete operation on network 4a901c93-51ca-4991-a4c7-e63edb10aa63. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8aa9e460-7f1a-4212-8817-d5973fafcb8f'] 2024-09-06 14:06:36,472 - WARNING - Deleting VN ctest-ext_vn-04106666 failed..Will retry 2024-09-06 14:06:38,607 - DEBUG - Response for deleting network () 2024-09-06 14:06:38,607 - INFO - Deleting VN ctest-vn-18246399 2024-09-06 14:06:38,726 - DEBUG - Response for deleting network () 2024-09-06 14:06:38,998 - DEBUG - No XMPP flaps were noticed during the test 2024-09-06 14:06:38,998 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-09-06 14:06:38,998 - INFO - -------------------------------------------------------------------------------- 2024-09-06 14:06:39,717 - INFO - Deleted project: ctest-TestRoutersBasic-89853342, ID : c7d8904d-55aa-46cc-83f1-05b842f8a58f