2024-09-11 00:02:57,013 - INFO - Domain Default found not creating 2024-09-11 00:02:57,432 - INFO - Project ctest-TestRoutersBasic-62293299 not found, creating it 2024-09-11 00:02:58,302 - INFO - Created Project:ctest-TestRoutersBasic-62293299, ID : 033c9ac3-78b0-4ab7-9c52-1cd166430365 2024-09-11 00:03:00,873 - INFO - ================================================================================ 2024-09-11 00:03:00,874 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-11 00:03:00,874 - 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-11 00:03:01,186 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.8': '0'}} with 2024-09-11 00:03:01,186 - INFO - Initial checks done. Running the testcase now 2024-09-11 00:03:01,187 - INFO - 2024-09-11 00:03:02,145 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-62293299 2024-09-11 00:03:02,254 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-62293299 2024-09-11 00:03:02,669 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-62293299', 'default']} 2024-09-11 00:03:03,080 - DEBUG - Response for create_network : {'network': {'id': '0101d598-3197-45c8-91ef-7c176a34434c', 'name': 'ctest-vn-95157425', 'tenant_id': '033c9ac378b04ab79c521cd166430365', 'project_id': '033c9ac378b04ab79c521cd166430365', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-62293299', 'ctest-vn-95157425'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 00:03:03,303 - DEBUG - Response for create_subnet : {'subnet': {'id': '69cc56cc-7351-40e3-863b-9e35405608da', 'name': '', 'tenant_id': '033c9ac378b04ab79c521cd166430365', 'network_id': '0101d598-3197-45c8-91ef-7c176a34434c', 'ip_version': 4, 'cidr': '180.222.234.64/26', 'allocation_pools': [{'start': '180.222.234.66', 'end': '180.222.234.126'}], 'gateway_ip': '180.222.234.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.222.234.66', 'tags': [], 'project_id': '033c9ac378b04ab79c521cd166430365'}} 2024-09-11 00:03:03,325 - INFO - Created VN ctest-vn-95157425 2024-09-11 00:03:03,378 - DEBUG - VN ctest-vn-95157425 UUID is 0101d598-3197-45c8-91ef-7c176a34434c 2024-09-11 00:03:04,023 - DEBUG - Response for create_network : {'network': {'id': 'ea9a19ea-fce8-46c5-85ac-12ead86b8d81', 'name': 'ctest-ext_vn-56066316', 'tenant_id': '033c9ac378b04ab79c521cd166430365', 'project_id': '033c9ac378b04ab79c521cd166430365', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-62293299', 'ctest-ext_vn-56066316'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 00:03:04,347 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c733bb3b-9395-46aa-9584-9c61e4275146', 'name': '', 'tenant_id': '033c9ac378b04ab79c521cd166430365', 'network_id': 'ea9a19ea-fce8-46c5-85ac-12ead86b8d81', 'ip_version': 4, 'cidr': '198.119.1.64/26', 'allocation_pools': [{'start': '198.119.1.66', 'end': '198.119.1.126'}], 'gateway_ip': '198.119.1.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.119.1.66', 'tags': [], 'project_id': '033c9ac378b04ab79c521cd166430365'}} 2024-09-11 00:03:04,389 - INFO - Created VN ctest-ext_vn-56066316 2024-09-11 00:03:04,458 - DEBUG - VN ctest-ext_vn-56066316 UUID is ea9a19ea-fce8-46c5-85ac-12ead86b8d81 2024-09-11 00:03:04,804 - DEBUG - Services list from nova: [, , ] 2024-09-11 00:03:06,489 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1889-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1889-1) 2024-09-11 00:03:08,114 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1889-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1889-1) 2024-09-11 00:03:08,216 - INFO - Setting gateway for router 1f03b019-6bc8-4e1b-9c26-59d4a923e9a0 to network ea9a19ea-fce8-46c5-85ac-12ead86b8d81 2024-09-11 00:03:08,295 - INFO - Adding interface with subnet_id 69cc56cc-7351-40e3-863b-9e35405608da, port_id None to router 1f03b019-6bc8-4e1b-9c26-59d4a923e9a0 2024-09-11 00:03:08,659 - INFO - Waiting for VM ctest-TestRoutersBasic-62293299-33236706 to be up.. 2024-09-11 00:03:08,817 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-11 00:03:14,038 - DEBUG - VM is in ACTIVE state now 2024-09-11 00:03:14,038 - INFO - VM name : ctest-TestRoutersBasic-62293299-33236706 2024-09-11 00:03:14,195 - DEBUG - VM ctest-TestRoutersBasic-62293299-33236706 ID is b1e18c5d-5749-4092-8804-037441753f0d 2024-09-11 00:03:14,226 - DEBUG - VM ctest-TestRoutersBasic-62293299-33236706 launched on Node cn-jenkins-deploy-platform-ansible-os-1889-1 2024-09-11 00:03:14,411 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/b1e18c5d-5749-4092-8804-037441753f0d 2024-09-11 00:03:14,770 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/b1e18c5d-5749-4092-8804-037441753f0d 2024-09-11 00:03:14,822 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/48692b2a-12b5-4330-b673-d9221ae4a54f 2024-09-11 00:03:18,191 - 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 1025ms') 2024-09-11 00:03:18,191 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-62293299-33236706 failed! 2024-09-11 00:03:18,266 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-62293299:ctest-vn-95157425 is 180.222.234.65 and allocation pool is NOT set 2024-09-11 00:03:20,351 - 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.71 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.09 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 = 3.094/3.402/3.710/0.308 ms') 2024-09-11 00:03:20,351 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-62293299-33236706 passed 2024-09-11 00:03:20,542 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 00:03:20,543 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-62293299-33236706, IP 180.222.234.67, Port 22 2024-09-11 00:03:20,611 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-09-11 00:03:20,761 - DEBUG - VM ctest-TestRoutersBasic-62293299-33236706 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-11 00:03:25,762 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 00:03:25,763 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-62293299-33236706, IP 180.222.234.67, Port 22 2024-09-11 00:03:25,976 - DEBUG - VM ctest-TestRoutersBasic-62293299-33236706 is ready for SSH connections 2024-09-11 00:03:25,976 - INFO - Waiting for VM ctest-TestRoutersBasic-62293299-29059432 to be up.. 2024-09-11 00:03:26,122 - DEBUG - VM is in ACTIVE state now 2024-09-11 00:03:26,123 - INFO - VM name : ctest-TestRoutersBasic-62293299-29059432 2024-09-11 00:03:26,272 - DEBUG - VM ctest-TestRoutersBasic-62293299-29059432 ID is 70b9d1b9-1400-4a19-a416-3d76d3709a2c 2024-09-11 00:03:26,272 - DEBUG - VM ctest-TestRoutersBasic-62293299-29059432 launched on Node cn-jenkins-deploy-platform-ansible-os-1889-1 2024-09-11 00:03:26,439 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/70b9d1b9-1400-4a19-a416-3d76d3709a2c 2024-09-11 00:03:26,453 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/19cccd5b-0fa3-4b34-8096-387f4629b2dc 2024-09-11 00:03:27,779 - 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=4.33 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.665 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.665/2.499/4.333/1.834 ms') 2024-09-11 00:03:27,780 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-62293299-29059432 passed 2024-09-11 00:03:27,954 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 00:03:27,954 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-62293299-29059432, IP 198.119.1.67, Port 22 2024-09-11 00:03:28,144 - DEBUG - VM ctest-TestRoutersBasic-62293299-29059432 is ready for SSH connections 2024-09-11 00:03:28,145 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 00:03:28,145 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 198.119.1.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-09-11 00:03:28,146 - DEBUG - ping -s 56 -c 3 -W 1 198.119.1.67 2024-09-11 00:03:32,166 - DEBUG - PING 198.119.1.67 (198.119.1.67): 56 data bytes 64 bytes from 198.119.1.67: seq=0 ttl=62 time=6.315 ms 64 bytes from 198.119.1.67: seq=1 ttl=62 time=2.563 ms 64 bytes from 198.119.1.67: seq=2 ttl=62 time=1.594 ms --- 198.119.1.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.594/3.490/6.315 ms 2024-09-11 00:03:32,166 - INFO - Ping to IP 198.119.1.67 from VM ctest-TestRoutersBasic-62293299-33236706 passed 2024-09-11 00:03:32,167 - INFO - Deleting interface with subnet_id 69cc56cc-7351-40e3-863b-9e35405608da, port_id None from router 1f03b019-6bc8-4e1b-9c26-59d4a923e9a0 2024-09-11 00:03:32,867 - INFO - Deleting VM ctest-TestRoutersBasic-62293299-29059432 2024-09-11 00:03:32,962 - INFO - Deleting VM ctest-TestRoutersBasic-62293299-33236706 2024-09-11 00:03:33,156 - INFO - Deleting VN ctest-ext_vn-56066316 2024-09-11 00:03:33,265 - DEBUG - VN ea9a19ea-fce8-46c5-85ac-12ead86b8d81 still in use: Unable to complete operation on network ea9a19ea-fce8-46c5-85ac-12ead86b8d81. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-cc38314a-4408-45ae-adcb-5ce742d72162'] 2024-09-11 00:03:33,265 - WARNING - Deleting VN ctest-ext_vn-56066316 failed..Will retry 2024-09-11 00:03:35,533 - DEBUG - Response for deleting network () 2024-09-11 00:03:35,533 - INFO - Deleting VN ctest-vn-95157425 2024-09-11 00:03:35,702 - DEBUG - Response for deleting network () 2024-09-11 00:03:36,030 - DEBUG - No XMPP flaps were noticed during the test
2024-09-11 00:03:36,030 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:36]
2024-09-11 00:03:36,030 - INFO - -------------------------------------------------------------------------------- 2024-09-11 00:03:37,062 - INFO - Deleted project: ctest-TestRoutersBasic-62293299, ID : 033c9ac3-78b0-4ab7-9c52-1cd166430365