2024-10-31 02:26:26,123 - INFO - Domain Default found not creating 2024-10-31 02:26:26,311 - INFO - Project ctest-TestRoutersBasic-20868950 not found, creating it 2024-10-31 02:26:26,818 - INFO - Created Project:ctest-TestRoutersBasic-20868950, ID : 74913a09-8466-4309-985f-3618714deab4 2024-10-31 02:26:28,449 - INFO - ================================================================================ 2024-10-31 02:26:28,449 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-31 02:26:28,449 - 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-10-31 02:26:28,706 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.0.0.31': '0'}} with 2024-10-31 02:26:28,706 - INFO - Initial checks done. Running the testcase now 2024-10-31 02:26:28,706 - INFO - 2024-10-31 02:26:29,426 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-20868950 2024-10-31 02:26:29,525 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-20868950 2024-10-31 02:26:29,860 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-20868950', 'default']} 2024-10-31 02:26:30,181 - DEBUG - Response for create_network : {'network': {'id': '2028ae4d-15f1-4053-996b-40eff01d5f2b', 'name': 'ctest-vn-31981465', 'tenant_id': '74913a0984664309985f3618714deab4', 'project_id': '74913a0984664309985f3618714deab4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-20868950', 'ctest-vn-31981465'], 'port_security_enabled': True, 'description': ''}} 2024-10-31 02:26:30,340 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd65f20b7-40c3-4b28-afaa-22324f256c33', 'name': '', 'tenant_id': '74913a0984664309985f3618714deab4', 'network_id': '2028ae4d-15f1-4053-996b-40eff01d5f2b', 'ip_version': 4, 'cidr': '156.46.121.192/26', 'allocation_pools': [{'start': '156.46.121.194', 'end': '156.46.121.254'}], 'gateway_ip': '156.46.121.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.46.121.194', 'tags': [], 'project_id': '74913a0984664309985f3618714deab4'}} 2024-10-31 02:26:30,361 - INFO - Created VN ctest-vn-31981465 2024-10-31 02:26:30,421 - DEBUG - VN ctest-vn-31981465 UUID is 2028ae4d-15f1-4053-996b-40eff01d5f2b 2024-10-31 02:26:30,796 - DEBUG - Response for create_network : {'network': {'id': 'e5fc5d0f-0399-4386-9db3-36a6860e9020', 'name': 'ctest-ext_vn-19388823', 'tenant_id': '74913a0984664309985f3618714deab4', 'project_id': '74913a0984664309985f3618714deab4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-20868950', 'ctest-ext_vn-19388823'], 'port_security_enabled': True, 'description': ''}} 2024-10-31 02:26:31,032 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e29f1793-5fe6-40ec-8c65-546b3fe289ef', 'name': '', 'tenant_id': '74913a0984664309985f3618714deab4', 'network_id': 'e5fc5d0f-0399-4386-9db3-36a6860e9020', 'ip_version': 4, 'cidr': '145.113.97.128/26', 'allocation_pools': [{'start': '145.113.97.130', 'end': '145.113.97.190'}], 'gateway_ip': '145.113.97.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.113.97.130', 'tags': [], 'project_id': '74913a0984664309985f3618714deab4'}} 2024-10-31 02:26:31,052 - INFO - Created VN ctest-ext_vn-19388823 2024-10-31 02:26:31,109 - DEBUG - VN ctest-ext_vn-19388823 UUID is e5fc5d0f-0399-4386-9db3-36a6860e9020 2024-10-31 02:26:31,287 - DEBUG - Services list from nova: [, , ] 2024-10-31 02:26:32,345 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2183-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2183-1) 2024-10-31 02:26:33,521 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2183-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2183-1) 2024-10-31 02:26:33,600 - INFO - Setting gateway for router 0ab78a45-60d6-4cf1-8559-3dd4b3760db1 to network e5fc5d0f-0399-4386-9db3-36a6860e9020 2024-10-31 02:26:33,677 - INFO - Adding interface with subnet_id d65f20b7-40c3-4b28-afaa-22324f256c33, port_id None to router 0ab78a45-60d6-4cf1-8559-3dd4b3760db1 2024-10-31 02:26:34,146 - INFO - Waiting for VM ctest-TestRoutersBasic-20868950-33520246 to be up.. 2024-10-31 02:26:34,407 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-31 02:26:39,487 - DEBUG - VM is in ACTIVE state now 2024-10-31 02:26:39,487 - INFO - VM name : ctest-TestRoutersBasic-20868950-33520246 2024-10-31 02:26:39,565 - DEBUG - VM ctest-TestRoutersBasic-20868950-33520246 ID is c5eb9983-4ac7-45e0-ab91-5c18731c6cb2 2024-10-31 02:26:39,582 - DEBUG - VM ctest-TestRoutersBasic-20868950-33520246 launched on Node cn-jenkins-deploy-platform-ansible-os-2183-1. 2024-10-31 02:26:39,659 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/c5eb9983-4ac7-45e0-ab91-5c18731c6cb2 2024-10-31 02:26:39,952 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/c5eb9983-4ac7-45e0-ab91-5c18731c6cb2 2024-10-31 02:26:39,986 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/80fb10e2-9a52-4afd-8d2f-90a0513f5283 2024-10-31 02:26:43,239 - 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 1004ms') 2024-10-31 02:26:43,239 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-20868950-33520246 failed! 2024-10-31 02:26:43,300 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-20868950:ctest-vn-31981465 is 156.46.121.193 and allocation pool is NOT set 2024-10-31 02:26:45,365 - 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.19 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.781 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.781/2.984/5.188/2.203 ms') 2024-10-31 02:26:45,365 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-20868950-33520246 passed 2024-10-31 02:26:45,520 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:26:45,521 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-20868950-33520246, IP 156.46.121.195, Port 22 2024-10-31 02:26:45,681 - DEBUG - VM ctest-TestRoutersBasic-20868950-33520246 is ready for SSH connections 2024-10-31 02:26:45,681 - INFO - Waiting for VM ctest-TestRoutersBasic-20868950-70470736 to be up.. 2024-10-31 02:26:45,773 - DEBUG - VM is in ACTIVE state now 2024-10-31 02:26:45,773 - INFO - VM name : ctest-TestRoutersBasic-20868950-70470736 2024-10-31 02:26:45,853 - DEBUG - VM ctest-TestRoutersBasic-20868950-70470736 ID is 12a98c35-f4c0-46eb-998f-59a31e67335f 2024-10-31 02:26:45,853 - DEBUG - VM ctest-TestRoutersBasic-20868950-70470736 launched on Node cn-jenkins-deploy-platform-ansible-os-2183-1. 2024-10-31 02:26:45,931 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/12a98c35-f4c0-46eb-998f-59a31e67335f 2024-10-31 02:26:45,942 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/18dd37d5-ab25-4de7-9b07-940623566534 2024-10-31 02:26:47,188 - 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.76 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.384 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.384/1.570/2.756/1.186 ms') 2024-10-31 02:26:47,188 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-20868950-70470736 passed 2024-10-31 02:26:47,349 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:26:47,349 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-20868950-70470736, IP 145.113.97.131, Port 22 2024-10-31 02:26:47,504 - DEBUG - VM ctest-TestRoutersBasic-20868950-70470736 is ready for SSH connections 2024-10-31 02:26:47,504 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:26:47,504 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 145.113.97.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-31 02:26:47,504 - DEBUG - ping -s 56 -c 3 -W 1 145.113.97.131 2024-10-31 02:26:51,497 - DEBUG - PING 145.113.97.131 (145.113.97.131): 56 data bytes 64 bytes from 145.113.97.131: seq=0 ttl=62 time=7.052 ms 64 bytes from 145.113.97.131: seq=1 ttl=62 time=0.829 ms 64 bytes from 145.113.97.131: seq=2 ttl=62 time=0.854 ms --- 145.113.97.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.829/2.911/7.052 ms 2024-10-31 02:26:51,497 - INFO - Ping to IP 145.113.97.131 from VM ctest-TestRoutersBasic-20868950-33520246 passed 2024-10-31 02:26:51,497 - INFO - Deleting interface with subnet_id d65f20b7-40c3-4b28-afaa-22324f256c33, port_id None from router 0ab78a45-60d6-4cf1-8559-3dd4b3760db1 2024-10-31 02:26:51,699 - INFO - Deleting VM ctest-TestRoutersBasic-20868950-70470736 2024-10-31 02:26:51,762 - INFO - Deleting VM ctest-TestRoutersBasic-20868950-33520246 2024-10-31 02:26:51,846 - INFO - Deleting VN ctest-ext_vn-19388823 2024-10-31 02:26:51,923 - DEBUG - VN e5fc5d0f-0399-4386-9db3-36a6860e9020 still in use: Unable to complete operation on network e5fc5d0f-0399-4386-9db3-36a6860e9020. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-033eb853-e485-4a48-8368-4e05b77396c0'] 2024-10-31 02:26:51,923 - WARNING - Deleting VN ctest-ext_vn-19388823 failed..Will retry 2024-10-31 02:26:54,046 - DEBUG - Response for deleting network () 2024-10-31 02:26:54,046 - INFO - Deleting VN ctest-vn-31981465 2024-10-31 02:26:54,155 - DEBUG - Response for deleting network () 2024-10-31 02:26:54,411 - DEBUG - No XMPP flaps were noticed during the test 2024-10-31 02:26:54,411 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-10-31 02:26:54,411 - INFO - -------------------------------------------------------------------------------- 2024-10-31 02:26:55,135 - INFO - Deleted project: ctest-TestRoutersBasic-20868950, ID : 74913a09-8466-4309-985f-3618714deab4