2025-03-22 09:27:23,743 - INFO - Domain Default found not creating
2025-03-22 09:27:23,917 - INFO - Project ctest-TestRoutersBasic-39336443 not found, creating it
2025-03-22 09:27:24,400 - INFO - Created Project:ctest-TestRoutersBasic-39336443, ID : cf9d22ca-7f13-47bb-83c9-18f5f1421577
2025-03-22 09:27:25,952 - INFO - ================================================================================
2025-03-22 09:27:25,952 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity
2025-03-22 09:27:25,953 - 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-22 09:27:26,214 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.11': '0'}} with
2025-03-22 09:27:26,214 - INFO - Initial checks done. Running the testcase now
2025-03-22 09:27:26,214 - INFO -
2025-03-22 09:27:27,013 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-39336443
2025-03-22 09:27:27,115 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-39336443
2025-03-22 09:27:27,551 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-39336443', 'default']}
2025-03-22 09:27:27,997 - DEBUG - Response for create_network : {'network': {'id': 'dca9c78d-7fc8-4915-80c3-e975d28332f1', 'name': 'ctest-vn-28085023', 'tenant_id': 'cf9d22ca7f1347bb83c918f5f1421577', 'project_id': 'cf9d22ca7f1347bb83c918f5f1421577', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-39336443', 'ctest-vn-28085023'], 'port_security_enabled': True, 'description': ''}}
2025-03-22 09:27:28,190 - DEBUG - Response for create_subnet : {'subnet': {'id': '51784e4f-dad6-4ce2-a86e-6a7143c9532f', 'name': '', 'tenant_id': 'cf9d22ca7f1347bb83c918f5f1421577', 'network_id': 'dca9c78d-7fc8-4915-80c3-e975d28332f1', 'ip_version': 4, 'cidr': '147.180.116.64/26', 'allocation_pools': [{'start': '147.180.116.66', 'end': '147.180.116.126'}], 'gateway_ip': '147.180.116.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.180.116.66', 'tags': [], 'project_id': 'cf9d22ca7f1347bb83c918f5f1421577'}}
2025-03-22 09:27:28,211 - INFO - Created VN ctest-vn-28085023
2025-03-22 09:27:28,263 - DEBUG - VN ctest-vn-28085023 UUID is dca9c78d-7fc8-4915-80c3-e975d28332f1
2025-03-22 09:27:28,612 - DEBUG - Response for create_network : {'network': {'id': '46ecc888-b58c-4db4-b5a7-947921d1d867', 'name': 'ctest-ext_vn-02573154', 'tenant_id': 'cf9d22ca7f1347bb83c918f5f1421577', 'project_id': 'cf9d22ca7f1347bb83c918f5f1421577', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-39336443', 'ctest-ext_vn-02573154'], 'port_security_enabled': True, 'description': ''}}
2025-03-22 09:27:28,836 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a12e3090-4e3b-4487-ba6c-87e1ae89bea5', 'name': '', 'tenant_id': 'cf9d22ca7f1347bb83c918f5f1421577', 'network_id': '46ecc888-b58c-4db4-b5a7-947921d1d867', 'ip_version': 4, 'cidr': '193.40.48.0/26', 'allocation_pools': [{'start': '193.40.48.2', 'end': '193.40.48.62'}], 'gateway_ip': '193.40.48.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.40.48.2', 'tags': [], 'project_id': 'cf9d22ca7f1347bb83c918f5f1421577'}}
2025-03-22 09:27:28,856 - INFO - Created VN ctest-ext_vn-02573154
2025-03-22 09:27:28,911 - DEBUG - VN ctest-ext_vn-02573154 UUID is 46ecc888-b58c-4db4-b5a7-947921d1d867
2025-03-22 09:27:29,091 - DEBUG - Services list from nova: [, , ]
2025-03-22 09:27:30,211 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2935-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2935-1)
2025-03-22 09:27:31,504 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2935-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2935-1)
2025-03-22 09:27:31,589 - INFO - Setting gateway for router c5883c27-bcf1-4f50-9264-1a1a5cb5625f to network 46ecc888-b58c-4db4-b5a7-947921d1d867
2025-03-22 09:27:31,673 - INFO - Adding interface with subnet_id 51784e4f-dad6-4ce2-a86e-6a7143c9532f, port_id None to router c5883c27-bcf1-4f50-9264-1a1a5cb5625f
2025-03-22 09:27:32,210 - INFO - Waiting for VM ctest-TestRoutersBasic-39336443-77585824 to be up..
2025-03-22 09:27:32,412 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2025-03-22 09:27:37,531 - DEBUG - VM is in ACTIVE state now
2025-03-22 09:27:37,531 - INFO - VM name : ctest-TestRoutersBasic-39336443-77585824
2025-03-22 09:27:37,642 - DEBUG - VM ctest-TestRoutersBasic-39336443-77585824 ID is 60ba15ae-3872-47bc-b644-f9b4a2344b31
2025-03-22 09:27:37,668 - DEBUG - VM ctest-TestRoutersBasic-39336443-77585824 launched on Node cn-jenkins-deploy-platform-ansible-os-2935-1
2025-03-22 09:27:37,776 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/60ba15ae-3872-47bc-b644-f9b4a2344b31
2025-03-22 09:27:38,123 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/60ba15ae-3872-47bc-b644-f9b4a2344b31
2025-03-22 09:27:38,159 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/5c54e45d-2513-411b-b171-a66234b8b69c
2025-03-22 09:27:41,445 - 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 1030ms')
2025-03-22 09:27:41,445 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-39336443-77585824 failed!
2025-03-22 09:27:41,503 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-39336443:ctest-vn-28085023 is 147.180.116.65 and allocation pool is NOT set
2025-03-22 09:27:43,572 - 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.45 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.14 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.139/2.793/4.447/1.654 ms')
2025-03-22 09:27:43,572 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-39336443-77585824 passed
2025-03-22 09:27:43,727 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-03-22 09:27:43,728 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-39336443-77585824, IP 147.180.116.67, Port 22
2025-03-22 09:27:43,793 - 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-22 09:27:43,908 - DEBUG - VM ctest-TestRoutersBasic-39336443-77585824 is NOT ready for SSH connections, VM status: ACTIVE
2025-03-22 09:27:48,909 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-03-22 09:27:48,909 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-39336443-77585824, IP 147.180.116.67, Port 22
2025-03-22 09:27:49,071 - DEBUG - VM ctest-TestRoutersBasic-39336443-77585824 is ready for SSH connections
2025-03-22 09:27:49,071 - INFO - Waiting for VM ctest-TestRoutersBasic-39336443-82901404 to be up..
2025-03-22 09:27:49,161 - DEBUG - VM is in ACTIVE state now
2025-03-22 09:27:49,161 - INFO - VM name : ctest-TestRoutersBasic-39336443-82901404
2025-03-22 09:27:49,247 - DEBUG - VM ctest-TestRoutersBasic-39336443-82901404 ID is 117d76f3-659e-4d6f-a5be-18d814fa1f93
2025-03-22 09:27:49,248 - DEBUG - VM ctest-TestRoutersBasic-39336443-82901404 launched on Node cn-jenkins-deploy-platform-ansible-os-2935-1
2025-03-22 09:27:49,335 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/117d76f3-659e-4d6f-a5be-18d814fa1f93
2025-03-22 09:27:49,345 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/9ebb2bf7-c704-4ca7-a065-0ac6771667e4
2025-03-22 09:27:50,591 - 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.83 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.367 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.367/2.097/3.828/1.730 ms')
2025-03-22 09:27:50,591 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-39336443-82901404 passed
2025-03-22 09:27:50,743 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-03-22 09:27:50,743 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-39336443-82901404, IP 193.40.48.3, Port 22
2025-03-22 09:27:50,899 - DEBUG - VM ctest-TestRoutersBasic-39336443-82901404 is ready for SSH connections
2025-03-22 09:27:50,899 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2025-03-22 09:27:50,899 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 193.40.48.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123
2025-03-22 09:27:50,900 - DEBUG - ping -s 56 -c 3 -W 1 193.40.48.3
2025-03-22 09:27:54,669 - DEBUG - PING 193.40.48.3 (193.40.48.3): 56 data bytes
64 bytes from 193.40.48.3: seq=0 ttl=62 time=7.163 ms
64 bytes from 193.40.48.3: seq=1 ttl=62 time=0.961 ms
64 bytes from 193.40.48.3: seq=2 ttl=62 time=1.030 ms
--- 193.40.48.3 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.961/3.051/7.163 ms
2025-03-22 09:27:54,669 - INFO - Ping to IP 193.40.48.3 from VM ctest-TestRoutersBasic-39336443-77585824 passed
2025-03-22 09:27:54,669 - INFO - Deleting interface with subnet_id 51784e4f-dad6-4ce2-a86e-6a7143c9532f, port_id None from router c5883c27-bcf1-4f50-9264-1a1a5cb5625f
2025-03-22 09:27:54,890 - INFO - Deleting VM ctest-TestRoutersBasic-39336443-82901404
2025-03-22 09:27:54,964 - INFO - Deleting VM ctest-TestRoutersBasic-39336443-77585824
2025-03-22 09:27:55,052 - INFO - Deleting VN ctest-ext_vn-02573154
2025-03-22 09:27:55,135 - DEBUG - VN 46ecc888-b58c-4db4-b5a7-947921d1d867 still in use: Unable to complete operation on network 46ecc888-b58c-4db4-b5a7-947921d1d867. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-a88c9471-a221-4f04-bd9f-306607d05fdc']
2025-03-22 09:27:55,135 - WARNING - Deleting VN ctest-ext_vn-02573154 failed..Will retry
2025-03-22 09:27:57,246 - DEBUG - Response for deleting network ()
2025-03-22 09:27:57,246 - INFO - Deleting VN ctest-vn-28085023
2025-03-22 09:27:57,363 - DEBUG - Response for deleting network ()
2025-03-22 09:27:57,622 - DEBUG - No XMPP flaps were noticed during the test
2025-03-22 09:27:57,622 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2025-03-22 09:27:57,622 - INFO - --------------------------------------------------------------------------------
2025-03-22 09:27:58,356 - INFO - Deleted project: ctest-TestRoutersBasic-39336443, ID : cf9d22ca-7f13-47bb-83c9-18f5f1421577