2025-03-31 14:31:35,099 - INFO - Domain Default found not creating 2025-03-31 14:31:35,274 - INFO - Project ctest-TestRoutersBasic-53986372 not found, creating it 2025-03-31 14:31:35,780 - INFO - Created Project:ctest-TestRoutersBasic-53986372, ID : 5c97617f-51a0-4b63-b745-179486a1384c 2025-03-31 14:31:37,561 - INFO - ================================================================================ 2025-03-31 14:31:37,561 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-31 14:31:37,561 - 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 2025-03-31 14:31:37,829 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.19': '0'}} with 2025-03-31 14:31:37,829 - INFO - Initial checks done. Running the testcase now 2025-03-31 14:31:37,829 - INFO - 2025-03-31 14:31:38,641 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-53986372 2025-03-31 14:31:38,743 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-53986372 2025-03-31 14:31:39,094 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-53986372', 'default']} 2025-03-31 14:31:39,451 - DEBUG - Response for create_network : {'network': {'id': '899dd367-df94-4f52-8258-dad915878074', 'name': 'ctest-vn-15956775', 'tenant_id': '5c97617f51a04b63b745179486a1384c', 'project_id': '5c97617f51a04b63b745179486a1384c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-53986372', 'ctest-vn-15956775'], 'port_security_enabled': True, 'description': ''}} 2025-03-31 14:31:39,675 - DEBUG - Response for create_subnet : {'subnet': {'id': '562d6b7f-538c-4531-8559-e67b2cc12543', 'name': '', 'tenant_id': '5c97617f51a04b63b745179486a1384c', 'network_id': '899dd367-df94-4f52-8258-dad915878074', 'ip_version': 4, 'cidr': '215.35.159.128/26', 'allocation_pools': [{'start': '215.35.159.130', 'end': '215.35.159.190'}], 'gateway_ip': '215.35.159.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.35.159.130', 'tags': [], 'project_id': '5c97617f51a04b63b745179486a1384c'}} 2025-03-31 14:31:39,702 - INFO - Created VN ctest-vn-15956775 2025-03-31 14:31:39,759 - DEBUG - VN ctest-vn-15956775 UUID is 899dd367-df94-4f52-8258-dad915878074 2025-03-31 14:31:40,174 - DEBUG - Response for create_network : {'network': {'id': 'e92d3e42-1e75-4f71-9afd-678466cf4c90', 'name': 'ctest-ext_vn-89733288', 'tenant_id': '5c97617f51a04b63b745179486a1384c', 'project_id': '5c97617f51a04b63b745179486a1384c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-53986372', 'ctest-ext_vn-89733288'], 'port_security_enabled': True, 'description': ''}} 2025-03-31 14:31:40,364 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a8560969-7e19-4248-88a3-96ee24da5f3c', 'name': '', 'tenant_id': '5c97617f51a04b63b745179486a1384c', 'network_id': 'e92d3e42-1e75-4f71-9afd-678466cf4c90', 'ip_version': 4, 'cidr': '176.122.112.64/26', 'allocation_pools': [{'start': '176.122.112.66', 'end': '176.122.112.126'}], 'gateway_ip': '176.122.112.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.122.112.66', 'tags': [], 'project_id': '5c97617f51a04b63b745179486a1384c'}} 2025-03-31 14:31:40,388 - INFO - Created VN ctest-ext_vn-89733288 2025-03-31 14:31:40,446 - DEBUG - VN ctest-ext_vn-89733288 UUID is e92d3e42-1e75-4f71-9afd-678466cf4c90 2025-03-31 14:31:40,646 - DEBUG - Services list from nova: [, , ] 2025-03-31 14:31:41,840 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3017-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3017-1) 2025-03-31 14:31:43,189 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3017-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3017-1) 2025-03-31 14:31:43,297 - INFO - Setting gateway for router 05f960f5-039e-4e6d-a2e7-e8550901c484 to network e92d3e42-1e75-4f71-9afd-678466cf4c90 2025-03-31 14:31:43,379 - INFO - Adding interface with subnet_id 562d6b7f-538c-4531-8559-e67b2cc12543, port_id None to router 05f960f5-039e-4e6d-a2e7-e8550901c484 2025-03-31 14:31:43,922 - INFO - Waiting for VM ctest-TestRoutersBasic-53986372-79413710 to be up.. 2025-03-31 14:31:44,141 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-31 14:31:49,235 - DEBUG - VM is in ACTIVE state now 2025-03-31 14:31:49,235 - INFO - VM name : ctest-TestRoutersBasic-53986372-79413710 2025-03-31 14:31:49,347 - DEBUG - VM ctest-TestRoutersBasic-53986372-79413710 ID is 4592f3d4-2215-493c-8ea3-3564c0f4ca60 2025-03-31 14:31:49,372 - DEBUG - VM ctest-TestRoutersBasic-53986372-79413710 launched on Node cn-jenkins-deploy-platform-ansible-os-3017-1 2025-03-31 14:31:49,460 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/4592f3d4-2215-493c-8ea3-3564c0f4ca60 2025-03-31 14:31:49,807 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/4592f3d4-2215-493c-8ea3-3564c0f4ca60 2025-03-31 14:31:49,844 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/f758d225-50d1-4a87-88ac-401d81939470 2025-03-31 14:31:53,108 - 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 1013ms') 2025-03-31 14:31:53,109 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-53986372-79413710 failed! 2025-03-31 14:31:53,166 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-53986372:ctest-vn-15956775 is 215.35.159.129 and allocation pool is NOT set 2025-03-31 14:31:55,234 - 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.55 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.834 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.834/2.690/4.546/1.856 ms') 2025-03-31 14:31:55,235 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-53986372-79413710 passed 2025-03-31 14:31:55,391 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 14:31:55,391 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-53986372-79413710, IP 215.35.159.131, Port 22 2025-03-31 14:31:55,546 - DEBUG - VM ctest-TestRoutersBasic-53986372-79413710 is ready for SSH connections 2025-03-31 14:31:55,546 - INFO - Waiting for VM ctest-TestRoutersBasic-53986372-58724219 to be up.. 2025-03-31 14:31:55,643 - DEBUG - VM is in ACTIVE state now 2025-03-31 14:31:55,643 - INFO - VM name : ctest-TestRoutersBasic-53986372-58724219 2025-03-31 14:31:55,743 - DEBUG - VM ctest-TestRoutersBasic-53986372-58724219 ID is c16ceb17-d599-4ada-a3d6-08df68b17004 2025-03-31 14:31:55,743 - DEBUG - VM ctest-TestRoutersBasic-53986372-58724219 launched on Node cn-jenkins-deploy-platform-ansible-os-3017-1 2025-03-31 14:31:55,850 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/c16ceb17-d599-4ada-a3d6-08df68b17004 2025-03-31 14:31:55,865 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/1e38baf6-24ed-4934-9ecf-b3aee7785bcc 2025-03-31 14:31:57,121 - 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.09 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.426 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.426/2.257/4.088/1.831 ms') 2025-03-31 14:31:57,121 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-53986372-58724219 passed 2025-03-31 14:31:57,283 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 14:31:57,283 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-53986372-58724219, IP 176.122.112.67, Port 22 2025-03-31 14:31:57,443 - DEBUG - VM ctest-TestRoutersBasic-53986372-58724219 is ready for SSH connections 2025-03-31 14:31:57,443 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 14:31:57,443 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 176.122.112.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2025-03-31 14:31:57,443 - DEBUG - ping -s 56 -c 3 -W 1 176.122.112.67 2025-03-31 14:32:01,209 - DEBUG - PING 176.122.112.67 (176.122.112.67): 56 data bytes 64 bytes from 176.122.112.67: seq=0 ttl=62 time=7.134 ms 64 bytes from 176.122.112.67: seq=1 ttl=62 time=1.011 ms 64 bytes from 176.122.112.67: seq=2 ttl=62 time=1.015 ms --- 176.122.112.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.011/3.053/7.134 ms 2025-03-31 14:32:01,210 - INFO - Ping to IP 176.122.112.67 from VM ctest-TestRoutersBasic-53986372-79413710 passed 2025-03-31 14:32:01,210 - INFO - Deleting interface with subnet_id 562d6b7f-538c-4531-8559-e67b2cc12543, port_id None from router 05f960f5-039e-4e6d-a2e7-e8550901c484 2025-03-31 14:32:01,456 - INFO - Deleting VM ctest-TestRoutersBasic-53986372-58724219 2025-03-31 14:32:01,540 - INFO - Deleting VM ctest-TestRoutersBasic-53986372-79413710 2025-03-31 14:32:01,629 - INFO - Deleting VN ctest-ext_vn-89733288 2025-03-31 14:32:01,701 - DEBUG - VN e92d3e42-1e75-4f71-9afd-678466cf4c90 still in use: Unable to complete operation on network e92d3e42-1e75-4f71-9afd-678466cf4c90. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4315dccb-5bbc-423f-87d8-dffef9929646'] 2025-03-31 14:32:01,701 - WARNING - Deleting VN ctest-ext_vn-89733288 failed..Will retry 2025-03-31 14:32:03,829 - DEBUG - Response for deleting network () 2025-03-31 14:32:03,829 - INFO - Deleting VN ctest-vn-15956775 2025-03-31 14:32:03,956 - DEBUG - Response for deleting network () 2025-03-31 14:32:04,224 - DEBUG - No XMPP flaps were noticed during the test 2025-03-31 14:32:04,224 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2025-03-31 14:32:04,224 - INFO - -------------------------------------------------------------------------------- 2025-03-31 14:32:05,006 - INFO - Deleted project: ctest-TestRoutersBasic-53986372, ID : 5c97617f-51a0-4b63-b745-179486a1384c