2024-08-29 20:49:46,836 - INFO - Domain Default found not creating 2024-08-29 20:49:46,979 - INFO - Project ctest-TestRoutersBasic-83864385 not found, creating it 2024-08-29 20:49:47,443 - INFO - Created Project:ctest-TestRoutersBasic-83864385, ID : fed40cc8-1ff2-43d1-8d5b-207c994c48d9 2024-08-29 20:49:49,016 - INFO - ================================================================================ 2024-08-29 20:49:49,016 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-29 20:49:49,016 - 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-08-29 20:49:49,274 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.19': '0'}} with 2024-08-29 20:49:49,274 - INFO - Initial checks done. Running the testcase now 2024-08-29 20:49:49,274 - INFO - 2024-08-29 20:49:49,984 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-83864385 2024-08-29 20:49:50,085 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-83864385 2024-08-29 20:49:50,409 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-83864385', 'default']} 2024-08-29 20:49:50,691 - DEBUG - Response for create_network : {'network': {'id': '486a27f9-3222-4545-815b-1d52bee8e5be', 'name': 'ctest-vn-11138532', 'tenant_id': 'fed40cc81ff243d18d5b207c994c48d9', 'project_id': 'fed40cc81ff243d18d5b207c994c48d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-83864385', 'ctest-vn-11138532'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 20:49:50,913 - DEBUG - Response for create_subnet : {'subnet': {'id': '24df5658-0822-4cc1-a676-2d380f43068b', 'name': '', 'tenant_id': 'fed40cc81ff243d18d5b207c994c48d9', 'network_id': '486a27f9-3222-4545-815b-1d52bee8e5be', 'ip_version': 4, 'cidr': '165.188.165.128/26', 'allocation_pools': [{'start': '165.188.165.130', 'end': '165.188.165.190'}], 'gateway_ip': '165.188.165.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.188.165.130', 'tags': [], 'project_id': 'fed40cc81ff243d18d5b207c994c48d9'}} 2024-08-29 20:49:50,930 - INFO - Created VN ctest-vn-11138532 2024-08-29 20:49:50,981 - DEBUG - VN ctest-vn-11138532 UUID is 486a27f9-3222-4545-815b-1d52bee8e5be 2024-08-29 20:49:51,273 - DEBUG - Response for create_network : {'network': {'id': 'b24d08f4-07a3-479b-9dc8-fe3608ad328e', 'name': 'ctest-ext_vn-64812677', 'tenant_id': 'fed40cc81ff243d18d5b207c994c48d9', 'project_id': 'fed40cc81ff243d18d5b207c994c48d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-83864385', 'ctest-ext_vn-64812677'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 20:49:51,458 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b6aca6f9-6676-40d1-aaa1-c81b4941324d', 'name': '', 'tenant_id': 'fed40cc81ff243d18d5b207c994c48d9', 'network_id': 'b24d08f4-07a3-479b-9dc8-fe3608ad328e', 'ip_version': 4, 'cidr': '135.105.76.0/26', 'allocation_pools': [{'start': '135.105.76.2', 'end': '135.105.76.62'}], 'gateway_ip': '135.105.76.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.105.76.2', 'tags': [], 'project_id': 'fed40cc81ff243d18d5b207c994c48d9'}} 2024-08-29 20:49:51,479 - INFO - Created VN ctest-ext_vn-64812677 2024-08-29 20:49:51,533 - DEBUG - VN ctest-ext_vn-64812677 UUID is b24d08f4-07a3-479b-9dc8-fe3608ad328e 2024-08-29 20:49:51,690 - DEBUG - Services list from nova: [, , ] 2024-08-29 20:49:52,667 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1817-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1817-1) 2024-08-29 20:49:55,423 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1817-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1817-1) 2024-08-29 20:49:55,492 - INFO - Setting gateway for router 915ffbab-d161-4cb5-ae54-16dc349920f5 to network b24d08f4-07a3-479b-9dc8-fe3608ad328e 2024-08-29 20:49:55,543 - INFO - Adding interface with subnet_id 24df5658-0822-4cc1-a676-2d380f43068b, port_id None to router 915ffbab-d161-4cb5-ae54-16dc349920f5 2024-08-29 20:49:55,837 - INFO - Waiting for VM ctest-TestRoutersBasic-83864385-88465435 to be up.. 2024-08-29 20:49:55,893 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-29 20:50:00,978 - DEBUG - VM is in ACTIVE state now 2024-08-29 20:50:00,978 - INFO - VM name : ctest-TestRoutersBasic-83864385-88465435 2024-08-29 20:50:01,059 - DEBUG - VM ctest-TestRoutersBasic-83864385-88465435 ID is 13023d51-2295-47ec-bdea-d66c3fcc1591 2024-08-29 20:50:01,077 - DEBUG - VM ctest-TestRoutersBasic-83864385-88465435 launched on Node cn-jenkins-deploy-platform-ansible-os-1817-1 2024-08-29 20:50:01,168 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/13023d51-2295-47ec-bdea-d66c3fcc1591 2024-08-29 20:50:01,466 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/13023d51-2295-47ec-bdea-d66c3fcc1591 2024-08-29 20:50:01,500 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/5315099e-5980-439e-b26c-e5765e82b7a8 2024-08-29 20:50:04,750 - 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 1008ms') 2024-08-29 20:50:04,750 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-83864385-88465435 failed! 2024-08-29 20:50:04,801 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-83864385:ctest-vn-11138532 is 165.188.165.129 and allocation pool is NOT set 2024-08-29 20:50:08,879 - 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 1016ms') 2024-08-29 20:50:08,879 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-83864385-88465435 failed! 2024-08-29 20:50:08,933 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-83864385:ctest-vn-11138532 is 165.188.165.129 and allocation pool is NOT set 2024-08-29 20:50:12,999 - 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=2 ttl=63 time=9.15 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1012ms\r\nrtt min/avg/max/mdev = 9.145/9.145/9.145/0.000 ms') 2024-08-29 20:50:12,999 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-83864385-88465435 passed 2024-08-29 20:50:13,153 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 20:50:13,153 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-83864385-88465435, IP 165.188.165.131, Port 22 2024-08-29 20:50:13,304 - DEBUG - VM ctest-TestRoutersBasic-83864385-88465435 is ready for SSH connections 2024-08-29 20:50:13,305 - INFO - Waiting for VM ctest-TestRoutersBasic-83864385-60252793 to be up.. 2024-08-29 20:50:13,381 - DEBUG - VM is in ACTIVE state now 2024-08-29 20:50:13,381 - INFO - VM name : ctest-TestRoutersBasic-83864385-60252793 2024-08-29 20:50:13,466 - DEBUG - VM ctest-TestRoutersBasic-83864385-60252793 ID is 7459026a-3f73-4aa0-871b-813ff64c164b 2024-08-29 20:50:13,466 - DEBUG - VM ctest-TestRoutersBasic-83864385-60252793 launched on Node cn-jenkins-deploy-platform-ansible-os-1817-1 2024-08-29 20:50:13,555 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/7459026a-3f73-4aa0-871b-813ff64c164b 2024-08-29 20:50:13,565 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/60d4c1ca-e7b1-47ee-906b-ad23f72d3971 2024-08-29 20:50:14,796 - 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.79 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.356 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.356/1.574/2.792/1.218 ms') 2024-08-29 20:50:14,797 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-83864385-60252793 passed 2024-08-29 20:50:14,945 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 20:50:14,945 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-83864385-60252793, IP 135.105.76.3, Port 22 2024-08-29 20:50:15,096 - DEBUG - VM ctest-TestRoutersBasic-83864385-60252793 is ready for SSH connections 2024-08-29 20:50:15,096 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 20:50:15,096 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.105.76.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2024-08-29 20:50:15,096 - DEBUG - ping -s 56 -c 3 -W 1 135.105.76.3 2024-08-29 20:50:19,761 - DEBUG - PING 135.105.76.3 (135.105.76.3): 56 data bytes --- 135.105.76.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-08-29 20:50:20,120 - WARNING - Ping to IP 135.105.76.3 from VM ctest-TestRoutersBasic-83864385-88465435 failed 2024-08-29 20:50:21,121 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.105.76.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2024-08-29 20:50:21,122 - DEBUG - ping -s 56 -c 3 -W 1 135.105.76.3 2024-08-29 20:50:23,327 - DEBUG - PING 135.105.76.3 (135.105.76.3): 56 data bytes 64 bytes from 135.105.76.3: seq=0 ttl=62 time=2.259 ms 64 bytes from 135.105.76.3: seq=1 ttl=62 time=0.785 ms 64 bytes from 135.105.76.3: seq=2 ttl=62 time=0.690 ms --- 135.105.76.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.690/1.244/2.259 ms 2024-08-29 20:50:23,327 - INFO - Ping to IP 135.105.76.3 from VM ctest-TestRoutersBasic-83864385-88465435 passed 2024-08-29 20:50:23,328 - INFO - Deleting interface with subnet_id 24df5658-0822-4cc1-a676-2d380f43068b, port_id None from router 915ffbab-d161-4cb5-ae54-16dc349920f5 2024-08-29 20:50:23,500 - INFO - Deleting VM ctest-TestRoutersBasic-83864385-60252793 2024-08-29 20:50:23,565 - INFO - Deleting VM ctest-TestRoutersBasic-83864385-88465435 2024-08-29 20:50:23,642 - INFO - Deleting VN ctest-ext_vn-64812677 2024-08-29 20:50:23,708 - DEBUG - VN b24d08f4-07a3-479b-9dc8-fe3608ad328e still in use: Unable to complete operation on network b24d08f4-07a3-479b-9dc8-fe3608ad328e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d0e84376-f8f0-47bb-84df-d3b802c3960e'] 2024-08-29 20:50:23,708 - WARNING - Deleting VN ctest-ext_vn-64812677 failed..Will retry 2024-08-29 20:50:25,806 - DEBUG - Response for deleting network () 2024-08-29 20:50:25,806 - INFO - Deleting VN ctest-vn-11138532 2024-08-29 20:50:25,907 - DEBUG - Response for deleting network () 2024-08-29 20:50:26,162 - DEBUG - No XMPP flaps were noticed during the test 2024-08-29 20:50:26,162 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:37] 2024-08-29 20:50:26,162 - INFO - -------------------------------------------------------------------------------- 2024-08-29 20:50:26,818 - INFO - Deleted project: ctest-TestRoutersBasic-83864385, ID : fed40cc8-1ff2-43d1-8d5b-207c994c48d9