2024-11-10 19:29:39,931 - INFO - Domain Default found not creating 2024-11-10 19:29:40,101 - INFO - Project ctest-TestRoutersBasic-07623750 not found, creating it 2024-11-10 19:29:40,629 - INFO - Created Project:ctest-TestRoutersBasic-07623750, ID : 1766c705-33b3-45dd-9077-570c34e11b75 2024-11-10 19:29:42,283 - INFO - ================================================================================ 2024-11-10 19:29:42,283 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-10 19:29:42,283 - 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-10 19:29:42,539 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.10': '0'}} with 2024-11-10 19:29:42,539 - INFO - Initial checks done. Running the testcase now 2024-11-10 19:29:42,540 - INFO - 2024-11-10 19:29:43,339 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-07623750 2024-11-10 19:29:43,441 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-07623750 2024-11-10 19:29:43,789 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-07623750', 'default']} 2024-11-10 19:29:44,113 - DEBUG - Response for create_network : {'network': {'id': '334988cb-98e5-4a24-b78d-f9a69ac495f2', 'name': 'ctest-vn-61740968', 'tenant_id': '1766c70533b345dd9077570c34e11b75', 'project_id': '1766c70533b345dd9077570c34e11b75', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-07623750', 'ctest-vn-61740968'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 19:29:44,289 - DEBUG - Response for create_subnet : {'subnet': {'id': '57e0769a-bbaf-4dba-9399-03a15114ef0d', 'name': '', 'tenant_id': '1766c70533b345dd9077570c34e11b75', 'network_id': '334988cb-98e5-4a24-b78d-f9a69ac495f2', 'ip_version': 4, 'cidr': '217.9.206.64/26', 'allocation_pools': [{'start': '217.9.206.66', 'end': '217.9.206.126'}], 'gateway_ip': '217.9.206.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.9.206.66', 'tags': [], 'project_id': '1766c70533b345dd9077570c34e11b75'}} 2024-11-10 19:29:44,314 - INFO - Created VN ctest-vn-61740968 2024-11-10 19:29:44,373 - DEBUG - VN ctest-vn-61740968 UUID is 334988cb-98e5-4a24-b78d-f9a69ac495f2 2024-11-10 19:29:44,752 - DEBUG - Response for create_network : {'network': {'id': 'dcf1e01e-a781-4a4b-8496-9fd7323bb676', 'name': 'ctest-ext_vn-43146427', 'tenant_id': '1766c70533b345dd9077570c34e11b75', 'project_id': '1766c70533b345dd9077570c34e11b75', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-07623750', 'ctest-ext_vn-43146427'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 19:29:44,969 - DEBUG - Response for create_subnet : {'subnet': {'id': '3ed7f81a-3815-4e8a-af2b-7c25de9d8553', 'name': '', 'tenant_id': '1766c70533b345dd9077570c34e11b75', 'network_id': 'dcf1e01e-a781-4a4b-8496-9fd7323bb676', 'ip_version': 4, 'cidr': '146.36.174.128/26', 'allocation_pools': [{'start': '146.36.174.130', 'end': '146.36.174.190'}], 'gateway_ip': '146.36.174.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.36.174.130', 'tags': [], 'project_id': '1766c70533b345dd9077570c34e11b75'}} 2024-11-10 19:29:44,990 - INFO - Created VN ctest-ext_vn-43146427 2024-11-10 19:29:45,049 - DEBUG - VN ctest-ext_vn-43146427 UUID is dcf1e01e-a781-4a4b-8496-9fd7323bb676 2024-11-10 19:29:45,241 - DEBUG - Services list from nova: [, , ] 2024-11-10 19:29:46,389 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2261-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2261-1) 2024-11-10 19:29:47,727 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2261-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2261-1) 2024-11-10 19:29:47,818 - INFO - Setting gateway for router 4323f305-94f9-438e-aed1-dc0e90788607 to network dcf1e01e-a781-4a4b-8496-9fd7323bb676 2024-11-10 19:29:47,916 - INFO - Adding interface with subnet_id 57e0769a-bbaf-4dba-9399-03a15114ef0d, port_id None to router 4323f305-94f9-438e-aed1-dc0e90788607 2024-11-10 19:29:48,462 - INFO - Waiting for VM ctest-TestRoutersBasic-07623750-27801013 to be up.. 2024-11-10 19:29:48,661 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 19:29:53,770 - DEBUG - VM is in ACTIVE state now 2024-11-10 19:29:53,770 - INFO - VM name : ctest-TestRoutersBasic-07623750-27801013 2024-11-10 19:29:53,886 - DEBUG - VM ctest-TestRoutersBasic-07623750-27801013 ID is 59c3fda8-6604-4067-9f55-67a8abf1eee6 2024-11-10 19:29:53,906 - DEBUG - VM ctest-TestRoutersBasic-07623750-27801013 launched on Node cn-jenkins-deploy-platform-ansible-os-2261-1 2024-11-10 19:29:54,008 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/59c3fda8-6604-4067-9f55-67a8abf1eee6 2024-11-10 19:29:54,361 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/59c3fda8-6604-4067-9f55-67a8abf1eee6 2024-11-10 19:29:54,403 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/05953adf-dafa-4504-a12f-3be03a04d0ba 2024-11-10 19:29:57,711 - 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 1027ms') 2024-11-10 19:29:57,711 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-07623750-27801013 failed! 2024-11-10 19:29:57,773 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-07623750:ctest-vn-61740968 is 217.9.206.65 and allocation pool is NOT set 2024-11-10 19:29:59,831 - 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.91 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.411 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.411/1.659/2.907/1.248 ms') 2024-11-10 19:29:59,832 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-07623750-27801013 passed 2024-11-10 19:30:00,005 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 19:30:00,005 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-07623750-27801013, IP 217.9.206.67, Port 22 2024-11-10 19:30:00,175 - DEBUG - VM ctest-TestRoutersBasic-07623750-27801013 is ready for SSH connections 2024-11-10 19:30:00,175 - INFO - Waiting for VM ctest-TestRoutersBasic-07623750-93262370 to be up.. 2024-11-10 19:30:00,271 - DEBUG - VM is in ACTIVE state now 2024-11-10 19:30:00,271 - INFO - VM name : ctest-TestRoutersBasic-07623750-93262370 2024-11-10 19:30:00,364 - DEBUG - VM ctest-TestRoutersBasic-07623750-93262370 ID is 91c61229-1966-4c30-a689-a2c9cab063e5 2024-11-10 19:30:00,365 - DEBUG - VM ctest-TestRoutersBasic-07623750-93262370 launched on Node cn-jenkins-deploy-platform-ansible-os-2261-1 2024-11-10 19:30:00,448 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/91c61229-1966-4c30-a689-a2c9cab063e5 2024-11-10 19:30:00,459 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/88950c31-149e-414f-82af-33e1051cde93 2024-11-10 19:30:01,759 - 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.58 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.588 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.588/2.085/3.582/1.497 ms') 2024-11-10 19:30:01,759 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-07623750-93262370 passed 2024-11-10 19:30:01,921 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 19:30:01,921 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-07623750-93262370, IP 146.36.174.131, Port 22 2024-11-10 19:30:02,080 - DEBUG - VM ctest-TestRoutersBasic-07623750-93262370 is ready for SSH connections 2024-11-10 19:30:02,081 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 19:30:02,081 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 146.36.174.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2024-11-10 19:30:02,081 - DEBUG - ping -s 56 -c 3 -W 1 146.36.174.131 2024-11-10 19:30:06,148 - DEBUG - PING 146.36.174.131 (146.36.174.131): 56 data bytes 64 bytes from 146.36.174.131: seq=0 ttl=62 time=5.532 ms 64 bytes from 146.36.174.131: seq=1 ttl=62 time=0.909 ms 64 bytes from 146.36.174.131: seq=2 ttl=62 time=0.913 ms --- 146.36.174.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.909/2.451/5.532 ms 2024-11-10 19:30:06,148 - INFO - Ping to IP 146.36.174.131 from VM ctest-TestRoutersBasic-07623750-27801013 passed 2024-11-10 19:30:06,149 - INFO - Deleting interface with subnet_id 57e0769a-bbaf-4dba-9399-03a15114ef0d, port_id None from router 4323f305-94f9-438e-aed1-dc0e90788607 2024-11-10 19:30:06,394 - INFO - Deleting VM ctest-TestRoutersBasic-07623750-93262370 2024-11-10 19:30:06,485 - INFO - Deleting VM ctest-TestRoutersBasic-07623750-27801013 2024-11-10 19:30:06,573 - INFO - Deleting VN ctest-ext_vn-43146427 2024-11-10 19:30:06,679 - DEBUG - VN dcf1e01e-a781-4a4b-8496-9fd7323bb676 still in use: Unable to complete operation on network dcf1e01e-a781-4a4b-8496-9fd7323bb676. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-beb8bf31-db0a-4c9f-bac6-f758b760b755'] 2024-11-10 19:30:06,679 - WARNING - Deleting VN ctest-ext_vn-43146427 failed..Will retry 2024-11-10 19:30:08,791 - DEBUG - Response for deleting network () 2024-11-10 19:30:08,791 - INFO - Deleting VN ctest-vn-61740968 2024-11-10 19:30:08,905 - DEBUG - Response for deleting network () 2024-11-10 19:30:09,159 - DEBUG - No XMPP flaps were noticed during the test 2024-11-10 19:30:09,160 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2024-11-10 19:30:09,160 - INFO - -------------------------------------------------------------------------------- 2024-11-10 19:30:09,910 - INFO - Deleted project: ctest-TestRoutersBasic-07623750, ID : 1766c705-33b3-45dd-9077-570c34e11b75