2024-09-17 09:02:39,284 - INFO - Domain Default found not creating 2024-09-17 09:02:39,470 - INFO - Project ctest-TestRoutersBasic-42740318 not found, creating it 2024-09-17 09:02:39,979 - INFO - Created Project:ctest-TestRoutersBasic-42740318, ID : f0e66170-cdcc-4086-931c-2760c7d4c307 2024-09-17 09:02:41,562 - INFO - ================================================================================ 2024-09-17 09:02:41,562 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-17 09:02:41,563 - 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-17 09:02:41,825 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.23': '0'}} with 2024-09-17 09:02:41,825 - INFO - Initial checks done. Running the testcase now 2024-09-17 09:02:41,825 - INFO - 2024-09-17 09:02:42,581 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-42740318 2024-09-17 09:02:42,684 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-42740318 2024-09-17 09:02:43,023 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-42740318', 'default']} 2024-09-17 09:02:43,365 - DEBUG - Response for create_network : {'network': {'id': 'c8f20fb7-8ce5-4845-8348-92c8b252120e', 'name': 'ctest-vn-58975789', 'tenant_id': 'f0e66170cdcc4086931c2760c7d4c307', 'project_id': 'f0e66170cdcc4086931c2760c7d4c307', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-42740318', 'ctest-vn-58975789'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 09:02:43,585 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a0db113-6286-4379-8bbf-0770f8d96398', 'name': '', 'tenant_id': 'f0e66170cdcc4086931c2760c7d4c307', 'network_id': 'c8f20fb7-8ce5-4845-8348-92c8b252120e', 'ip_version': 4, 'cidr': '220.29.82.128/26', 'allocation_pools': [{'start': '220.29.82.130', 'end': '220.29.82.190'}], 'gateway_ip': '220.29.82.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.29.82.130', 'tags': [], 'project_id': 'f0e66170cdcc4086931c2760c7d4c307'}} 2024-09-17 09:02:43,604 - INFO - Created VN ctest-vn-58975789 2024-09-17 09:02:43,660 - DEBUG - VN ctest-vn-58975789 UUID is c8f20fb7-8ce5-4845-8348-92c8b252120e 2024-09-17 09:02:44,014 - DEBUG - Response for create_network : {'network': {'id': '3b27502b-ace7-4f61-9fef-bba3aac9d12a', 'name': 'ctest-ext_vn-71233416', 'tenant_id': 'f0e66170cdcc4086931c2760c7d4c307', 'project_id': 'f0e66170cdcc4086931c2760c7d4c307', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-42740318', 'ctest-ext_vn-71233416'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 09:02:44,242 - DEBUG - Response for create_subnet : {'subnet': {'id': '5c559b80-9a5e-49b0-94eb-f64bd9377eea', 'name': '', 'tenant_id': 'f0e66170cdcc4086931c2760c7d4c307', 'network_id': '3b27502b-ace7-4f61-9fef-bba3aac9d12a', 'ip_version': 4, 'cidr': '97.56.238.64/26', 'allocation_pools': [{'start': '97.56.238.66', 'end': '97.56.238.126'}], 'gateway_ip': '97.56.238.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.56.238.66', 'tags': [], 'project_id': 'f0e66170cdcc4086931c2760c7d4c307'}} 2024-09-17 09:02:44,262 - INFO - Created VN ctest-ext_vn-71233416 2024-09-17 09:02:44,320 - DEBUG - VN ctest-ext_vn-71233416 UUID is 3b27502b-ace7-4f61-9fef-bba3aac9d12a 2024-09-17 09:02:44,507 - DEBUG - Services list from nova: [, , ] 2024-09-17 09:02:45,571 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1956-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1956-1) 2024-09-17 09:02:46,764 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1956-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1956-1) 2024-09-17 09:02:46,865 - INFO - Setting gateway for router 666fddc1-2457-43cb-aa0d-ed6deec626d4 to network 3b27502b-ace7-4f61-9fef-bba3aac9d12a 2024-09-17 09:02:46,951 - INFO - Adding interface with subnet_id 8a0db113-6286-4379-8bbf-0770f8d96398, port_id None to router 666fddc1-2457-43cb-aa0d-ed6deec626d4 2024-09-17 09:02:47,493 - INFO - Waiting for VM ctest-TestRoutersBasic-42740318-65234093 to be up.. 2024-09-17 09:02:47,686 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 09:02:52,778 - DEBUG - VM is in ACTIVE state now 2024-09-17 09:02:52,778 - INFO - VM name : ctest-TestRoutersBasic-42740318-65234093 2024-09-17 09:02:52,863 - DEBUG - VM ctest-TestRoutersBasic-42740318-65234093 ID is 9c801d1b-005c-4b49-aba5-0835c66ab99d 2024-09-17 09:02:52,885 - DEBUG - VM ctest-TestRoutersBasic-42740318-65234093 launched on Node cn-jenkins-deploy-platform-ansible-os-1956-1 2024-09-17 09:02:52,974 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/9c801d1b-005c-4b49-aba5-0835c66ab99d 2024-09-17 09:02:53,274 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/9c801d1b-005c-4b49-aba5-0835c66ab99d 2024-09-17 09:02:53,315 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/9d5c41a5-e2db-45d0-86b7-59c5b13f272f 2024-09-17 09:02:56,613 - 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 1023ms') 2024-09-17 09:02:56,613 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-42740318-65234093 failed! 2024-09-17 09:02:56,672 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-42740318:ctest-vn-58975789 is 220.29.82.129 and allocation pool is NOT set 2024-09-17 09:02:58,731 - 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.09 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.04 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.039/3.066/5.093/2.027 ms') 2024-09-17 09:02:58,731 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-42740318-65234093 passed 2024-09-17 09:02:58,888 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 09:02:58,888 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-42740318-65234093, IP 220.29.82.131, Port 22 2024-09-17 09:02:58,954 - 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-17 09:02:59,037 - DEBUG - VM ctest-TestRoutersBasic-42740318-65234093 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-17 09:03:04,038 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 09:03:04,038 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-42740318-65234093, IP 220.29.82.131, Port 22 2024-09-17 09:03:04,212 - DEBUG - VM ctest-TestRoutersBasic-42740318-65234093 is ready for SSH connections 2024-09-17 09:03:04,212 - INFO - Waiting for VM ctest-TestRoutersBasic-42740318-54671433 to be up.. 2024-09-17 09:03:04,292 - DEBUG - VM is in ACTIVE state now 2024-09-17 09:03:04,292 - INFO - VM name : ctest-TestRoutersBasic-42740318-54671433 2024-09-17 09:03:04,374 - DEBUG - VM ctest-TestRoutersBasic-42740318-54671433 ID is 082db117-d438-460b-972d-d4cec2f5e65d 2024-09-17 09:03:04,374 - DEBUG - VM ctest-TestRoutersBasic-42740318-54671433 launched on Node cn-jenkins-deploy-platform-ansible-os-1956-1 2024-09-17 09:03:04,453 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/082db117-d438-460b-972d-d4cec2f5e65d 2024-09-17 09:03:04,465 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/bf5678a0-4318-4141-9b34-5f63fddd57ac 2024-09-17 09:03:05,725 - 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=2.88 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.440 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.440/1.658/2.877/1.218 ms') 2024-09-17 09:03:05,726 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-42740318-54671433 passed 2024-09-17 09:03:05,884 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 09:03:05,884 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-42740318-54671433, IP 97.56.238.67, Port 22 2024-09-17 09:03:06,049 - DEBUG - VM ctest-TestRoutersBasic-42740318-54671433 is ready for SSH connections 2024-09-17 09:03:06,049 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 09:03:06,050 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 97.56.238.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-09-17 09:03:06,050 - DEBUG - ping -s 56 -c 3 -W 1 97.56.238.67 2024-09-17 09:03:10,033 - DEBUG - PING 97.56.238.67 (97.56.238.67): 56 data bytes 64 bytes from 97.56.238.67: seq=0 ttl=62 time=5.702 ms 64 bytes from 97.56.238.67: seq=1 ttl=62 time=1.585 ms 64 bytes from 97.56.238.67: seq=2 ttl=62 time=1.054 ms --- 97.56.238.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.054/2.780/5.702 ms 2024-09-17 09:03:10,033 - INFO - Ping to IP 97.56.238.67 from VM ctest-TestRoutersBasic-42740318-65234093 passed 2024-09-17 09:03:10,034 - INFO - Deleting interface with subnet_id 8a0db113-6286-4379-8bbf-0770f8d96398, port_id None from router 666fddc1-2457-43cb-aa0d-ed6deec626d4 2024-09-17 09:03:10,346 - INFO - Deleting VM ctest-TestRoutersBasic-42740318-54671433 2024-09-17 09:03:10,427 - INFO - Deleting VM ctest-TestRoutersBasic-42740318-65234093 2024-09-17 09:03:10,509 - INFO - Deleting VN ctest-ext_vn-71233416 2024-09-17 09:03:10,591 - DEBUG - VN 3b27502b-ace7-4f61-9fef-bba3aac9d12a still in use: Unable to complete operation on network 3b27502b-ace7-4f61-9fef-bba3aac9d12a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-874d2bd2-4e6d-4411-bddc-b9b8dff6f2c4'] 2024-09-17 09:03:10,591 - WARNING - Deleting VN ctest-ext_vn-71233416 failed..Will retry 2024-09-17 09:03:12,711 - DEBUG - Response for deleting network () 2024-09-17 09:03:12,711 - INFO - Deleting VN ctest-vn-58975789 2024-09-17 09:03:12,820 - DEBUG - Response for deleting network () 2024-09-17 09:03:13,074 - DEBUG - No XMPP flaps were noticed during the test 2024-09-17 09:03:13,074 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2024-09-17 09:03:13,074 - INFO - -------------------------------------------------------------------------------- 2024-09-17 09:03:13,756 - INFO - Deleted project: ctest-TestRoutersBasic-42740318, ID : f0e66170-cdcc-4086-931c-2760c7d4c307