2024-09-18 17:42:27,553 - INFO - Domain Default found not creating 2024-09-18 17:42:27,732 - INFO - Project ctest-TestRoutersBasic-38587302 not found, creating it 2024-09-18 17:42:28,234 - INFO - Created Project:ctest-TestRoutersBasic-38587302, ID : 31baf98b-3baa-4769-add8-2d7926378aa6 2024-09-18 17:42:29,749 - INFO - ================================================================================ 2024-09-18 17:42:29,749 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-18 17:42:29,749 - 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-09-18 17:42:30,007 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.6': '0'}} with 2024-09-18 17:42:30,007 - INFO - Initial checks done. Running the testcase now 2024-09-18 17:42:30,007 - INFO - 2024-09-18 17:42:30,743 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-38587302 2024-09-18 17:42:30,844 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-38587302 2024-09-18 17:42:31,188 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38587302', 'default']} 2024-09-18 17:42:31,533 - DEBUG - Response for create_network : {'network': {'id': '31e84544-49c0-4153-ac5e-f6aa2d8fe79c', 'name': 'ctest-vn-58738857', 'tenant_id': '31baf98b3baa4769add82d7926378aa6', 'project_id': '31baf98b3baa4769add82d7926378aa6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38587302', 'ctest-vn-58738857'], 'port_security_enabled': True, 'description': ''}} 2024-09-18 17:42:31,763 - DEBUG - Response for create_subnet : {'subnet': {'id': '7240aaa2-b6ff-4b77-94ea-af2c16a27cb7', 'name': '', 'tenant_id': '31baf98b3baa4769add82d7926378aa6', 'network_id': '31e84544-49c0-4153-ac5e-f6aa2d8fe79c', 'ip_version': 4, 'cidr': '130.143.207.0/26', 'allocation_pools': [{'start': '130.143.207.2', 'end': '130.143.207.62'}], 'gateway_ip': '130.143.207.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.143.207.2', 'tags': [], 'project_id': '31baf98b3baa4769add82d7926378aa6'}} 2024-09-18 17:42:31,787 - INFO - Created VN ctest-vn-58738857 2024-09-18 17:42:31,848 - DEBUG - VN ctest-vn-58738857 UUID is 31e84544-49c0-4153-ac5e-f6aa2d8fe79c 2024-09-18 17:42:32,218 - DEBUG - Response for create_network : {'network': {'id': 'e86c87b3-57bf-4dcc-9ad1-73a80f9934a8', 'name': 'ctest-ext_vn-68046699', 'tenant_id': '31baf98b3baa4769add82d7926378aa6', 'project_id': '31baf98b3baa4769add82d7926378aa6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-38587302', 'ctest-ext_vn-68046699'], 'port_security_enabled': True, 'description': ''}} 2024-09-18 17:42:32,468 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e259aaa-6ec0-41eb-9d62-17a040f2ab15', 'name': '', 'tenant_id': '31baf98b3baa4769add82d7926378aa6', 'network_id': 'e86c87b3-57bf-4dcc-9ad1-73a80f9934a8', 'ip_version': 4, 'cidr': '82.182.132.128/26', 'allocation_pools': [{'start': '82.182.132.130', 'end': '82.182.132.190'}], 'gateway_ip': '82.182.132.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.182.132.130', 'tags': [], 'project_id': '31baf98b3baa4769add82d7926378aa6'}} 2024-09-18 17:42:32,488 - INFO - Created VN ctest-ext_vn-68046699 2024-09-18 17:42:32,544 - DEBUG - VN ctest-ext_vn-68046699 UUID is e86c87b3-57bf-4dcc-9ad1-73a80f9934a8 2024-09-18 17:42:32,783 - DEBUG - Services list from nova: [, , ] 2024-09-18 17:42:33,855 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1990-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1990-1) 2024-09-18 17:42:35,092 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1990-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1990-1) 2024-09-18 17:42:35,172 - INFO - Setting gateway for router 4c91003a-1ba2-4864-91ae-f40e05229cd5 to network e86c87b3-57bf-4dcc-9ad1-73a80f9934a8 2024-09-18 17:42:35,260 - INFO - Adding interface with subnet_id 7240aaa2-b6ff-4b77-94ea-af2c16a27cb7, port_id None to router 4c91003a-1ba2-4864-91ae-f40e05229cd5 2024-09-18 17:42:35,714 - INFO - Waiting for VM ctest-TestRoutersBasic-38587302-88541559 to be up.. 2024-09-18 17:42:35,934 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-18 17:42:41,017 - DEBUG - VM is in ACTIVE state now 2024-09-18 17:42:41,017 - INFO - VM name : ctest-TestRoutersBasic-38587302-88541559 2024-09-18 17:42:41,100 - DEBUG - VM ctest-TestRoutersBasic-38587302-88541559 ID is b45cdeb9-48a9-4534-ab43-821bdcdd3ee0 2024-09-18 17:42:41,118 - DEBUG - VM ctest-TestRoutersBasic-38587302-88541559 launched on Node cn-jenkins-deploy-platform-ansible-os-1990-1 2024-09-18 17:42:41,195 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/b45cdeb9-48a9-4534-ab43-821bdcdd3ee0 2024-09-18 17:42:41,489 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/b45cdeb9-48a9-4534-ab43-821bdcdd3ee0 2024-09-18 17:42:41,523 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/16e10f58-a1f5-4660-b8fe-a00997c6dc6f 2024-09-18 17:42:44,782 - 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 1015ms') 2024-09-18 17:42:44,782 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-38587302-88541559 failed! 2024-09-18 17:42:44,844 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-38587302:ctest-vn-58738857 is 130.143.207.1 and allocation pool is NOT set 2024-09-18 17:42:46,908 - 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=2.88 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.389 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 = 0.389/1.636/2.884/1.247 ms') 2024-09-18 17:42:46,908 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-38587302-88541559 passed 2024-09-18 17:42:47,068 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 17:42:47,068 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-38587302-88541559, IP 130.143.207.3, Port 22 2024-09-18 17:42:47,227 - DEBUG - VM ctest-TestRoutersBasic-38587302-88541559 is ready for SSH connections 2024-09-18 17:42:47,227 - INFO - Waiting for VM ctest-TestRoutersBasic-38587302-05531542 to be up.. 2024-09-18 17:42:47,303 - DEBUG - VM is in ACTIVE state now 2024-09-18 17:42:47,303 - INFO - VM name : ctest-TestRoutersBasic-38587302-05531542 2024-09-18 17:42:47,379 - DEBUG - VM ctest-TestRoutersBasic-38587302-05531542 ID is 0d23dcf1-b9a8-44b3-8509-b41800828c57 2024-09-18 17:42:47,380 - DEBUG - VM ctest-TestRoutersBasic-38587302-05531542 launched on Node cn-jenkins-deploy-platform-ansible-os-1990-1 2024-09-18 17:42:47,452 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/0d23dcf1-b9a8-44b3-8509-b41800828c57 2024-09-18 17:42:47,462 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/ee01d1f9-bc07-429c-94b9-aa5bedd5a8c9 2024-09-18 17:42:48,716 - 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.83 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.421 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.421/1.626/2.832/1.205 ms') 2024-09-18 17:42:48,716 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-38587302-05531542 passed 2024-09-18 17:42:48,872 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 17:42:48,872 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-38587302-05531542, IP 82.182.132.131, Port 22 2024-09-18 17:42:49,028 - DEBUG - VM ctest-TestRoutersBasic-38587302-05531542 is ready for SSH connections 2024-09-18 17:42:49,028 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-18 17:42:49,028 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 82.182.132.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-09-18 17:42:49,028 - DEBUG - ping -s 56 -c 3 -W 1 82.182.132.131 2024-09-18 17:42:52,700 - DEBUG - PING 82.182.132.131 (82.182.132.131): 56 data bytes 64 bytes from 82.182.132.131: seq=0 ttl=62 time=6.405 ms 64 bytes from 82.182.132.131: seq=1 ttl=62 time=1.090 ms 64 bytes from 82.182.132.131: seq=2 ttl=62 time=0.952 ms --- 82.182.132.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.952/2.815/6.405 ms 2024-09-18 17:42:52,700 - INFO - Ping to IP 82.182.132.131 from VM ctest-TestRoutersBasic-38587302-88541559 passed 2024-09-18 17:42:52,700 - INFO - Deleting interface with subnet_id 7240aaa2-b6ff-4b77-94ea-af2c16a27cb7, port_id None from router 4c91003a-1ba2-4864-91ae-f40e05229cd5 2024-09-18 17:42:52,947 - INFO - Deleting VM ctest-TestRoutersBasic-38587302-05531542 2024-09-18 17:42:53,014 - INFO - Deleting VM ctest-TestRoutersBasic-38587302-88541559 2024-09-18 17:42:53,095 - INFO - Deleting VN ctest-ext_vn-68046699 2024-09-18 17:42:53,172 - DEBUG - VN e86c87b3-57bf-4dcc-9ad1-73a80f9934a8 still in use: Unable to complete operation on network e86c87b3-57bf-4dcc-9ad1-73a80f9934a8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f088b728-1d8f-4f0c-829a-a1a9b31b8b43'] 2024-09-18 17:42:53,172 - WARNING - Deleting VN ctest-ext_vn-68046699 failed..Will retry 2024-09-18 17:42:55,287 - DEBUG - Response for deleting network () 2024-09-18 17:42:55,287 - INFO - Deleting VN ctest-vn-58738857 2024-09-18 17:42:55,405 - DEBUG - Response for deleting network () 2024-09-18 17:42:55,661 - DEBUG - No XMPP flaps were noticed during the test
2024-09-18 17:42:55,661 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-09-18 17:42:55,661 - INFO - -------------------------------------------------------------------------------- 2024-09-18 17:42:56,396 - INFO - Deleted project: ctest-TestRoutersBasic-38587302, ID : 31baf98b-3baa-4769-add8-2d7926378aa6