2024-09-12 22:12:51,037 - INFO - Domain Default found not creating 2024-09-12 22:12:51,453 - INFO - Project ctest-TestRoutersBasic-82574325 not found, creating it 2024-09-12 22:12:52,230 - INFO - Created Project:ctest-TestRoutersBasic-82574325, ID : ed6012c5-15ef-4c1e-8536-17a71e3909d1 2024-09-12 22:12:54,116 - INFO - ================================================================================ 2024-09-12 22:12:54,116 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-12 22:12:54,116 - 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-12 22:12:54,410 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.23': '0'}} with 2024-09-12 22:12:54,410 - INFO - Initial checks done. Running the testcase now 2024-09-12 22:12:54,410 - INFO - 2024-09-12 22:12:55,330 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-82574325 2024-09-12 22:12:55,442 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-82574325 2024-09-12 22:12:55,862 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-82574325', 'default']} 2024-09-12 22:12:56,266 - DEBUG - Response for create_network : {'network': {'id': 'ee60d504-1024-4552-999b-70f13507e4a0', 'name': 'ctest-vn-87921606', 'tenant_id': 'ed6012c515ef4c1e853617a71e3909d1', 'project_id': 'ed6012c515ef4c1e853617a71e3909d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-82574325', 'ctest-vn-87921606'], 'port_security_enabled': True, 'description': ''}} 2024-09-12 22:12:56,564 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fdcc9ec8-53f2-482b-8f10-9da8bc7469b0', 'name': '', 'tenant_id': 'ed6012c515ef4c1e853617a71e3909d1', 'network_id': 'ee60d504-1024-4552-999b-70f13507e4a0', 'ip_version': 4, 'cidr': '17.59.164.0/26', 'allocation_pools': [{'start': '17.59.164.2', 'end': '17.59.164.62'}], 'gateway_ip': '17.59.164.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.59.164.2', 'tags': [], 'project_id': 'ed6012c515ef4c1e853617a71e3909d1'}} 2024-09-12 22:12:56,596 - INFO - Created VN ctest-vn-87921606 2024-09-12 22:12:56,687 - DEBUG - VN ctest-vn-87921606 UUID is ee60d504-1024-4552-999b-70f13507e4a0 2024-09-12 22:12:57,356 - DEBUG - Response for create_network : {'network': {'id': '2cfc8240-9620-49b4-8a90-0117efe69461', 'name': 'ctest-ext_vn-02152383', 'tenant_id': 'ed6012c515ef4c1e853617a71e3909d1', 'project_id': 'ed6012c515ef4c1e853617a71e3909d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-82574325', 'ctest-ext_vn-02152383'], 'port_security_enabled': True, 'description': ''}} 2024-09-12 22:12:57,586 - DEBUG - Response for create_subnet : {'subnet': {'id': '7bb07ac2-02b7-4fc7-b97b-fa85d28c01ba', 'name': '', 'tenant_id': 'ed6012c515ef4c1e853617a71e3909d1', 'network_id': '2cfc8240-9620-49b4-8a90-0117efe69461', 'ip_version': 4, 'cidr': '56.94.47.64/26', 'allocation_pools': [{'start': '56.94.47.66', 'end': '56.94.47.126'}], 'gateway_ip': '56.94.47.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.94.47.66', 'tags': [], 'project_id': 'ed6012c515ef4c1e853617a71e3909d1'}} 2024-09-12 22:12:57,608 - INFO - Created VN ctest-ext_vn-02152383 2024-09-12 22:12:57,683 - DEBUG - VN ctest-ext_vn-02152383 UUID is 2cfc8240-9620-49b4-8a90-0117efe69461 2024-09-12 22:12:58,109 - DEBUG - Services list from nova: [, , ] 2024-09-12 22:12:59,935 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1913-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1913-1) 2024-09-12 22:13:01,493 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1913-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1913-1) 2024-09-12 22:13:01,575 - INFO - Setting gateway for router c1d8f091-4050-40a1-9550-44ca20a5e5c5 to network 2cfc8240-9620-49b4-8a90-0117efe69461 2024-09-12 22:13:01,645 - INFO - Adding interface with subnet_id fdcc9ec8-53f2-482b-8f10-9da8bc7469b0, port_id None to router c1d8f091-4050-40a1-9550-44ca20a5e5c5 2024-09-12 22:13:01,957 - INFO - Waiting for VM ctest-TestRoutersBasic-82574325-95669619 to be up.. 2024-09-12 22:13:02,132 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-12 22:13:07,348 - DEBUG - VM is in ACTIVE state now 2024-09-12 22:13:07,348 - INFO - VM name : ctest-TestRoutersBasic-82574325-95669619 2024-09-12 22:13:07,495 - DEBUG - VM ctest-TestRoutersBasic-82574325-95669619 ID is 32ea575e-f606-4a44-af0c-7b934d6ac536 2024-09-12 22:13:07,517 - DEBUG - VM ctest-TestRoutersBasic-82574325-95669619 launched on Node cn-jenkins-deploy-platform-ansible-os-1913-1 2024-09-12 22:13:07,619 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/32ea575e-f606-4a44-af0c-7b934d6ac536 2024-09-12 22:13:07,955 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/32ea575e-f606-4a44-af0c-7b934d6ac536 2024-09-12 22:13:08,028 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/c7b6b94d-4e08-407b-82ed-80dd45046b00 2024-09-12 22:13:11,373 - 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 1002ms') 2024-09-12 22:13:11,374 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-82574325-95669619 failed! 2024-09-12 22:13:11,443 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-82574325:ctest-vn-87921606 is 17.59.164.1 and allocation pool is NOT set 2024-09-12 22:13:13,528 - 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.38 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.06 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 = 1.057/2.717/4.378/1.660 ms') 2024-09-12 22:13:13,529 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-82574325-95669619 passed 2024-09-12 22:13:13,751 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 22:13:13,751 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-82574325-95669619, IP 17.59.164.3, Port 22 2024-09-12 22:13:13,942 - DEBUG - VM ctest-TestRoutersBasic-82574325-95669619 is ready for SSH connections 2024-09-12 22:13:13,942 - INFO - Waiting for VM ctest-TestRoutersBasic-82574325-67854948 to be up.. 2024-09-12 22:13:14,176 - DEBUG - VM is in ACTIVE state now 2024-09-12 22:13:14,177 - INFO - VM name : ctest-TestRoutersBasic-82574325-67854948 2024-09-12 22:13:14,377 - DEBUG - VM ctest-TestRoutersBasic-82574325-67854948 ID is 17edfff8-9b22-4096-8a1f-0ad57ae80492 2024-09-12 22:13:14,378 - DEBUG - VM ctest-TestRoutersBasic-82574325-67854948 launched on Node cn-jenkins-deploy-platform-ansible-os-1913-1 2024-09-12 22:13:14,571 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/17edfff8-9b22-4096-8a1f-0ad57ae80492 2024-09-12 22:13:14,590 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/4b25e3bd-5b02-4040-b7eb-8a3b1a9cc9bc 2024-09-12 22:13:15,924 - 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=3.61 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.03 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 = 1.031/2.321/3.611/1.290 ms') 2024-09-12 22:13:15,924 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-82574325-67854948 passed 2024-09-12 22:13:16,086 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 22:13:16,086 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-82574325-67854948, IP 56.94.47.67, Port 22 2024-09-12 22:13:16,293 - DEBUG - VM ctest-TestRoutersBasic-82574325-67854948 is ready for SSH connections 2024-09-12 22:13:16,293 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 22:13:16,294 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 56.94.47.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-09-12 22:13:16,294 - DEBUG - ping -s 56 -c 3 -W 1 56.94.47.67 2024-09-12 22:13:20,455 - DEBUG - PING 56.94.47.67 (56.94.47.67): 56 data bytes 64 bytes from 56.94.47.67: seq=0 ttl=62 time=7.311 ms 64 bytes from 56.94.47.67: seq=1 ttl=62 time=2.127 ms 64 bytes from 56.94.47.67: seq=2 ttl=62 time=2.330 ms --- 56.94.47.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 2.127/3.922/7.311 ms 2024-09-12 22:13:20,455 - INFO - Ping to IP 56.94.47.67 from VM ctest-TestRoutersBasic-82574325-95669619 passed 2024-09-12 22:13:20,456 - INFO - Deleting interface with subnet_id fdcc9ec8-53f2-482b-8f10-9da8bc7469b0, port_id None from router c1d8f091-4050-40a1-9550-44ca20a5e5c5 2024-09-12 22:13:20,772 - INFO - Deleting VM ctest-TestRoutersBasic-82574325-67854948 2024-09-12 22:13:20,841 - INFO - Deleting VM ctest-TestRoutersBasic-82574325-95669619 2024-09-12 22:13:20,933 - INFO - Deleting VN ctest-ext_vn-02152383 2024-09-12 22:13:21,008 - DEBUG - VN 2cfc8240-9620-49b4-8a90-0117efe69461 still in use: Unable to complete operation on network 2cfc8240-9620-49b4-8a90-0117efe69461. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-00f886fe-7e5b-43a2-a7b9-c6d28ced0892'] 2024-09-12 22:13:21,008 - WARNING - Deleting VN ctest-ext_vn-02152383 failed..Will retry 2024-09-12 22:13:23,275 - DEBUG - Response for deleting network () 2024-09-12 22:13:23,275 - INFO - Deleting VN ctest-vn-87921606 2024-09-12 22:13:23,456 - DEBUG - Response for deleting network () 2024-09-12 22:13:23,784 - DEBUG - No XMPP flaps were noticed during the test 2024-09-12 22:13:23,785 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:29] 2024-09-12 22:13:23,785 - INFO - -------------------------------------------------------------------------------- 2024-09-12 22:13:24,740 - INFO - Deleted project: ctest-TestRoutersBasic-82574325, ID : ed6012c5-15ef-4c1e-8536-17a71e3909d1