2024-09-11 16:06:36,831 - INFO - Domain Default found not creating 2024-09-11 16:06:37,015 - INFO - Project ctest-TestRoutersBasic-26371884 not found, creating it 2024-09-11 16:06:37,496 - INFO - Created Project:ctest-TestRoutersBasic-26371884, ID : d7d7571b-c43a-4992-b6e7-7c2fdbcbc3f7 2024-09-11 16:06:39,204 - INFO - ================================================================================ 2024-09-11 16:06:39,205 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-11 16:06:39,205 - 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-11 16:06:39,467 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with 2024-09-11 16:06:39,468 - INFO - Initial checks done. Running the testcase now 2024-09-11 16:06:39,468 - INFO - 2024-09-11 16:06:40,226 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-26371884 2024-09-11 16:06:40,332 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-26371884 2024-09-11 16:06:40,688 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26371884', 'default']} 2024-09-11 16:06:41,028 - DEBUG - Response for create_network : {'network': {'id': 'a89e7d1b-7370-4e3c-afde-8fe4753b70f6', 'name': 'ctest-vn-14709926', 'tenant_id': 'd7d7571bc43a4992b6e77c2fdbcbc3f7', 'project_id': 'd7d7571bc43a4992b6e77c2fdbcbc3f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26371884', 'ctest-vn-14709926'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 16:06:41,204 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b9546c79-cbe6-4c35-8b04-c754bbfd17c5', 'name': '', 'tenant_id': 'd7d7571bc43a4992b6e77c2fdbcbc3f7', 'network_id': 'a89e7d1b-7370-4e3c-afde-8fe4753b70f6', 'ip_version': 4, 'cidr': '192.122.58.64/26', 'allocation_pools': [{'start': '192.122.58.66', 'end': '192.122.58.126'}], 'gateway_ip': '192.122.58.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.122.58.66', 'tags': [], 'project_id': 'd7d7571bc43a4992b6e77c2fdbcbc3f7'}} 2024-09-11 16:06:41,224 - INFO - Created VN ctest-vn-14709926 2024-09-11 16:06:41,284 - DEBUG - VN ctest-vn-14709926 UUID is a89e7d1b-7370-4e3c-afde-8fe4753b70f6 2024-09-11 16:06:41,647 - DEBUG - Response for create_network : {'network': {'id': '78d2848c-1e79-4f89-a27e-9ceadcbe742b', 'name': 'ctest-ext_vn-74941203', 'tenant_id': 'd7d7571bc43a4992b6e77c2fdbcbc3f7', 'project_id': 'd7d7571bc43a4992b6e77c2fdbcbc3f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26371884', 'ctest-ext_vn-74941203'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 16:06:41,828 - DEBUG - Response for create_subnet : {'subnet': {'id': '4676c580-af7f-417a-a310-7ab9869239e5', 'name': '', 'tenant_id': 'd7d7571bc43a4992b6e77c2fdbcbc3f7', 'network_id': '78d2848c-1e79-4f89-a27e-9ceadcbe742b', 'ip_version': 4, 'cidr': '42.237.103.128/26', 'allocation_pools': [{'start': '42.237.103.130', 'end': '42.237.103.190'}], 'gateway_ip': '42.237.103.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.237.103.130', 'tags': [], 'project_id': 'd7d7571bc43a4992b6e77c2fdbcbc3f7'}} 2024-09-11 16:06:41,848 - INFO - Created VN ctest-ext_vn-74941203 2024-09-11 16:06:41,908 - DEBUG - VN ctest-ext_vn-74941203 UUID is 78d2848c-1e79-4f89-a27e-9ceadcbe742b 2024-09-11 16:06:42,105 - DEBUG - Services list from nova: [, , ] 2024-09-11 16:06:43,207 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1898-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1898-1) 2024-09-11 16:06:44,607 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1898-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1898-1) 2024-09-11 16:06:44,693 - INFO - Setting gateway for router 1c2835fa-b11c-4e23-bd1a-77099939b621 to network 78d2848c-1e79-4f89-a27e-9ceadcbe742b 2024-09-11 16:06:44,786 - INFO - Adding interface with subnet_id b9546c79-cbe6-4c35-8b04-c754bbfd17c5, port_id None to router 1c2835fa-b11c-4e23-bd1a-77099939b621 2024-09-11 16:06:45,371 - INFO - Waiting for VM ctest-TestRoutersBasic-26371884-82307028 to be up.. 2024-09-11 16:06:45,638 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-11 16:06:50,726 - DEBUG - VM is in ACTIVE state now 2024-09-11 16:06:50,726 - INFO - VM name : ctest-TestRoutersBasic-26371884-82307028 2024-09-11 16:06:50,820 - DEBUG - VM ctest-TestRoutersBasic-26371884-82307028 ID is f85b8c59-e09f-43ad-95a8-728ef9089d20 2024-09-11 16:06:50,839 - DEBUG - VM ctest-TestRoutersBasic-26371884-82307028 launched on Node cn-jenkins-deploy-platform-ansible-os-1898-1 2024-09-11 16:06:50,928 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/f85b8c59-e09f-43ad-95a8-728ef9089d20 2024-09-11 16:06:51,232 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/f85b8c59-e09f-43ad-95a8-728ef9089d20 2024-09-11 16:06:51,277 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/68e4901a-46e1-4a3e-82b2-dff51890092d 2024-09-11 16:06:54,547 - 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 1009ms') 2024-09-11 16:06:54,547 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-26371884-82307028 failed! 2024-09-11 16:06:54,608 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-26371884:ctest-vn-14709926 is 192.122.58.65 and allocation pool is NOT set 2024-09-11 16:06:56,670 - 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=8.63 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.32 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.324/4.975/8.626/3.651 ms') 2024-09-11 16:06:56,670 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-26371884-82307028 passed 2024-09-11 16:06:56,836 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 16:06:56,837 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-26371884-82307028, IP 192.122.58.67, Port 22 2024-09-11 16:06:56,903 - 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-09-11 16:06:57,007 - DEBUG - VM ctest-TestRoutersBasic-26371884-82307028 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-11 16:07:02,008 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 16:07:02,008 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-26371884-82307028, IP 192.122.58.67, Port 22 2024-09-11 16:07:02,176 - DEBUG - VM ctest-TestRoutersBasic-26371884-82307028 is ready for SSH connections 2024-09-11 16:07:02,176 - INFO - Waiting for VM ctest-TestRoutersBasic-26371884-77067648 to be up.. 2024-09-11 16:07:02,268 - DEBUG - VM is in ACTIVE state now 2024-09-11 16:07:02,268 - INFO - VM name : ctest-TestRoutersBasic-26371884-77067648 2024-09-11 16:07:02,355 - DEBUG - VM ctest-TestRoutersBasic-26371884-77067648 ID is 304063a7-4559-4c43-a25b-17169f13d2ef 2024-09-11 16:07:02,355 - DEBUG - VM ctest-TestRoutersBasic-26371884-77067648 launched on Node cn-jenkins-deploy-platform-ansible-os-1898-1 2024-09-11 16:07:02,441 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/304063a7-4559-4c43-a25b-17169f13d2ef 2024-09-11 16:07:02,454 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/4b3a533a-ba40-4e90-b73b-313b139ad1a5 2024-09-11 16:07:03,720 - 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=2.68 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.429 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.429/1.554/2.680/1.125 ms') 2024-09-11 16:07:03,720 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-26371884-77067648 passed 2024-09-11 16:07:03,881 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 16:07:03,881 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-26371884-77067648, IP 42.237.103.131, Port 22 2024-09-11 16:07:04,051 - DEBUG - VM ctest-TestRoutersBasic-26371884-77067648 is ready for SSH connections 2024-09-11 16:07:04,052 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 16:07:04,052 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 42.237.103.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-09-11 16:07:04,052 - DEBUG - ping -s 56 -c 3 -W 1 42.237.103.131 2024-09-11 16:07:08,051 - DEBUG - PING 42.237.103.131 (42.237.103.131): 56 data bytes 64 bytes from 42.237.103.131: seq=0 ttl=62 time=6.032 ms 64 bytes from 42.237.103.131: seq=1 ttl=62 time=1.005 ms 64 bytes from 42.237.103.131: seq=2 ttl=62 time=0.909 ms --- 42.237.103.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.909/2.648/6.032 ms 2024-09-11 16:07:08,051 - INFO - Ping to IP 42.237.103.131 from VM ctest-TestRoutersBasic-26371884-82307028 passed 2024-09-11 16:07:08,051 - INFO - Deleting interface with subnet_id b9546c79-cbe6-4c35-8b04-c754bbfd17c5, port_id None from router 1c2835fa-b11c-4e23-bd1a-77099939b621 2024-09-11 16:07:08,300 - INFO - Deleting VM ctest-TestRoutersBasic-26371884-77067648 2024-09-11 16:07:08,369 - INFO - Deleting VM ctest-TestRoutersBasic-26371884-82307028 2024-09-11 16:07:08,453 - INFO - Deleting VN ctest-ext_vn-74941203 2024-09-11 16:07:08,543 - DEBUG - VN 78d2848c-1e79-4f89-a27e-9ceadcbe742b still in use: Unable to complete operation on network 78d2848c-1e79-4f89-a27e-9ceadcbe742b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-13f1a262-ba00-4e97-ac8c-519cecac8350'] 2024-09-11 16:07:08,543 - WARNING - Deleting VN ctest-ext_vn-74941203 failed..Will retry 2024-09-11 16:07:10,664 - DEBUG - Response for deleting network () 2024-09-11 16:07:10,664 - INFO - Deleting VN ctest-vn-14709926 2024-09-11 16:07:10,773 - DEBUG - Response for deleting network () 2024-09-11 16:07:11,026 - DEBUG - No XMPP flaps were noticed during the test 2024-09-11 16:07:11,027 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2024-09-11 16:07:11,027 - INFO - -------------------------------------------------------------------------------- 2024-09-11 16:07:11,823 - INFO - Deleted project: ctest-TestRoutersBasic-26371884, ID : d7d7571b-c43a-4992-b6e7-7c2fdbcbc3f7