2024-08-29 12:29:35,703 - INFO - Reading existing Domain with UUID 479779d4-bad1-45f9-b27d-e7e2347c0996 2024-08-29 12:29:35,721 - INFO - Using existing domain ['admin_domain'](479779d4-bad1-45f9-b27d-e7e2347c0996) 2024-08-29 12:29:35,986 - INFO - Project ctest-TestRoutersBasic-20578127 not found, creating it 2024-08-29 12:29:36,599 - INFO - Created Project:ctest-TestRoutersBasic-20578127, ID : a359fc15-8c51-436e-a8c9-35c3dc85cc3f 2024-08-29 12:29:38,906 - INFO - ================================================================================ 2024-08-29 12:29:38,906 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-29 12:29:38,906 - 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-08-29 12:29:39,313 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.0.0.32': '0'}} with 2024-08-29 12:29:39,313 - INFO - Initial checks done. Running the testcase now 2024-08-29 12:29:39,313 - INFO - 2024-08-29 12:29:40,308 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-20578127 2024-08-29 12:29:40,412 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-20578127 2024-08-29 12:29:40,760 - DEBUG - Reading firewall policy {'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-20578127', 'default']} 2024-08-29 12:29:41,394 - DEBUG - Response for create_network : {'network': {'id': '30bd1352-8018-43ca-99bb-9a96d1787574', 'name': 'ctest-vn-07516751', 'tenant_id': 'a359fc158c51436ea8c935c3dc85cc3f', 'project_id': 'a359fc158c51436ea8c935c3dc85cc3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-20578127', 'ctest-vn-07516751'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-08-29 12:29:41,662 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc6107c6-0bea-4db1-bd4e-fab51806a960', 'name': '', 'tenant_id': 'a359fc158c51436ea8c935c3dc85cc3f', 'network_id': '30bd1352-8018-43ca-99bb-9a96d1787574', 'ip_version': 4, 'cidr': '206.172.163.64/26', 'allocation_pools': [{'start': '206.172.163.66', 'end': '206.172.163.126'}], 'gateway_ip': '206.172.163.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-08-29T12:29:41.535692', 'updated_at': '2024-08-29T12:29:41.535692', 'dns_server_address': '206.172.163.66', 'tags': [], 'project_id': 'a359fc158c51436ea8c935c3dc85cc3f'}} 2024-08-29 12:29:41,735 - INFO - Created VN ctest-vn-07516751 2024-08-29 12:29:41,792 - DEBUG - VN ctest-vn-07516751 UUID is 30bd1352-8018-43ca-99bb-9a96d1787574 2024-08-29 12:29:42,423 - DEBUG - Response for create_network : {'network': {'id': '8e3d51ba-fcc3-4fdc-9cce-0d8aa11af8e8', 'name': 'ctest-ext_vn-89808236', 'tenant_id': 'a359fc158c51436ea8c935c3dc85cc3f', 'project_id': 'a359fc158c51436ea8c935c3dc85cc3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestRoutersBasic-20578127', 'ctest-ext_vn-89808236'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-08-29 12:29:42,683 - DEBUG - Response for create_subnet : {'subnet': {'id': '8295af33-6cbc-4a2c-800a-d916d25e9708', 'name': '', 'tenant_id': 'a359fc158c51436ea8c935c3dc85cc3f', 'network_id': '8e3d51ba-fcc3-4fdc-9cce-0d8aa11af8e8', 'ip_version': 4, 'cidr': '178.144.192.0/26', 'allocation_pools': [{'start': '178.144.192.2', 'end': '178.144.192.62'}], 'gateway_ip': '178.144.192.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-08-29T12:29:42.556811', 'updated_at': '2024-08-29T12:29:42.556811', 'dns_server_address': '178.144.192.2', 'tags': [], 'project_id': 'a359fc158c51436ea8c935c3dc85cc3f'}} 2024-08-29 12:29:42,755 - INFO - Created VN ctest-ext_vn-89808236 2024-08-29 12:29:42,812 - DEBUG - VN ctest-ext_vn-89808236 UUID is 8e3d51ba-fcc3-4fdc-9cce-0d8aa11af8e8 2024-08-29 12:29:43,138 - DEBUG - Services list from nova: [, , ] 2024-08-29 12:29:44,500 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-389-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-389-1) 2024-08-29 12:29:45,989 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-389-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-389-1) 2024-08-29 12:29:46,201 - INFO - Setting gateway for router 61c5c7eb-89ad-4807-a558-a4d194abed50 to network 8e3d51ba-fcc3-4fdc-9cce-0d8aa11af8e8 2024-08-29 12:29:46,370 - INFO - Adding interface with subnet_id dc6107c6-0bea-4db1-bd4e-fab51806a960, port_id None to router 61c5c7eb-89ad-4807-a558-a4d194abed50 2024-08-29 12:29:47,111 - INFO - Waiting for VM ctest-TestRoutersBasic-20578127-33016877 to be up.. 2024-08-29 12:29:47,291 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-29 12:29:52,483 - DEBUG - VM is in ACTIVE state now 2024-08-29 12:29:52,483 - INFO - VM name : ctest-TestRoutersBasic-20578127-33016877 2024-08-29 12:29:52,672 - DEBUG - VM ctest-TestRoutersBasic-20578127-33016877 ID is 8f3a7eeb-7575-46d6-a2d6-ea73afd883a0 2024-08-29 12:29:52,702 - DEBUG - VM ctest-TestRoutersBasic-20578127-33016877 launched on Node cn-jenkins-deploy-platform-juju-os-389-1 2024-08-29 12:29:52,877 - DEBUG - Requesting: https://10.0.0.32:8082/virtual-machine/8f3a7eeb-7575-46d6-a2d6-ea73afd883a0 2024-08-29 12:29:53,285 - DEBUG - Requesting: https://10.0.0.32:8082/virtual-machine/8f3a7eeb-7575-46d6-a2d6-ea73afd883a0 2024-08-29 12:29:53,404 - DEBUG - Requesting: https://10.0.0.32:8082/virtual-machine-interface/ed133bb4-e4f3-4868-8e72-d27e7414719d 2024-08-29 12:29:56,903 - 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') 2024-08-29 12:29:56,903 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-20578127-33016877 failed! 2024-08-29 12:29:56,976 - DEBUG - Gateway for vn admin_domain:ctest-TestRoutersBasic-20578127:ctest-vn-07516751 is 206.172.163.65 and allocation pool is NOT set 2024-08-29 12:29:59,076 - 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=10.9 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.469 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.469/5.701/10.933/5.232 ms') 2024-08-29 12:29:59,076 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-20578127-33016877 passed 2024-08-29 12:29:59,244 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 12:29:59,244 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-20578127-33016877, IP 206.172.163.67, Port 22 2024-08-29 12:29:59,360 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-08-29 12:29:59,542 - DEBUG - VM ctest-TestRoutersBasic-20578127-33016877 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-29 12:30:04,543 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 12:30:04,544 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-20578127-33016877, IP 206.172.163.67, Port 22 2024-08-29 12:30:04,779 - DEBUG - VM ctest-TestRoutersBasic-20578127-33016877 is ready for SSH connections 2024-08-29 12:30:04,779 - INFO - Waiting for VM ctest-TestRoutersBasic-20578127-02135270 to be up.. 2024-08-29 12:30:04,972 - DEBUG - VM is in ACTIVE state now 2024-08-29 12:30:04,972 - INFO - VM name : ctest-TestRoutersBasic-20578127-02135270 2024-08-29 12:30:05,163 - DEBUG - VM ctest-TestRoutersBasic-20578127-02135270 ID is d0062608-6c54-4466-92b0-95f0844cb508 2024-08-29 12:30:05,164 - DEBUG - VM ctest-TestRoutersBasic-20578127-02135270 launched on Node cn-jenkins-deploy-platform-juju-os-389-1 2024-08-29 12:30:05,356 - DEBUG - Requesting: https://10.0.0.32:8082/virtual-machine/d0062608-6c54-4466-92b0-95f0844cb508 2024-08-29 12:30:05,421 - DEBUG - Requesting: https://10.0.0.32:8082/virtual-machine-interface/37433fb7-0740-4b09-a61d-c56d67338cb5 2024-08-29 12:30:06,928 - 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=4.01 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.660 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.660/2.334/4.009/1.674 ms') 2024-08-29 12:30:06,928 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-20578127-02135270 passed 2024-08-29 12:30:07,096 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 12:30:07,096 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-20578127-02135270, IP 178.144.192.3, Port 22 2024-08-29 12:30:07,320 - DEBUG - VM ctest-TestRoutersBasic-20578127-02135270 is ready for SSH connections 2024-08-29 12:30:07,321 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 12:30:07,321 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 178.144.192.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-08-29 12:30:07,321 - DEBUG - ping -s 56 -c 3 -W 1 178.144.192.3 2024-08-29 12:30:11,138 - DEBUG - PING 178.144.192.3 (178.144.192.3): 56 data bytes 64 bytes from 178.144.192.3: seq=0 ttl=62 time=9.741 ms 64 bytes from 178.144.192.3: seq=1 ttl=62 time=1.411 ms 64 bytes from 178.144.192.3: seq=2 ttl=62 time=1.674 ms --- 178.144.192.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.411/4.275/9.741 ms 2024-08-29 12:30:11,138 - INFO - Ping to IP 178.144.192.3 from VM ctest-TestRoutersBasic-20578127-33016877 passed 2024-08-29 12:30:11,138 - INFO - Deleting interface with subnet_id dc6107c6-0bea-4db1-bd4e-fab51806a960, port_id None from router 61c5c7eb-89ad-4807-a558-a4d194abed50 2024-08-29 12:30:11,613 - INFO - Deleting VM ctest-TestRoutersBasic-20578127-02135270 2024-08-29 12:30:11,754 - INFO - Deleting VM ctest-TestRoutersBasic-20578127-33016877 2024-08-29 12:30:11,908 - INFO - Deleting VN ctest-ext_vn-89808236 2024-08-29 12:30:12,188 - DEBUG - VN 8e3d51ba-fcc3-4fdc-9cce-0d8aa11af8e8 still in use: Unable to complete operation on network 8e3d51ba-fcc3-4fdc-9cce-0d8aa11af8e8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-821eccb0-886e-4716-97c8-20a46373568c'] 2024-08-29 12:30:12,188 - WARNING - Deleting VN ctest-ext_vn-89808236 failed..Will retry 2024-08-29 12:30:14,408 - DEBUG - Response for deleting network () 2024-08-29 12:30:14,408 - INFO - Deleting VN ctest-vn-07516751 2024-08-29 12:30:14,624 - DEBUG - Response for deleting network () 2024-08-29 12:30:15,026 - DEBUG - No XMPP flaps were noticed during the test
2024-08-29 12:30:15,026 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:37]
2024-08-29 12:30:15,026 - INFO - -------------------------------------------------------------------------------- 2024-08-29 12:30:15,968 - INFO - Deleted project: ctest-TestRoutersBasic-20578127, ID : a359fc15-8c51-436e-a8c9-35c3dc85cc3f