2024-10-17 13:42:49,994 - INFO - Reading existing Domain with UUID cfa788e6-8a4a-4759-a522-b9348a350fea 2024-10-17 13:42:50,017 - INFO - Using existing domain ['admin_domain'](cfa788e6-8a4a-4759-a522-b9348a350fea) 2024-10-17 13:42:50,290 - INFO - Project ctest-TestRoutersBasic-39028417 not found, creating it 2024-10-17 13:42:50,964 - INFO - Created Project:ctest-TestRoutersBasic-39028417, ID : 18608914-342e-4aeb-ac35-e21f08383bde 2024-10-17 13:42:53,299 - INFO - ================================================================================ 2024-10-17 13:42:53,299 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-17 13:42:53,299 - 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-17 13:42:53,697 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.0.0.12': '0'}} with 2024-10-17 13:42:53,697 - INFO - Initial checks done. Running the testcase now 2024-10-17 13:42:53,698 - INFO - 2024-10-17 13:42:54,632 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-39028417 2024-10-17 13:42:54,736 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-39028417 2024-10-17 13:42:55,112 - DEBUG - Reading firewall policy {'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-39028417', 'default']} 2024-10-17 13:42:55,822 - DEBUG - Response for create_network : {'network': {'id': 'a563fb2b-f9d3-49ce-b358-d1bc14454f12', 'name': 'ctest-vn-62529055', 'tenant_id': '18608914342e4aebac35e21f08383bde', 'project_id': '18608914342e4aebac35e21f08383bde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-39028417', 'ctest-vn-62529055'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-10-17 13:42:56,085 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9e5a6cd-7ca6-4d7b-81e4-e0767c9a6bef', 'name': '', 'tenant_id': '18608914342e4aebac35e21f08383bde', 'network_id': 'a563fb2b-f9d3-49ce-b358-d1bc14454f12', 'ip_version': 4, 'cidr': '132.231.157.192/26', 'allocation_pools': [{'start': '132.231.157.194', 'end': '132.231.157.254'}], 'gateway_ip': '132.231.157.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-10-17T13:42:55.932819', 'updated_at': '2024-10-17T13:42:55.932819', 'dns_server_address': '132.231.157.194', 'tags': [], 'project_id': '18608914342e4aebac35e21f08383bde'}} 2024-10-17 13:42:56,159 - INFO - Created VN ctest-vn-62529055 2024-10-17 13:42:56,224 - DEBUG - VN ctest-vn-62529055 UUID is a563fb2b-f9d3-49ce-b358-d1bc14454f12 2024-10-17 13:42:56,873 - DEBUG - Response for create_network : {'network': {'id': 'c8ceb800-768b-4b89-81f9-a55406520f2e', 'name': 'ctest-ext_vn-95323333', 'tenant_id': '18608914342e4aebac35e21f08383bde', 'project_id': '18608914342e4aebac35e21f08383bde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-39028417', 'ctest-ext_vn-95323333'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-10-17 13:42:57,173 - DEBUG - Response for create_subnet : {'subnet': {'id': '03dfa265-d6ea-43d1-ab55-34bfa2020dd8', 'name': '', 'tenant_id': '18608914342e4aebac35e21f08383bde', 'network_id': 'c8ceb800-768b-4b89-81f9-a55406520f2e', 'ip_version': 4, 'cidr': '71.93.155.64/26', 'allocation_pools': [{'start': '71.93.155.66', 'end': '71.93.155.126'}], 'gateway_ip': '71.93.155.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-10-17T13:42:57.051943', 'updated_at': '2024-10-17T13:42:57.051943', 'dns_server_address': '71.93.155.66', 'tags': [], 'project_id': '18608914342e4aebac35e21f08383bde'}} 2024-10-17 13:42:57,243 - INFO - Created VN ctest-ext_vn-95323333 2024-10-17 13:42:57,312 - DEBUG - VN ctest-ext_vn-95323333 UUID is c8ceb800-768b-4b89-81f9-a55406520f2e 2024-10-17 13:42:57,665 - DEBUG - Services list from nova: [, , ] 2024-10-17 13:42:59,052 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-438-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-438-1) 2024-10-17 13:43:00,531 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-438-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-438-1) 2024-10-17 13:43:00,781 - INFO - Setting gateway for router 1d3965c9-57cf-4688-8f08-2e749bdb1726 to network c8ceb800-768b-4b89-81f9-a55406520f2e 2024-10-17 13:43:00,989 - INFO - Adding interface with subnet_id c9e5a6cd-7ca6-4d7b-81e4-e0767c9a6bef, port_id None to router 1d3965c9-57cf-4688-8f08-2e749bdb1726 2024-10-17 13:43:02,171 - INFO - Waiting for VM ctest-TestRoutersBasic-39028417-46725921 to be up.. 2024-10-17 13:43:02,468 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-17 13:43:07,649 - DEBUG - VM is in ACTIVE state now 2024-10-17 13:43:07,649 - INFO - VM name : ctest-TestRoutersBasic-39028417-46725921 2024-10-17 13:43:07,804 - DEBUG - VM ctest-TestRoutersBasic-39028417-46725921 ID is 9053ac34-5d6d-4f6a-a0f6-f04a889e278e 2024-10-17 13:43:07,837 - DEBUG - VM ctest-TestRoutersBasic-39028417-46725921 launched on Node cn-jenkins-deploy-platform-juju-os-438-1 2024-10-17 13:43:08,041 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-machine/9053ac34-5d6d-4f6a-a0f6-f04a889e278e 2024-10-17 13:43:08,445 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-machine/9053ac34-5d6d-4f6a-a0f6-f04a889e278e 2024-10-17 13:43:08,569 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-machine-interface/87f71e06-e8b6-4100-9967-ef773983abf1 2024-10-17 13:43:12,098 - 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 1007ms') 2024-10-17 13:43:12,098 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-39028417-46725921 failed! 2024-10-17 13:43:12,164 - DEBUG - Gateway for vn admin_domain:ctest-TestRoutersBasic-39028417:ctest-vn-62529055 is 132.231.157.193 and allocation pool is NOT set 2024-10-17 13:43:16,282 - 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=2 ttl=63 time=4.50 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1023ms\r\nrtt min/avg/max/mdev = 4.502/4.502/4.502/0.000 ms') 2024-10-17 13:43:16,282 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-39028417-46725921 passed 2024-10-17 13:43:16,456 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 13:43:16,457 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-39028417-46725921, IP 132.231.157.195, Port 22 2024-10-17 13:43:16,704 - DEBUG - VM ctest-TestRoutersBasic-39028417-46725921 is ready for SSH connections 2024-10-17 13:43:16,704 - INFO - Waiting for VM ctest-TestRoutersBasic-39028417-06714784 to be up.. 2024-10-17 13:43:16,888 - DEBUG - VM is in ACTIVE state now 2024-10-17 13:43:16,889 - INFO - VM name : ctest-TestRoutersBasic-39028417-06714784 2024-10-17 13:43:17,081 - DEBUG - VM ctest-TestRoutersBasic-39028417-06714784 ID is 74373e0f-270a-42f7-b88d-d2d0ff5529d6 2024-10-17 13:43:17,081 - DEBUG - VM ctest-TestRoutersBasic-39028417-06714784 launched on Node cn-jenkins-deploy-platform-juju-os-438-1 2024-10-17 13:43:17,274 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-machine/74373e0f-270a-42f7-b88d-d2d0ff5529d6 2024-10-17 13:43:17,333 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-machine-interface/49d57dc9-36dd-4984-9d01-8a30d96f9187 2024-10-17 13:43:18,864 - 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=4.70 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.484 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.484/2.594/4.704/2.110 ms') 2024-10-17 13:43:18,864 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-39028417-06714784 passed 2024-10-17 13:43:19,028 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 13:43:19,028 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-39028417-06714784, IP 71.93.155.67, Port 22 2024-10-17 13:43:19,257 - DEBUG - VM ctest-TestRoutersBasic-39028417-06714784 is ready for SSH connections 2024-10-17 13:43:19,257 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 13:43:19,257 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 71.93.155.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-10-17 13:43:19,258 - DEBUG - ping -s 56 -c 3 -W 1 71.93.155.67 2024-10-17 13:43:23,077 - DEBUG - PING 71.93.155.67 (71.93.155.67): 56 data bytes 64 bytes from 71.93.155.67: seq=0 ttl=62 time=8.198 ms 64 bytes from 71.93.155.67: seq=1 ttl=62 time=1.204 ms 64 bytes from 71.93.155.67: seq=2 ttl=62 time=1.075 ms --- 71.93.155.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.075/3.492/8.198 ms 2024-10-17 13:43:23,078 - INFO - Ping to IP 71.93.155.67 from VM ctest-TestRoutersBasic-39028417-46725921 passed 2024-10-17 13:43:23,078 - INFO - Deleting interface with subnet_id c9e5a6cd-7ca6-4d7b-81e4-e0767c9a6bef, port_id None from router 1d3965c9-57cf-4688-8f08-2e749bdb1726 2024-10-17 13:43:23,559 - INFO - Deleting VM ctest-TestRoutersBasic-39028417-06714784 2024-10-17 13:43:23,691 - INFO - Deleting VM ctest-TestRoutersBasic-39028417-46725921 2024-10-17 13:43:23,854 - INFO - Deleting VN ctest-ext_vn-95323333 2024-10-17 13:43:24,149 - DEBUG - VN c8ceb800-768b-4b89-81f9-a55406520f2e still in use: Unable to complete operation on network c8ceb800-768b-4b89-81f9-a55406520f2e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3845c0ef-7033-4812-880e-9db129f17543'] 2024-10-17 13:43:24,149 - WARNING - Deleting VN ctest-ext_vn-95323333 failed..Will retry 2024-10-17 13:43:26,390 - DEBUG - Response for deleting network () 2024-10-17 13:43:26,390 - INFO - Deleting VN ctest-vn-62529055 2024-10-17 13:43:26,609 - DEBUG - Response for deleting network () 2024-10-17 13:43:27,005 - DEBUG - No XMPP flaps were noticed during the test 2024-10-17 13:43:27,005 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:34] 2024-10-17 13:43:27,005 - INFO - -------------------------------------------------------------------------------- 2024-10-17 13:43:27,900 - INFO - Deleted project: ctest-TestRoutersBasic-39028417, ID : 18608914-342e-4aeb-ac35-e21f08383bde