2025-01-10 20:53:38,893 - INFO - Domain Default found not creating 2025-01-10 20:53:39,071 - INFO - Project ctest-TestRoutersBasic-97607108 not found, creating it 2025-01-10 20:53:39,923 - INFO - Created Project:ctest-TestRoutersBasic-97607108, ID : b8597eb5-036d-461e-be86-f9e9a32190fc 2025-01-10 20:53:41,516 - INFO - ================================================================================ 2025-01-10 20:53:41,516 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-10 20:53:41,516 - 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-01-10 20:53:42,916 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.8': '0', '10.20.0.6': '0'}, '10.0.0.32': {'10.20.0.6': '0', '10.20.0.22': '0'}} with 2025-01-10 20:53:42,916 - INFO - Initial checks done. Running the testcase now 2025-01-10 20:53:42,916 - INFO - 2025-01-10 20:53:43,797 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-97607108 2025-01-10 20:53:43,864 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-97607108 2025-01-10 20:53:44,226 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-97607108', 'default']} 2025-01-10 20:53:44,994 - DEBUG - Response for create_network : {'network': {'id': '55d25e3f-a740-46d4-ba30-201f0c0d9027', 'name': 'ctest-vn-26025285', 'tenant_id': 'b8597eb5036d461ebe86f9e9a32190fc', 'project_id': 'b8597eb5036d461ebe86f9e9a32190fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-97607108', 'ctest-vn-26025285'], 'port_security_enabled': True, 'description': ''}} 2025-01-10 20:53:45,328 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c3251a90-64b7-4b84-98d2-a9143a1a908d', 'name': '', 'tenant_id': 'b8597eb5036d461ebe86f9e9a32190fc', 'network_id': '55d25e3f-a740-46d4-ba30-201f0c0d9027', 'ip_version': 4, 'cidr': '49.14.25.192/26', 'allocation_pools': [{'start': '49.14.25.194', 'end': '49.14.25.254'}], 'gateway_ip': '49.14.25.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.14.25.194', 'tags': [], 'project_id': 'b8597eb5036d461ebe86f9e9a32190fc'}} 2025-01-10 20:53:45,357 - INFO - Created VN ctest-vn-26025285 2025-01-10 20:53:45,377 - DEBUG - VN ctest-vn-26025285 UUID is 55d25e3f-a740-46d4-ba30-201f0c0d9027 2025-01-10 20:53:45,842 - DEBUG - Response for create_network : {'network': {'id': '0606b794-b612-430d-91d4-c7e9a410edfc', 'name': 'ctest-ext_vn-53913074', 'tenant_id': 'b8597eb5036d461ebe86f9e9a32190fc', 'project_id': 'b8597eb5036d461ebe86f9e9a32190fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-97607108', 'ctest-ext_vn-53913074'], 'port_security_enabled': True, 'description': ''}} 2025-01-10 20:53:46,175 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fbfe3743-f100-4525-958c-5e33492d17c0', 'name': '', 'tenant_id': 'b8597eb5036d461ebe86f9e9a32190fc', 'network_id': '0606b794-b612-430d-91d4-c7e9a410edfc', 'ip_version': 4, 'cidr': '39.131.135.0/26', 'allocation_pools': [{'start': '39.131.135.2', 'end': '39.131.135.62'}], 'gateway_ip': '39.131.135.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.131.135.2', 'tags': [], 'project_id': 'b8597eb5036d461ebe86f9e9a32190fc'}} 2025-01-10 20:53:46,203 - INFO - Created VN ctest-ext_vn-53913074 2025-01-10 20:53:46,217 - DEBUG - VN ctest-ext_vn-53913074 UUID is 0606b794-b612-430d-91d4-c7e9a410edfc 2025-01-10 20:53:46,362 - DEBUG - Services list from nova: [, , , ] 2025-01-10 20:53:47,662 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2599-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2599-1) 2025-01-10 20:53:49,294 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2599-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2599-2) 2025-01-10 20:53:49,494 - INFO - Setting gateway for router 2cfd763d-d15d-4214-bfa5-43bc9ee7ad6f to network 0606b794-b612-430d-91d4-c7e9a410edfc 2025-01-10 20:53:49,641 - INFO - Adding interface with subnet_id c3251a90-64b7-4b84-98d2-a9143a1a908d, port_id None to router 2cfd763d-d15d-4214-bfa5-43bc9ee7ad6f 2025-01-10 20:53:50,298 - INFO - Waiting for VM ctest-TestRoutersBasic-97607108-27268787 to be up.. 2025-01-10 20:53:50,512 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-10 20:53:55,717 - DEBUG - VM is in ACTIVE state now 2025-01-10 20:53:55,717 - INFO - VM name : ctest-TestRoutersBasic-97607108-27268787 2025-01-10 20:53:55,918 - DEBUG - VM ctest-TestRoutersBasic-97607108-27268787 ID is 67083bc6-ff61-4d6f-b35b-36febc2dd29d 2025-01-10 20:53:55,969 - DEBUG - VM ctest-TestRoutersBasic-97607108-27268787 launched on Node an-jenkins-deploy-platform-ansible-os-2599-1 2025-01-10 20:53:56,113 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/67083bc6-ff61-4d6f-b35b-36febc2dd29d 2025-01-10 20:53:56,463 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/67083bc6-ff61-4d6f-b35b-36febc2dd29d 2025-01-10 20:53:56,510 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/706ae2c2-2665-4b33-b33f-a578488868ff 2025-01-10 20:53:59,803 - 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 1026ms') 2025-01-10 20:53:59,803 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-97607108-27268787 failed! 2025-01-10 20:53:59,906 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-97607108:ctest-vn-26025285 is 49.14.25.193 and allocation pool is NOT set 2025-01-10 20:54:01,976 - 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=5.82 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.494 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.494/3.155/5.816/2.661 ms') 2025-01-10 20:54:01,976 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-97607108-27268787 passed 2025-01-10 20:54:02,114 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-10 20:54:02,114 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-97607108-27268787, IP 49.14.25.195, Port 22 2025-01-10 20:54:02,287 - DEBUG - VM ctest-TestRoutersBasic-97607108-27268787 is ready for SSH connections 2025-01-10 20:54:02,287 - INFO - Waiting for VM ctest-TestRoutersBasic-97607108-46509393 to be up.. 2025-01-10 20:54:02,442 - DEBUG - VM is in ACTIVE state now 2025-01-10 20:54:02,442 - INFO - VM name : ctest-TestRoutersBasic-97607108-46509393 2025-01-10 20:54:02,567 - DEBUG - VM ctest-TestRoutersBasic-97607108-46509393 ID is d4278349-2b5c-40a6-9f43-b49c6e410d30 2025-01-10 20:54:02,567 - DEBUG - VM ctest-TestRoutersBasic-97607108-46509393 launched on Node an-jenkins-deploy-platform-ansible-os-2599-2 2025-01-10 20:54:02,683 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/d4278349-2b5c-40a6-9f43-b49c6e410d30 2025-01-10 20:54:02,700 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/128f38b1-5efb-45c5-a65a-1983fb92fcd6 2025-01-10 20:54:03,946 - 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.41 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.65 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 = 1.647/2.530/3.414/0.883 ms') 2025-01-10 20:54:03,946 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-97607108-46509393 passed 2025-01-10 20:54:04,073 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-10 20:54:04,074 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-97607108-46509393, IP 39.131.135.3, Port 22 2025-01-10 20:54:04,236 - DEBUG - VM ctest-TestRoutersBasic-97607108-46509393 is ready for SSH connections 2025-01-10 20:54:04,237 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-10 20:54:04,237 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 39.131.135.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-01-10 20:54:04,238 - DEBUG - ping -s 56 -c 3 -W 1 39.131.135.3 2025-01-10 20:54:08,122 - DEBUG - PING 39.131.135.3 (39.131.135.3): 56 data bytes 64 bytes from 39.131.135.3: seq=0 ttl=62 time=10.007 ms 64 bytes from 39.131.135.3: seq=1 ttl=62 time=1.519 ms 64 bytes from 39.131.135.3: seq=2 ttl=62 time=1.705 ms --- 39.131.135.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.519/4.410/10.007 ms 2025-01-10 20:54:08,122 - INFO - Ping to IP 39.131.135.3 from VM ctest-TestRoutersBasic-97607108-27268787 passed 2025-01-10 20:54:08,122 - INFO - Deleting interface with subnet_id c3251a90-64b7-4b84-98d2-a9143a1a908d, port_id None from router 2cfd763d-d15d-4214-bfa5-43bc9ee7ad6f 2025-01-10 20:54:08,677 - INFO - Deleting VM ctest-TestRoutersBasic-97607108-46509393 2025-01-10 20:54:08,798 - INFO - Deleting VM ctest-TestRoutersBasic-97607108-27268787 2025-01-10 20:54:08,948 - INFO - Deleting VN ctest-ext_vn-53913074 2025-01-10 20:54:09,089 - DEBUG - VN 0606b794-b612-430d-91d4-c7e9a410edfc still in use: Unable to complete operation on network 0606b794-b612-430d-91d4-c7e9a410edfc. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b37cde3f-13b7-4a9c-8ba3-e1d4a4e95482'] 2025-01-10 20:54:09,090 - WARNING - Deleting VN ctest-ext_vn-53913074 failed..Will retry 2025-01-10 20:54:11,383 - DEBUG - Response for deleting network () 2025-01-10 20:54:11,383 - INFO - Deleting VN ctest-vn-26025285 2025-01-10 20:54:11,607 - DEBUG - Response for deleting network () 2025-01-10 20:54:12,957 - DEBUG - No XMPP flaps were noticed during the test 2025-01-10 20:54:12,957 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-01-10 20:54:12,957 - INFO - -------------------------------------------------------------------------------- 2025-01-10 20:54:14,685 - INFO - Deleted project: ctest-TestRoutersBasic-97607108, ID : b8597eb5-036d-461e-be86-f9e9a32190fc