2025-01-07 11:32:20,634 - INFO - Domain Default found not creating 2025-01-07 11:32:20,807 - INFO - Project ctest-TestRoutersBasic-01492835 not found, creating it 2025-01-07 11:32:21,300 - INFO - Created Project:ctest-TestRoutersBasic-01492835, ID : f98c2bd7-4746-4b9f-b05c-068594a046dd 2025-01-07 11:32:22,963 - INFO - ================================================================================ 2025-01-07 11:32:22,963 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-07 11:32:22,963 - 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-07 11:32:23,237 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.7': '0'}} with 2025-01-07 11:32:23,237 - INFO - Initial checks done. Running the testcase now 2025-01-07 11:32:23,237 - INFO - 2025-01-07 11:32:23,970 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-01492835 2025-01-07 11:32:24,071 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-01492835 2025-01-07 11:32:24,407 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-01492835', 'default']} 2025-01-07 11:32:24,718 - DEBUG - Response for create_network : {'network': {'id': '0c39cd98-02c1-4f46-a6d6-9c0a8b0660b8', 'name': 'ctest-vn-29703617', 'tenant_id': 'f98c2bd747464b9fb05c068594a046dd', 'project_id': 'f98c2bd747464b9fb05c068594a046dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-01492835', 'ctest-vn-29703617'], 'port_security_enabled': True, 'description': ''}} 2025-01-07 11:32:24,881 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd28326dc-bb2e-4e5e-8e5f-00b24f81614f', 'name': '', 'tenant_id': 'f98c2bd747464b9fb05c068594a046dd', 'network_id': '0c39cd98-02c1-4f46-a6d6-9c0a8b0660b8', 'ip_version': 4, 'cidr': '67.228.51.0/26', 'allocation_pools': [{'start': '67.228.51.2', 'end': '67.228.51.62'}], 'gateway_ip': '67.228.51.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.228.51.2', 'tags': [], 'project_id': 'f98c2bd747464b9fb05c068594a046dd'}} 2025-01-07 11:32:24,902 - INFO - Created VN ctest-vn-29703617 2025-01-07 11:32:24,955 - DEBUG - VN ctest-vn-29703617 UUID is 0c39cd98-02c1-4f46-a6d6-9c0a8b0660b8 2025-01-07 11:32:25,315 - DEBUG - Response for create_network : {'network': {'id': 'cdc3c438-fcd4-4f1b-8359-8ce6b04e2ec2', 'name': 'ctest-ext_vn-87076564', 'tenant_id': 'f98c2bd747464b9fb05c068594a046dd', 'project_id': 'f98c2bd747464b9fb05c068594a046dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-01492835', 'ctest-ext_vn-87076564'], 'port_security_enabled': True, 'description': ''}} 2025-01-07 11:32:25,497 - DEBUG - Response for create_subnet : {'subnet': {'id': '0fb81668-e3e7-4f44-8bb1-7b5f9809162c', 'name': '', 'tenant_id': 'f98c2bd747464b9fb05c068594a046dd', 'network_id': 'cdc3c438-fcd4-4f1b-8359-8ce6b04e2ec2', 'ip_version': 4, 'cidr': '86.254.230.64/26', 'allocation_pools': [{'start': '86.254.230.66', 'end': '86.254.230.126'}], 'gateway_ip': '86.254.230.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.254.230.66', 'tags': [], 'project_id': 'f98c2bd747464b9fb05c068594a046dd'}} 2025-01-07 11:32:25,516 - INFO - Created VN ctest-ext_vn-87076564 2025-01-07 11:32:25,571 - DEBUG - VN ctest-ext_vn-87076564 UUID is cdc3c438-fcd4-4f1b-8359-8ce6b04e2ec2 2025-01-07 11:32:25,755 - DEBUG - Services list from nova: [, , ] 2025-01-07 11:32:26,814 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2546-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2546-1) 2025-01-07 11:32:27,927 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2546-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2546-1) 2025-01-07 11:32:28,013 - INFO - Setting gateway for router adf0b1c2-283f-45a3-a025-f87e4b585f45 to network cdc3c438-fcd4-4f1b-8359-8ce6b04e2ec2 2025-01-07 11:32:28,099 - INFO - Adding interface with subnet_id d28326dc-bb2e-4e5e-8e5f-00b24f81614f, port_id None to router adf0b1c2-283f-45a3-a025-f87e4b585f45 2025-01-07 11:32:28,443 - INFO - Waiting for VM ctest-TestRoutersBasic-01492835-97521990 to be up.. 2025-01-07 11:32:28,588 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-07 11:32:33,665 - DEBUG - VM is in ACTIVE state now 2025-01-07 11:32:33,666 - INFO - VM name : ctest-TestRoutersBasic-01492835-97521990 2025-01-07 11:32:33,738 - DEBUG - VM ctest-TestRoutersBasic-01492835-97521990 ID is f0f44fb4-fe9b-4cda-8fba-3331be9fcf31 2025-01-07 11:32:33,758 - DEBUG - VM ctest-TestRoutersBasic-01492835-97521990 launched on Node cn-jenkins-deploy-platform-ansible-os-2546-1 2025-01-07 11:32:33,839 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/f0f44fb4-fe9b-4cda-8fba-3331be9fcf31 2025-01-07 11:32:34,130 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/f0f44fb4-fe9b-4cda-8fba-3331be9fcf31 2025-01-07 11:32:34,162 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/ead7caaf-7f5d-4c9f-ba77-cc2cb91d3ad5 2025-01-07 11:32:37,433 - 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-01-07 11:32:37,434 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-01492835-97521990 failed! 2025-01-07 11:32:37,487 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-01492835:ctest-vn-29703617 is 67.228.51.1 and allocation pool is NOT set 2025-01-07 11:32:39,550 - 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.61 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.52 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 = 2.522/3.065/3.609/0.543 ms') 2025-01-07 11:32:39,550 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-01492835-97521990 passed 2025-01-07 11:32:39,703 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-07 11:32:39,703 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-01492835-97521990, IP 67.228.51.3, Port 22 2025-01-07 11:32:39,758 - 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-01-07 11:32:39,837 - DEBUG - VM ctest-TestRoutersBasic-01492835-97521990 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-07 11:32:44,838 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-07 11:32:44,838 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-01492835-97521990, IP 67.228.51.3, Port 22 2025-01-07 11:32:44,995 - DEBUG - VM ctest-TestRoutersBasic-01492835-97521990 is ready for SSH connections 2025-01-07 11:32:44,995 - INFO - Waiting for VM ctest-TestRoutersBasic-01492835-23982793 to be up.. 2025-01-07 11:32:45,079 - DEBUG - VM is in ACTIVE state now 2025-01-07 11:32:45,079 - INFO - VM name : ctest-TestRoutersBasic-01492835-23982793 2025-01-07 11:32:45,165 - DEBUG - VM ctest-TestRoutersBasic-01492835-23982793 ID is 0438f73d-577e-4a5a-92ca-070fd1014efa 2025-01-07 11:32:45,166 - DEBUG - VM ctest-TestRoutersBasic-01492835-23982793 launched on Node cn-jenkins-deploy-platform-ansible-os-2546-1 2025-01-07 11:32:45,254 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/0438f73d-577e-4a5a-92ca-070fd1014efa 2025-01-07 11:32:45,266 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/131f2c2a-2652-4b36-a2ae-a62cc53f1ec1 2025-01-07 11:32:46,526 - 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.97 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.403 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.403/1.686/2.969/1.283 ms') 2025-01-07 11:32:46,526 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-01492835-23982793 passed 2025-01-07 11:32:46,683 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-07 11:32:46,683 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-01492835-23982793, IP 86.254.230.67, Port 22 2025-01-07 11:32:46,839 - DEBUG - VM ctest-TestRoutersBasic-01492835-23982793 is ready for SSH connections 2025-01-07 11:32:46,839 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-07 11:32:46,839 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 86.254.230.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-01-07 11:32:46,839 - DEBUG - ping -s 56 -c 3 -W 1 86.254.230.67 2025-01-07 11:32:50,551 - DEBUG - PING 86.254.230.67 (86.254.230.67): 56 data bytes 64 bytes from 86.254.230.67: seq=0 ttl=62 time=7.186 ms 64 bytes from 86.254.230.67: seq=1 ttl=62 time=0.999 ms 64 bytes from 86.254.230.67: seq=2 ttl=62 time=0.839 ms --- 86.254.230.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.839/3.008/7.186 ms 2025-01-07 11:32:50,551 - INFO - Ping to IP 86.254.230.67 from VM ctest-TestRoutersBasic-01492835-97521990 passed 2025-01-07 11:32:50,551 - INFO - Deleting interface with subnet_id d28326dc-bb2e-4e5e-8e5f-00b24f81614f, port_id None from router adf0b1c2-283f-45a3-a025-f87e4b585f45 2025-01-07 11:32:50,775 - INFO - Deleting VM ctest-TestRoutersBasic-01492835-23982793 2025-01-07 11:32:50,868 - INFO - Deleting VM ctest-TestRoutersBasic-01492835-97521990 2025-01-07 11:32:50,963 - INFO - Deleting VN ctest-ext_vn-87076564 2025-01-07 11:32:51,040 - DEBUG - VN cdc3c438-fcd4-4f1b-8359-8ce6b04e2ec2 still in use: Unable to complete operation on network cdc3c438-fcd4-4f1b-8359-8ce6b04e2ec2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7397557a-2951-48d8-9f62-90c93da52e96'] 2025-01-07 11:32:51,040 - WARNING - Deleting VN ctest-ext_vn-87076564 failed..Will retry 2025-01-07 11:32:53,166 - DEBUG - Response for deleting network () 2025-01-07 11:32:53,167 - INFO - Deleting VN ctest-vn-29703617 2025-01-07 11:32:53,276 - DEBUG - Response for deleting network () 2025-01-07 11:32:53,542 - DEBUG - No XMPP flaps were noticed during the test
2025-01-07 11:32:53,542 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-01-07 11:32:53,543 - INFO - -------------------------------------------------------------------------------- 2025-01-07 11:32:54,255 - INFO - Deleted project: ctest-TestRoutersBasic-01492835, ID : f98c2bd7-4746-4b9f-b05c-068594a046dd