2024-11-07 16:43:40,750 - INFO - Domain Default found not creating 2024-11-07 16:43:40,927 - INFO - Project ctest-TestRoutersBasic-44972927 not found, creating it 2024-11-07 16:43:41,439 - INFO - Created Project:ctest-TestRoutersBasic-44972927, ID : e88f9d5f-0631-471f-ae08-7cf134ad3a8f 2024-11-07 16:43:42,915 - INFO - ================================================================================ 2024-11-07 16:43:42,915 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-07 16:43:42,915 - 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-11-07 16:43:43,176 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.7': '0'}} with 2024-11-07 16:43:43,176 - INFO - Initial checks done. Running the testcase now 2024-11-07 16:43:43,176 - INFO - 2024-11-07 16:43:43,919 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-44972927 2024-11-07 16:43:44,021 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-44972927 2024-11-07 16:43:44,365 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-44972927', 'default']} 2024-11-07 16:43:44,719 - DEBUG - Response for create_network : {'network': {'id': '0a566524-f8d0-4ec4-b0cd-10768c023cf8', 'name': 'ctest-vn-13252484', 'tenant_id': 'e88f9d5f0631471fae087cf134ad3a8f', 'project_id': 'e88f9d5f0631471fae087cf134ad3a8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-44972927', 'ctest-vn-13252484'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 16:43:44,944 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b6cef781-c7bb-41eb-8102-ce0dc9e8ce80', 'name': '', 'tenant_id': 'e88f9d5f0631471fae087cf134ad3a8f', 'network_id': '0a566524-f8d0-4ec4-b0cd-10768c023cf8', 'ip_version': 4, 'cidr': '117.250.243.64/26', 'allocation_pools': [{'start': '117.250.243.66', 'end': '117.250.243.126'}], 'gateway_ip': '117.250.243.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.250.243.66', 'tags': [], 'project_id': 'e88f9d5f0631471fae087cf134ad3a8f'}} 2024-11-07 16:43:44,962 - INFO - Created VN ctest-vn-13252484 2024-11-07 16:43:45,025 - DEBUG - VN ctest-vn-13252484 UUID is 0a566524-f8d0-4ec4-b0cd-10768c023cf8 2024-11-07 16:43:45,390 - DEBUG - Response for create_network : {'network': {'id': '5a5e2c09-f655-428a-9383-4277a47d2f49', 'name': 'ctest-ext_vn-66455129', 'tenant_id': 'e88f9d5f0631471fae087cf134ad3a8f', 'project_id': 'e88f9d5f0631471fae087cf134ad3a8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-44972927', 'ctest-ext_vn-66455129'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 16:43:45,581 - DEBUG - Response for create_subnet : {'subnet': {'id': '1cca4ed8-c69d-45c5-b82e-49291b467b7b', 'name': '', 'tenant_id': 'e88f9d5f0631471fae087cf134ad3a8f', 'network_id': '5a5e2c09-f655-428a-9383-4277a47d2f49', 'ip_version': 4, 'cidr': '132.30.229.64/26', 'allocation_pools': [{'start': '132.30.229.66', 'end': '132.30.229.126'}], 'gateway_ip': '132.30.229.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.30.229.66', 'tags': [], 'project_id': 'e88f9d5f0631471fae087cf134ad3a8f'}} 2024-11-07 16:43:45,601 - INFO - Created VN ctest-ext_vn-66455129 2024-11-07 16:43:45,661 - DEBUG - VN ctest-ext_vn-66455129 UUID is 5a5e2c09-f655-428a-9383-4277a47d2f49 2024-11-07 16:43:45,833 - DEBUG - Services list from nova: [, , ] 2024-11-07 16:43:46,948 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2219-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2219-1) 2024-11-07 16:43:48,199 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2219-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2219-1) 2024-11-07 16:43:48,281 - INFO - Setting gateway for router 7f2a93ad-974a-4ea8-b3e5-12f6f82f59be to network 5a5e2c09-f655-428a-9383-4277a47d2f49 2024-11-07 16:43:48,383 - INFO - Adding interface with subnet_id b6cef781-c7bb-41eb-8102-ce0dc9e8ce80, port_id None to router 7f2a93ad-974a-4ea8-b3e5-12f6f82f59be 2024-11-07 16:43:48,862 - INFO - Waiting for VM ctest-TestRoutersBasic-44972927-42896825 to be up.. 2024-11-07 16:43:48,980 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-07 16:43:54,086 - DEBUG - VM is in ACTIVE state now 2024-11-07 16:43:54,086 - INFO - VM name : ctest-TestRoutersBasic-44972927-42896825 2024-11-07 16:43:54,166 - DEBUG - VM ctest-TestRoutersBasic-44972927-42896825 ID is 34b88511-6215-4380-8323-f8c2d262a536 2024-11-07 16:43:54,186 - DEBUG - VM ctest-TestRoutersBasic-44972927-42896825 launched on Node cn-jenkins-deploy-platform-ansible-os-2219-1 2024-11-07 16:43:54,277 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/34b88511-6215-4380-8323-f8c2d262a536 2024-11-07 16:43:54,596 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/34b88511-6215-4380-8323-f8c2d262a536 2024-11-07 16:43:54,631 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/c5400051-1e64-430b-8be2-146c26418607 2024-11-07 16:43:57,917 - 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 1011ms') 2024-11-07 16:43:57,917 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-44972927-42896825 failed! 2024-11-07 16:43:57,977 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-44972927:ctest-vn-13252484 is 117.250.243.65 and allocation pool is NOT set 2024-11-07 16:44:00,041 - 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=9.85 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.540 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.540/5.193/9.847/4.653 ms') 2024-11-07 16:44:00,041 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-44972927-42896825 passed 2024-11-07 16:44:00,205 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 16:44:00,205 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-44972927-42896825, IP 117.250.243.67, Port 22 2024-11-07 16:44:00,361 - DEBUG - VM ctest-TestRoutersBasic-44972927-42896825 is ready for SSH connections 2024-11-07 16:44:00,361 - INFO - Waiting for VM ctest-TestRoutersBasic-44972927-83686072 to be up.. 2024-11-07 16:44:00,467 - DEBUG - VM is in ACTIVE state now 2024-11-07 16:44:00,468 - INFO - VM name : ctest-TestRoutersBasic-44972927-83686072 2024-11-07 16:44:00,568 - DEBUG - VM ctest-TestRoutersBasic-44972927-83686072 ID is 5d9f4146-e18a-48de-aeee-e883ab9a31d9 2024-11-07 16:44:00,568 - DEBUG - VM ctest-TestRoutersBasic-44972927-83686072 launched on Node cn-jenkins-deploy-platform-ansible-os-2219-1 2024-11-07 16:44:00,666 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/5d9f4146-e18a-48de-aeee-e883ab9a31d9 2024-11-07 16:44:00,676 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/64e0fe4d-04cf-45f0-bc59-822ae2831687 2024-11-07 16:44:01,945 - 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.09 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.795 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.795/1.942/3.090/1.147 ms') 2024-11-07 16:44:01,945 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-44972927-83686072 passed 2024-11-07 16:44:02,109 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 16:44:02,109 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-44972927-83686072, IP 132.30.229.67, Port 22 2024-11-07 16:44:02,264 - DEBUG - VM ctest-TestRoutersBasic-44972927-83686072 is ready for SSH connections 2024-11-07 16:44:02,264 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 16:44:02,264 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 132.30.229.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2024-11-07 16:44:02,264 - DEBUG - ping -s 56 -c 3 -W 1 132.30.229.67 2024-11-07 16:44:06,008 - DEBUG - PING 132.30.229.67 (132.30.229.67): 56 data bytes 64 bytes from 132.30.229.67: seq=0 ttl=62 time=6.727 ms 64 bytes from 132.30.229.67: seq=1 ttl=62 time=0.811 ms 64 bytes from 132.30.229.67: seq=2 ttl=62 time=0.870 ms --- 132.30.229.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.811/2.802/6.727 ms 2024-11-07 16:44:06,008 - INFO - Ping to IP 132.30.229.67 from VM ctest-TestRoutersBasic-44972927-42896825 passed 2024-11-07 16:44:06,008 - INFO - Deleting interface with subnet_id b6cef781-c7bb-41eb-8102-ce0dc9e8ce80, port_id None from router 7f2a93ad-974a-4ea8-b3e5-12f6f82f59be 2024-11-07 16:44:06,261 - INFO - Deleting VM ctest-TestRoutersBasic-44972927-83686072 2024-11-07 16:44:06,333 - INFO - Deleting VM ctest-TestRoutersBasic-44972927-42896825 2024-11-07 16:44:06,427 - INFO - Deleting VN ctest-ext_vn-66455129 2024-11-07 16:44:06,507 - DEBUG - VN 5a5e2c09-f655-428a-9383-4277a47d2f49 still in use: Unable to complete operation on network 5a5e2c09-f655-428a-9383-4277a47d2f49. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-91681b6f-de96-4515-91c7-fb0ce59524c2'] 2024-11-07 16:44:06,507 - WARNING - Deleting VN ctest-ext_vn-66455129 failed..Will retry 2024-11-07 16:44:08,637 - DEBUG - Response for deleting network () 2024-11-07 16:44:08,637 - INFO - Deleting VN ctest-vn-13252484 2024-11-07 16:44:08,764 - DEBUG - Response for deleting network () 2024-11-07 16:44:09,023 - DEBUG - No XMPP flaps were noticed during the test
2024-11-07 16:44:09,023 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27]
2024-11-07 16:44:09,023 - INFO - -------------------------------------------------------------------------------- 2024-11-07 16:44:09,736 - INFO - Deleted project: ctest-TestRoutersBasic-44972927, ID : e88f9d5f-0631-471f-ae08-7cf134ad3a8f