2024-09-12 02:26:33,760 - INFO - Domain Default found not creating 2024-09-12 02:26:33,954 - INFO - Project ctest-TestRoutersBasic-56313698 not found, creating it 2024-09-12 02:26:34,477 - INFO - Created Project:ctest-TestRoutersBasic-56313698, ID : c055ea9d-fb0a-4149-88e3-5bd4b40ddaca 2024-09-12 02:26:36,375 - INFO - ================================================================================ 2024-09-12 02:26:36,375 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-12 02:26:36,375 - 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-12 02:26:36,634 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.13': '0'}} with 2024-09-12 02:26:36,634 - INFO - Initial checks done. Running the testcase now 2024-09-12 02:26:36,634 - INFO - 2024-09-12 02:26:37,666 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-56313698 2024-09-12 02:26:37,785 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-56313698 2024-09-12 02:26:38,205 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-56313698', 'default']} 2024-09-12 02:26:38,559 - DEBUG - Response for create_network : {'network': {'id': '3c5a81ce-c4cc-487f-9755-a2c26aab868f', 'name': 'ctest-vn-05835577', 'tenant_id': 'c055ea9dfb0a414988e35bd4b40ddaca', 'project_id': 'c055ea9dfb0a414988e35bd4b40ddaca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-56313698', 'ctest-vn-05835577'], 'port_security_enabled': True, 'description': ''}} 2024-09-12 02:26:38,790 - DEBUG - Response for create_subnet : {'subnet': {'id': '4eeba25f-30ec-434c-90bc-6c0833b6614c', 'name': '', 'tenant_id': 'c055ea9dfb0a414988e35bd4b40ddaca', 'network_id': '3c5a81ce-c4cc-487f-9755-a2c26aab868f', 'ip_version': 4, 'cidr': '191.25.119.0/26', 'allocation_pools': [{'start': '191.25.119.2', 'end': '191.25.119.62'}], 'gateway_ip': '191.25.119.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.25.119.2', 'tags': [], 'project_id': 'c055ea9dfb0a414988e35bd4b40ddaca'}} 2024-09-12 02:26:38,815 - INFO - Created VN ctest-vn-05835577 2024-09-12 02:26:38,877 - DEBUG - VN ctest-vn-05835577 UUID is 3c5a81ce-c4cc-487f-9755-a2c26aab868f 2024-09-12 02:26:39,276 - DEBUG - Response for create_network : {'network': {'id': '7b8cf624-3724-4757-a370-3ad823c3ada0', 'name': 'ctest-ext_vn-93866317', 'tenant_id': 'c055ea9dfb0a414988e35bd4b40ddaca', 'project_id': 'c055ea9dfb0a414988e35bd4b40ddaca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-56313698', 'ctest-ext_vn-93866317'], 'port_security_enabled': True, 'description': ''}} 2024-09-12 02:26:39,462 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aaadb63f-f9e0-435d-8c6c-634f2513c899', 'name': '', 'tenant_id': 'c055ea9dfb0a414988e35bd4b40ddaca', 'network_id': '7b8cf624-3724-4757-a370-3ad823c3ada0', 'ip_version': 4, 'cidr': '168.159.48.64/26', 'allocation_pools': [{'start': '168.159.48.66', 'end': '168.159.48.126'}], 'gateway_ip': '168.159.48.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.159.48.66', 'tags': [], 'project_id': 'c055ea9dfb0a414988e35bd4b40ddaca'}} 2024-09-12 02:26:39,487 - INFO - Created VN ctest-ext_vn-93866317 2024-09-12 02:26:39,549 - DEBUG - VN ctest-ext_vn-93866317 UUID is 7b8cf624-3724-4757-a370-3ad823c3ada0 2024-09-12 02:26:39,753 - DEBUG - Services list from nova: [, , ] 2024-09-12 02:26:41,042 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1903-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1903-1) 2024-09-12 02:26:42,577 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1903-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1903-1) 2024-09-12 02:26:42,688 - INFO - Setting gateway for router e252a148-ba20-4538-bfb9-ff5b8a924d6a to network 7b8cf624-3724-4757-a370-3ad823c3ada0 2024-09-12 02:26:42,759 - INFO - Adding interface with subnet_id 4eeba25f-30ec-434c-90bc-6c0833b6614c, port_id None to router e252a148-ba20-4538-bfb9-ff5b8a924d6a 2024-09-12 02:26:43,292 - INFO - Waiting for VM ctest-TestRoutersBasic-56313698-81134761 to be up.. 2024-09-12 02:26:43,515 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-12 02:26:48,608 - DEBUG - VM is in ACTIVE state now 2024-09-12 02:26:48,608 - INFO - VM name : ctest-TestRoutersBasic-56313698-81134761 2024-09-12 02:26:48,699 - DEBUG - VM ctest-TestRoutersBasic-56313698-81134761 ID is 402831da-8e57-4fa5-802b-1f279eebc0e0 2024-09-12 02:26:48,721 - DEBUG - VM ctest-TestRoutersBasic-56313698-81134761 launched on Node cn-jenkins-deploy-platform-ansible-os-1903-1 2024-09-12 02:26:48,810 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/402831da-8e57-4fa5-802b-1f279eebc0e0 2024-09-12 02:26:49,151 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/402831da-8e57-4fa5-802b-1f279eebc0e0 2024-09-12 02:26:49,197 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/409986eb-bb4e-4f93-b780-3e0538a70459 2024-09-12 02:26:52,483 - 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 1026ms') 2024-09-12 02:26:52,483 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-56313698-81134761 failed! 2024-09-12 02:26:52,545 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-56313698:ctest-vn-05835577 is 191.25.119.1 and allocation pool is NOT set 2024-09-12 02:26:54,604 - 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.33 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.486 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.486/1.909/3.333/1.423 ms') 2024-09-12 02:26:54,604 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-56313698-81134761 passed 2024-09-12 02:26:54,769 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 02:26:54,769 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-56313698-81134761, IP 191.25.119.3, Port 22 2024-09-12 02:26:54,929 - DEBUG - VM ctest-TestRoutersBasic-56313698-81134761 is ready for SSH connections 2024-09-12 02:26:54,929 - INFO - Waiting for VM ctest-TestRoutersBasic-56313698-97374042 to be up.. 2024-09-12 02:26:55,023 - DEBUG - VM is in ACTIVE state now 2024-09-12 02:26:55,023 - INFO - VM name : ctest-TestRoutersBasic-56313698-97374042 2024-09-12 02:26:55,117 - DEBUG - VM ctest-TestRoutersBasic-56313698-97374042 ID is 4257f97c-9bc9-43f2-b77b-4dd8363536ea 2024-09-12 02:26:55,118 - DEBUG - VM ctest-TestRoutersBasic-56313698-97374042 launched on Node cn-jenkins-deploy-platform-ansible-os-1903-1 2024-09-12 02:26:55,208 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/4257f97c-9bc9-43f2-b77b-4dd8363536ea 2024-09-12 02:26:55,219 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/bab3b074-2698-412f-a813-12cde8103b61 2024-09-12 02:26:56,476 - 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.72 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.11 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 = 1.109/2.413/3.717/1.304 ms') 2024-09-12 02:26:56,476 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-56313698-97374042 passed 2024-09-12 02:26:56,637 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 02:26:56,637 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-56313698-97374042, IP 168.159.48.67, Port 22 2024-09-12 02:26:56,809 - DEBUG - VM ctest-TestRoutersBasic-56313698-97374042 is ready for SSH connections 2024-09-12 02:26:56,809 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 02:26:56,809 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.159.48.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-09-12 02:26:56,809 - DEBUG - ping -s 56 -c 3 -W 1 168.159.48.67 2024-09-12 02:27:00,572 - DEBUG - PING 168.159.48.67 (168.159.48.67): 56 data bytes 64 bytes from 168.159.48.67: seq=0 ttl=62 time=7.147 ms 64 bytes from 168.159.48.67: seq=1 ttl=62 time=0.986 ms 64 bytes from 168.159.48.67: seq=2 ttl=62 time=0.921 ms --- 168.159.48.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.921/3.018/7.147 ms 2024-09-12 02:27:00,572 - INFO - Ping to IP 168.159.48.67 from VM ctest-TestRoutersBasic-56313698-81134761 passed 2024-09-12 02:27:00,572 - INFO - Deleting interface with subnet_id 4eeba25f-30ec-434c-90bc-6c0833b6614c, port_id None from router e252a148-ba20-4538-bfb9-ff5b8a924d6a 2024-09-12 02:27:00,873 - INFO - Deleting VM ctest-TestRoutersBasic-56313698-97374042 2024-09-12 02:27:00,954 - INFO - Deleting VM ctest-TestRoutersBasic-56313698-81134761 2024-09-12 02:27:01,049 - INFO - Deleting VN ctest-ext_vn-93866317 2024-09-12 02:27:01,259 - DEBUG - VN 7b8cf624-3724-4757-a370-3ad823c3ada0 still in use: Unable to complete operation on network 7b8cf624-3724-4757-a370-3ad823c3ada0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-eaa7cd83-c7c7-415f-ab2c-aa8494d28d30'] 2024-09-12 02:27:01,259 - WARNING - Deleting VN ctest-ext_vn-93866317 failed..Will retry 2024-09-12 02:27:03,391 - DEBUG - Response for deleting network () 2024-09-12 02:27:03,391 - INFO - Deleting VN ctest-vn-05835577 2024-09-12 02:27:03,533 - DEBUG - Response for deleting network () 2024-09-12 02:27:03,788 - DEBUG - No XMPP flaps were noticed during the test 2024-09-12 02:27:03,788 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2024-09-12 02:27:03,788 - INFO - -------------------------------------------------------------------------------- 2024-09-12 02:27:04,557 - INFO - Deleted project: ctest-TestRoutersBasic-56313698, ID : c055ea9d-fb0a-4149-88e3-5bd4b40ddaca