2024-09-13 14:38:29,375 - INFO - Domain Default found not creating 2024-09-13 14:38:29,545 - INFO - Project ctest-TestRoutersBasic-68398250 not found, creating it 2024-09-13 14:38:30,033 - INFO - Created Project:ctest-TestRoutersBasic-68398250, ID : 1999a91c-c46e-48d6-8223-58f06bc88e90 2024-09-13 14:38:32,851 - INFO - ================================================================================ 2024-09-13 14:38:32,851 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-13 14:38:32,851 - 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-13 14:38:33,117 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.20': '0'}} with 2024-09-13 14:38:33,117 - INFO - Initial checks done. Running the testcase now 2024-09-13 14:38:33,117 - INFO - 2024-09-13 14:38:33,840 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-68398250 2024-09-13 14:38:33,940 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-68398250 2024-09-13 14:38:34,271 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68398250', 'default']} 2024-09-13 14:38:34,581 - DEBUG - Response for create_network : {'network': {'id': 'd8a32f88-9880-44fe-a33a-6f5982ef20eb', 'name': 'ctest-vn-22968754', 'tenant_id': '1999a91cc46e48d6822358f06bc88e90', 'project_id': '1999a91cc46e48d6822358f06bc88e90', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68398250', 'ctest-vn-22968754'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 14:38:34,795 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e479eb14-dc0f-4eb5-9b1e-b2ba0323f2c9', 'name': '', 'tenant_id': '1999a91cc46e48d6822358f06bc88e90', 'network_id': 'd8a32f88-9880-44fe-a33a-6f5982ef20eb', 'ip_version': 4, 'cidr': '196.73.28.128/26', 'allocation_pools': [{'start': '196.73.28.130', 'end': '196.73.28.190'}], 'gateway_ip': '196.73.28.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.73.28.130', 'tags': [], 'project_id': '1999a91cc46e48d6822358f06bc88e90'}} 2024-09-13 14:38:34,815 - INFO - Created VN ctest-vn-22968754 2024-09-13 14:38:34,876 - DEBUG - VN ctest-vn-22968754 UUID is d8a32f88-9880-44fe-a33a-6f5982ef20eb 2024-09-13 14:38:35,225 - DEBUG - Response for create_network : {'network': {'id': 'df5b6b84-d15a-4c38-b03d-dec2f216f37c', 'name': 'ctest-ext_vn-35761023', 'tenant_id': '1999a91cc46e48d6822358f06bc88e90', 'project_id': '1999a91cc46e48d6822358f06bc88e90', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68398250', 'ctest-ext_vn-35761023'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 14:38:35,458 - DEBUG - Response for create_subnet : {'subnet': {'id': '77faf313-d277-4366-86c2-9127f9fc3f69', 'name': '', 'tenant_id': '1999a91cc46e48d6822358f06bc88e90', 'network_id': 'df5b6b84-d15a-4c38-b03d-dec2f216f37c', 'ip_version': 4, 'cidr': '162.7.49.64/26', 'allocation_pools': [{'start': '162.7.49.66', 'end': '162.7.49.126'}], 'gateway_ip': '162.7.49.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.7.49.66', 'tags': [], 'project_id': '1999a91cc46e48d6822358f06bc88e90'}} 2024-09-13 14:38:35,478 - INFO - Created VN ctest-ext_vn-35761023 2024-09-13 14:38:35,535 - DEBUG - VN ctest-ext_vn-35761023 UUID is df5b6b84-d15a-4c38-b03d-dec2f216f37c 2024-09-13 14:38:35,709 - DEBUG - Services list from nova: [, , ] 2024-09-13 14:38:36,750 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1922-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1922-1) 2024-09-13 14:38:37,870 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1922-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1922-1) 2024-09-13 14:38:37,966 - INFO - Setting gateway for router dccde9ef-f939-42e9-b7eb-f9358615d1b6 to network df5b6b84-d15a-4c38-b03d-dec2f216f37c 2024-09-13 14:38:38,038 - INFO - Adding interface with subnet_id e479eb14-dc0f-4eb5-9b1e-b2ba0323f2c9, port_id None to router dccde9ef-f939-42e9-b7eb-f9358615d1b6 2024-09-13 14:38:38,539 - INFO - Waiting for VM ctest-TestRoutersBasic-68398250-97510104 to be up.. 2024-09-13 14:38:38,763 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-13 14:38:43,858 - DEBUG - VM is in ACTIVE state now 2024-09-13 14:38:43,858 - INFO - VM name : ctest-TestRoutersBasic-68398250-97510104 2024-09-13 14:38:43,955 - DEBUG - VM ctest-TestRoutersBasic-68398250-97510104 ID is 617198a8-9f0c-4f79-9213-a54d81adac08 2024-09-13 14:38:43,977 - DEBUG - VM ctest-TestRoutersBasic-68398250-97510104 launched on Node cn-jenkins-deploy-platform-ansible-os-1922-1 2024-09-13 14:38:44,078 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/617198a8-9f0c-4f79-9213-a54d81adac08 2024-09-13 14:38:44,396 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/617198a8-9f0c-4f79-9213-a54d81adac08 2024-09-13 14:38:44,450 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/3341d75f-99fb-438a-81ea-a458c6317531 2024-09-13 14:38:47,765 - 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 1031ms') 2024-09-13 14:38:47,765 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68398250-97510104 failed! 2024-09-13 14:38:47,823 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-68398250:ctest-vn-22968754 is 196.73.28.129 and allocation pool is NOT set 2024-09-13 14:38:49,892 - 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=9.57 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.97 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 = 3.966/6.767/9.568/2.801 ms') 2024-09-13 14:38:49,892 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68398250-97510104 passed 2024-09-13 14:38:50,052 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 14:38:50,052 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68398250-97510104, IP 196.73.28.131, Port 22 2024-09-13 14:38:50,107 - 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-13 14:38:50,193 - DEBUG - VM ctest-TestRoutersBasic-68398250-97510104 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-13 14:38:55,194 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 14:38:55,194 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68398250-97510104, IP 196.73.28.131, Port 22 2024-09-13 14:38:55,347 - DEBUG - VM ctest-TestRoutersBasic-68398250-97510104 is ready for SSH connections 2024-09-13 14:38:55,347 - INFO - Waiting for VM ctest-TestRoutersBasic-68398250-00355716 to be up.. 2024-09-13 14:38:55,423 - DEBUG - VM is in ACTIVE state now 2024-09-13 14:38:55,423 - INFO - VM name : ctest-TestRoutersBasic-68398250-00355716 2024-09-13 14:38:55,496 - DEBUG - VM ctest-TestRoutersBasic-68398250-00355716 ID is c5af58e1-2673-4fe0-b246-8cd488248012 2024-09-13 14:38:55,496 - DEBUG - VM ctest-TestRoutersBasic-68398250-00355716 launched on Node cn-jenkins-deploy-platform-ansible-os-1922-1 2024-09-13 14:38:55,572 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/c5af58e1-2673-4fe0-b246-8cd488248012 2024-09-13 14:38:55,582 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/70e2a0fd-7bd1-41dd-981f-2f201b4b4eb0 2024-09-13 14:38:56,839 - 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.85 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.323 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.323/1.588/2.854/1.265 ms') 2024-09-13 14:38:56,839 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-68398250-00355716 passed 2024-09-13 14:38:56,991 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 14:38:56,992 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68398250-00355716, IP 162.7.49.67, Port 22 2024-09-13 14:38:57,147 - DEBUG - VM ctest-TestRoutersBasic-68398250-00355716 is ready for SSH connections 2024-09-13 14:38:57,147 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 14:38:57,148 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 162.7.49.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-09-13 14:38:57,148 - DEBUG - ping -s 56 -c 3 -W 1 162.7.49.67 2024-09-13 14:39:02,244 - DEBUG - PING 162.7.49.67 (162.7.49.67): 56 data bytes 64 bytes from 162.7.49.67: seq=0 ttl=62 time=5.337 ms 64 bytes from 162.7.49.67: seq=1 ttl=62 time=0.871 ms 64 bytes from 162.7.49.67: seq=2 ttl=62 time=1.137 ms --- 162.7.49.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.871/2.448/5.337 ms 2024-09-13 14:39:02,244 - INFO - Ping to IP 162.7.49.67 from VM ctest-TestRoutersBasic-68398250-97510104 passed 2024-09-13 14:39:02,244 - INFO - Deleting interface with subnet_id e479eb14-dc0f-4eb5-9b1e-b2ba0323f2c9, port_id None from router dccde9ef-f939-42e9-b7eb-f9358615d1b6 2024-09-13 14:39:02,520 - INFO - Deleting VM ctest-TestRoutersBasic-68398250-00355716 2024-09-13 14:39:02,622 - INFO - Deleting VM ctest-TestRoutersBasic-68398250-97510104 2024-09-13 14:39:02,713 - INFO - Deleting VN ctest-ext_vn-35761023 2024-09-13 14:39:05,036 - DEBUG - VN df5b6b84-d15a-4c38-b03d-dec2f216f37c still in use: Unable to complete operation on network df5b6b84-d15a-4c38-b03d-dec2f216f37c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-060a72ee-0845-4c2b-bb5d-778054ec496a'] 2024-09-13 14:39:05,036 - WARNING - Deleting VN ctest-ext_vn-35761023 failed..Will retry 2024-09-13 14:39:07,729 - DEBUG - Response for deleting network () 2024-09-13 14:39:07,729 - INFO - Deleting VN ctest-vn-22968754 2024-09-13 14:39:07,846 - DEBUG - Response for deleting network () 2024-09-13 14:39:08,107 - DEBUG - No XMPP flaps were noticed during the test 2024-09-13 14:39:08,107 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:36] 2024-09-13 14:39:08,107 - INFO - -------------------------------------------------------------------------------- 2024-09-13 14:39:10,326 - INFO - Deleted project: ctest-TestRoutersBasic-68398250, ID : 1999a91c-c46e-48d6-8223-58f06bc88e90