2025-11-20 16:58:04,614 - INFO - Domain Default found not creating 2025-11-20 16:58:04,772 - INFO - Project ctest-TestRoutersBasic-61576972 not found, creating it 2025-11-20 16:58:05,224 - INFO - Created Project:ctest-TestRoutersBasic-61576972, ID : 6451f489-e1e5-46f8-9392-bc5492b00506 2025-11-20 16:58:06,632 - INFO - ================================================================================ 2025-11-20 16:58:06,633 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-20 16:58:06,633 - 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-11-20 16:58:06,886 - DEBUG - Nothing to compare xmpp stats {'10.0.0.154': {'10.20.0.252': '0'}} with 2025-11-20 16:58:06,887 - INFO - Initial checks done. Running the testcase now 2025-11-20 16:58:06,887 - INFO - 2025-11-20 16:58:07,585 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-61576972 2025-11-20 16:58:07,685 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-61576972 2025-11-20 16:58:08,005 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61576972', 'default']} 2025-11-20 16:58:08,287 - DEBUG - Response for create_network : {'network': {'id': '870c09f9-2aa5-4987-ac50-777c5c0fe581', 'name': 'ctest-vn-22153910', 'tenant_id': '6451f489e1e546f89392bc5492b00506', 'project_id': '6451f489e1e546f89392bc5492b00506', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61576972', 'ctest-vn-22153910'], 'port_security_enabled': True, 'description': ''}} 2025-11-20 16:58:08,450 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d76f7c0-317a-4cbb-af36-d61c5db8058e', 'name': '', 'tenant_id': '6451f489e1e546f89392bc5492b00506', 'network_id': '870c09f9-2aa5-4987-ac50-777c5c0fe581', 'ip_version': 4, 'cidr': '74.222.45.128/26', 'allocation_pools': [{'start': '74.222.45.130', 'end': '74.222.45.190'}], 'gateway_ip': '74.222.45.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.222.45.130', 'tags': [], 'project_id': '6451f489e1e546f89392bc5492b00506'}} 2025-11-20 16:58:08,469 - INFO - Created VN ctest-vn-22153910 2025-11-20 16:58:08,521 - DEBUG - VN ctest-vn-22153910 UUID is 870c09f9-2aa5-4987-ac50-777c5c0fe581 2025-11-20 16:58:08,811 - DEBUG - Response for create_network : {'network': {'id': '85967ebb-df7a-4f02-b04d-2626486112f7', 'name': 'ctest-ext_vn-52357319', 'tenant_id': '6451f489e1e546f89392bc5492b00506', 'project_id': '6451f489e1e546f89392bc5492b00506', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61576972', 'ctest-ext_vn-52357319'], 'port_security_enabled': True, 'description': ''}} 2025-11-20 16:58:09,030 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c76aa84-2161-4cf0-b076-7385ac888fa4', 'name': '', 'tenant_id': '6451f489e1e546f89392bc5492b00506', 'network_id': '85967ebb-df7a-4f02-b04d-2626486112f7', 'ip_version': 4, 'cidr': '58.244.135.64/26', 'allocation_pools': [{'start': '58.244.135.66', 'end': '58.244.135.126'}], 'gateway_ip': '58.244.135.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.244.135.66', 'tags': [], 'project_id': '6451f489e1e546f89392bc5492b00506'}} 2025-11-20 16:58:09,047 - INFO - Created VN ctest-ext_vn-52357319 2025-11-20 16:58:09,101 - DEBUG - VN ctest-ext_vn-52357319 UUID is 85967ebb-df7a-4f02-b04d-2626486112f7 2025-11-20 16:58:09,297 - DEBUG - Services list from nova: [, , ] 2025-11-20 16:58:10,265 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4780-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4780-1) 2025-11-20 16:58:11,376 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4780-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4780-1) 2025-11-20 16:58:11,442 - INFO - Setting gateway for router a4f109bd-a445-4576-8766-d3f48ecdd847 to network 85967ebb-df7a-4f02-b04d-2626486112f7 2025-11-20 16:58:11,505 - INFO - Adding interface with subnet_id 1d76f7c0-317a-4cbb-af36-d61c5db8058e, port_id None to router a4f109bd-a445-4576-8766-d3f48ecdd847 2025-11-20 16:58:11,817 - INFO - Waiting for VM ctest-TestRoutersBasic-61576972-59361911 to be up.. 2025-11-20 16:58:11,952 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-20 16:58:17,021 - DEBUG - VM is in ACTIVE state now 2025-11-20 16:58:17,021 - INFO - VM name : ctest-TestRoutersBasic-61576972-59361911 2025-11-20 16:58:17,089 - DEBUG - VM ctest-TestRoutersBasic-61576972-59361911 ID is a2b9a4fb-4b8e-4722-8e7c-8672af796c7f 2025-11-20 16:58:17,107 - DEBUG - VM ctest-TestRoutersBasic-61576972-59361911 launched on Node cn-jenkins-deploy-platform-ansible-os-4780-1 2025-11-20 16:58:17,173 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-machine/a2b9a4fb-4b8e-4722-8e7c-8672af796c7f 2025-11-20 16:58:17,467 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-machine/a2b9a4fb-4b8e-4722-8e7c-8672af796c7f 2025-11-20 16:58:17,499 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-machine-interface/08832640-896e-4cd4-82f0-df8505abd5e7 2025-11-20 16:58:20,757 - 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 1027ms') 2025-11-20 16:58:20,757 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-61576972-59361911 failed! 2025-11-20 16:58:20,809 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-61576972:ctest-vn-22153910 is 74.222.45.129 and allocation pool is NOT set 2025-11-20 16:58:22,877 - 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=2.90 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.401 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.401/1.651/2.901/1.250 ms') 2025-11-20 16:58:22,878 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-61576972-59361911 passed 2025-11-20 16:58:23,029 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 16:58:23,029 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-61576972-59361911, IP 74.222.45.131, Port 22 2025-11-20 16:58:23,184 - DEBUG - VM ctest-TestRoutersBasic-61576972-59361911 is ready for SSH connections 2025-11-20 16:58:23,184 - INFO - Waiting for VM ctest-TestRoutersBasic-61576972-32815998 to be up.. 2025-11-20 16:58:23,251 - DEBUG - VM is in ACTIVE state now 2025-11-20 16:58:23,252 - INFO - VM name : ctest-TestRoutersBasic-61576972-32815998 2025-11-20 16:58:23,317 - DEBUG - VM ctest-TestRoutersBasic-61576972-32815998 ID is 0f80eb3a-7779-4e21-afc9-8a4f875ab454 2025-11-20 16:58:23,317 - DEBUG - VM ctest-TestRoutersBasic-61576972-32815998 launched on Node cn-jenkins-deploy-platform-ansible-os-4780-1 2025-11-20 16:58:23,383 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-machine/0f80eb3a-7779-4e21-afc9-8a4f875ab454 2025-11-20 16:58:23,391 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-machine-interface/1c6db23d-f12c-4c67-bbd9-88adc2a57838 2025-11-20 16:58:24,620 - 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=2.72 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.416 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.416/1.566/2.716/1.150 ms') 2025-11-20 16:58:24,620 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-61576972-32815998 passed 2025-11-20 16:58:24,769 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 16:58:24,769 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-61576972-32815998, IP 58.244.135.67, Port 22 2025-11-20 16:58:24,920 - DEBUG - VM ctest-TestRoutersBasic-61576972-32815998 is ready for SSH connections 2025-11-20 16:58:24,921 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 16:58:24,921 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 58.244.135.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.154, gateway password: c0ntrail123 2025-11-20 16:58:24,921 - DEBUG - ping -s 56 -c 3 -W 1 58.244.135.67 2025-11-20 16:58:28,893 - DEBUG - PING 58.244.135.67 (58.244.135.67): 56 data bytes 64 bytes from 58.244.135.67: seq=0 ttl=62 time=4.249 ms 64 bytes from 58.244.135.67: seq=1 ttl=62 time=0.772 ms 64 bytes from 58.244.135.67: seq=2 ttl=62 time=0.739 ms --- 58.244.135.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.739/1.920/4.249 ms 2025-11-20 16:58:28,894 - INFO - Ping to IP 58.244.135.67 from VM ctest-TestRoutersBasic-61576972-59361911 passed 2025-11-20 16:58:28,894 - INFO - Deleting interface with subnet_id 1d76f7c0-317a-4cbb-af36-d61c5db8058e, port_id None from router a4f109bd-a445-4576-8766-d3f48ecdd847 2025-11-20 16:58:29,046 - INFO - Deleting VM ctest-TestRoutersBasic-61576972-32815998 2025-11-20 16:58:29,111 - INFO - Deleting VM ctest-TestRoutersBasic-61576972-59361911 2025-11-20 16:58:29,188 - INFO - Deleting VN ctest-ext_vn-52357319 2025-11-20 16:58:29,248 - DEBUG - VN 85967ebb-df7a-4f02-b04d-2626486112f7 still in use: Unable to complete operation on network 85967ebb-df7a-4f02-b04d-2626486112f7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-67ed17d2-936a-4b91-9561-01afe70d791e'] 2025-11-20 16:58:29,248 - WARNING - Deleting VN ctest-ext_vn-52357319 failed..Will retry 2025-11-20 16:58:31,330 - DEBUG - Response for deleting network () 2025-11-20 16:58:31,330 - INFO - Deleting VN ctest-vn-22153910 2025-11-20 16:58:31,410 - DEBUG - Response for deleting network () 2025-11-20 16:58:31,661 - DEBUG - No XMPP flaps were noticed during the test
2025-11-20 16:58:31,661 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25]
2025-11-20 16:58:31,661 - INFO - -------------------------------------------------------------------------------- 2025-11-20 16:58:32,355 - INFO - Deleted project: ctest-TestRoutersBasic-61576972, ID : 6451f489-e1e5-46f8-9392-bc5492b00506