2024-09-03 14:45:00,734 - INFO - Domain Default found not creating 2024-09-03 14:45:00,933 - INFO - Project ctest-TestRoutersBasic-05898667 not found, creating it 2024-09-03 14:45:01,429 - INFO - Created Project:ctest-TestRoutersBasic-05898667, ID : 9dd06175-b7b5-4047-8a2b-05fbe1caaed5 2024-09-03 14:45:03,282 - INFO - ================================================================================ 2024-09-03 14:45:03,282 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-03 14:45:03,282 - 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:45:03,548 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.10': '0'}} with 2024-09-03 14:45:03,548 - INFO - Initial checks done. Running the testcase now 2024-09-03 14:45:03,548 - INFO - 2024-09-03 14:45:04,345 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-05898667 2024-09-03 14:45:04,451 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-05898667 2024-09-03 14:45:04,787 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-05898667', 'default']} 2024-09-03 14:45:06,232 - DEBUG - Response for create_network : {'network': {'id': '5dc44f79-37a9-44fb-bde7-561227f3bec3', 'name': 'ctest-vn-94976100', 'tenant_id': '9dd06175b7b540478a2b05fbe1caaed5', 'project_id': '9dd06175b7b540478a2b05fbe1caaed5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-05898667', 'ctest-vn-94976100'], 'port_security_enabled': True, 'description': ''}} 2024-09-03 14:45:06,646 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f717c30-979e-4605-8fa4-d52c8f513310', 'name': '', 'tenant_id': '9dd06175b7b540478a2b05fbe1caaed5', 'network_id': '5dc44f79-37a9-44fb-bde7-561227f3bec3', 'ip_version': 4, 'cidr': '221.214.214.64/26', 'allocation_pools': [{'start': '221.214.214.66', 'end': '221.214.214.126'}], 'gateway_ip': '221.214.214.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.214.214.66', 'tags': [], 'project_id': '9dd06175b7b540478a2b05fbe1caaed5'}} 2024-09-03 14:45:06,667 - INFO - Created VN ctest-vn-94976100 2024-09-03 14:45:06,719 - DEBUG - VN ctest-vn-94976100 UUID is 5dc44f79-37a9-44fb-bde7-561227f3bec3 2024-09-03 14:45:07,074 - DEBUG - Response for create_network : {'network': {'id': '9dde41ed-a892-4c40-928d-e26d6859a67e', 'name': 'ctest-ext_vn-96934625', 'tenant_id': '9dd06175b7b540478a2b05fbe1caaed5', 'project_id': '9dd06175b7b540478a2b05fbe1caaed5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-05898667', 'ctest-ext_vn-96934625'], 'port_security_enabled': True, 'description': ''}} 2024-09-03 14:45:07,306 - DEBUG - Response for create_subnet : {'subnet': {'id': '08c0e878-6c2c-4e26-9d6d-e089e75cd3c9', 'name': '', 'tenant_id': '9dd06175b7b540478a2b05fbe1caaed5', 'network_id': '9dde41ed-a892-4c40-928d-e26d6859a67e', 'ip_version': 4, 'cidr': '5.250.26.192/26', 'allocation_pools': [{'start': '5.250.26.194', 'end': '5.250.26.254'}], 'gateway_ip': '5.250.26.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.250.26.194', 'tags': [], 'project_id': '9dd06175b7b540478a2b05fbe1caaed5'}} 2024-09-03 14:45:07,326 - INFO - Created VN ctest-ext_vn-96934625 2024-09-03 14:45:07,383 - DEBUG - VN ctest-ext_vn-96934625 UUID is 9dde41ed-a892-4c40-928d-e26d6859a67e 2024-09-03 14:45:07,567 - DEBUG - Services list from nova: [, , ] 2024-09-03 14:45:08,935 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1836-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1836-1) 2024-09-03 14:45:10,407 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1836-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1836-1) 2024-09-03 14:45:10,530 - INFO - Setting gateway for router c636761b-4e25-4fbd-9aa3-96171b9645b8 to network 9dde41ed-a892-4c40-928d-e26d6859a67e 2024-09-03 14:45:10,594 - INFO - Adding interface with subnet_id 1f717c30-979e-4605-8fa4-d52c8f513310, port_id None to router c636761b-4e25-4fbd-9aa3-96171b9645b8 2024-09-03 14:45:10,984 - INFO - Waiting for VM ctest-TestRoutersBasic-05898667-09270558 to be up.. 2024-09-03 14:45:11,233 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-03 14:45:16,334 - DEBUG - VM is in ACTIVE state now 2024-09-03 14:45:16,334 - INFO - VM name : ctest-TestRoutersBasic-05898667-09270558 2024-09-03 14:45:16,434 - DEBUG - VM ctest-TestRoutersBasic-05898667-09270558 ID is e332c068-03ea-4953-b8f2-f45e06fd2a47 2024-09-03 14:45:16,466 - DEBUG - VM ctest-TestRoutersBasic-05898667-09270558 launched on Node cn-jenkins-deploy-platform-ansible-os-1836-1 2024-09-03 14:45:16,574 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/e332c068-03ea-4953-b8f2-f45e06fd2a47 2024-09-03 14:45:17,157 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/e332c068-03ea-4953-b8f2-f45e06fd2a47 2024-09-03 14:45:17,203 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/960ef942-19df-4655-ba50-a336317ce524 2024-09-03 14:45:20,489 - 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 1026ms') 2024-09-03 14:45:20,489 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-05898667-09270558 failed! 2024-09-03 14:45:20,543 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-05898667:ctest-vn-94976100 is 221.214.214.65 and allocation pool is NOT set 2024-09-03 14:45:22,610 - 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.90 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.58 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 = 2.582/3.738/4.895/1.156 ms') 2024-09-03 14:45:22,610 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-05898667-09270558 passed 2024-09-03 14:45:22,775 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 14:45:22,775 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-05898667-09270558, IP 221.214.214.67, Port 22 2024-09-03 14:45:22,941 - DEBUG - VM ctest-TestRoutersBasic-05898667-09270558 is ready for SSH connections 2024-09-03 14:45:22,942 - INFO - Waiting for VM ctest-TestRoutersBasic-05898667-16360383 to be up.. 2024-09-03 14:45:23,022 - DEBUG - VM is in ACTIVE state now 2024-09-03 14:45:23,022 - INFO - VM name : ctest-TestRoutersBasic-05898667-16360383 2024-09-03 14:45:23,110 - DEBUG - VM ctest-TestRoutersBasic-05898667-16360383 ID is 5df70d3b-ca80-44cd-b960-8c1dde09659d 2024-09-03 14:45:23,110 - DEBUG - VM ctest-TestRoutersBasic-05898667-16360383 launched on Node cn-jenkins-deploy-platform-ansible-os-1836-1 2024-09-03 14:45:23,197 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/5df70d3b-ca80-44cd-b960-8c1dde09659d 2024-09-03 14:45:23,206 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/8ad4e6ab-b387-4c65-98b6-11f49a8aaaea 2024-09-03 14:45:24,453 - 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.90 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.65 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 = 2.654/2.777/2.901/0.123 ms') 2024-09-03 14:45:24,453 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-05898667-16360383 passed 2024-09-03 14:45:24,607 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 14:45:24,607 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-05898667-16360383, IP 5.250.26.195, Port 22 2024-09-03 14:45:24,662 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-09-03 14:45:24,771 - DEBUG - VM ctest-TestRoutersBasic-05898667-16360383 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-03 14:45:29,772 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 14:45:29,772 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-05898667-16360383, IP 5.250.26.195, Port 22 2024-09-03 14:45:29,940 - DEBUG - VM ctest-TestRoutersBasic-05898667-16360383 is ready for SSH connections 2024-09-03 14:45:29,940 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 14:45:29,941 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 5.250.26.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-09-03 14:45:29,941 - DEBUG - ping -s 56 -c 3 -W 1 5.250.26.195 2024-09-03 14:45:33,660 - DEBUG - PING 5.250.26.195 (5.250.26.195): 56 data bytes 64 bytes from 5.250.26.195: seq=0 ttl=62 time=5.835 ms 64 bytes from 5.250.26.195: seq=1 ttl=62 time=11.203 ms 64 bytes from 5.250.26.195: seq=2 ttl=62 time=0.934 ms --- 5.250.26.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.934/5.990/11.203 ms 2024-09-03 14:45:33,660 - INFO - Ping to IP 5.250.26.195 from VM ctest-TestRoutersBasic-05898667-09270558 passed 2024-09-03 14:45:33,660 - INFO - Deleting interface with subnet_id 1f717c30-979e-4605-8fa4-d52c8f513310, port_id None from router c636761b-4e25-4fbd-9aa3-96171b9645b8 2024-09-03 14:45:33,881 - INFO - Deleting VM ctest-TestRoutersBasic-05898667-16360383 2024-09-03 14:45:34,020 - INFO - Deleting VM ctest-TestRoutersBasic-05898667-09270558 2024-09-03 14:45:34,171 - INFO - Deleting VN ctest-ext_vn-96934625 2024-09-03 14:45:34,289 - DEBUG - VN 9dde41ed-a892-4c40-928d-e26d6859a67e still in use: Unable to complete operation on network 9dde41ed-a892-4c40-928d-e26d6859a67e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-18c0b03d-18db-450e-ad9a-66fd074bf0a2'] 2024-09-03 14:45:34,289 - WARNING - Deleting VN ctest-ext_vn-96934625 failed..Will retry 2024-09-03 14:45:36,473 - DEBUG - Response for deleting network () 2024-09-03 14:45:36,473 - INFO - Deleting VN ctest-vn-94976100 2024-09-03 14:45:36,606 - DEBUG - Response for deleting network () 2024-09-03 14:45:36,873 - DEBUG - No XMPP flaps were noticed during the test
2024-09-03 14:45:36,873 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:33]
2024-09-03 14:45:36,873 - INFO - -------------------------------------------------------------------------------- 2024-09-03 14:45:37,609 - INFO - Deleted project: ctest-TestRoutersBasic-05898667, ID : 9dd06175-b7b5-4047-8a2b-05fbe1caaed5