2024-10-31 02:33:49,158 - INFO - Domain Default found not creating 2024-10-31 02:33:49,394 - INFO - Project ctest-TestRoutersBasic-98243149 not found, creating it 2024-10-31 02:33:49,976 - INFO - Created Project:ctest-TestRoutersBasic-98243149, ID : 4f3baa0f-b6f5-4800-837f-8b052babc283 2024-10-31 02:33:51,997 - INFO - ================================================================================ 2024-10-31 02:33:51,997 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-31 02:33:51,997 - 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-31 02:33:52,277 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.5': '0'}} with 2024-10-31 02:33:52,277 - INFO - Initial checks done. Running the testcase now 2024-10-31 02:33:52,278 - INFO - 2024-10-31 02:33:53,383 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-98243149 2024-10-31 02:33:53,496 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-98243149 2024-10-31 02:33:53,935 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-98243149', 'default']} 2024-10-31 02:33:54,361 - DEBUG - Response for create_network : {'network': {'id': '5ef92f18-8de2-4e3c-8b56-c5e80bdc2d52', 'name': 'ctest-vn-16959446', 'tenant_id': '4f3baa0fb6f54800837f8b052babc283', 'project_id': '4f3baa0fb6f54800837f8b052babc283', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-98243149', 'ctest-vn-16959446'], 'port_security_enabled': True, 'description': ''}} 2024-10-31 02:33:54,623 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c39068f7-f539-43b0-b66e-8cf652ad6c86', 'name': '', 'tenant_id': '4f3baa0fb6f54800837f8b052babc283', 'network_id': '5ef92f18-8de2-4e3c-8b56-c5e80bdc2d52', 'ip_version': 4, 'cidr': '140.92.157.0/26', 'allocation_pools': [{'start': '140.92.157.2', 'end': '140.92.157.62'}], 'gateway_ip': '140.92.157.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.92.157.2', 'tags': [], 'project_id': '4f3baa0fb6f54800837f8b052babc283'}} 2024-10-31 02:33:54,658 - INFO - Created VN ctest-vn-16959446 2024-10-31 02:33:54,724 - DEBUG - VN ctest-vn-16959446 UUID is 5ef92f18-8de2-4e3c-8b56-c5e80bdc2d52 2024-10-31 02:33:55,191 - DEBUG - Response for create_network : {'network': {'id': '64c5348d-d4ac-4833-bd05-d960b8593348', 'name': 'ctest-ext_vn-35492253', 'tenant_id': '4f3baa0fb6f54800837f8b052babc283', 'project_id': '4f3baa0fb6f54800837f8b052babc283', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-98243149', 'ctest-ext_vn-35492253'], 'port_security_enabled': True, 'description': ''}} 2024-10-31 02:33:55,429 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2bf989c-631d-4a2c-a63d-29fdfa689867', 'name': '', 'tenant_id': '4f3baa0fb6f54800837f8b052babc283', 'network_id': '64c5348d-d4ac-4833-bd05-d960b8593348', 'ip_version': 4, 'cidr': '133.56.209.64/26', 'allocation_pools': [{'start': '133.56.209.66', 'end': '133.56.209.126'}], 'gateway_ip': '133.56.209.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.56.209.66', 'tags': [], 'project_id': '4f3baa0fb6f54800837f8b052babc283'}} 2024-10-31 02:33:55,459 - INFO - Created VN ctest-ext_vn-35492253 2024-10-31 02:33:55,524 - DEBUG - VN ctest-ext_vn-35492253 UUID is 64c5348d-d4ac-4833-bd05-d960b8593348 2024-10-31 02:33:55,756 - DEBUG - Services list from nova: [, , ] 2024-10-31 02:33:57,125 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2182-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2182-1) 2024-10-31 02:33:58,599 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2182-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2182-1) 2024-10-31 02:33:58,697 - INFO - Setting gateway for router b03f1ad6-2ed9-4113-b184-72e2279e2c3d to network 64c5348d-d4ac-4833-bd05-d960b8593348 2024-10-31 02:33:58,788 - INFO - Adding interface with subnet_id c39068f7-f539-43b0-b66e-8cf652ad6c86, port_id None to router b03f1ad6-2ed9-4113-b184-72e2279e2c3d 2024-10-31 02:33:59,460 - INFO - Waiting for VM ctest-TestRoutersBasic-98243149-47980955 to be up.. 2024-10-31 02:33:59,783 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-31 02:34:04,896 - DEBUG - VM is in ACTIVE state now 2024-10-31 02:34:04,896 - INFO - VM name : ctest-TestRoutersBasic-98243149-47980955 2024-10-31 02:34:05,026 - DEBUG - VM ctest-TestRoutersBasic-98243149-47980955 ID is 7b93d5cd-83dd-40a3-a0ec-1f9058b8f38d 2024-10-31 02:34:05,061 - DEBUG - VM ctest-TestRoutersBasic-98243149-47980955 launched on Node cn-jenkins-deploy-platform-ansible-os-2182-1 2024-10-31 02:34:05,191 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/7b93d5cd-83dd-40a3-a0ec-1f9058b8f38d 2024-10-31 02:34:05,558 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/7b93d5cd-83dd-40a3-a0ec-1f9058b8f38d 2024-10-31 02:34:05,623 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/5c077f6c-0fde-4636-a3d1-e8d157e18fcc 2024-10-31 02:34:08,948 - 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 1024ms') 2024-10-31 02:34:08,948 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-98243149-47980955 failed! 2024-10-31 02:34:09,024 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-98243149:ctest-vn-16959446 is 140.92.157.1 and allocation pool is NOT set 2024-10-31 02:34:13,109 - 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 1020ms') 2024-10-31 02:34:13,109 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-98243149-47980955 failed! 2024-10-31 02:34:13,176 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-98243149:ctest-vn-16959446 is 140.92.157.1 and allocation pool is NOT set 2024-10-31 02:34:17,276 - 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 1024ms') 2024-10-31 02:34:17,277 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-98243149-47980955 failed! 2024-10-31 02:34:17,348 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-98243149:ctest-vn-16959446 is 140.92.157.1 and allocation pool is NOT set 2024-10-31 02:34:21,432 - 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 1017ms') 2024-10-31 02:34:21,433 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-98243149-47980955 failed! 2024-10-31 02:34:21,500 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-98243149:ctest-vn-16959446 is 140.92.157.1 and allocation pool is NOT set 2024-10-31 02:34:25,594 - 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 1025ms') 2024-10-31 02:34:25,594 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-98243149-47980955 failed! 2024-10-31 02:34:25,660 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-98243149:ctest-vn-16959446 is 140.92.157.1 and allocation pool is NOT set 2024-10-31 02:34:29,748 - 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-31 02:34:29,748 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-98243149-47980955 failed! 2024-10-31 02:34:29,816 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-98243149:ctest-vn-16959446 is 140.92.157.1 and allocation pool is NOT set 2024-10-31 02:34:33,912 - 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 1032ms') 2024-10-31 02:34:33,912 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-98243149-47980955 failed! 2024-10-31 02:34:33,976 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-98243149:ctest-vn-16959446 is 140.92.157.1 and allocation pool is NOT set 2024-10-31 02:34:38,075 - 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 1029ms') 2024-10-31 02:34:38,075 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-98243149-47980955 failed! 2024-10-31 02:34:38,144 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-98243149:ctest-vn-16959446 is 140.92.157.1 and allocation pool is NOT set 2024-10-31 02:34:40,212 - 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=14.2 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.35 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.345/7.784/14.224/6.439 ms') 2024-10-31 02:34:40,212 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-98243149-47980955 passed 2024-10-31 02:34:40,376 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:34:40,376 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-98243149-47980955, IP 140.92.157.3, Port 22 2024-10-31 02:34:40,550 - DEBUG - VM ctest-TestRoutersBasic-98243149-47980955 is ready for SSH connections 2024-10-31 02:34:40,550 - INFO - Waiting for VM ctest-TestRoutersBasic-98243149-27922646 to be up.. 2024-10-31 02:34:40,683 - DEBUG - VM is in ACTIVE state now 2024-10-31 02:34:40,684 - INFO - VM name : ctest-TestRoutersBasic-98243149-27922646 2024-10-31 02:34:40,798 - DEBUG - VM ctest-TestRoutersBasic-98243149-27922646 ID is 06a5ab17-ae80-4fe1-9c9d-6947bc7cfe3d 2024-10-31 02:34:40,798 - DEBUG - VM ctest-TestRoutersBasic-98243149-27922646 launched on Node cn-jenkins-deploy-platform-ansible-os-2182-1 2024-10-31 02:34:40,918 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/06a5ab17-ae80-4fe1-9c9d-6947bc7cfe3d 2024-10-31 02:34:40,939 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/59506c25-7d95-4837-a97a-b989f6713e7c 2024-10-31 02:34:42,222 - 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.479 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.479/2.154/3.830/1.675 ms') 2024-10-31 02:34:42,223 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-98243149-27922646 passed 2024-10-31 02:34:42,388 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:34:42,388 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-98243149-27922646, IP 133.56.209.67, Port 22 2024-10-31 02:34:42,556 - DEBUG - VM ctest-TestRoutersBasic-98243149-27922646 is ready for SSH connections 2024-10-31 02:34:42,556 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:34:42,556 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 133.56.209.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2024-10-31 02:34:42,557 - DEBUG - ping -s 56 -c 3 -W 1 133.56.209.67 2024-10-31 02:34:46,751 - DEBUG - PING 133.56.209.67 (133.56.209.67): 56 data bytes 64 bytes from 133.56.209.67: seq=0 ttl=62 time=9.082 ms 64 bytes from 133.56.209.67: seq=1 ttl=62 time=1.391 ms 64 bytes from 133.56.209.67: seq=2 ttl=62 time=1.300 ms --- 133.56.209.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.300/3.924/9.082 ms 2024-10-31 02:34:46,751 - INFO - Ping to IP 133.56.209.67 from VM ctest-TestRoutersBasic-98243149-47980955 passed 2024-10-31 02:34:46,751 - INFO - Deleting interface with subnet_id c39068f7-f539-43b0-b66e-8cf652ad6c86, port_id None from router b03f1ad6-2ed9-4113-b184-72e2279e2c3d 2024-10-31 02:34:47,064 - INFO - Deleting VM ctest-TestRoutersBasic-98243149-27922646 2024-10-31 02:34:47,169 - INFO - Deleting VM ctest-TestRoutersBasic-98243149-47980955 2024-10-31 02:34:47,264 - INFO - Deleting VN ctest-ext_vn-35492253 2024-10-31 02:34:47,438 - DEBUG - VN 64c5348d-d4ac-4833-bd05-d960b8593348 still in use: Unable to complete operation on network 64c5348d-d4ac-4833-bd05-d960b8593348. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a3e3ae7a-a896-4593-85ea-f27a91ef06db'] 2024-10-31 02:34:47,438 - WARNING - Deleting VN ctest-ext_vn-35492253 failed..Will retry 2024-10-31 02:34:49,578 - DEBUG - Response for deleting network () 2024-10-31 02:34:49,579 - INFO - Deleting VN ctest-vn-16959446 2024-10-31 02:34:49,757 - DEBUG - Response for deleting network () 2024-10-31 02:34:50,035 - DEBUG - No XMPP flaps were noticed during the test
2024-10-31 02:34:50,035 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:59]
2024-10-31 02:34:50,035 - INFO - -------------------------------------------------------------------------------- 2024-10-31 02:34:50,889 - INFO - Deleted project: ctest-TestRoutersBasic-98243149, ID : 4f3baa0f-b6f5-4800-837f-8b052babc283