2024-09-02 12:32:17,013 - INFO - Reading existing Domain with UUID fe57c7f3-7b6c-41e2-9cbd-18f55724bf05 2024-09-02 12:32:17,025 - INFO - Using existing domain ['admin_domain'](fe57c7f3-7b6c-41e2-9cbd-18f55724bf05) 2024-09-02 12:32:17,236 - INFO - Project ctest-TestRoutersBasic-93045303 not found, creating it 2024-09-02 12:32:17,772 - INFO - Created Project:ctest-TestRoutersBasic-93045303, ID : bf363a73-7cc5-4c04-b20b-c07024b96dc5 2024-09-02 12:32:19,658 - INFO - ================================================================================ 2024-09-02 12:32:19,658 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-02 12:32:19,658 - 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-02 12:32:20,053 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.0.0.12': '0'}} with 2024-09-02 12:32:20,053 - INFO - Initial checks done. Running the testcase now 2024-09-02 12:32:20,053 - INFO - 2024-09-02 12:32:20,852 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-93045303 2024-09-02 12:32:20,952 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-93045303 2024-09-02 12:32:21,283 - DEBUG - Reading firewall policy {'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-93045303', 'default']} 2024-09-02 12:32:21,788 - DEBUG - Response for create_network : {'network': {'id': '6bab6f4f-b682-4973-a6b1-5131a38a277f', 'name': 'ctest-vn-87860271', 'tenant_id': 'bf363a737cc54c04b20bc07024b96dc5', 'project_id': 'bf363a737cc54c04b20bc07024b96dc5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-93045303', 'ctest-vn-87860271'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-02 12:32:22,060 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f720ffe-cb93-4661-889d-a743d1f2a9cd', 'name': '', 'tenant_id': 'bf363a737cc54c04b20bc07024b96dc5', 'network_id': '6bab6f4f-b682-4973-a6b1-5131a38a277f', 'ip_version': 4, 'cidr': '194.44.7.64/26', 'allocation_pools': [{'start': '194.44.7.66', 'end': '194.44.7.126'}], 'gateway_ip': '194.44.7.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-02T12:32:21.948651', 'updated_at': '2024-09-02T12:32:21.948651', 'dns_server_address': '194.44.7.66', 'tags': [], 'project_id': 'bf363a737cc54c04b20bc07024b96dc5'}} 2024-09-02 12:32:22,130 - INFO - Created VN ctest-vn-87860271 2024-09-02 12:32:22,184 - DEBUG - VN ctest-vn-87860271 UUID is 6bab6f4f-b682-4973-a6b1-5131a38a277f 2024-09-02 12:32:22,716 - DEBUG - Response for create_network : {'network': {'id': 'f61b93a9-cb63-4fd2-b7eb-2d6d8eaa79e5', 'name': 'ctest-ext_vn-10762943', 'tenant_id': 'bf363a737cc54c04b20bc07024b96dc5', 'project_id': 'bf363a737cc54c04b20bc07024b96dc5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-93045303', 'ctest-ext_vn-10762943'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-02 12:32:22,977 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dbd28714-3c07-4a72-9eca-a2d1f0f337f3', 'name': '', 'tenant_id': 'bf363a737cc54c04b20bc07024b96dc5', 'network_id': 'f61b93a9-cb63-4fd2-b7eb-2d6d8eaa79e5', 'ip_version': 4, 'cidr': '170.8.215.0/26', 'allocation_pools': [{'start': '170.8.215.2', 'end': '170.8.215.62'}], 'gateway_ip': '170.8.215.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-02T12:32:22.863921', 'updated_at': '2024-09-02T12:32:22.863921', 'dns_server_address': '170.8.215.2', 'tags': [], 'project_id': 'bf363a737cc54c04b20bc07024b96dc5'}} 2024-09-02 12:32:23,042 - INFO - Created VN ctest-ext_vn-10762943 2024-09-02 12:32:23,100 - DEBUG - VN ctest-ext_vn-10762943 UUID is f61b93a9-cb63-4fd2-b7eb-2d6d8eaa79e5 2024-09-02 12:32:23,381 - DEBUG - Services list from nova: [, , ] 2024-09-02 12:32:24,458 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-391-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-391-1) 2024-09-02 12:32:25,721 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-391-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-391-1) 2024-09-02 12:32:25,911 - INFO - Setting gateway for router 659337af-b0ea-45bb-8cea-dc7e071df00c to network f61b93a9-cb63-4fd2-b7eb-2d6d8eaa79e5 2024-09-02 12:32:26,077 - INFO - Adding interface with subnet_id 5f720ffe-cb93-4661-889d-a743d1f2a9cd, port_id None to router 659337af-b0ea-45bb-8cea-dc7e071df00c 2024-09-02 12:32:26,798 - INFO - Waiting for VM ctest-TestRoutersBasic-93045303-35014919 to be up.. 2024-09-02 12:32:26,960 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-02 12:32:32,105 - DEBUG - VM is in ACTIVE state now 2024-09-02 12:32:32,105 - INFO - VM name : ctest-TestRoutersBasic-93045303-35014919 2024-09-02 12:32:32,253 - DEBUG - VM ctest-TestRoutersBasic-93045303-35014919 ID is 1125a546-6eaf-4900-848b-32dc091f49a0 2024-09-02 12:32:32,281 - DEBUG - VM ctest-TestRoutersBasic-93045303-35014919 launched on Node cn-jenkins-deploy-platform-juju-os-391-1 2024-09-02 12:32:32,429 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-machine/1125a546-6eaf-4900-848b-32dc091f49a0 2024-09-02 12:32:32,773 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-machine/1125a546-6eaf-4900-848b-32dc091f49a0 2024-09-02 12:32:32,857 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-machine-interface/fb067b76-9729-4c57-9d6a-6c3d6174723d 2024-09-02 12:32:36,333 - 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 1006ms') 2024-09-02 12:32:36,334 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-93045303-35014919 failed! 2024-09-02 12:32:36,396 - DEBUG - Gateway for vn admin_domain:ctest-TestRoutersBasic-93045303:ctest-vn-87860271 is 194.44.7.65 and allocation pool is NOT set 2024-09-02 12:32:38,485 - 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=8.63 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.10 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 = 1.103/4.864/8.625/3.761 ms') 2024-09-02 12:32:38,485 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-93045303-35014919 passed 2024-09-02 12:32:38,644 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 12:32:38,644 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-93045303-35014919, IP 194.44.7.67, Port 22 2024-09-02 12:32:38,730 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-09-02 12:32:38,875 - DEBUG - VM ctest-TestRoutersBasic-93045303-35014919 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-02 12:32:43,876 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 12:32:43,876 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-93045303-35014919, IP 194.44.7.67, Port 22 2024-09-02 12:32:44,094 - DEBUG - VM ctest-TestRoutersBasic-93045303-35014919 is ready for SSH connections 2024-09-02 12:32:44,094 - INFO - Waiting for VM ctest-TestRoutersBasic-93045303-14420650 to be up.. 2024-09-02 12:32:44,233 - DEBUG - VM is in ACTIVE state now 2024-09-02 12:32:44,233 - INFO - VM name : ctest-TestRoutersBasic-93045303-14420650 2024-09-02 12:32:44,371 - DEBUG - VM ctest-TestRoutersBasic-93045303-14420650 ID is 036a2a1a-49cc-47fc-82c4-0839fbef78d0 2024-09-02 12:32:44,371 - DEBUG - VM ctest-TestRoutersBasic-93045303-14420650 launched on Node cn-jenkins-deploy-platform-juju-os-391-1 2024-09-02 12:32:44,517 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-machine/036a2a1a-49cc-47fc-82c4-0839fbef78d0 2024-09-02 12:32:44,572 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-machine-interface/06b1e508-f480-4f55-b269-a6af0f47c403 2024-09-02 12:32:46,010 - 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.42 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.384 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.384/1.901/3.418/1.517 ms') 2024-09-02 12:32:46,010 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-93045303-14420650 passed 2024-09-02 12:32:46,168 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 12:32:46,168 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-93045303-14420650, IP 170.8.215.3, Port 22 2024-09-02 12:32:46,390 - DEBUG - VM ctest-TestRoutersBasic-93045303-14420650 is ready for SSH connections 2024-09-02 12:32:46,390 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 12:32:46,390 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 170.8.215.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-09-02 12:32:46,390 - DEBUG - ping -s 56 -c 3 -W 1 170.8.215.3 2024-09-02 12:32:50,077 - DEBUG - PING 170.8.215.3 (170.8.215.3): 56 data bytes 64 bytes from 170.8.215.3: seq=0 ttl=62 time=5.105 ms 64 bytes from 170.8.215.3: seq=1 ttl=62 time=0.948 ms 64 bytes from 170.8.215.3: seq=2 ttl=62 time=1.207 ms --- 170.8.215.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.948/2.420/5.105 ms 2024-09-02 12:32:50,077 - INFO - Ping to IP 170.8.215.3 from VM ctest-TestRoutersBasic-93045303-35014919 passed 2024-09-02 12:32:50,077 - INFO - Deleting interface with subnet_id 5f720ffe-cb93-4661-889d-a743d1f2a9cd, port_id None from router 659337af-b0ea-45bb-8cea-dc7e071df00c 2024-09-02 12:32:50,462 - INFO - Deleting VM ctest-TestRoutersBasic-93045303-14420650 2024-09-02 12:32:50,564 - INFO - Deleting VM ctest-TestRoutersBasic-93045303-35014919 2024-09-02 12:32:50,680 - INFO - Deleting VN ctest-ext_vn-10762943 2024-09-02 12:32:50,867 - DEBUG - VN f61b93a9-cb63-4fd2-b7eb-2d6d8eaa79e5 still in use: Unable to complete operation on network f61b93a9-cb63-4fd2-b7eb-2d6d8eaa79e5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-701e685e-1d84-4ad8-8892-adda9da19ebe'] 2024-09-02 12:32:50,867 - WARNING - Deleting VN ctest-ext_vn-10762943 failed..Will retry 2024-09-02 12:32:53,050 - DEBUG - Response for deleting network () 2024-09-02 12:32:53,050 - INFO - Deleting VN ctest-vn-87860271 2024-09-02 12:32:53,237 - DEBUG - Response for deleting network () 2024-09-02 12:32:53,621 - DEBUG - No XMPP flaps were noticed during the test
2024-09-02 12:32:53,621 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:34]
2024-09-02 12:32:53,621 - INFO - -------------------------------------------------------------------------------- 2024-09-02 12:32:54,393 - INFO - Deleted project: ctest-TestRoutersBasic-93045303, ID : bf363a73-7cc5-4c04-b20b-c07024b96dc5