2025-02-10 09:05:55,809 - INFO - Domain Default found not creating 2025-02-10 09:05:55,992 - INFO - Project ctest-TestRoutersBasic-31270363 not found, creating it 2025-02-10 09:05:56,532 - INFO - Created Project:ctest-TestRoutersBasic-31270363, ID : 1e9b9590-0eb6-464d-b941-9b3f708461d5 2025-02-10 09:05:58,251 - INFO - ================================================================================ 2025-02-10 09:05:58,252 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-02-10 09:05:58,252 - 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-02-10 09:05:58,511 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.13': '0'}} with 2025-02-10 09:05:58,511 - INFO - Initial checks done. Running the testcase now 2025-02-10 09:05:58,511 - INFO - 2025-02-10 09:05:59,408 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-31270363 2025-02-10 09:05:59,504 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-31270363 2025-02-10 09:05:59,832 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31270363', 'default']} 2025-02-10 09:06:00,184 - DEBUG - Response for create_network : {'network': {'id': '2cb1c29a-adf9-4930-94ad-8fd48a98894b', 'name': 'ctest-vn-27289689', 'tenant_id': '1e9b95900eb6464db9419b3f708461d5', 'project_id': '1e9b95900eb6464db9419b3f708461d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31270363', 'ctest-vn-27289689'], 'port_security_enabled': True, 'description': ''}} 2025-02-10 09:06:00,416 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b21be191-faa4-4718-b8c2-d2ccabcc1836', 'name': '', 'tenant_id': '1e9b95900eb6464db9419b3f708461d5', 'network_id': '2cb1c29a-adf9-4930-94ad-8fd48a98894b', 'ip_version': 4, 'cidr': '158.80.221.128/26', 'allocation_pools': [{'start': '158.80.221.130', 'end': '158.80.221.190'}], 'gateway_ip': '158.80.221.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.80.221.130', 'tags': [], 'project_id': '1e9b95900eb6464db9419b3f708461d5'}} 2025-02-10 09:06:00,439 - INFO - Created VN ctest-vn-27289689 2025-02-10 09:06:00,492 - DEBUG - VN ctest-vn-27289689 UUID is 2cb1c29a-adf9-4930-94ad-8fd48a98894b 2025-02-10 09:06:00,864 - DEBUG - Response for create_network : {'network': {'id': 'aa06c556-5786-4955-b6b4-2962c2e457e1', 'name': 'ctest-ext_vn-58503908', 'tenant_id': '1e9b95900eb6464db9419b3f708461d5', 'project_id': '1e9b95900eb6464db9419b3f708461d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31270363', 'ctest-ext_vn-58503908'], 'port_security_enabled': True, 'description': ''}} 2025-02-10 09:06:01,110 - DEBUG - Response for create_subnet : {'subnet': {'id': '135da35c-44ef-45e6-8724-1c0da298c5b0', 'name': '', 'tenant_id': '1e9b95900eb6464db9419b3f708461d5', 'network_id': 'aa06c556-5786-4955-b6b4-2962c2e457e1', 'ip_version': 4, 'cidr': '124.168.224.64/26', 'allocation_pools': [{'start': '124.168.224.66', 'end': '124.168.224.126'}], 'gateway_ip': '124.168.224.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.168.224.66', 'tags': [], 'project_id': '1e9b95900eb6464db9419b3f708461d5'}} 2025-02-10 09:06:01,130 - INFO - Created VN ctest-ext_vn-58503908 2025-02-10 09:06:01,188 - DEBUG - VN ctest-ext_vn-58503908 UUID is aa06c556-5786-4955-b6b4-2962c2e457e1 2025-02-10 09:06:01,375 - DEBUG - Services list from nova: [, , ] 2025-02-10 09:06:02,616 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2710-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2710-1) 2025-02-10 09:06:03,919 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2710-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2710-1) 2025-02-10 09:06:04,008 - INFO - Setting gateway for router 1ff4beaa-0f28-48f5-a53f-0c0f26069fa4 to network aa06c556-5786-4955-b6b4-2962c2e457e1 2025-02-10 09:06:04,108 - INFO - Adding interface with subnet_id b21be191-faa4-4718-b8c2-d2ccabcc1836, port_id None to router 1ff4beaa-0f28-48f5-a53f-0c0f26069fa4 2025-02-10 09:06:04,575 - INFO - Waiting for VM ctest-TestRoutersBasic-31270363-12536842 to be up.. 2025-02-10 09:06:04,777 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-10 09:06:09,879 - DEBUG - VM is in ACTIVE state now 2025-02-10 09:06:09,879 - INFO - VM name : ctest-TestRoutersBasic-31270363-12536842 2025-02-10 09:06:09,979 - DEBUG - VM ctest-TestRoutersBasic-31270363-12536842 ID is 8c689033-54c3-4247-a983-839718f72851 2025-02-10 09:06:10,001 - DEBUG - VM ctest-TestRoutersBasic-31270363-12536842 launched on Node cn-jenkins-deploy-platform-ansible-os-2710-1 2025-02-10 09:06:10,096 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/8c689033-54c3-4247-a983-839718f72851 2025-02-10 09:06:10,441 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/8c689033-54c3-4247-a983-839718f72851 2025-02-10 09:06:10,476 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/0758d1ce-6a59-46cc-a855-eda3f1f46114 2025-02-10 09:06:13,743 - 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 1006ms') 2025-02-10 09:06:13,743 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-31270363-12536842 failed! 2025-02-10 09:06:13,800 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-31270363:ctest-vn-27289689 is 158.80.221.129 and allocation pool is NOT set 2025-02-10 09:06:15,868 - 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.46 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.22 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 = 2.221/3.839/5.458/1.618 ms') 2025-02-10 09:06:15,869 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-31270363-12536842 passed 2025-02-10 09:06:16,024 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-10 09:06:16,024 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31270363-12536842, IP 158.80.221.131, Port 22 2025-02-10 09:06:16,093 - 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-02-10 09:06:16,181 - DEBUG - VM ctest-TestRoutersBasic-31270363-12536842 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-10 09:06:21,182 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-10 09:06:21,182 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31270363-12536842, IP 158.80.221.131, Port 22 2025-02-10 09:06:21,340 - DEBUG - VM ctest-TestRoutersBasic-31270363-12536842 is ready for SSH connections 2025-02-10 09:06:21,340 - INFO - Waiting for VM ctest-TestRoutersBasic-31270363-15795959 to be up.. 2025-02-10 09:06:21,432 - DEBUG - VM is in ACTIVE state now 2025-02-10 09:06:21,432 - INFO - VM name : ctest-TestRoutersBasic-31270363-15795959 2025-02-10 09:06:21,514 - DEBUG - VM ctest-TestRoutersBasic-31270363-15795959 ID is 2cae58b6-009d-4868-b917-67b1da530f62 2025-02-10 09:06:21,515 - DEBUG - VM ctest-TestRoutersBasic-31270363-15795959 launched on Node cn-jenkins-deploy-platform-ansible-os-2710-1 2025-02-10 09:06:21,596 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/2cae58b6-009d-4868-b917-67b1da530f62 2025-02-10 09:06:21,606 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/d9031568-feb5-4067-8194-b62b36bac211 2025-02-10 09:06:22,858 - 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.13 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 1001ms\r\nrtt min/avg/max/mdev = 0.416/1.773/3.131/1.357 ms') 2025-02-10 09:06:22,858 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-31270363-15795959 passed 2025-02-10 09:06:23,020 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-10 09:06:23,020 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31270363-15795959, IP 124.168.224.67, Port 22 2025-02-10 09:06:23,176 - DEBUG - VM ctest-TestRoutersBasic-31270363-15795959 is ready for SSH connections 2025-02-10 09:06:23,176 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-10 09:06:23,176 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.168.224.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2025-02-10 09:06:23,176 - DEBUG - ping -s 56 -c 3 -W 1 124.168.224.67 2025-02-10 09:06:26,972 - DEBUG - PING 124.168.224.67 (124.168.224.67): 56 data bytes 64 bytes from 124.168.224.67: seq=0 ttl=62 time=7.228 ms 64 bytes from 124.168.224.67: seq=1 ttl=62 time=0.935 ms 64 bytes from 124.168.224.67: seq=2 ttl=62 time=0.847 ms --- 124.168.224.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.847/3.003/7.228 ms 2025-02-10 09:06:26,972 - INFO - Ping to IP 124.168.224.67 from VM ctest-TestRoutersBasic-31270363-12536842 passed 2025-02-10 09:06:26,973 - INFO - Deleting interface with subnet_id b21be191-faa4-4718-b8c2-d2ccabcc1836, port_id None from router 1ff4beaa-0f28-48f5-a53f-0c0f26069fa4 2025-02-10 09:06:27,198 - INFO - Deleting VM ctest-TestRoutersBasic-31270363-15795959 2025-02-10 09:06:27,294 - INFO - Deleting VM ctest-TestRoutersBasic-31270363-12536842 2025-02-10 09:06:27,383 - INFO - Deleting VN ctest-ext_vn-58503908 2025-02-10 09:06:27,484 - DEBUG - VN aa06c556-5786-4955-b6b4-2962c2e457e1 still in use: Unable to complete operation on network aa06c556-5786-4955-b6b4-2962c2e457e1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-62f117d7-e3dc-4673-afc2-dc5a69563921'] 2025-02-10 09:06:27,485 - WARNING - Deleting VN ctest-ext_vn-58503908 failed..Will retry 2025-02-10 09:06:29,624 - DEBUG - Response for deleting network () 2025-02-10 09:06:29,624 - INFO - Deleting VN ctest-vn-27289689 2025-02-10 09:06:29,753 - DEBUG - Response for deleting network () 2025-02-10 09:06:30,019 - DEBUG - No XMPP flaps were noticed during the test 2025-02-10 09:06:30,019 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2025-02-10 09:06:30,020 - INFO - -------------------------------------------------------------------------------- 2025-02-10 09:06:30,872 - INFO - Deleted project: ctest-TestRoutersBasic-31270363, ID : 1e9b9590-0eb6-464d-b941-9b3f708461d5