2024-08-23 19:17:00,870 - INFO - Domain Default found not creating 2024-08-23 19:17:01,064 - INFO - Project ctest-TestRoutersBasic-94639822 not found, creating it 2024-08-23 19:17:01,580 - INFO - Created Project:ctest-TestRoutersBasic-94639822, ID : 6815a849-cb0a-4344-986c-c7ba1b6a0939 2024-08-23 19:17:03,460 - INFO - ================================================================================ 2024-08-23 19:17:03,461 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-23 19:17:03,461 - 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-23 19:17:03,603 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.10': '0'}} with 2024-08-23 19:17:03,603 - INFO - Initial checks done. Running the testcase now 2024-08-23 19:17:03,604 - INFO - 2024-08-23 19:17:04,454 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-94639822 2024-08-23 19:17:04,556 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-94639822 2024-08-23 19:17:04,896 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94639822', 'default']} 2024-08-23 19:17:05,234 - DEBUG - Response for create_network : {'network': {'id': 'b42341e3-a329-43d6-8d86-9574eca0a6f4', 'name': 'ctest-vn-70796881', 'tenant_id': '6815a849cb0a4344986cc7ba1b6a0939', 'project_id': '6815a849cb0a4344986cc7ba1b6a0939', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94639822', 'ctest-vn-70796881'], 'port_security_enabled': True, 'description': ''}} 2024-08-23 19:17:05,496 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9021576-0102-4078-b8b2-5251b31a56a6', 'name': '', 'tenant_id': '6815a849cb0a4344986cc7ba1b6a0939', 'network_id': 'b42341e3-a329-43d6-8d86-9574eca0a6f4', 'ip_version': 4, 'cidr': '104.208.16.0/26', 'allocation_pools': [{'start': '104.208.16.2', 'end': '104.208.16.62'}], 'gateway_ip': '104.208.16.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.208.16.2', 'tags': [], 'project_id': '6815a849cb0a4344986cc7ba1b6a0939'}} 2024-08-23 19:17:05,521 - INFO - Created VN ctest-vn-70796881 2024-08-23 19:17:05,576 - DEBUG - VN ctest-vn-70796881 UUID is b42341e3-a329-43d6-8d86-9574eca0a6f4 2024-08-23 19:17:05,939 - DEBUG - Response for create_network : {'network': {'id': '9fa481b1-ce40-4d29-8d26-d1ece0c2eae5', 'name': 'ctest-ext_vn-03608714', 'tenant_id': '6815a849cb0a4344986cc7ba1b6a0939', 'project_id': '6815a849cb0a4344986cc7ba1b6a0939', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-94639822', 'ctest-ext_vn-03608714'], 'port_security_enabled': True, 'description': ''}} 2024-08-23 19:17:06,177 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb1d1ac8-8fc1-4116-bd43-3384123deaa9', 'name': '', 'tenant_id': '6815a849cb0a4344986cc7ba1b6a0939', 'network_id': '9fa481b1-ce40-4d29-8d26-d1ece0c2eae5', 'ip_version': 4, 'cidr': '216.73.212.192/26', 'allocation_pools': [{'start': '216.73.212.194', 'end': '216.73.212.254'}], 'gateway_ip': '216.73.212.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.73.212.194', 'tags': [], 'project_id': '6815a849cb0a4344986cc7ba1b6a0939'}} 2024-08-23 19:17:06,200 - INFO - Created VN ctest-ext_vn-03608714 2024-08-23 19:17:06,252 - DEBUG - VN ctest-ext_vn-03608714 UUID is 9fa481b1-ce40-4d29-8d26-d1ece0c2eae5 2024-08-23 19:17:06,470 - DEBUG - Services list from nova: [, , ] 2024-08-23 19:17:07,789 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1725-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1725-1) 2024-08-23 19:17:09,254 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1725-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1725-1) 2024-08-23 19:17:09,350 - INFO - Setting gateway for router b87381bf-45a6-42f2-a01a-eddd21bb8559 to network 9fa481b1-ce40-4d29-8d26-d1ece0c2eae5 2024-08-23 19:17:09,426 - INFO - Adding interface with subnet_id c9021576-0102-4078-b8b2-5251b31a56a6, port_id None to router b87381bf-45a6-42f2-a01a-eddd21bb8559 2024-08-23 19:17:09,931 - INFO - Waiting for VM ctest-TestRoutersBasic-94639822-63484704 to be up.. 2024-08-23 19:17:10,084 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-23 19:17:15,188 - DEBUG - VM is in ACTIVE state now 2024-08-23 19:17:15,188 - INFO - VM name : ctest-TestRoutersBasic-94639822-63484704 2024-08-23 19:17:15,296 - DEBUG - VM ctest-TestRoutersBasic-94639822-63484704 ID is a74d4d16-b957-4be1-959f-be45a7e6d6a8 2024-08-23 19:17:15,319 - DEBUG - VM ctest-TestRoutersBasic-94639822-63484704 launched on Node cn-jenkins-deploy-platform-ansible-os-1725-1 2024-08-23 19:17:15,450 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/a74d4d16-b957-4be1-959f-be45a7e6d6a8 2024-08-23 19:17:15,919 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/a74d4d16-b957-4be1-959f-be45a7e6d6a8 2024-08-23 19:17:15,957 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/56b558e0-29b9-4597-81a3-c1309db81401 2024-08-23 19:17:19,198 - 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 1031ms') 2024-08-23 19:17:19,198 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-94639822-63484704 failed! 2024-08-23 19:17:19,252 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-94639822:ctest-vn-70796881 is 104.208.16.1 and allocation pool is NOT set 2024-08-23 19:17:21,275 - 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=6.59 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.41 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.409/4.498/6.588/2.089 ms') 2024-08-23 19:17:21,275 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-94639822-63484704 passed 2024-08-23 19:17:21,444 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 19:17:21,445 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94639822-63484704, IP 104.208.16.3, Port 22 2024-08-23 19:17:21,470 - 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-08-23 19:17:21,588 - DEBUG - VM ctest-TestRoutersBasic-94639822-63484704 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-23 19:17:26,589 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 19:17:26,589 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94639822-63484704, IP 104.208.16.3, Port 22 2024-08-23 19:17:26,671 - DEBUG - VM ctest-TestRoutersBasic-94639822-63484704 is ready for SSH connections 2024-08-23 19:17:26,672 - INFO - Waiting for VM ctest-TestRoutersBasic-94639822-08635640 to be up.. 2024-08-23 19:17:26,764 - DEBUG - VM is in ACTIVE state now 2024-08-23 19:17:26,764 - INFO - VM name : ctest-TestRoutersBasic-94639822-08635640 2024-08-23 19:17:26,861 - DEBUG - VM ctest-TestRoutersBasic-94639822-08635640 ID is 945b3c9c-ec71-4116-9481-355c36206a53 2024-08-23 19:17:26,861 - DEBUG - VM ctest-TestRoutersBasic-94639822-08635640 launched on Node cn-jenkins-deploy-platform-ansible-os-1725-1 2024-08-23 19:17:26,947 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/945b3c9c-ec71-4116-9481-355c36206a53 2024-08-23 19:17:26,957 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/8e7478ab-51d3-4725-bf52-5eaab391f261 2024-08-23 19:17:28,157 - 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.94 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.544 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.544/2.239/3.935/1.695 ms') 2024-08-23 19:17:28,157 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-94639822-08635640 passed 2024-08-23 19:17:28,308 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 19:17:28,308 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94639822-08635640, IP 216.73.212.195, Port 22 2024-08-23 19:17:28,332 - 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-08-23 19:17:28,437 - DEBUG - VM ctest-TestRoutersBasic-94639822-08635640 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-23 19:17:33,438 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 19:17:33,438 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-94639822-08635640, IP 216.73.212.195, Port 22 2024-08-23 19:17:33,519 - DEBUG - VM ctest-TestRoutersBasic-94639822-08635640 is ready for SSH connections 2024-08-23 19:17:33,519 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 19:17:33,519 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 216.73.212.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-08-23 19:17:33,520 - DEBUG - ping -s 56 -c 3 -W 1 216.73.212.195 2024-08-23 19:17:36,610 - DEBUG - PING 216.73.212.195 (216.73.212.195): 56 data bytes 64 bytes from 216.73.212.195: seq=0 ttl=62 time=9.165 ms 64 bytes from 216.73.212.195: seq=1 ttl=62 time=1.041 ms 64 bytes from 216.73.212.195: seq=2 ttl=62 time=0.976 ms --- 216.73.212.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.976/3.727/9.165 ms 2024-08-23 19:17:36,611 - INFO - Ping to IP 216.73.212.195 from VM ctest-TestRoutersBasic-94639822-63484704 passed 2024-08-23 19:17:36,611 - INFO - Deleting interface with subnet_id c9021576-0102-4078-b8b2-5251b31a56a6, port_id None from router b87381bf-45a6-42f2-a01a-eddd21bb8559 2024-08-23 19:17:36,968 - INFO - Deleting VM ctest-TestRoutersBasic-94639822-08635640 2024-08-23 19:17:37,042 - INFO - Deleting VM ctest-TestRoutersBasic-94639822-63484704 2024-08-23 19:17:37,130 - INFO - Deleting VN ctest-ext_vn-03608714 2024-08-23 19:17:37,225 - DEBUG - VN 9fa481b1-ce40-4d29-8d26-d1ece0c2eae5 still in use: Unable to complete operation on network 9fa481b1-ce40-4d29-8d26-d1ece0c2eae5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3c0203dc-eef8-4baa-9427-ea645857f7ac'] 2024-08-23 19:17:37,225 - WARNING - Deleting VN ctest-ext_vn-03608714 failed..Will retry 2024-08-23 19:17:39,411 - DEBUG - Response for deleting network () 2024-08-23 19:17:39,411 - INFO - Deleting VN ctest-vn-70796881 2024-08-23 19:17:39,623 - DEBUG - Response for deleting network () 2024-08-23 19:17:39,888 - DEBUG - No XMPP flaps were noticed during the test
2024-08-23 19:17:39,888 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:36]
2024-08-23 19:17:39,888 - INFO - -------------------------------------------------------------------------------- 2024-08-23 19:17:40,662 - INFO - Deleted project: ctest-TestRoutersBasic-94639822, ID : 6815a849-cb0a-4344-986c-c7ba1b6a0939