2024-10-24 09:27:02,034 - INFO - Domain Default found not creating 2024-10-24 09:27:02,260 - INFO - Project ctest-TestRoutersBasic-74210068 not found, creating it 2024-10-24 09:27:02,809 - INFO - Created Project:ctest-TestRoutersBasic-74210068, ID : 6e9ae138-83dc-473d-90a8-69f2b9ec2ecd 2024-10-24 09:27:04,527 - INFO - ================================================================================ 2024-10-24 09:27:04,527 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-24 09:27:04,527 - 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-24 09:27:04,804 - DEBUG - Nothing to compare xmpp stats {'10.0.0.43': {'10.20.0.12': '0'}} with 2024-10-24 09:27:04,804 - INFO - Initial checks done. Running the testcase now 2024-10-24 09:27:04,804 - INFO - 2024-10-24 09:27:05,604 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-74210068 2024-10-24 09:27:05,706 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-74210068 2024-10-24 09:27:06,082 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-74210068', 'default']} 2024-10-24 09:27:06,437 - DEBUG - Response for create_network : {'network': {'id': 'f3faa65a-c265-4313-af99-486d27e5fead', 'name': 'ctest-vn-08398068', 'tenant_id': '6e9ae13883dc473d90a869f2b9ec2ecd', 'project_id': '6e9ae13883dc473d90a869f2b9ec2ecd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-74210068', 'ctest-vn-08398068'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 09:27:06,642 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e3a8f5d3-334d-4859-a5f1-bb1a91688f9c', 'name': '', 'tenant_id': '6e9ae13883dc473d90a869f2b9ec2ecd', 'network_id': 'f3faa65a-c265-4313-af99-486d27e5fead', 'ip_version': 4, 'cidr': '157.94.165.0/26', 'allocation_pools': [{'start': '157.94.165.2', 'end': '157.94.165.62'}], 'gateway_ip': '157.94.165.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.94.165.2', 'tags': [], 'project_id': '6e9ae13883dc473d90a869f2b9ec2ecd'}} 2024-10-24 09:27:06,666 - INFO - Created VN ctest-vn-08398068 2024-10-24 09:27:06,726 - DEBUG - VN ctest-vn-08398068 UUID is f3faa65a-c265-4313-af99-486d27e5fead 2024-10-24 09:27:07,144 - DEBUG - Response for create_network : {'network': {'id': '985617b3-77c7-4285-9ecc-3f88379b645b', 'name': 'ctest-ext_vn-12880040', 'tenant_id': '6e9ae13883dc473d90a869f2b9ec2ecd', 'project_id': '6e9ae13883dc473d90a869f2b9ec2ecd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-74210068', 'ctest-ext_vn-12880040'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 09:27:07,357 - DEBUG - Response for create_subnet : {'subnet': {'id': '0bc15812-04b7-48c8-87ef-fc2280e40227', 'name': '', 'tenant_id': '6e9ae13883dc473d90a869f2b9ec2ecd', 'network_id': '985617b3-77c7-4285-9ecc-3f88379b645b', 'ip_version': 4, 'cidr': '124.219.67.64/26', 'allocation_pools': [{'start': '124.219.67.66', 'end': '124.219.67.126'}], 'gateway_ip': '124.219.67.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.219.67.66', 'tags': [], 'project_id': '6e9ae13883dc473d90a869f2b9ec2ecd'}} 2024-10-24 09:27:07,383 - INFO - Created VN ctest-ext_vn-12880040 2024-10-24 09:27:07,446 - DEBUG - VN ctest-ext_vn-12880040 UUID is 985617b3-77c7-4285-9ecc-3f88379b645b 2024-10-24 09:27:07,655 - DEBUG - Services list from nova: [, , ] 2024-10-24 09:27:08,867 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2137-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2137-1) 2024-10-24 09:27:10,196 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2137-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2137-1) 2024-10-24 09:27:10,285 - INFO - Setting gateway for router 62384315-634f-4a54-9d6c-434ce640c99c to network 985617b3-77c7-4285-9ecc-3f88379b645b 2024-10-24 09:27:10,384 - INFO - Adding interface with subnet_id e3a8f5d3-334d-4859-a5f1-bb1a91688f9c, port_id None to router 62384315-634f-4a54-9d6c-434ce640c99c 2024-10-24 09:27:10,919 - INFO - Waiting for VM ctest-TestRoutersBasic-74210068-56251215 to be up.. 2024-10-24 09:27:11,179 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-24 09:27:16,302 - DEBUG - VM is in ACTIVE state now 2024-10-24 09:27:16,302 - INFO - VM name : ctest-TestRoutersBasic-74210068-56251215 2024-10-24 09:27:16,406 - DEBUG - VM ctest-TestRoutersBasic-74210068-56251215 ID is 0538e8fa-ea0c-4497-bfb0-89a9c4207d42 2024-10-24 09:27:16,432 - DEBUG - VM ctest-TestRoutersBasic-74210068-56251215 launched on Node cn-jenkins-deploy-platform-ansible-os-2137-1 2024-10-24 09:27:16,542 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/0538e8fa-ea0c-4497-bfb0-89a9c4207d42 2024-10-24 09:27:16,851 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/0538e8fa-ea0c-4497-bfb0-89a9c4207d42 2024-10-24 09:27:16,901 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/2f489c5a-eb26-463d-b60f-efb1210c5c0a 2024-10-24 09:27:20,204 - 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 1026ms') 2024-10-24 09:27:20,204 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-74210068-56251215 failed! 2024-10-24 09:27:20,270 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-74210068:ctest-vn-08398068 is 157.94.165.1 and allocation pool is NOT set 2024-10-24 09:27:22,339 - 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.66 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.427 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.427/2.044/3.661/1.617 ms') 2024-10-24 09:27:22,340 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-74210068-56251215 passed 2024-10-24 09:27:22,506 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 09:27:22,506 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-74210068-56251215, IP 157.94.165.3, Port 22 2024-10-24 09:27:22,683 - DEBUG - VM ctest-TestRoutersBasic-74210068-56251215 is ready for SSH connections 2024-10-24 09:27:22,684 - INFO - Waiting for VM ctest-TestRoutersBasic-74210068-37765592 to be up.. 2024-10-24 09:27:22,800 - DEBUG - VM is in ACTIVE state now 2024-10-24 09:27:22,800 - INFO - VM name : ctest-TestRoutersBasic-74210068-37765592 2024-10-24 09:27:22,901 - DEBUG - VM ctest-TestRoutersBasic-74210068-37765592 ID is e6aecb89-75d1-4b30-acae-7855976ea76b 2024-10-24 09:27:22,901 - DEBUG - VM ctest-TestRoutersBasic-74210068-37765592 launched on Node cn-jenkins-deploy-platform-ansible-os-2137-1 2024-10-24 09:27:23,015 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/e6aecb89-75d1-4b30-acae-7855976ea76b 2024-10-24 09:27:23,026 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/d691df4e-c298-4924-bc6c-73bb2049c14e 2024-10-24 09:27:24,301 - 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.96 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.05 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 = 1.052/2.505/3.959/1.453 ms') 2024-10-24 09:27:24,301 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-74210068-37765592 passed 2024-10-24 09:27:24,474 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 09:27:24,474 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-74210068-37765592, IP 124.219.67.67, Port 22 2024-10-24 09:27:24,630 - DEBUG - VM ctest-TestRoutersBasic-74210068-37765592 is ready for SSH connections 2024-10-24 09:27:24,630 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 09:27:24,630 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.219.67.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123 2024-10-24 09:27:24,630 - DEBUG - ping -s 56 -c 3 -W 1 124.219.67.67 2024-10-24 09:27:28,333 - DEBUG - PING 124.219.67.67 (124.219.67.67): 56 data bytes 64 bytes from 124.219.67.67: seq=0 ttl=62 time=8.302 ms 64 bytes from 124.219.67.67: seq=1 ttl=62 time=1.212 ms 64 bytes from 124.219.67.67: seq=2 ttl=62 time=1.590 ms --- 124.219.67.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.212/3.701/8.302 ms 2024-10-24 09:27:28,333 - INFO - Ping to IP 124.219.67.67 from VM ctest-TestRoutersBasic-74210068-56251215 passed 2024-10-24 09:27:28,333 - INFO - Deleting interface with subnet_id e3a8f5d3-334d-4859-a5f1-bb1a91688f9c, port_id None from router 62384315-634f-4a54-9d6c-434ce640c99c 2024-10-24 09:27:28,609 - INFO - Deleting VM ctest-TestRoutersBasic-74210068-37765592 2024-10-24 09:27:28,692 - INFO - Deleting VM ctest-TestRoutersBasic-74210068-56251215 2024-10-24 09:27:28,783 - INFO - Deleting VN ctest-ext_vn-12880040 2024-10-24 09:27:28,867 - DEBUG - VN 985617b3-77c7-4285-9ecc-3f88379b645b still in use: Unable to complete operation on network 985617b3-77c7-4285-9ecc-3f88379b645b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7e8d9e1e-449b-4eb3-ba66-cfa103110636'] 2024-10-24 09:27:28,868 - WARNING - Deleting VN ctest-ext_vn-12880040 failed..Will retry 2024-10-24 09:27:31,003 - DEBUG - Response for deleting network () 2024-10-24 09:27:31,003 - INFO - Deleting VN ctest-vn-08398068 2024-10-24 09:27:31,144 - DEBUG - Response for deleting network () 2024-10-24 09:27:31,408 - DEBUG - No XMPP flaps were noticed during the test
2024-10-24 09:27:31,409 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27]
2024-10-24 09:27:31,409 - INFO - -------------------------------------------------------------------------------- 2024-10-24 09:27:32,138 - INFO - Deleted project: ctest-TestRoutersBasic-74210068, ID : 6e9ae138-83dc-473d-90a8-69f2b9ec2ecd