2024-09-04 16:22:47,616 - INFO - Domain Default found not creating 2024-09-04 16:22:47,771 - INFO - Project ctest-TestRoutersBasic-63575863 not found, creating it 2024-09-04 16:22:48,243 - INFO - Created Project:ctest-TestRoutersBasic-63575863, ID : f065b239-fef4-4ea0-9f1f-c38a6822ace9 2024-09-04 16:22:49,769 - INFO - ================================================================================ 2024-09-04 16:22:49,769 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-04 16:22:49,770 - 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-04 16:22:50,019 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.32': '0'}} with 2024-09-04 16:22:50,019 - INFO - Initial checks done. Running the testcase now 2024-09-04 16:22:50,019 - INFO - 2024-09-04 16:22:50,721 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-63575863 2024-09-04 16:22:50,817 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-63575863 2024-09-04 16:22:51,136 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-63575863', 'default']} 2024-09-04 16:22:51,552 - DEBUG - Response for create_network : {'network': {'id': '2a386118-0900-43d5-a439-28f1a551420c', 'name': 'ctest-vn-94516598', 'tenant_id': 'f065b239fef44ea09f1fc38a6822ace9', 'project_id': 'f065b239fef44ea09f1fc38a6822ace9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-63575863', 'ctest-vn-94516598'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 16:22:51,740 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f908d1f-cc84-4380-ab83-d5e37f7a9f9e', 'name': '', 'tenant_id': 'f065b239fef44ea09f1fc38a6822ace9', 'network_id': '2a386118-0900-43d5-a439-28f1a551420c', 'ip_version': 4, 'cidr': '159.218.73.0/26', 'allocation_pools': [{'start': '159.218.73.2', 'end': '159.218.73.62'}], 'gateway_ip': '159.218.73.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.218.73.2', 'tags': [], 'project_id': 'f065b239fef44ea09f1fc38a6822ace9'}} 2024-09-04 16:22:51,759 - INFO - Created VN ctest-vn-94516598 2024-09-04 16:22:51,809 - DEBUG - VN ctest-vn-94516598 UUID is 2a386118-0900-43d5-a439-28f1a551420c 2024-09-04 16:22:52,138 - DEBUG - Response for create_network : {'network': {'id': '53ab035b-278c-4565-a699-35e731d635c6', 'name': 'ctest-ext_vn-45482167', 'tenant_id': 'f065b239fef44ea09f1fc38a6822ace9', 'project_id': 'f065b239fef44ea09f1fc38a6822ace9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-63575863', 'ctest-ext_vn-45482167'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 16:22:52,336 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2b31da7-0124-4e98-8211-a19ed8f7abeb', 'name': '', 'tenant_id': 'f065b239fef44ea09f1fc38a6822ace9', 'network_id': '53ab035b-278c-4565-a699-35e731d635c6', 'ip_version': 4, 'cidr': '220.3.156.0/26', 'allocation_pools': [{'start': '220.3.156.2', 'end': '220.3.156.62'}], 'gateway_ip': '220.3.156.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.3.156.2', 'tags': [], 'project_id': 'f065b239fef44ea09f1fc38a6822ace9'}} 2024-09-04 16:22:52,355 - INFO - Created VN ctest-ext_vn-45482167 2024-09-04 16:22:52,405 - DEBUG - VN ctest-ext_vn-45482167 UUID is 53ab035b-278c-4565-a699-35e731d635c6 2024-09-04 16:22:52,653 - DEBUG - Services list from nova: [, , ] 2024-09-04 16:22:53,661 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1845-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1845-1) 2024-09-04 16:22:54,823 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1845-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1845-1) 2024-09-04 16:22:54,921 - INFO - Setting gateway for router 0c8f99d8-d4b5-427f-8446-0bfc637acbc0 to network 53ab035b-278c-4565-a699-35e731d635c6 2024-09-04 16:22:54,984 - INFO - Adding interface with subnet_id 0f908d1f-cc84-4380-ab83-d5e37f7a9f9e, port_id None to router 0c8f99d8-d4b5-427f-8446-0bfc637acbc0 2024-09-04 16:22:55,420 - INFO - Waiting for VM ctest-TestRoutersBasic-63575863-95819213 to be up.. 2024-09-04 16:22:55,586 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-04 16:23:00,690 - DEBUG - VM is in ACTIVE state now 2024-09-04 16:23:00,690 - INFO - VM name : ctest-TestRoutersBasic-63575863-95819213 2024-09-04 16:23:00,771 - DEBUG - VM ctest-TestRoutersBasic-63575863-95819213 ID is 34df9bd7-bdf5-47e7-8b9f-dbadabeee2c8 2024-09-04 16:23:00,791 - DEBUG - VM ctest-TestRoutersBasic-63575863-95819213 launched on Node cn-jenkins-deploy-platform-ansible-os-1845-1 2024-09-04 16:23:00,865 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/34df9bd7-bdf5-47e7-8b9f-dbadabeee2c8 2024-09-04 16:23:01,166 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/34df9bd7-bdf5-47e7-8b9f-dbadabeee2c8 2024-09-04 16:23:01,202 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/92b8f84f-5b78-4f78-a45b-6806baa057f3 2024-09-04 16:23:04,451 - 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 1006ms') 2024-09-04 16:23:04,451 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-63575863-95819213 failed! 2024-09-04 16:23:04,505 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-63575863:ctest-vn-94516598 is 159.218.73.1 and allocation pool is NOT set 2024-09-04 16:23:06,569 - 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.50 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.486 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 = 0.486/1.991/3.497/1.505 ms') 2024-09-04 16:23:06,569 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-63575863-95819213 passed 2024-09-04 16:23:06,721 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 16:23:06,721 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-63575863-95819213, IP 159.218.73.3, Port 22 2024-09-04 16:23:06,872 - DEBUG - VM ctest-TestRoutersBasic-63575863-95819213 is ready for SSH connections 2024-09-04 16:23:06,872 - INFO - Waiting for VM ctest-TestRoutersBasic-63575863-88384559 to be up.. 2024-09-04 16:23:06,951 - DEBUG - VM is in ACTIVE state now 2024-09-04 16:23:06,951 - INFO - VM name : ctest-TestRoutersBasic-63575863-88384559 2024-09-04 16:23:07,024 - DEBUG - VM ctest-TestRoutersBasic-63575863-88384559 ID is 006221f4-2818-4500-a4a7-9c67345216a2 2024-09-04 16:23:07,024 - DEBUG - VM ctest-TestRoutersBasic-63575863-88384559 launched on Node cn-jenkins-deploy-platform-ansible-os-1845-1 2024-09-04 16:23:07,099 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/006221f4-2818-4500-a4a7-9c67345216a2 2024-09-04 16:23:07,109 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/debb77a8-72c6-47bb-b978-b527d4346835 2024-09-04 16:23:08,359 - 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.87 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.411 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.411/1.639/2.867/1.228 ms') 2024-09-04 16:23:08,360 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-63575863-88384559 passed 2024-09-04 16:23:08,513 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 16:23:08,513 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-63575863-88384559, IP 220.3.156.3, Port 22 2024-09-04 16:23:08,664 - DEBUG - VM ctest-TestRoutersBasic-63575863-88384559 is ready for SSH connections 2024-09-04 16:23:08,665 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 16:23:08,665 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 220.3.156.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-09-04 16:23:08,665 - DEBUG - ping -s 56 -c 3 -W 1 220.3.156.3 2024-09-04 16:23:12,629 - DEBUG - PING 220.3.156.3 (220.3.156.3): 56 data bytes 64 bytes from 220.3.156.3: seq=0 ttl=62 time=4.889 ms 64 bytes from 220.3.156.3: seq=1 ttl=62 time=0.789 ms 64 bytes from 220.3.156.3: seq=2 ttl=62 time=0.807 ms --- 220.3.156.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.789/2.161/4.889 ms 2024-09-04 16:23:12,629 - INFO - Ping to IP 220.3.156.3 from VM ctest-TestRoutersBasic-63575863-95819213 passed 2024-09-04 16:23:12,630 - INFO - Deleting interface with subnet_id 0f908d1f-cc84-4380-ab83-d5e37f7a9f9e, port_id None from router 0c8f99d8-d4b5-427f-8446-0bfc637acbc0 2024-09-04 16:23:12,831 - INFO - Deleting VM ctest-TestRoutersBasic-63575863-88384559 2024-09-04 16:23:12,934 - INFO - Deleting VM ctest-TestRoutersBasic-63575863-95819213 2024-09-04 16:23:13,013 - INFO - Deleting VN ctest-ext_vn-45482167 2024-09-04 16:23:13,088 - DEBUG - VN 53ab035b-278c-4565-a699-35e731d635c6 still in use: Unable to complete operation on network 53ab035b-278c-4565-a699-35e731d635c6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a029441c-399f-4e3b-881f-127fa4126b24'] 2024-09-04 16:23:13,088 - WARNING - Deleting VN ctest-ext_vn-45482167 failed..Will retry 2024-09-04 16:23:15,202 - DEBUG - Response for deleting network () 2024-09-04 16:23:15,202 - INFO - Deleting VN ctest-vn-94516598 2024-09-04 16:23:15,303 - DEBUG - Response for deleting network () 2024-09-04 16:23:15,559 - DEBUG - No XMPP flaps were noticed during the test
2024-09-04 16:23:15,559 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-09-04 16:23:15,559 - INFO - -------------------------------------------------------------------------------- 2024-09-04 16:23:16,244 - INFO - Deleted project: ctest-TestRoutersBasic-63575863, ID : f065b239-fef4-4ea0-9f1f-c38a6822ace9