2025-03-13 02:26:53,845 - INFO - Domain Default found not creating 2025-03-13 02:26:54,001 - INFO - Project ctest-TestRoutersBasic-62587179 not found, creating it 2025-03-13 02:26:54,509 - INFO - Created Project:ctest-TestRoutersBasic-62587179, ID : 78b060f4-2eb1-4b8e-9d0c-49db1e2ea77c 2025-03-13 02:26:56,137 - INFO - ================================================================================ 2025-03-13 02:26:56,137 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-13 02:26:56,138 - 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-13 02:26:56,396 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.14': '0'}} with 2025-03-13 02:26:56,397 - INFO - Initial checks done. Running the testcase now 2025-03-13 02:26:56,397 - INFO - 2025-03-13 02:26:57,187 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-62587179 2025-03-13 02:26:57,286 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-62587179 2025-03-13 02:26:57,622 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-62587179', 'default']} 2025-03-13 02:26:57,931 - DEBUG - Response for create_network : {'network': {'id': '5e1585d9-f11e-401a-b50f-1d95c081e295', 'name': 'ctest-vn-77414590', 'tenant_id': '78b060f42eb14b8e9d0c49db1e2ea77c', 'project_id': '78b060f42eb14b8e9d0c49db1e2ea77c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-62587179', 'ctest-vn-77414590'], 'port_security_enabled': True, 'description': ''}} 2025-03-13 02:26:58,133 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a73e6a94-e192-4945-9eff-261a5c4030a7', 'name': '', 'tenant_id': '78b060f42eb14b8e9d0c49db1e2ea77c', 'network_id': '5e1585d9-f11e-401a-b50f-1d95c081e295', 'ip_version': 4, 'cidr': '149.27.152.0/26', 'allocation_pools': [{'start': '149.27.152.2', 'end': '149.27.152.62'}], 'gateway_ip': '149.27.152.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.27.152.2', 'tags': [], 'project_id': '78b060f42eb14b8e9d0c49db1e2ea77c'}} 2025-03-13 02:26:58,153 - INFO - Created VN ctest-vn-77414590 2025-03-13 02:26:58,206 - DEBUG - VN ctest-vn-77414590 UUID is 5e1585d9-f11e-401a-b50f-1d95c081e295 2025-03-13 02:26:58,572 - DEBUG - Response for create_network : {'network': {'id': 'ea5f16ec-cf9f-45ba-9faf-3b86dfc3574b', 'name': 'ctest-ext_vn-69514721', 'tenant_id': '78b060f42eb14b8e9d0c49db1e2ea77c', 'project_id': '78b060f42eb14b8e9d0c49db1e2ea77c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-62587179', 'ctest-ext_vn-69514721'], 'port_security_enabled': True, 'description': ''}} 2025-03-13 02:26:58,788 - DEBUG - Response for create_subnet : {'subnet': {'id': '30a4d28a-94e1-47e2-8402-0673154f1367', 'name': '', 'tenant_id': '78b060f42eb14b8e9d0c49db1e2ea77c', 'network_id': 'ea5f16ec-cf9f-45ba-9faf-3b86dfc3574b', 'ip_version': 4, 'cidr': '40.47.223.64/26', 'allocation_pools': [{'start': '40.47.223.66', 'end': '40.47.223.126'}], 'gateway_ip': '40.47.223.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.47.223.66', 'tags': [], 'project_id': '78b060f42eb14b8e9d0c49db1e2ea77c'}} 2025-03-13 02:26:58,808 - INFO - Created VN ctest-ext_vn-69514721 2025-03-13 02:26:58,862 - DEBUG - VN ctest-ext_vn-69514721 UUID is ea5f16ec-cf9f-45ba-9faf-3b86dfc3574b 2025-03-13 02:26:59,042 - DEBUG - Services list from nova: [, , ] 2025-03-13 02:27:00,208 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2860-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2860-1) 2025-03-13 02:27:01,512 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2860-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2860-1) 2025-03-13 02:27:01,616 - INFO - Setting gateway for router 1cfa0e0d-aa46-4815-8c6a-d5039675dc0b to network ea5f16ec-cf9f-45ba-9faf-3b86dfc3574b 2025-03-13 02:27:01,855 - INFO - Adding interface with subnet_id a73e6a94-e192-4945-9eff-261a5c4030a7, port_id None to router 1cfa0e0d-aa46-4815-8c6a-d5039675dc0b 2025-03-13 02:27:02,484 - INFO - Waiting for VM ctest-TestRoutersBasic-62587179-15105648 to be up.. 2025-03-13 02:27:02,625 - DEBUG - VM is in ACTIVE state now 2025-03-13 02:27:02,625 - INFO - VM name : ctest-TestRoutersBasic-62587179-15105648 2025-03-13 02:27:02,749 - DEBUG - VM ctest-TestRoutersBasic-62587179-15105648 ID is 9326c404-ee50-40c4-bce4-f58572e9e617 2025-03-13 02:27:02,779 - DEBUG - VM ctest-TestRoutersBasic-62587179-15105648 launched on Node cn-jenkins-deploy-platform-ansible-os-2860-1 2025-03-13 02:27:02,923 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/9326c404-ee50-40c4-bce4-f58572e9e617 2025-03-13 02:27:03,283 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/9326c404-ee50-40c4-bce4-f58572e9e617 2025-03-13 02:27:03,326 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/4dcba477-80c8-4fc0-b3a2-5f01b517edfe 2025-03-13 02:27:06,597 - 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 1002ms') 2025-03-13 02:27:06,598 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-62587179-15105648 failed! 2025-03-13 02:27:06,654 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-62587179:ctest-vn-77414590 is 149.27.152.1 and allocation pool is NOT set 2025-03-13 02:27:10,730 - 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 1005ms') 2025-03-13 02:27:10,731 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-62587179-15105648 failed! 2025-03-13 02:27:10,794 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-62587179:ctest-vn-77414590 is 149.27.152.1 and allocation pool is NOT set 2025-03-13 02:27:12,863 - 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.35 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.547 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 = 0.547/1.946/3.345/1.399 ms') 2025-03-13 02:27:12,863 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-62587179-15105648 passed 2025-03-13 02:27:13,022 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-13 02:27:13,022 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-62587179-15105648, IP 149.27.152.3, Port 22 2025-03-13 02:27:13,189 - DEBUG - VM ctest-TestRoutersBasic-62587179-15105648 is ready for SSH connections 2025-03-13 02:27:13,189 - INFO - Waiting for VM ctest-TestRoutersBasic-62587179-40410889 to be up.. 2025-03-13 02:27:13,303 - DEBUG - VM is in ACTIVE state now 2025-03-13 02:27:13,304 - INFO - VM name : ctest-TestRoutersBasic-62587179-40410889 2025-03-13 02:27:13,438 - DEBUG - VM ctest-TestRoutersBasic-62587179-40410889 ID is 10a088e3-b7bd-4eaf-b16c-c7b12ffb304d 2025-03-13 02:27:13,438 - DEBUG - VM ctest-TestRoutersBasic-62587179-40410889 launched on Node cn-jenkins-deploy-platform-ansible-os-2860-1 2025-03-13 02:27:13,553 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/10a088e3-b7bd-4eaf-b16c-c7b12ffb304d 2025-03-13 02:27:13,563 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/2b9492b8-c5bd-4368-9549-19655990024f 2025-03-13 02:27:14,827 - 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=4.81 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.976 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.976/2.893/4.811/1.917 ms') 2025-03-13 02:27:14,827 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-62587179-40410889 passed 2025-03-13 02:27:14,990 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-13 02:27:14,990 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-62587179-40410889, IP 40.47.223.67, Port 22 2025-03-13 02:27:15,046 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-03-13 02:27:15,133 - DEBUG - VM ctest-TestRoutersBasic-62587179-40410889 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-13 02:27:20,134 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-13 02:27:20,134 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-62587179-40410889, IP 40.47.223.67, Port 22 2025-03-13 02:27:20,289 - DEBUG - VM ctest-TestRoutersBasic-62587179-40410889 is ready for SSH connections 2025-03-13 02:27:20,289 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-13 02:27:20,290 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 40.47.223.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2025-03-13 02:27:20,290 - DEBUG - ping -s 56 -c 3 -W 1 40.47.223.67 2025-03-13 02:27:24,287 - DEBUG - PING 40.47.223.67 (40.47.223.67): 56 data bytes 64 bytes from 40.47.223.67: seq=0 ttl=62 time=5.006 ms 64 bytes from 40.47.223.67: seq=1 ttl=62 time=1.081 ms 64 bytes from 40.47.223.67: seq=2 ttl=62 time=1.036 ms --- 40.47.223.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.036/2.374/5.006 ms 2025-03-13 02:27:24,287 - INFO - Ping to IP 40.47.223.67 from VM ctest-TestRoutersBasic-62587179-15105648 passed 2025-03-13 02:27:24,287 - INFO - Deleting interface with subnet_id a73e6a94-e192-4945-9eff-261a5c4030a7, port_id None from router 1cfa0e0d-aa46-4815-8c6a-d5039675dc0b 2025-03-13 02:27:24,528 - INFO - Deleting VM ctest-TestRoutersBasic-62587179-40410889 2025-03-13 02:27:24,603 - INFO - Deleting VM ctest-TestRoutersBasic-62587179-15105648 2025-03-13 02:27:24,714 - INFO - Deleting VN ctest-ext_vn-69514721 2025-03-13 02:27:24,794 - DEBUG - VN ea5f16ec-cf9f-45ba-9faf-3b86dfc3574b still in use: Unable to complete operation on network ea5f16ec-cf9f-45ba-9faf-3b86dfc3574b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d8016674-1af1-46e4-acb0-3f6b78b83e46'] 2025-03-13 02:27:24,794 - WARNING - Deleting VN ctest-ext_vn-69514721 failed..Will retry 2025-03-13 02:27:26,922 - DEBUG - Response for deleting network () 2025-03-13 02:27:26,923 - INFO - Deleting VN ctest-vn-77414590 2025-03-13 02:27:27,045 - DEBUG - Response for deleting network () 2025-03-13 02:27:27,307 - DEBUG - No XMPP flaps were noticed during the test 2025-03-13 02:27:27,307 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-03-13 02:27:27,307 - INFO - -------------------------------------------------------------------------------- 2025-03-13 02:27:28,087 - INFO - Deleted project: ctest-TestRoutersBasic-62587179, ID : 78b060f4-2eb1-4b8e-9d0c-49db1e2ea77c