2024-10-17 02:43:24,852 - INFO - Domain Default found not creating 2024-10-17 02:43:25,040 - INFO - Project ctest-TestRoutersBasic-36776121 not found, creating it 2024-10-17 02:43:25,562 - INFO - Created Project:ctest-TestRoutersBasic-36776121, ID : e4a36356-3c0b-42f3-9543-e6003142ec66 2024-10-17 02:43:27,508 - INFO - ================================================================================ 2024-10-17 02:43:27,508 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-17 02:43:27,508 - 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 2024-10-17 02:43:27,763 - DEBUG - Nothing to compare xmpp stats {'10.0.0.43': {'10.20.0.6': '0'}} with 2024-10-17 02:43:27,763 - INFO - Initial checks done. Running the testcase now 2024-10-17 02:43:27,763 - INFO - 2024-10-17 02:43:28,583 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-36776121 2024-10-17 02:43:28,684 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-36776121 2024-10-17 02:43:29,024 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-36776121', 'default']} 2024-10-17 02:43:29,431 - DEBUG - Response for create_network : {'network': {'id': '0dc00181-3c0a-4b59-a4c5-642ef38bc185', 'name': 'ctest-vn-55719542', 'tenant_id': 'e4a363563c0b42f39543e6003142ec66', 'project_id': 'e4a363563c0b42f39543e6003142ec66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-36776121', 'ctest-vn-55719542'], 'port_security_enabled': True, 'description': ''}} 2024-10-17 02:43:29,659 - DEBUG - Response for create_subnet : {'subnet': {'id': '2fcef1c7-3509-4d0f-a97a-6ba870246e96', 'name': '', 'tenant_id': 'e4a363563c0b42f39543e6003142ec66', 'network_id': '0dc00181-3c0a-4b59-a4c5-642ef38bc185', 'ip_version': 4, 'cidr': '102.204.61.192/26', 'allocation_pools': [{'start': '102.204.61.194', 'end': '102.204.61.254'}], 'gateway_ip': '102.204.61.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.204.61.194', 'tags': [], 'project_id': 'e4a363563c0b42f39543e6003142ec66'}} 2024-10-17 02:43:29,683 - INFO - Created VN ctest-vn-55719542 2024-10-17 02:43:29,744 - DEBUG - VN ctest-vn-55719542 UUID is 0dc00181-3c0a-4b59-a4c5-642ef38bc185 2024-10-17 02:43:30,174 - DEBUG - Response for create_network : {'network': {'id': '5e998dac-18d1-48d7-998d-dbd2c9f179c0', 'name': 'ctest-ext_vn-62505885', 'tenant_id': 'e4a363563c0b42f39543e6003142ec66', 'project_id': 'e4a363563c0b42f39543e6003142ec66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-36776121', 'ctest-ext_vn-62505885'], 'port_security_enabled': True, 'description': ''}} 2024-10-17 02:43:30,381 - DEBUG - Response for create_subnet : {'subnet': {'id': '0aae99a5-b92e-4ba8-adbd-214c878b8454', 'name': '', 'tenant_id': 'e4a363563c0b42f39543e6003142ec66', 'network_id': '5e998dac-18d1-48d7-998d-dbd2c9f179c0', 'ip_version': 4, 'cidr': '82.154.144.64/26', 'allocation_pools': [{'start': '82.154.144.66', 'end': '82.154.144.126'}], 'gateway_ip': '82.154.144.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.154.144.66', 'tags': [], 'project_id': 'e4a363563c0b42f39543e6003142ec66'}} 2024-10-17 02:43:30,404 - INFO - Created VN ctest-ext_vn-62505885 2024-10-17 02:43:30,460 - DEBUG - VN ctest-ext_vn-62505885 UUID is 5e998dac-18d1-48d7-998d-dbd2c9f179c0 2024-10-17 02:43:30,680 - DEBUG - Services list from nova: [, , ] 2024-10-17 02:43:31,935 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2107-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2107-1) 2024-10-17 02:43:33,326 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2107-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2107-1) 2024-10-17 02:43:33,419 - INFO - Setting gateway for router 862a3bab-f897-4c8c-9323-3469eabc8e4e to network 5e998dac-18d1-48d7-998d-dbd2c9f179c0 2024-10-17 02:43:33,507 - INFO - Adding interface with subnet_id 2fcef1c7-3509-4d0f-a97a-6ba870246e96, port_id None to router 862a3bab-f897-4c8c-9323-3469eabc8e4e 2024-10-17 02:43:34,049 - INFO - Waiting for VM ctest-TestRoutersBasic-36776121-98135450 to be up.. 2024-10-17 02:43:34,235 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-17 02:43:39,326 - DEBUG - VM is in ACTIVE state now 2024-10-17 02:43:39,326 - INFO - VM name : ctest-TestRoutersBasic-36776121-98135450 2024-10-17 02:43:39,420 - DEBUG - VM ctest-TestRoutersBasic-36776121-98135450 ID is f7db4a45-78d5-4714-87b0-85656544614b 2024-10-17 02:43:39,444 - DEBUG - VM ctest-TestRoutersBasic-36776121-98135450 launched on Node cn-jenkins-deploy-platform-ansible-os-2107-1 2024-10-17 02:43:39,543 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/f7db4a45-78d5-4714-87b0-85656544614b 2024-10-17 02:43:39,882 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/f7db4a45-78d5-4714-87b0-85656544614b 2024-10-17 02:43:39,926 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/897b8cd1-dd41-4ebd-8449-7e4a9a19318e 2024-10-17 02:43:43,189 - 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 1021ms') 2024-10-17 02:43:43,189 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-36776121-98135450 failed! 2024-10-17 02:43:43,248 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-36776121:ctest-vn-55719542 is 102.204.61.193 and allocation pool is NOT set 2024-10-17 02:43:45,322 - 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.72 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.83 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.829/3.776/5.724/1.947 ms') 2024-10-17 02:43:45,323 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-36776121-98135450 passed 2024-10-17 02:43:45,472 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 02:43:45,473 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-36776121-98135450, IP 102.204.61.195, Port 22 2024-10-17 02:43:45,528 - 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': ''} 2024-10-17 02:43:45,614 - DEBUG - VM ctest-TestRoutersBasic-36776121-98135450 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-17 02:43:50,615 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 02:43:50,615 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-36776121-98135450, IP 102.204.61.195, Port 22 2024-10-17 02:43:50,787 - DEBUG - VM ctest-TestRoutersBasic-36776121-98135450 is ready for SSH connections 2024-10-17 02:43:50,787 - INFO - Waiting for VM ctest-TestRoutersBasic-36776121-97700864 to be up.. 2024-10-17 02:43:50,888 - DEBUG - VM is in ACTIVE state now 2024-10-17 02:43:50,888 - INFO - VM name : ctest-TestRoutersBasic-36776121-97700864 2024-10-17 02:43:50,996 - DEBUG - VM ctest-TestRoutersBasic-36776121-97700864 ID is 2d7ad586-b6c2-426a-8f9d-c0b5da608e1c 2024-10-17 02:43:50,996 - DEBUG - VM ctest-TestRoutersBasic-36776121-97700864 launched on Node cn-jenkins-deploy-platform-ansible-os-2107-1 2024-10-17 02:43:51,097 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/2d7ad586-b6c2-426a-8f9d-c0b5da608e1c 2024-10-17 02:43:51,108 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/a75f04b6-6719-4bf2-a692-a461830d9198 2024-10-17 02:43:52,373 - 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.51 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.401 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.401/1.955/3.509/1.554 ms') 2024-10-17 02:43:52,373 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-36776121-97700864 passed 2024-10-17 02:43:52,524 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 02:43:52,524 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-36776121-97700864, IP 82.154.144.67, Port 22 2024-10-17 02:43:52,680 - DEBUG - VM ctest-TestRoutersBasic-36776121-97700864 is ready for SSH connections 2024-10-17 02:43:52,680 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 02:43:52,680 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 82.154.144.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123 2024-10-17 02:43:52,681 - DEBUG - ping -s 56 -c 3 -W 1 82.154.144.67 2024-10-17 02:43:56,417 - DEBUG - PING 82.154.144.67 (82.154.144.67): 56 data bytes 64 bytes from 82.154.144.67: seq=0 ttl=62 time=5.611 ms 64 bytes from 82.154.144.67: seq=1 ttl=62 time=1.375 ms 64 bytes from 82.154.144.67: seq=2 ttl=62 time=0.895 ms --- 82.154.144.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.895/2.627/5.611 ms 2024-10-17 02:43:56,417 - INFO - Ping to IP 82.154.144.67 from VM ctest-TestRoutersBasic-36776121-98135450 passed 2024-10-17 02:43:56,418 - INFO - Deleting interface with subnet_id 2fcef1c7-3509-4d0f-a97a-6ba870246e96, port_id None from router 862a3bab-f897-4c8c-9323-3469eabc8e4e 2024-10-17 02:43:56,657 - INFO - Deleting VM ctest-TestRoutersBasic-36776121-97700864 2024-10-17 02:43:56,729 - INFO - Deleting VM ctest-TestRoutersBasic-36776121-98135450 2024-10-17 02:43:56,810 - INFO - Deleting VN ctest-ext_vn-62505885 2024-10-17 02:43:56,882 - DEBUG - VN 5e998dac-18d1-48d7-998d-dbd2c9f179c0 still in use: Unable to complete operation on network 5e998dac-18d1-48d7-998d-dbd2c9f179c0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7f4137df-c522-4ba3-b94b-cd773314141f'] 2024-10-17 02:43:56,882 - WARNING - Deleting VN ctest-ext_vn-62505885 failed..Will retry 2024-10-17 02:43:59,013 - DEBUG - Response for deleting network () 2024-10-17 02:43:59,013 - INFO - Deleting VN ctest-vn-55719542 2024-10-17 02:43:59,144 - DEBUG - Response for deleting network () 2024-10-17 02:43:59,409 - DEBUG - No XMPP flaps were noticed during the test 2024-10-17 02:43:59,409 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2024-10-17 02:43:59,409 - INFO - -------------------------------------------------------------------------------- 2024-10-17 02:44:00,277 - INFO - Deleted project: ctest-TestRoutersBasic-36776121, ID : e4a36356-3c0b-42f3-9543-e6003142ec66