2024-10-22 19:24:36,571 - INFO - Domain Default found not creating 2024-10-22 19:24:36,749 - INFO - Project ctest-TestRoutersBasic-68620402 not found, creating it 2024-10-22 19:24:37,283 - INFO - Created Project:ctest-TestRoutersBasic-68620402, ID : 01fb22f4-9a45-46be-8988-e7358ef9b13f 2024-10-22 19:24:38,949 - INFO - ================================================================================ 2024-10-22 19:24:38,950 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-22 19:24:38,950 - 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-22 19:24:39,216 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.7': '0'}} with 2024-10-22 19:24:39,216 - INFO - Initial checks done. Running the testcase now 2024-10-22 19:24:39,216 - INFO - 2024-10-22 19:24:40,017 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-68620402 2024-10-22 19:24:40,164 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-68620402 2024-10-22 19:24:40,648 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68620402', 'default']} 2024-10-22 19:24:40,988 - DEBUG - Response for create_network : {'network': {'id': 'd803699d-0f20-4df7-bee5-45b6918e5f66', 'name': 'ctest-vn-41996670', 'tenant_id': '01fb22f49a4546be8988e7358ef9b13f', 'project_id': '01fb22f49a4546be8988e7358ef9b13f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68620402', 'ctest-vn-41996670'], 'port_security_enabled': True, 'description': ''}} 2024-10-22 19:24:41,212 - DEBUG - Response for create_subnet : {'subnet': {'id': '73f837e6-3c12-4bd8-8d5e-e9365890c955', 'name': '', 'tenant_id': '01fb22f49a4546be8988e7358ef9b13f', 'network_id': 'd803699d-0f20-4df7-bee5-45b6918e5f66', 'ip_version': 4, 'cidr': '14.99.238.192/26', 'allocation_pools': [{'start': '14.99.238.194', 'end': '14.99.238.254'}], 'gateway_ip': '14.99.238.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.99.238.194', 'tags': [], 'project_id': '01fb22f49a4546be8988e7358ef9b13f'}} 2024-10-22 19:24:41,235 - INFO - Created VN ctest-vn-41996670 2024-10-22 19:24:41,296 - DEBUG - VN ctest-vn-41996670 UUID is d803699d-0f20-4df7-bee5-45b6918e5f66 2024-10-22 19:24:41,673 - DEBUG - Response for create_network : {'network': {'id': 'e77ec82b-2579-4d7c-9353-3362bdd1b94a', 'name': 'ctest-ext_vn-35481215', 'tenant_id': '01fb22f49a4546be8988e7358ef9b13f', 'project_id': '01fb22f49a4546be8988e7358ef9b13f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68620402', 'ctest-ext_vn-35481215'], 'port_security_enabled': True, 'description': ''}} 2024-10-22 19:24:41,906 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e1c7b138-4504-4eb5-b93a-b6f03db51fe3', 'name': '', 'tenant_id': '01fb22f49a4546be8988e7358ef9b13f', 'network_id': 'e77ec82b-2579-4d7c-9353-3362bdd1b94a', 'ip_version': 4, 'cidr': '188.255.195.192/26', 'allocation_pools': [{'start': '188.255.195.194', 'end': '188.255.195.254'}], 'gateway_ip': '188.255.195.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.255.195.194', 'tags': [], 'project_id': '01fb22f49a4546be8988e7358ef9b13f'}} 2024-10-22 19:24:41,926 - INFO - Created VN ctest-ext_vn-35481215 2024-10-22 19:24:41,984 - DEBUG - VN ctest-ext_vn-35481215 UUID is e77ec82b-2579-4d7c-9353-3362bdd1b94a 2024-10-22 19:24:42,190 - DEBUG - Services list from nova: [, , ] 2024-10-22 19:24:43,341 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2126-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2126-1) 2024-10-22 19:24:44,598 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2126-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2126-1) 2024-10-22 19:24:44,696 - INFO - Setting gateway for router 2db56b5b-caa7-46e8-afd4-046067cb6d93 to network e77ec82b-2579-4d7c-9353-3362bdd1b94a 2024-10-22 19:24:44,788 - INFO - Adding interface with subnet_id 73f837e6-3c12-4bd8-8d5e-e9365890c955, port_id None to router 2db56b5b-caa7-46e8-afd4-046067cb6d93 2024-10-22 19:24:45,265 - INFO - Waiting for VM ctest-TestRoutersBasic-68620402-30590674 to be up.. 2024-10-22 19:24:45,508 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-22 19:24:50,603 - DEBUG - VM is in ACTIVE state now 2024-10-22 19:24:50,603 - INFO - VM name : ctest-TestRoutersBasic-68620402-30590674 2024-10-22 19:24:50,705 - DEBUG - VM ctest-TestRoutersBasic-68620402-30590674 ID is 43e64a8b-c15c-4aa7-be1d-c83c14dd9eea 2024-10-22 19:24:50,724 - DEBUG - VM ctest-TestRoutersBasic-68620402-30590674 launched on Node cn-jenkins-deploy-platform-ansible-os-2126-1 2024-10-22 19:24:50,812 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/43e64a8b-c15c-4aa7-be1d-c83c14dd9eea 2024-10-22 19:24:51,132 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/43e64a8b-c15c-4aa7-be1d-c83c14dd9eea 2024-10-22 19:24:51,173 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/2c0af4fe-577c-49c7-9cc4-5fdd1fc9f327 2024-10-22 19:24:54,460 - 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 1027ms') 2024-10-22 19:24:54,460 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68620402-30590674 failed! 2024-10-22 19:24:54,524 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-68620402:ctest-vn-41996670 is 14.99.238.193 and allocation pool is NOT set 2024-10-22 19:24:56,587 - 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.89 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.459 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 = 0.459/2.176/3.893/1.717 ms') 2024-10-22 19:24:56,587 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68620402-30590674 passed 2024-10-22 19:24:56,748 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-22 19:24:56,748 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68620402-30590674, IP 14.99.238.195, Port 22 2024-10-22 19:24:56,907 - DEBUG - VM ctest-TestRoutersBasic-68620402-30590674 is ready for SSH connections 2024-10-22 19:24:56,907 - INFO - Waiting for VM ctest-TestRoutersBasic-68620402-80568139 to be up.. 2024-10-22 19:24:56,993 - DEBUG - VM is in ACTIVE state now 2024-10-22 19:24:56,993 - INFO - VM name : ctest-TestRoutersBasic-68620402-80568139 2024-10-22 19:24:57,076 - DEBUG - VM ctest-TestRoutersBasic-68620402-80568139 ID is c0b59ff2-3e61-463f-937f-5c7533bcdf5d 2024-10-22 19:24:57,077 - DEBUG - VM ctest-TestRoutersBasic-68620402-80568139 launched on Node cn-jenkins-deploy-platform-ansible-os-2126-1 2024-10-22 19:24:57,163 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/c0b59ff2-3e61-463f-937f-5c7533bcdf5d 2024-10-22 19:24:57,174 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/f0fc025c-17c9-49c1-adc4-bdcd29cf14e4 2024-10-22 19:24:58,440 - 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=2.95 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.401 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.401/1.675/2.949/1.274 ms') 2024-10-22 19:24:58,440 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-68620402-80568139 passed 2024-10-22 19:24:58,608 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-22 19:24:58,608 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68620402-80568139, IP 188.255.195.195, Port 22 2024-10-22 19:24:58,767 - DEBUG - VM ctest-TestRoutersBasic-68620402-80568139 is ready for SSH connections 2024-10-22 19:24:58,768 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-22 19:24:58,768 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 188.255.195.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-10-22 19:24:58,768 - DEBUG - ping -s 56 -c 3 -W 1 188.255.195.195 2024-10-22 19:25:02,505 - DEBUG - PING 188.255.195.195 (188.255.195.195): 56 data bytes 64 bytes from 188.255.195.195: seq=0 ttl=62 time=8.069 ms 64 bytes from 188.255.195.195: seq=1 ttl=62 time=0.854 ms 64 bytes from 188.255.195.195: seq=2 ttl=62 time=1.145 ms --- 188.255.195.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.854/3.356/8.069 ms 2024-10-22 19:25:02,505 - INFO - Ping to IP 188.255.195.195 from VM ctest-TestRoutersBasic-68620402-30590674 passed 2024-10-22 19:25:02,505 - INFO - Deleting interface with subnet_id 73f837e6-3c12-4bd8-8d5e-e9365890c955, port_id None from router 2db56b5b-caa7-46e8-afd4-046067cb6d93 2024-10-22 19:25:02,776 - INFO - Deleting VM ctest-TestRoutersBasic-68620402-80568139 2024-10-22 19:25:02,854 - INFO - Deleting VM ctest-TestRoutersBasic-68620402-30590674 2024-10-22 19:25:02,942 - INFO - Deleting VN ctest-ext_vn-35481215 2024-10-22 19:25:03,064 - DEBUG - VN e77ec82b-2579-4d7c-9353-3362bdd1b94a still in use: Unable to complete operation on network e77ec82b-2579-4d7c-9353-3362bdd1b94a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b4a1a3ad-db9a-4762-bbda-6301a0c85539'] 2024-10-22 19:25:03,064 - WARNING - Deleting VN ctest-ext_vn-35481215 failed..Will retry 2024-10-22 19:25:05,207 - DEBUG - Response for deleting network () 2024-10-22 19:25:05,207 - INFO - Deleting VN ctest-vn-41996670 2024-10-22 19:25:05,346 - DEBUG - Response for deleting network () 2024-10-22 19:25:05,610 - DEBUG - No XMPP flaps were noticed during the test 2024-10-22 19:25:05,610 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2024-10-22 19:25:05,610 - INFO - -------------------------------------------------------------------------------- 2024-10-22 19:25:06,346 - INFO - Deleted project: ctest-TestRoutersBasic-68620402, ID : 01fb22f4-9a45-46be-8988-e7358ef9b13f