2024-11-08 14:28:37,193 - INFO - Domain Default found not creating 2024-11-08 14:28:37,372 - INFO - Project ctest-TestRoutersBasic-80752104 not found, creating it 2024-11-08 14:28:37,889 - INFO - Created Project:ctest-TestRoutersBasic-80752104, ID : c0b70ab6-d7de-4084-9234-f0d02f56be82 2024-11-08 14:28:39,646 - INFO - ================================================================================ 2024-11-08 14:28:39,646 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-08 14:28:39,646 - 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-11-08 14:28:39,905 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.5': '0'}} with 2024-11-08 14:28:39,905 - INFO - Initial checks done. Running the testcase now 2024-11-08 14:28:39,905 - INFO - 2024-11-08 14:28:40,721 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-80752104 2024-11-08 14:28:40,822 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-80752104 2024-11-08 14:28:41,162 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80752104', 'default']} 2024-11-08 14:28:41,474 - DEBUG - Response for create_network : {'network': {'id': '87abefe2-ddf6-4c1e-a9e1-a3f602a8f0ab', 'name': 'ctest-vn-55230672', 'tenant_id': 'c0b70ab6d7de40849234f0d02f56be82', 'project_id': 'c0b70ab6d7de40849234f0d02f56be82', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80752104', 'ctest-vn-55230672'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 14:28:41,685 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cefa7cb6-0f86-407d-b215-e85ca1f1c400', 'name': '', 'tenant_id': 'c0b70ab6d7de40849234f0d02f56be82', 'network_id': '87abefe2-ddf6-4c1e-a9e1-a3f602a8f0ab', 'ip_version': 4, 'cidr': '190.161.178.64/26', 'allocation_pools': [{'start': '190.161.178.66', 'end': '190.161.178.126'}], 'gateway_ip': '190.161.178.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.161.178.66', 'tags': [], 'project_id': 'c0b70ab6d7de40849234f0d02f56be82'}} 2024-11-08 14:28:41,704 - INFO - Created VN ctest-vn-55230672 2024-11-08 14:28:41,762 - DEBUG - VN ctest-vn-55230672 UUID is 87abefe2-ddf6-4c1e-a9e1-a3f602a8f0ab 2024-11-08 14:28:42,097 - DEBUG - Response for create_network : {'network': {'id': 'debfb7e8-6492-4286-bf75-473090b1858c', 'name': 'ctest-ext_vn-41592535', 'tenant_id': 'c0b70ab6d7de40849234f0d02f56be82', 'project_id': 'c0b70ab6d7de40849234f0d02f56be82', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80752104', 'ctest-ext_vn-41592535'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 14:28:42,274 - DEBUG - Response for create_subnet : {'subnet': {'id': '58203b55-6934-4059-a920-d2c3d16ecb27', 'name': '', 'tenant_id': 'c0b70ab6d7de40849234f0d02f56be82', 'network_id': 'debfb7e8-6492-4286-bf75-473090b1858c', 'ip_version': 4, 'cidr': '88.68.210.0/26', 'allocation_pools': [{'start': '88.68.210.2', 'end': '88.68.210.62'}], 'gateway_ip': '88.68.210.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.68.210.2', 'tags': [], 'project_id': 'c0b70ab6d7de40849234f0d02f56be82'}} 2024-11-08 14:28:42,295 - INFO - Created VN ctest-ext_vn-41592535 2024-11-08 14:28:42,354 - DEBUG - VN ctest-ext_vn-41592535 UUID is debfb7e8-6492-4286-bf75-473090b1858c 2024-11-08 14:28:42,536 - DEBUG - Services list from nova: [, , ] 2024-11-08 14:28:43,674 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2230-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2230-1) 2024-11-08 14:28:44,941 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2230-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2230-1) 2024-11-08 14:28:45,012 - INFO - Setting gateway for router 0f85af81-a6db-475c-8186-773c4b403cc0 to network debfb7e8-6492-4286-bf75-473090b1858c 2024-11-08 14:28:45,115 - INFO - Adding interface with subnet_id cefa7cb6-0f86-407d-b215-e85ca1f1c400, port_id None to router 0f85af81-a6db-475c-8186-773c4b403cc0 2024-11-08 14:28:45,557 - INFO - Waiting for VM ctest-TestRoutersBasic-80752104-31349380 to be up.. 2024-11-08 14:28:45,782 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-08 14:28:50,870 - DEBUG - VM is in ACTIVE state now 2024-11-08 14:28:50,870 - INFO - VM name : ctest-TestRoutersBasic-80752104-31349380 2024-11-08 14:28:50,967 - DEBUG - VM ctest-TestRoutersBasic-80752104-31349380 ID is ed1158d5-e42f-4f27-aee7-362b979dd363 2024-11-08 14:28:50,988 - DEBUG - VM ctest-TestRoutersBasic-80752104-31349380 launched on Node cn-jenkins-deploy-platform-ansible-os-2230-1 2024-11-08 14:28:51,086 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/ed1158d5-e42f-4f27-aee7-362b979dd363 2024-11-08 14:28:51,437 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/ed1158d5-e42f-4f27-aee7-362b979dd363 2024-11-08 14:28:51,478 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/bc94a7cb-6c3a-4dfb-85e4-f880dbaf52e9 2024-11-08 14:28:54,771 - 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-11-08 14:28:54,771 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-80752104-31349380 failed! 2024-11-08 14:28:54,834 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-80752104:ctest-vn-55230672 is 190.161.178.65 and allocation pool is NOT set 2024-11-08 14:28:56,890 - 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.44 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.429 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.429/1.933/3.437/1.504 ms') 2024-11-08 14:28:56,890 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-80752104-31349380 passed 2024-11-08 14:28:57,050 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 14:28:57,050 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-80752104-31349380, IP 190.161.178.67, Port 22 2024-11-08 14:28:57,209 - DEBUG - VM ctest-TestRoutersBasic-80752104-31349380 is ready for SSH connections 2024-11-08 14:28:57,209 - INFO - Waiting for VM ctest-TestRoutersBasic-80752104-19564055 to be up.. 2024-11-08 14:28:57,292 - DEBUG - VM is in ACTIVE state now 2024-11-08 14:28:57,293 - INFO - VM name : ctest-TestRoutersBasic-80752104-19564055 2024-11-08 14:28:57,371 - DEBUG - VM ctest-TestRoutersBasic-80752104-19564055 ID is 619034f7-7f87-483a-bd61-d17c543b167a 2024-11-08 14:28:57,371 - DEBUG - VM ctest-TestRoutersBasic-80752104-19564055 launched on Node cn-jenkins-deploy-platform-ansible-os-2230-1 2024-11-08 14:28:57,453 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/619034f7-7f87-483a-bd61-d17c543b167a 2024-11-08 14:28:57,465 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/74519e48-a99e-4893-b6ef-d2c396d425b9 2024-11-08 14:28:58,725 - 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.86 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.978 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.978/2.421/3.864/1.443 ms') 2024-11-08 14:28:58,725 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-80752104-19564055 passed 2024-11-08 14:28:58,886 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 14:28:58,886 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-80752104-19564055, IP 88.68.210.3, Port 22 2024-11-08 14:28:59,053 - DEBUG - VM ctest-TestRoutersBasic-80752104-19564055 is ready for SSH connections 2024-11-08 14:28:59,053 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 14:28:59,053 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 88.68.210.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2024-11-08 14:28:59,054 - DEBUG - ping -s 56 -c 3 -W 1 88.68.210.3 2024-11-08 14:29:02,776 - DEBUG - PING 88.68.210.3 (88.68.210.3): 56 data bytes 64 bytes from 88.68.210.3: seq=0 ttl=62 time=7.915 ms 64 bytes from 88.68.210.3: seq=1 ttl=62 time=1.241 ms 64 bytes from 88.68.210.3: seq=2 ttl=62 time=0.881 ms --- 88.68.210.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.881/3.345/7.915 ms 2024-11-08 14:29:02,776 - INFO - Ping to IP 88.68.210.3 from VM ctest-TestRoutersBasic-80752104-31349380 passed 2024-11-08 14:29:02,776 - INFO - Deleting interface with subnet_id cefa7cb6-0f86-407d-b215-e85ca1f1c400, port_id None from router 0f85af81-a6db-475c-8186-773c4b403cc0 2024-11-08 14:29:03,016 - INFO - Deleting VM ctest-TestRoutersBasic-80752104-19564055 2024-11-08 14:29:03,086 - INFO - Deleting VM ctest-TestRoutersBasic-80752104-31349380 2024-11-08 14:29:03,162 - INFO - Deleting VN ctest-ext_vn-41592535 2024-11-08 14:29:03,243 - DEBUG - VN debfb7e8-6492-4286-bf75-473090b1858c still in use: Unable to complete operation on network debfb7e8-6492-4286-bf75-473090b1858c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-81357fb2-90a5-4805-a931-a4c698e5d737'] 2024-11-08 14:29:03,243 - WARNING - Deleting VN ctest-ext_vn-41592535 failed..Will retry 2024-11-08 14:29:05,357 - DEBUG - Response for deleting network () 2024-11-08 14:29:05,358 - INFO - Deleting VN ctest-vn-55230672 2024-11-08 14:29:05,476 - DEBUG - Response for deleting network () 2024-11-08 14:29:05,736 - DEBUG - No XMPP flaps were noticed during the test 2024-11-08 14:29:05,736 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-11-08 14:29:05,736 - INFO - -------------------------------------------------------------------------------- 2024-11-08 14:29:06,472 - INFO - Deleted project: ctest-TestRoutersBasic-80752104, ID : c0b70ab6-d7de-4084-9234-f0d02f56be82