2024-10-26 18:25:01,981 - INFO - Domain Default found not creating 2024-10-26 18:25:02,171 - INFO - Project ctest-TestRoutersBasic-31973092 not found, creating it 2024-10-26 18:25:02,706 - INFO - Created Project:ctest-TestRoutersBasic-31973092, ID : 7555a606-df2d-46c0-8e1d-27a2b166a526 2024-10-26 18:25:04,422 - INFO - ================================================================================ 2024-10-26 18:25:04,422 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-26 18:25:04,422 - 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-26 18:25:04,685 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.13': '0'}} with 2024-10-26 18:25:04,685 - INFO - Initial checks done. Running the testcase now 2024-10-26 18:25:04,685 - INFO - 2024-10-26 18:25:05,459 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-31973092 2024-10-26 18:25:05,563 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-31973092 2024-10-26 18:25:05,907 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31973092', 'default']} 2024-10-26 18:25:06,239 - DEBUG - Response for create_network : {'network': {'id': '7b50bc12-f89e-4937-8fe7-acabeb4dfecf', 'name': 'ctest-vn-88529574', 'tenant_id': '7555a606df2d46c08e1d27a2b166a526', 'project_id': '7555a606df2d46c08e1d27a2b166a526', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31973092', 'ctest-vn-88529574'], 'port_security_enabled': True, 'description': ''}} 2024-10-26 18:25:06,449 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b34b9420-57de-41b8-bb28-248055065682', 'name': '', 'tenant_id': '7555a606df2d46c08e1d27a2b166a526', 'network_id': '7b50bc12-f89e-4937-8fe7-acabeb4dfecf', 'ip_version': 4, 'cidr': '120.250.155.64/26', 'allocation_pools': [{'start': '120.250.155.66', 'end': '120.250.155.126'}], 'gateway_ip': '120.250.155.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.250.155.66', 'tags': [], 'project_id': '7555a606df2d46c08e1d27a2b166a526'}} 2024-10-26 18:25:06,469 - INFO - Created VN ctest-vn-88529574 2024-10-26 18:25:06,531 - DEBUG - VN ctest-vn-88529574 UUID is 7b50bc12-f89e-4937-8fe7-acabeb4dfecf 2024-10-26 18:25:06,892 - DEBUG - Response for create_network : {'network': {'id': 'a66db641-c4c3-42fa-add3-709bd72c7609', 'name': 'ctest-ext_vn-79825220', 'tenant_id': '7555a606df2d46c08e1d27a2b166a526', 'project_id': '7555a606df2d46c08e1d27a2b166a526', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31973092', 'ctest-ext_vn-79825220'], 'port_security_enabled': True, 'description': ''}} 2024-10-26 18:25:07,121 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b3a242a-13bd-4a8c-a916-0eacd4970970', 'name': '', 'tenant_id': '7555a606df2d46c08e1d27a2b166a526', 'network_id': 'a66db641-c4c3-42fa-add3-709bd72c7609', 'ip_version': 4, 'cidr': '62.24.118.0/26', 'allocation_pools': [{'start': '62.24.118.2', 'end': '62.24.118.62'}], 'gateway_ip': '62.24.118.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.24.118.2', 'tags': [], 'project_id': '7555a606df2d46c08e1d27a2b166a526'}} 2024-10-26 18:25:07,143 - INFO - Created VN ctest-ext_vn-79825220 2024-10-26 18:25:07,203 - DEBUG - VN ctest-ext_vn-79825220 UUID is a66db641-c4c3-42fa-add3-709bd72c7609 2024-10-26 18:25:07,392 - DEBUG - Services list from nova: [, , ] 2024-10-26 18:25:08,491 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2152-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2152-1) 2024-10-26 18:25:09,771 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2152-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2152-1) 2024-10-26 18:25:09,873 - INFO - Setting gateway for router bffb3cde-1cef-4bcd-ab60-100cdee38ee7 to network a66db641-c4c3-42fa-add3-709bd72c7609 2024-10-26 18:25:09,963 - INFO - Adding interface with subnet_id b34b9420-57de-41b8-bb28-248055065682, port_id None to router bffb3cde-1cef-4bcd-ab60-100cdee38ee7 2024-10-26 18:25:10,467 - INFO - Waiting for VM ctest-TestRoutersBasic-31973092-05012531 to be up.. 2024-10-26 18:25:10,704 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-26 18:25:15,803 - DEBUG - VM is in ACTIVE state now 2024-10-26 18:25:15,803 - INFO - VM name : ctest-TestRoutersBasic-31973092-05012531 2024-10-26 18:25:15,887 - DEBUG - VM ctest-TestRoutersBasic-31973092-05012531 ID is 9ec79d1b-266a-4b7c-8119-af5601d6f6b8 2024-10-26 18:25:15,906 - DEBUG - VM ctest-TestRoutersBasic-31973092-05012531 launched on Node cn-jenkins-deploy-platform-ansible-os-2152-1 2024-10-26 18:25:16,008 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/9ec79d1b-266a-4b7c-8119-af5601d6f6b8 2024-10-26 18:25:16,391 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/9ec79d1b-266a-4b7c-8119-af5601d6f6b8 2024-10-26 18:25:16,445 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/e3258f2f-3107-40ad-867f-19d001f33bea 2024-10-26 18:25:19,775 - 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 1020ms') 2024-10-26 18:25:19,776 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-31973092-05012531 failed! 2024-10-26 18:25:19,839 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-31973092:ctest-vn-88529574 is 120.250.155.65 and allocation pool is NOT set 2024-10-26 18:25:21,904 - 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.94 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.28 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 = 1.284/3.111/4.938/1.827 ms') 2024-10-26 18:25:21,904 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-31973092-05012531 passed 2024-10-26 18:25:22,027 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 18:25:22,028 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31973092-05012531, IP 120.250.155.67, Port 22 2024-10-26 18:25:22,187 - DEBUG - VM ctest-TestRoutersBasic-31973092-05012531 is ready for SSH connections 2024-10-26 18:25:22,187 - INFO - Waiting for VM ctest-TestRoutersBasic-31973092-87267391 to be up.. 2024-10-26 18:25:22,280 - DEBUG - VM is in ACTIVE state now 2024-10-26 18:25:22,280 - INFO - VM name : ctest-TestRoutersBasic-31973092-87267391 2024-10-26 18:25:22,392 - DEBUG - VM ctest-TestRoutersBasic-31973092-87267391 ID is 8f300ef9-aaef-4686-8c71-12f1c37a4123 2024-10-26 18:25:22,392 - DEBUG - VM ctest-TestRoutersBasic-31973092-87267391 launched on Node cn-jenkins-deploy-platform-ansible-os-2152-1 2024-10-26 18:25:22,480 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/8f300ef9-aaef-4686-8c71-12f1c37a4123 2024-10-26 18:25:22,490 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/bdf50e9f-10ba-4eb4-ae98-bbad4abec9b9 2024-10-26 18:25:23,737 - 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.52 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.530 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.530/2.023/3.517/1.493 ms') 2024-10-26 18:25:23,737 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-31973092-87267391 passed 2024-10-26 18:25:23,903 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 18:25:23,903 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31973092-87267391, IP 62.24.118.3, Port 22 2024-10-26 18:25:24,062 - DEBUG - VM ctest-TestRoutersBasic-31973092-87267391 is ready for SSH connections 2024-10-26 18:25:24,063 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 18:25:24,063 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.24.118.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-10-26 18:25:24,063 - DEBUG - ping -s 56 -c 3 -W 1 62.24.118.3 2024-10-26 18:25:27,773 - DEBUG - PING 62.24.118.3 (62.24.118.3): 56 data bytes 64 bytes from 62.24.118.3: seq=0 ttl=62 time=7.409 ms 64 bytes from 62.24.118.3: seq=1 ttl=62 time=0.944 ms 64 bytes from 62.24.118.3: seq=2 ttl=62 time=1.010 ms --- 62.24.118.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.944/3.121/7.409 ms 2024-10-26 18:25:27,773 - INFO - Ping to IP 62.24.118.3 from VM ctest-TestRoutersBasic-31973092-05012531 passed 2024-10-26 18:25:27,773 - INFO - Deleting interface with subnet_id b34b9420-57de-41b8-bb28-248055065682, port_id None from router bffb3cde-1cef-4bcd-ab60-100cdee38ee7 2024-10-26 18:25:27,996 - INFO - Deleting VM ctest-TestRoutersBasic-31973092-87267391 2024-10-26 18:25:28,063 - INFO - Deleting VM ctest-TestRoutersBasic-31973092-05012531 2024-10-26 18:25:28,147 - INFO - Deleting VN ctest-ext_vn-79825220 2024-10-26 18:25:28,226 - DEBUG - VN a66db641-c4c3-42fa-add3-709bd72c7609 still in use: Unable to complete operation on network a66db641-c4c3-42fa-add3-709bd72c7609. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4cfb171b-ffe0-4268-a626-658536f2aff6'] 2024-10-26 18:25:28,226 - WARNING - Deleting VN ctest-ext_vn-79825220 failed..Will retry 2024-10-26 18:25:30,341 - DEBUG - Response for deleting network () 2024-10-26 18:25:30,341 - INFO - Deleting VN ctest-vn-88529574 2024-10-26 18:25:30,479 - DEBUG - Response for deleting network () 2024-10-26 18:25:30,738 - DEBUG - No XMPP flaps were noticed during the test
2024-10-26 18:25:30,738 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-10-26 18:25:30,738 - INFO - -------------------------------------------------------------------------------- 2024-10-26 18:25:31,533 - INFO - Deleted project: ctest-TestRoutersBasic-31973092, ID : 7555a606-df2d-46c0-8e1d-27a2b166a526