2024-09-04 23:18:06,715 - INFO - Domain Default found not creating 2024-09-04 23:18:07,121 - INFO - Project ctest-TestRoutersBasic-50151250 not found, creating it 2024-09-04 23:18:08,216 - INFO - Created Project:ctest-TestRoutersBasic-50151250, ID : 2ac2bcb9-356b-465e-9563-890dcd4f967d 2024-09-04 23:18:10,747 - INFO - ================================================================================ 2024-09-04 23:18:10,747 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-04 23:18:10,747 - 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-04 23:18:11,089 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.5': '0'}} with 2024-09-04 23:18:11,089 - INFO - Initial checks done. Running the testcase now 2024-09-04 23:18:11,090 - INFO - 2024-09-04 23:18:12,076 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-50151250 2024-09-04 23:18:12,196 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-50151250 2024-09-04 23:18:12,635 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50151250', 'default']} 2024-09-04 23:18:13,037 - DEBUG - Response for create_network : {'network': {'id': '64961e9e-c7a3-43c5-ba23-afc199195ea5', 'name': 'ctest-vn-13146213', 'tenant_id': '2ac2bcb9356b465e9563890dcd4f967d', 'project_id': '2ac2bcb9356b465e9563890dcd4f967d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50151250', 'ctest-vn-13146213'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 23:18:13,242 - DEBUG - Response for create_subnet : {'subnet': {'id': '3972b181-d145-4aa0-aa11-0514fa9a7088', 'name': '', 'tenant_id': '2ac2bcb9356b465e9563890dcd4f967d', 'network_id': '64961e9e-c7a3-43c5-ba23-afc199195ea5', 'ip_version': 4, 'cidr': '189.195.95.192/26', 'allocation_pools': [{'start': '189.195.95.194', 'end': '189.195.95.254'}], 'gateway_ip': '189.195.95.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.195.95.194', 'tags': [], 'project_id': '2ac2bcb9356b465e9563890dcd4f967d'}} 2024-09-04 23:18:13,275 - INFO - Created VN ctest-vn-13146213 2024-09-04 23:18:13,331 - DEBUG - VN ctest-vn-13146213 UUID is 64961e9e-c7a3-43c5-ba23-afc199195ea5 2024-09-04 23:18:13,820 - DEBUG - Response for create_network : {'network': {'id': '24f092fd-ae80-43de-96f8-bdf1bff2d86e', 'name': 'ctest-ext_vn-37345096', 'tenant_id': '2ac2bcb9356b465e9563890dcd4f967d', 'project_id': '2ac2bcb9356b465e9563890dcd4f967d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-50151250', 'ctest-ext_vn-37345096'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 23:18:14,099 - DEBUG - Response for create_subnet : {'subnet': {'id': '627311cc-a4f1-4054-b61c-ecbe57847c2a', 'name': '', 'tenant_id': '2ac2bcb9356b465e9563890dcd4f967d', 'network_id': '24f092fd-ae80-43de-96f8-bdf1bff2d86e', 'ip_version': 4, 'cidr': '170.195.225.192/26', 'allocation_pools': [{'start': '170.195.225.194', 'end': '170.195.225.254'}], 'gateway_ip': '170.195.225.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.195.225.194', 'tags': [], 'project_id': '2ac2bcb9356b465e9563890dcd4f967d'}} 2024-09-04 23:18:14,128 - INFO - Created VN ctest-ext_vn-37345096 2024-09-04 23:18:14,188 - DEBUG - VN ctest-ext_vn-37345096 UUID is 24f092fd-ae80-43de-96f8-bdf1bff2d86e 2024-09-04 23:18:14,523 - DEBUG - Services list from nova: [, , ] 2024-09-04 23:18:16,114 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1849-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1849-1) 2024-09-04 23:18:17,421 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1849-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1849-1) 2024-09-04 23:18:17,502 - INFO - Setting gateway for router 09f75a20-3f11-4c22-add4-16b12718ded6 to network 24f092fd-ae80-43de-96f8-bdf1bff2d86e 2024-09-04 23:18:17,558 - INFO - Adding interface with subnet_id 3972b181-d145-4aa0-aa11-0514fa9a7088, port_id None to router 09f75a20-3f11-4c22-add4-16b12718ded6 2024-09-04 23:18:17,895 - INFO - Waiting for VM ctest-TestRoutersBasic-50151250-29012867 to be up.. 2024-09-04 23:18:18,022 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-04 23:18:23,269 - DEBUG - VM is in ACTIVE state now 2024-09-04 23:18:23,270 - INFO - VM name : ctest-TestRoutersBasic-50151250-29012867 2024-09-04 23:18:23,470 - DEBUG - VM ctest-TestRoutersBasic-50151250-29012867 ID is e41c64ab-2dbc-42b3-b6c7-e9f9d8a84442 2024-09-04 23:18:23,507 - DEBUG - VM ctest-TestRoutersBasic-50151250-29012867 launched on Node cn-jenkins-deploy-platform-ansible-os-1849-1 2024-09-04 23:18:23,669 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/e41c64ab-2dbc-42b3-b6c7-e9f9d8a84442 2024-09-04 23:18:24,026 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/e41c64ab-2dbc-42b3-b6c7-e9f9d8a84442 2024-09-04 23:18:24,092 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/0c67ceb0-4a27-4de1-bb41-95bc97e0e0ca 2024-09-04 23:18:27,383 - 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 1012ms') 2024-09-04 23:18:27,384 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50151250-29012867 failed! 2024-09-04 23:18:27,451 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-50151250:ctest-vn-13146213 is 189.195.95.193 and allocation pool is NOT set 2024-09-04 23:18:29,523 - 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=12.6 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.63 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.629/7.638/12.647/5.009 ms') 2024-09-04 23:18:29,524 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-50151250-29012867 passed 2024-09-04 23:18:29,707 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 23:18:29,707 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50151250-29012867, IP 189.195.95.195, Port 22 2024-09-04 23:18:29,901 - DEBUG - VM ctest-TestRoutersBasic-50151250-29012867 is ready for SSH connections 2024-09-04 23:18:29,902 - INFO - Waiting for VM ctest-TestRoutersBasic-50151250-82086613 to be up.. 2024-09-04 23:18:30,080 - DEBUG - VM is in ACTIVE state now 2024-09-04 23:18:30,080 - INFO - VM name : ctest-TestRoutersBasic-50151250-82086613 2024-09-04 23:18:30,228 - DEBUG - VM ctest-TestRoutersBasic-50151250-82086613 ID is d2f64058-e0a7-4b5a-89db-3c9444db2918 2024-09-04 23:18:30,229 - DEBUG - VM ctest-TestRoutersBasic-50151250-82086613 launched on Node cn-jenkins-deploy-platform-ansible-os-1849-1 2024-09-04 23:18:30,399 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/d2f64058-e0a7-4b5a-89db-3c9444db2918 2024-09-04 23:18:30,424 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/cdcaf199-8668-4be5-a854-d3165f669989 2024-09-04 23:18:31,757 - 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=6.49 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.906 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.906/3.696/6.487/2.790 ms') 2024-09-04 23:18:31,758 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-50151250-82086613 passed 2024-09-04 23:18:31,955 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 23:18:31,956 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-50151250-82086613, IP 170.195.225.195, Port 22 2024-09-04 23:18:32,157 - DEBUG - VM ctest-TestRoutersBasic-50151250-82086613 is ready for SSH connections 2024-09-04 23:18:32,157 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 23:18:32,158 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 170.195.225.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-04 23:18:32,158 - DEBUG - ping -s 56 -c 3 -W 1 170.195.225.195 2024-09-04 23:18:36,247 - DEBUG - PING 170.195.225.195 (170.195.225.195): 56 data bytes 64 bytes from 170.195.225.195: seq=0 ttl=62 time=11.035 ms 64 bytes from 170.195.225.195: seq=1 ttl=62 time=1.220 ms 64 bytes from 170.195.225.195: seq=2 ttl=62 time=2.210 ms --- 170.195.225.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.220/4.821/11.035 ms 2024-09-04 23:18:36,247 - INFO - Ping to IP 170.195.225.195 from VM ctest-TestRoutersBasic-50151250-29012867 passed 2024-09-04 23:18:36,247 - INFO - Deleting interface with subnet_id 3972b181-d145-4aa0-aa11-0514fa9a7088, port_id None from router 09f75a20-3f11-4c22-add4-16b12718ded6 2024-09-04 23:18:36,651 - INFO - Deleting VM ctest-TestRoutersBasic-50151250-82086613 2024-09-04 23:18:36,726 - INFO - Deleting VM ctest-TestRoutersBasic-50151250-29012867 2024-09-04 23:18:36,819 - INFO - Deleting VN ctest-ext_vn-37345096 2024-09-04 23:18:36,900 - DEBUG - VN 24f092fd-ae80-43de-96f8-bdf1bff2d86e still in use: Unable to complete operation on network 24f092fd-ae80-43de-96f8-bdf1bff2d86e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c45a47c4-319f-473c-b481-e5a7fdef5260'] 2024-09-04 23:18:36,900 - WARNING - Deleting VN ctest-ext_vn-37345096 failed..Will retry 2024-09-04 23:18:39,198 - DEBUG - Response for deleting network () 2024-09-04 23:18:39,198 - INFO - Deleting VN ctest-vn-13146213 2024-09-04 23:18:39,400 - DEBUG - Response for deleting network () 2024-09-04 23:18:39,730 - DEBUG - No XMPP flaps were noticed during the test
2024-09-04 23:18:39,731 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:29]
2024-09-04 23:18:39,731 - INFO - -------------------------------------------------------------------------------- 2024-09-04 23:18:40,597 - INFO - Deleted project: ctest-TestRoutersBasic-50151250, ID : 2ac2bcb9-356b-465e-9563-890dcd4f967d