2024-09-19 16:57:04,730 - INFO - Domain Default found not creating 2024-09-19 16:57:04,908 - INFO - Project ctest-TestRoutersBasic-90511972 not found, creating it 2024-09-19 16:57:05,422 - INFO - Created Project:ctest-TestRoutersBasic-90511972, ID : 02e8de64-021a-4c3c-a269-0c24cae2c4c7 2024-09-19 16:57:07,187 - INFO - ================================================================================ 2024-09-19 16:57:07,187 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-19 16:57:07,187 - 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-19 16:57:07,458 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.6': '0'}} with 2024-09-19 16:57:07,458 - INFO - Initial checks done. Running the testcase now 2024-09-19 16:57:07,459 - INFO - 2024-09-19 16:57:08,290 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-90511972 2024-09-19 16:57:08,390 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-90511972 2024-09-19 16:57:08,750 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90511972', 'default']} 2024-09-19 16:57:09,085 - DEBUG - Response for create_network : {'network': {'id': 'c6771106-0c8f-4d1a-9b71-fa1d06552c4c', 'name': 'ctest-vn-59643706', 'tenant_id': '02e8de64021a4c3ca2690c24cae2c4c7', 'project_id': '02e8de64021a4c3ca2690c24cae2c4c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90511972', 'ctest-vn-59643706'], 'port_security_enabled': True, 'description': ''}} 2024-09-19 16:57:09,302 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dd1a345b-1342-41db-bd48-22ed39bf90f9', 'name': '', 'tenant_id': '02e8de64021a4c3ca2690c24cae2c4c7', 'network_id': 'c6771106-0c8f-4d1a-9b71-fa1d06552c4c', 'ip_version': 4, 'cidr': '14.42.115.0/26', 'allocation_pools': [{'start': '14.42.115.2', 'end': '14.42.115.62'}], 'gateway_ip': '14.42.115.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.42.115.2', 'tags': [], 'project_id': '02e8de64021a4c3ca2690c24cae2c4c7'}} 2024-09-19 16:57:09,326 - INFO - Created VN ctest-vn-59643706 2024-09-19 16:57:09,386 - DEBUG - VN ctest-vn-59643706 UUID is c6771106-0c8f-4d1a-9b71-fa1d06552c4c 2024-09-19 16:57:09,765 - DEBUG - Response for create_network : {'network': {'id': '512e4989-dea2-4731-ae1d-61befdfd87d8', 'name': 'ctest-ext_vn-02557547', 'tenant_id': '02e8de64021a4c3ca2690c24cae2c4c7', 'project_id': '02e8de64021a4c3ca2690c24cae2c4c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90511972', 'ctest-ext_vn-02557547'], 'port_security_enabled': True, 'description': ''}} 2024-09-19 16:57:10,007 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5344557-ab4f-494d-8ab4-0f543302b660', 'name': '', 'tenant_id': '02e8de64021a4c3ca2690c24cae2c4c7', 'network_id': '512e4989-dea2-4731-ae1d-61befdfd87d8', 'ip_version': 4, 'cidr': '121.212.240.64/26', 'allocation_pools': [{'start': '121.212.240.66', 'end': '121.212.240.126'}], 'gateway_ip': '121.212.240.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.212.240.66', 'tags': [], 'project_id': '02e8de64021a4c3ca2690c24cae2c4c7'}} 2024-09-19 16:57:10,046 - INFO - Created VN ctest-ext_vn-02557547 2024-09-19 16:57:10,106 - DEBUG - VN ctest-ext_vn-02557547 UUID is 512e4989-dea2-4731-ae1d-61befdfd87d8 2024-09-19 16:57:10,298 - DEBUG - Services list from nova: [, , ] 2024-09-19 16:57:11,469 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2005-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2005-1) 2024-09-19 16:57:12,813 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2005-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2005-1) 2024-09-19 16:57:12,900 - INFO - Setting gateway for router cc8f9fc1-a0b8-4522-9eca-55955702693a to network 512e4989-dea2-4731-ae1d-61befdfd87d8 2024-09-19 16:57:12,992 - INFO - Adding interface with subnet_id dd1a345b-1342-41db-bd48-22ed39bf90f9, port_id None to router cc8f9fc1-a0b8-4522-9eca-55955702693a 2024-09-19 16:57:13,550 - INFO - Waiting for VM ctest-TestRoutersBasic-90511972-30926262 to be up.. 2024-09-19 16:57:13,814 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-19 16:57:18,902 - DEBUG - VM is in ACTIVE state now 2024-09-19 16:57:18,902 - INFO - VM name : ctest-TestRoutersBasic-90511972-30926262 2024-09-19 16:57:18,984 - DEBUG - VM ctest-TestRoutersBasic-90511972-30926262 ID is 8383d836-5ce4-41f0-8188-edbba4c165ef 2024-09-19 16:57:19,004 - DEBUG - VM ctest-TestRoutersBasic-90511972-30926262 launched on Node cn-jenkins-deploy-platform-ansible-os-2005-1 2024-09-19 16:57:19,092 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/8383d836-5ce4-41f0-8188-edbba4c165ef 2024-09-19 16:57:19,438 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/8383d836-5ce4-41f0-8188-edbba4c165ef 2024-09-19 16:57:19,480 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/7b12bed8-81c2-4c6e-a812-cb39d9df8f6f 2024-09-19 16:57:22,752 - 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 1018ms') 2024-09-19 16:57:22,752 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-90511972-30926262 failed! 2024-09-19 16:57:22,814 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-90511972:ctest-vn-59643706 is 14.42.115.1 and allocation pool is NOT set 2024-09-19 16:57:24,883 - 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.68 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.63 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 = 2.630/3.154/3.678/0.524 ms') 2024-09-19 16:57:24,883 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-90511972-30926262 passed 2024-09-19 16:57:25,042 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 16:57:25,042 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-90511972-30926262, IP 14.42.115.3, Port 22 2024-09-19 16:57:25,198 - DEBUG - VM ctest-TestRoutersBasic-90511972-30926262 is ready for SSH connections 2024-09-19 16:57:25,198 - INFO - Waiting for VM ctest-TestRoutersBasic-90511972-37876425 to be up.. 2024-09-19 16:57:25,285 - DEBUG - VM is in ACTIVE state now 2024-09-19 16:57:25,286 - INFO - VM name : ctest-TestRoutersBasic-90511972-37876425 2024-09-19 16:57:25,375 - DEBUG - VM ctest-TestRoutersBasic-90511972-37876425 ID is f7101d78-2060-4dc3-897c-9f183cb1ccaf 2024-09-19 16:57:25,375 - DEBUG - VM ctest-TestRoutersBasic-90511972-37876425 launched on Node cn-jenkins-deploy-platform-ansible-os-2005-1 2024-09-19 16:57:25,458 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/f7101d78-2060-4dc3-897c-9f183cb1ccaf 2024-09-19 16:57:25,469 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/2014fa8c-30e0-4d11-b83a-8a3be56f72b4 2024-09-19 16:57:26,732 - 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.61 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.767 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.767/2.190/3.614/1.423 ms') 2024-09-19 16:57:26,732 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-90511972-37876425 passed 2024-09-19 16:57:26,894 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 16:57:26,894 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-90511972-37876425, IP 121.212.240.67, Port 22 2024-09-19 16:57:27,059 - DEBUG - VM ctest-TestRoutersBasic-90511972-37876425 is ready for SSH connections 2024-09-19 16:57:27,059 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 16:57:27,060 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 121.212.240.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-09-19 16:57:27,060 - DEBUG - ping -s 56 -c 3 -W 1 121.212.240.67 2024-09-19 16:57:30,801 - DEBUG - PING 121.212.240.67 (121.212.240.67): 56 data bytes 64 bytes from 121.212.240.67: seq=0 ttl=62 time=5.697 ms 64 bytes from 121.212.240.67: seq=1 ttl=62 time=0.969 ms 64 bytes from 121.212.240.67: seq=2 ttl=62 time=0.955 ms --- 121.212.240.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.955/2.540/5.697 ms 2024-09-19 16:57:30,801 - INFO - Ping to IP 121.212.240.67 from VM ctest-TestRoutersBasic-90511972-30926262 passed 2024-09-19 16:57:30,801 - INFO - Deleting interface with subnet_id dd1a345b-1342-41db-bd48-22ed39bf90f9, port_id None from router cc8f9fc1-a0b8-4522-9eca-55955702693a 2024-09-19 16:57:31,075 - INFO - Deleting VM ctest-TestRoutersBasic-90511972-37876425 2024-09-19 16:57:31,177 - INFO - Deleting VM ctest-TestRoutersBasic-90511972-30926262 2024-09-19 16:57:31,287 - INFO - Deleting VN ctest-ext_vn-02557547 2024-09-19 16:57:31,386 - DEBUG - VN 512e4989-dea2-4731-ae1d-61befdfd87d8 still in use: Unable to complete operation on network 512e4989-dea2-4731-ae1d-61befdfd87d8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-bedeadb8-6848-4cdc-b871-17e13767a948'] 2024-09-19 16:57:31,386 - WARNING - Deleting VN ctest-ext_vn-02557547 failed..Will retry 2024-09-19 16:57:33,511 - DEBUG - Response for deleting network () 2024-09-19 16:57:33,511 - INFO - Deleting VN ctest-vn-59643706 2024-09-19 16:57:33,640 - DEBUG - Response for deleting network () 2024-09-19 16:57:33,896 - DEBUG - No XMPP flaps were noticed during the test
2024-09-19 16:57:33,896 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-09-19 16:57:33,896 - INFO - -------------------------------------------------------------------------------- 2024-09-19 16:57:34,669 - INFO - Deleted project: ctest-TestRoutersBasic-90511972, ID : 02e8de64-021a-4c3c-a269-0c24cae2c4c7