2024-09-02 18:28:35,536 - INFO - Reading existing Domain with UUID 58dce124-eb0a-40d6-909d-474de86f8e9d 2024-09-02 18:28:35,547 - INFO - Using existing domain ['admin_domain'](58dce124-eb0a-40d6-909d-474de86f8e9d) 2024-09-02 18:28:35,742 - INFO - Project ctest-TestRoutersBasic-11981309 not found, creating it 2024-09-02 18:28:36,245 - INFO - Created Project:ctest-TestRoutersBasic-11981309, ID : fad4fd4f-bbb1-474c-aadc-b6805a3cd928 2024-09-02 18:28:37,924 - INFO - ================================================================================ 2024-09-02 18:28:37,924 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-02 18:28:37,924 - 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 18:28:38,304 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.0.0.33': '0'}} with 2024-09-02 18:28:38,304 - INFO - Initial checks done. Running the testcase now 2024-09-02 18:28:38,304 - INFO - 2024-09-02 18:28:39,067 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-11981309 2024-09-02 18:28:39,171 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-11981309 2024-09-02 18:28:39,507 - DEBUG - Reading firewall policy {'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-11981309', 'default']} 2024-09-02 18:28:40,013 - DEBUG - Response for create_network : {'network': {'id': '9ca727c5-6b43-491c-b8f8-9f1548d34ab3', 'name': 'ctest-vn-51706070', 'tenant_id': 'fad4fd4fbbb1474caadcb6805a3cd928', 'project_id': 'fad4fd4fbbb1474caadcb6805a3cd928', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-11981309', 'ctest-vn-51706070'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-02 18:28:40,264 - DEBUG - Response for create_subnet : {'subnet': {'id': '66508f9b-eb61-4e60-9dac-ceb7ae6982d0', 'name': '', 'tenant_id': 'fad4fd4fbbb1474caadcb6805a3cd928', 'network_id': '9ca727c5-6b43-491c-b8f8-9f1548d34ab3', 'ip_version': 4, 'cidr': '79.233.144.64/26', 'allocation_pools': [{'start': '79.233.144.66', 'end': '79.233.144.126'}], 'gateway_ip': '79.233.144.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-02T18:28:40.168671', 'updated_at': '2024-09-02T18:28:40.168671', 'dns_server_address': '79.233.144.66', 'tags': [], 'project_id': 'fad4fd4fbbb1474caadcb6805a3cd928'}} 2024-09-02 18:28:40,325 - INFO - Created VN ctest-vn-51706070 2024-09-02 18:28:40,379 - DEBUG - VN ctest-vn-51706070 UUID is 9ca727c5-6b43-491c-b8f8-9f1548d34ab3 2024-09-02 18:28:40,879 - DEBUG - Response for create_network : {'network': {'id': '2bfd954f-b4f7-4501-87e4-106f961b8d73', 'name': 'ctest-ext_vn-49933953', 'tenant_id': 'fad4fd4fbbb1474caadcb6805a3cd928', 'project_id': 'fad4fd4fbbb1474caadcb6805a3cd928', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-11981309', 'ctest-ext_vn-49933953'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-02 18:28:41,135 - DEBUG - Response for create_subnet : {'subnet': {'id': '3116be5e-bd9e-4aa7-8066-e43e734aca79', 'name': '', 'tenant_id': 'fad4fd4fbbb1474caadcb6805a3cd928', 'network_id': '2bfd954f-b4f7-4501-87e4-106f961b8d73', 'ip_version': 4, 'cidr': '65.159.134.192/26', 'allocation_pools': [{'start': '65.159.134.194', 'end': '65.159.134.254'}], 'gateway_ip': '65.159.134.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-02T18:28:41.038235', 'updated_at': '2024-09-02T18:28:41.038235', 'dns_server_address': '65.159.134.194', 'tags': [], 'project_id': 'fad4fd4fbbb1474caadcb6805a3cd928'}} 2024-09-02 18:28:41,197 - INFO - Created VN ctest-ext_vn-49933953 2024-09-02 18:28:41,247 - DEBUG - VN ctest-ext_vn-49933953 UUID is 2bfd954f-b4f7-4501-87e4-106f961b8d73 2024-09-02 18:28:41,510 - DEBUG - Services list from nova: [, , ] 2024-09-02 18:28:42,544 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-396-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-396-1) 2024-09-02 18:28:43,772 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-396-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-396-1) 2024-09-02 18:28:43,945 - INFO - Setting gateway for router 28a1412f-8093-4175-94d8-960d70c7c65c to network 2bfd954f-b4f7-4501-87e4-106f961b8d73 2024-09-02 18:28:44,105 - INFO - Adding interface with subnet_id 66508f9b-eb61-4e60-9dac-ceb7ae6982d0, port_id None to router 28a1412f-8093-4175-94d8-960d70c7c65c 2024-09-02 18:28:44,673 - INFO - Waiting for VM ctest-TestRoutersBasic-11981309-51716057 to be up.. 2024-09-02 18:28:44,825 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-02 18:28:49,964 - DEBUG - VM is in ACTIVE state now 2024-09-02 18:28:49,964 - INFO - VM name : ctest-TestRoutersBasic-11981309-51716057 2024-09-02 18:28:50,095 - DEBUG - VM ctest-TestRoutersBasic-11981309-51716057 ID is cfaee622-0898-46f0-8f4f-3a4b72284e4a 2024-09-02 18:28:50,116 - DEBUG - VM ctest-TestRoutersBasic-11981309-51716057 launched on Node cn-jenkins-deploy-platform-juju-os-396-1 2024-09-02 18:28:50,263 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-machine/cfaee622-0898-46f0-8f4f-3a4b72284e4a 2024-09-02 18:28:50,609 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-machine/cfaee622-0898-46f0-8f4f-3a4b72284e4a 2024-09-02 18:28:50,696 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-machine-interface/2bb7f0b0-f4f9-43a9-8b90-97d0a6c86871 2024-09-02 18:28:54,137 - 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 1004ms') 2024-09-02 18:28:54,137 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-11981309-51716057 failed! 2024-09-02 18:28:54,191 - DEBUG - Gateway for vn admin_domain:ctest-TestRoutersBasic-11981309:ctest-vn-51706070 is 79.233.144.65 and allocation pool is NOT set 2024-09-02 18:28:56,277 - 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=4.13 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.97 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 = 2.971/3.549/4.127/0.578 ms') 2024-09-02 18:28:56,278 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-11981309-51716057 passed 2024-09-02 18:28:56,427 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 18:28:56,427 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-11981309-51716057, IP 79.233.144.67, Port 22 2024-09-02 18:28:56,514 - 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 18:28:56,651 - DEBUG - VM ctest-TestRoutersBasic-11981309-51716057 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-02 18:29:01,652 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 18:29:01,652 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-11981309-51716057, IP 79.233.144.67, Port 22 2024-09-02 18:29:01,862 - DEBUG - VM ctest-TestRoutersBasic-11981309-51716057 is ready for SSH connections 2024-09-02 18:29:01,862 - INFO - Waiting for VM ctest-TestRoutersBasic-11981309-24812337 to be up.. 2024-09-02 18:29:02,016 - DEBUG - VM is in ACTIVE state now 2024-09-02 18:29:02,016 - INFO - VM name : ctest-TestRoutersBasic-11981309-24812337 2024-09-02 18:29:02,142 - DEBUG - VM ctest-TestRoutersBasic-11981309-24812337 ID is 2074d362-6c14-4221-8973-8024b6bc0fc2 2024-09-02 18:29:02,142 - DEBUG - VM ctest-TestRoutersBasic-11981309-24812337 launched on Node cn-jenkins-deploy-platform-juju-os-396-1 2024-09-02 18:29:02,271 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-machine/2074d362-6c14-4221-8973-8024b6bc0fc2 2024-09-02 18:29:02,324 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-machine-interface/35ca3320-7193-4571-8db7-427a95206635 2024-09-02 18:29:03,763 - 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.22 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.370 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.370/1.793/3.216/1.423 ms') 2024-09-02 18:29:03,763 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-11981309-24812337 passed 2024-09-02 18:29:03,915 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 18:29:03,915 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-11981309-24812337, IP 65.159.134.195, Port 22 2024-09-02 18:29:04,115 - DEBUG - VM ctest-TestRoutersBasic-11981309-24812337 is ready for SSH connections 2024-09-02 18:29:04,115 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 18:29:04,116 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 65.159.134.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-09-02 18:29:04,116 - DEBUG - ping -s 56 -c 3 -W 1 65.159.134.195 2024-09-02 18:29:07,759 - DEBUG - PING 65.159.134.195 (65.159.134.195): 56 data bytes 64 bytes from 65.159.134.195: seq=0 ttl=62 time=6.827 ms 64 bytes from 65.159.134.195: seq=1 ttl=62 time=0.863 ms 64 bytes from 65.159.134.195: seq=2 ttl=62 time=0.829 ms --- 65.159.134.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.829/2.839/6.827 ms 2024-09-02 18:29:07,759 - INFO - Ping to IP 65.159.134.195 from VM ctest-TestRoutersBasic-11981309-51716057 passed 2024-09-02 18:29:07,759 - INFO - Deleting interface with subnet_id 66508f9b-eb61-4e60-9dac-ceb7ae6982d0, port_id None from router 28a1412f-8093-4175-94d8-960d70c7c65c 2024-09-02 18:29:08,107 - INFO - Deleting VM ctest-TestRoutersBasic-11981309-24812337 2024-09-02 18:29:08,205 - INFO - Deleting VM ctest-TestRoutersBasic-11981309-51716057 2024-09-02 18:29:08,311 - INFO - Deleting VN ctest-ext_vn-49933953 2024-09-02 18:29:08,486 - DEBUG - VN 2bfd954f-b4f7-4501-87e4-106f961b8d73 still in use: Unable to complete operation on network 2bfd954f-b4f7-4501-87e4-106f961b8d73. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f0b8551d-0d8d-4011-ba3d-a9d1f268debe'] 2024-09-02 18:29:08,487 - WARNING - Deleting VN ctest-ext_vn-49933953 failed..Will retry 2024-09-02 18:29:10,675 - DEBUG - Response for deleting network () 2024-09-02 18:29:10,675 - INFO - Deleting VN ctest-vn-51706070 2024-09-02 18:29:10,856 - DEBUG - Response for deleting network () 2024-09-02 18:29:11,240 - DEBUG - No XMPP flaps were noticed during the test
2024-09-02 18:29:11,240 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:34]
2024-09-02 18:29:11,240 - INFO - -------------------------------------------------------------------------------- 2024-09-02 18:29:11,969 - INFO - Deleted project: ctest-TestRoutersBasic-11981309, ID : fad4fd4f-bbb1-474c-aadc-b6805a3cd928