2025-01-09 07:33:46,584 - INFO - Domain Default found not creating 2025-01-09 07:33:46,735 - INFO - Project ctest-TestRoutersBasic-98485938 not found, creating it 2025-01-09 07:33:47,106 - INFO - Created Project:ctest-TestRoutersBasic-98485938, ID : 41eca810-f685-470d-9043-2d3b14fe3bdb 2025-01-09 07:33:48,601 - INFO - ================================================================================ 2025-01-09 07:33:48,601 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-09 07:33:48,601 - 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 2025-01-09 07:33:48,864 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.31': '0'}} with 2025-01-09 07:33:48,864 - INFO - Initial checks done. Running the testcase now 2025-01-09 07:33:48,864 - INFO - 2025-01-09 07:33:49,604 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-98485938 2025-01-09 07:33:49,691 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-98485938 2025-01-09 07:33:49,796 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-98485938', 'default']} 2025-01-09 07:33:50,027 - DEBUG - Response for create_network : {'network': {'id': '22d26d0b-769c-4895-b859-1c7718126e96', 'name': 'ctest-vn-65470355', 'tenant_id': '41eca810f685470d90432d3b14fe3bdb', 'project_id': '41eca810f685470d90432d3b14fe3bdb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-98485938', 'ctest-vn-65470355'], 'port_security_enabled': True, 'description': ''}} 2025-01-09 07:33:50,241 - DEBUG - Response for create_subnet : {'subnet': {'id': '38599dab-4732-46f4-a592-fc71bb26e981', 'name': '', 'tenant_id': '41eca810f685470d90432d3b14fe3bdb', 'network_id': '22d26d0b-769c-4895-b859-1c7718126e96', 'ip_version': 4, 'cidr': '56.253.35.128/26', 'allocation_pools': [{'start': '56.253.35.130', 'end': '56.253.35.190'}], 'gateway_ip': '56.253.35.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.253.35.130', 'tags': [], 'project_id': '41eca810f685470d90432d3b14fe3bdb'}} 2025-01-09 07:33:50,264 - INFO - Created VN ctest-vn-65470355 2025-01-09 07:33:50,277 - DEBUG - VN ctest-vn-65470355 UUID is 22d26d0b-769c-4895-b859-1c7718126e96 2025-01-09 07:33:50,580 - DEBUG - Response for create_network : {'network': {'id': '56acbd41-25ba-4f55-9dad-6b5102aae69f', 'name': 'ctest-ext_vn-85236460', 'tenant_id': '41eca810f685470d90432d3b14fe3bdb', 'project_id': '41eca810f685470d90432d3b14fe3bdb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-98485938', 'ctest-ext_vn-85236460'], 'port_security_enabled': True, 'description': ''}} 2025-01-09 07:33:50,805 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd155353-865a-4966-a76e-0bb21daf991f', 'name': '', 'tenant_id': '41eca810f685470d90432d3b14fe3bdb', 'network_id': '56acbd41-25ba-4f55-9dad-6b5102aae69f', 'ip_version': 4, 'cidr': '81.231.56.128/26', 'allocation_pools': [{'start': '81.231.56.130', 'end': '81.231.56.190'}], 'gateway_ip': '81.231.56.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.231.56.130', 'tags': [], 'project_id': '41eca810f685470d90432d3b14fe3bdb'}} 2025-01-09 07:33:50,826 - INFO - Created VN ctest-ext_vn-85236460 2025-01-09 07:33:50,840 - DEBUG - VN ctest-ext_vn-85236460 UUID is 56acbd41-25ba-4f55-9dad-6b5102aae69f 2025-01-09 07:33:50,962 - DEBUG - Services list from nova: [, , ] 2025-01-09 07:33:51,946 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2578-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2578-1) 2025-01-09 07:33:53,047 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2578-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2578-1) 2025-01-09 07:33:53,132 - INFO - Setting gateway for router 5b809a8c-95e8-41ec-b860-34e55240d06b to network 56acbd41-25ba-4f55-9dad-6b5102aae69f 2025-01-09 07:33:53,217 - INFO - Adding interface with subnet_id 38599dab-4732-46f4-a592-fc71bb26e981, port_id None to router 5b809a8c-95e8-41ec-b860-34e55240d06b 2025-01-09 07:33:53,851 - INFO - Waiting for VM ctest-TestRoutersBasic-98485938-76603733 to be up.. 2025-01-09 07:33:54,026 - DEBUG - VM is in ACTIVE state now 2025-01-09 07:33:54,026 - INFO - VM name : ctest-TestRoutersBasic-98485938-76603733 2025-01-09 07:33:54,177 - DEBUG - VM ctest-TestRoutersBasic-98485938-76603733 ID is 2707e080-f1ed-433a-a919-94a4594631c9 2025-01-09 07:33:54,210 - DEBUG - VM ctest-TestRoutersBasic-98485938-76603733 launched on Node cn-jenkins-deploy-platform-ansible-os-2578-1 2025-01-09 07:33:54,418 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/2707e080-f1ed-433a-a919-94a4594631c9 2025-01-09 07:33:54,721 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/2707e080-f1ed-433a-a919-94a4594631c9 2025-01-09 07:33:54,775 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/08822ad6-a6ca-44f2-a84f-deb9b7d5e81b 2025-01-09 07:33:58,027 - 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 1010ms') 2025-01-09 07:33:58,027 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-98485938-76603733 failed! 2025-01-09 07:33:58,042 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-98485938:ctest-vn-65470355 is 56.253.35.129 and allocation pool is NOT set 2025-01-09 07:34:02,124 - 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 1022ms') 2025-01-09 07:34:02,125 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-98485938-76603733 failed! 2025-01-09 07:34:02,142 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-98485938:ctest-vn-65470355 is 56.253.35.129 and allocation pool is NOT set 2025-01-09 07:34:04,212 - 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=4.67 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.91 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 = 1.912/3.293/4.674/1.381 ms') 2025-01-09 07:34:04,212 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-98485938-76603733 passed 2025-01-09 07:34:04,241 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 07:34:04,241 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-98485938-76603733, IP 56.253.35.131, Port 22 2025-01-09 07:34:04,406 - DEBUG - VM ctest-TestRoutersBasic-98485938-76603733 is ready for SSH connections 2025-01-09 07:34:04,406 - INFO - Waiting for VM ctest-TestRoutersBasic-98485938-05839706 to be up.. 2025-01-09 07:34:04,486 - DEBUG - VM is in ACTIVE state now 2025-01-09 07:34:04,486 - INFO - VM name : ctest-TestRoutersBasic-98485938-05839706 2025-01-09 07:34:04,567 - DEBUG - VM ctest-TestRoutersBasic-98485938-05839706 ID is a5dbfb9b-38a4-4ec1-97a6-c26be66f6428 2025-01-09 07:34:04,568 - DEBUG - VM ctest-TestRoutersBasic-98485938-05839706 launched on Node cn-jenkins-deploy-platform-ansible-os-2578-1 2025-01-09 07:34:04,646 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/a5dbfb9b-38a4-4ec1-97a6-c26be66f6428 2025-01-09 07:34:04,655 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/5cbf333a-9853-4149-b81b-0ecede724550 2025-01-09 07:34:05,802 - 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=5.48 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.624 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.624/3.050/5.477/2.426 ms') 2025-01-09 07:34:05,802 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-98485938-05839706 passed 2025-01-09 07:34:05,835 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 07:34:05,835 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-98485938-05839706, IP 81.231.56.131, Port 22 2025-01-09 07:34:06,001 - DEBUG - VM ctest-TestRoutersBasic-98485938-05839706 is ready for SSH connections 2025-01-09 07:34:06,001 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-09 07:34:06,001 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 81.231.56.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2025-01-09 07:34:06,001 - DEBUG - ping -s 56 -c 3 -W 1 81.231.56.131 2025-01-09 07:34:10,027 - DEBUG - PING 81.231.56.131 (81.231.56.131): 56 data bytes 64 bytes from 81.231.56.131: seq=0 ttl=62 time=7.398 ms 64 bytes from 81.231.56.131: seq=1 ttl=62 time=0.850 ms 64 bytes from 81.231.56.131: seq=2 ttl=62 time=0.995 ms --- 81.231.56.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.850/3.081/7.398 ms 2025-01-09 07:34:10,027 - INFO - Ping to IP 81.231.56.131 from VM ctest-TestRoutersBasic-98485938-76603733 passed 2025-01-09 07:34:10,027 - INFO - Deleting interface with subnet_id 38599dab-4732-46f4-a592-fc71bb26e981, port_id None from router 5b809a8c-95e8-41ec-b860-34e55240d06b 2025-01-09 07:34:10,336 - INFO - Deleting VM ctest-TestRoutersBasic-98485938-05839706 2025-01-09 07:34:10,418 - INFO - Deleting VM ctest-TestRoutersBasic-98485938-76603733 2025-01-09 07:34:10,507 - INFO - Deleting VN ctest-ext_vn-85236460 2025-01-09 07:34:10,595 - DEBUG - VN 56acbd41-25ba-4f55-9dad-6b5102aae69f still in use: Unable to complete operation on network 56acbd41-25ba-4f55-9dad-6b5102aae69f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-48e7d789-1af8-4f19-bfd7-f2ad8a82e98f'] 2025-01-09 07:34:10,595 - WARNING - Deleting VN ctest-ext_vn-85236460 failed..Will retry 2025-01-09 07:34:12,726 - DEBUG - Response for deleting network () 2025-01-09 07:34:12,726 - INFO - Deleting VN ctest-vn-65470355 2025-01-09 07:34:12,849 - DEBUG - Response for deleting network () 2025-01-09 07:34:13,107 - DEBUG - No XMPP flaps were noticed during the test
2025-01-09 07:34:13,107 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25]
2025-01-09 07:34:13,107 - INFO - -------------------------------------------------------------------------------- 2025-01-09 07:34:13,651 - INFO - Deleted project: ctest-TestRoutersBasic-98485938, ID : 41eca810-f685-470d-9043-2d3b14fe3bdb