2025-03-13 02:19:40,675 - INFO - Domain Default found not creating 2025-03-13 02:19:40,825 - INFO - Project ctest-TestRoutersBasic-62483174 not found, creating it 2025-03-13 02:19:41,517 - INFO - Created Project:ctest-TestRoutersBasic-62483174, ID : d729f9ba-95a3-423f-a8c6-8ba2a4cd3137 2025-03-13 02:19:43,005 - INFO - ================================================================================ 2025-03-13 02:19:43,005 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-13 02:19:43,005 - 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 2025-03-13 02:19:44,310 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.20': '0', '10.20.0.28': '0'}, '10.0.0.23': {'10.20.0.6': '0', '10.20.0.20': '0'}} with 2025-03-13 02:19:44,311 - INFO - Initial checks done. Running the testcase now 2025-03-13 02:19:44,311 - INFO - 2025-03-13 02:19:45,108 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-62483174 2025-03-13 02:19:45,179 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-62483174 2025-03-13 02:19:45,547 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-62483174', 'default']} 2025-03-13 02:19:46,097 - DEBUG - Response for create_network : {'network': {'id': '2e966895-f547-45f1-a19b-92e236fb5cd6', 'name': 'ctest-vn-26118812', 'tenant_id': 'd729f9ba95a3423fa8c68ba2a4cd3137', 'project_id': 'd729f9ba95a3423fa8c68ba2a4cd3137', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-62483174', 'ctest-vn-26118812'], 'port_security_enabled': True, 'description': ''}} 2025-03-13 02:19:46,467 - DEBUG - Response for create_subnet : {'subnet': {'id': '49291ae2-d61a-483b-aae9-7ff2f2954ff4', 'name': '', 'tenant_id': 'd729f9ba95a3423fa8c68ba2a4cd3137', 'network_id': '2e966895-f547-45f1-a19b-92e236fb5cd6', 'ip_version': 4, 'cidr': '170.184.12.128/26', 'allocation_pools': [{'start': '170.184.12.130', 'end': '170.184.12.190'}], 'gateway_ip': '170.184.12.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.184.12.130', 'tags': [], 'project_id': 'd729f9ba95a3423fa8c68ba2a4cd3137'}} 2025-03-13 02:19:46,499 - INFO - Created VN ctest-vn-26118812 2025-03-13 02:19:46,515 - DEBUG - VN ctest-vn-26118812 UUID is 2e966895-f547-45f1-a19b-92e236fb5cd6 2025-03-13 02:19:47,173 - DEBUG - Response for create_network : {'network': {'id': '8b268078-3e8f-4143-a42e-7a2dd1662895', 'name': 'ctest-ext_vn-55572461', 'tenant_id': 'd729f9ba95a3423fa8c68ba2a4cd3137', 'project_id': 'd729f9ba95a3423fa8c68ba2a4cd3137', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-62483174', 'ctest-ext_vn-55572461'], 'port_security_enabled': True, 'description': ''}} 2025-03-13 02:19:47,473 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da756ab4-37ef-4eec-8856-e6f4a23806e5', 'name': '', 'tenant_id': 'd729f9ba95a3423fa8c68ba2a4cd3137', 'network_id': '8b268078-3e8f-4143-a42e-7a2dd1662895', 'ip_version': 4, 'cidr': '53.219.149.128/26', 'allocation_pools': [{'start': '53.219.149.130', 'end': '53.219.149.190'}], 'gateway_ip': '53.219.149.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.219.149.130', 'tags': [], 'project_id': 'd729f9ba95a3423fa8c68ba2a4cd3137'}} 2025-03-13 02:19:47,507 - INFO - Created VN ctest-ext_vn-55572461 2025-03-13 02:19:47,527 - DEBUG - VN ctest-ext_vn-55572461 UUID is 8b268078-3e8f-4143-a42e-7a2dd1662895 2025-03-13 02:19:47,713 - DEBUG - Services list from nova: [, , , ] 2025-03-13 02:19:48,858 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2857-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2857-1) 2025-03-13 02:19:50,530 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2857-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2857-2) 2025-03-13 02:19:50,697 - INFO - Setting gateway for router b4f480c9-dcc7-4e86-a425-df8414f05cf7 to network 8b268078-3e8f-4143-a42e-7a2dd1662895 2025-03-13 02:19:50,846 - INFO - Adding interface with subnet_id 49291ae2-d61a-483b-aae9-7ff2f2954ff4, port_id None to router b4f480c9-dcc7-4e86-a425-df8414f05cf7 2025-03-13 02:19:51,761 - INFO - Waiting for VM ctest-TestRoutersBasic-62483174-27377452 to be up.. 2025-03-13 02:19:51,998 - DEBUG - VM is in ACTIVE state now 2025-03-13 02:19:51,998 - INFO - VM name : ctest-TestRoutersBasic-62483174-27377452 2025-03-13 02:19:52,160 - DEBUG - VM ctest-TestRoutersBasic-62483174-27377452 ID is ea005f93-2b66-4428-bdca-f82f87f9cf1d 2025-03-13 02:19:52,203 - DEBUG - VM ctest-TestRoutersBasic-62483174-27377452 launched on Node an-jenkins-deploy-platform-ansible-os-2857-1 2025-03-13 02:19:52,372 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/ea005f93-2b66-4428-bdca-f82f87f9cf1d 2025-03-13 02:19:52,860 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/ea005f93-2b66-4428-bdca-f82f87f9cf1d 2025-03-13 02:19:52,946 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/07e24bf9-4ede-4993-9564-6d9f93ad5e2c 2025-03-13 02:19:56,248 - 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') 2025-03-13 02:19:56,249 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-62483174-27377452 failed! 2025-03-13 02:19:56,270 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-62483174:ctest-vn-26118812 is 170.184.12.129 and allocation pool is NOT set 2025-03-13 02:20:00,354 - 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 1019ms') 2025-03-13 02:20:00,354 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-62483174-27377452 failed! 2025-03-13 02:20:00,373 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-62483174:ctest-vn-26118812 is 170.184.12.129 and allocation pool is NOT set 2025-03-13 02:20:02,437 - 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.31 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.827 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 = 0.827/2.067/3.307/1.240 ms') 2025-03-13 02:20:02,437 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-62483174-27377452 passed 2025-03-13 02:20:02,563 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-13 02:20:02,563 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-62483174-27377452, IP 170.184.12.131, Port 22 2025-03-13 02:20:02,733 - DEBUG - VM ctest-TestRoutersBasic-62483174-27377452 is ready for SSH connections 2025-03-13 02:20:02,733 - INFO - Waiting for VM ctest-TestRoutersBasic-62483174-35499676 to be up.. 2025-03-13 02:20:02,846 - DEBUG - VM is in ACTIVE state now 2025-03-13 02:20:02,846 - INFO - VM name : ctest-TestRoutersBasic-62483174-35499676 2025-03-13 02:20:02,959 - DEBUG - VM ctest-TestRoutersBasic-62483174-35499676 ID is ddc91c11-0c08-4612-949c-abfddc15fdb6 2025-03-13 02:20:02,959 - DEBUG - VM ctest-TestRoutersBasic-62483174-35499676 launched on Node an-jenkins-deploy-platform-ansible-os-2857-2 2025-03-13 02:20:03,092 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/ddc91c11-0c08-4612-949c-abfddc15fdb6 2025-03-13 02:20:03,108 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/0bad5026-0124-459e-a33e-03701a216dbd 2025-03-13 02:20:04,350 - 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.83 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.28 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 2.280/3.556/4.833/1.276 ms') 2025-03-13 02:20:04,350 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-62483174-35499676 passed 2025-03-13 02:20:04,478 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-13 02:20:04,478 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-62483174-35499676, IP 53.219.149.131, Port 22 2025-03-13 02:20:04,545 - 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': ''} 2025-03-13 02:20:04,655 - DEBUG - VM ctest-TestRoutersBasic-62483174-35499676 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-13 02:20:09,656 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-13 02:20:09,656 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-62483174-35499676, IP 53.219.149.131, Port 22 2025-03-13 02:20:09,814 - DEBUG - VM ctest-TestRoutersBasic-62483174-35499676 is ready for SSH connections 2025-03-13 02:20:09,815 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-13 02:20:09,815 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 53.219.149.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-03-13 02:20:09,815 - DEBUG - ping -s 56 -c 3 -W 1 53.219.149.131 2025-03-13 02:20:13,520 - DEBUG - PING 53.219.149.131 (53.219.149.131): 56 data bytes 64 bytes from 53.219.149.131: seq=0 ttl=62 time=8.277 ms 64 bytes from 53.219.149.131: seq=1 ttl=62 time=1.699 ms 64 bytes from 53.219.149.131: seq=2 ttl=62 time=1.706 ms --- 53.219.149.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.699/3.894/8.277 ms 2025-03-13 02:20:13,520 - INFO - Ping to IP 53.219.149.131 from VM ctest-TestRoutersBasic-62483174-27377452 passed 2025-03-13 02:20:13,521 - INFO - Deleting interface with subnet_id 49291ae2-d61a-483b-aae9-7ff2f2954ff4, port_id None from router b4f480c9-dcc7-4e86-a425-df8414f05cf7 2025-03-13 02:20:14,205 - INFO - Deleting VM ctest-TestRoutersBasic-62483174-35499676 2025-03-13 02:20:14,344 - INFO - Deleting VM ctest-TestRoutersBasic-62483174-27377452 2025-03-13 02:20:14,467 - INFO - Deleting VN ctest-ext_vn-55572461 2025-03-13 02:20:14,709 - DEBUG - VN 8b268078-3e8f-4143-a42e-7a2dd1662895 still in use: Unable to complete operation on network 8b268078-3e8f-4143-a42e-7a2dd1662895. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9faede4a-1752-42e1-8a6f-9062a5e8729b'] 2025-03-13 02:20:14,709 - WARNING - Deleting VN ctest-ext_vn-55572461 failed..Will retry 2025-03-13 02:20:16,998 - DEBUG - Response for deleting network () 2025-03-13 02:20:16,998 - INFO - Deleting VN ctest-vn-26118812 2025-03-13 02:20:17,255 - DEBUG - Response for deleting network () 2025-03-13 02:20:18,597 - DEBUG - No XMPP flaps were noticed during the test 2025-03-13 02:20:18,597 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:35] 2025-03-13 02:20:18,597 - INFO - -------------------------------------------------------------------------------- 2025-03-13 02:20:19,461 - INFO - Deleted project: ctest-TestRoutersBasic-62483174, ID : d729f9ba-95a3-423f-a8c6-8ba2a4cd3137