2024-11-15 06:40:24,153 - INFO - Domain Default found not creating 2024-11-15 06:40:24,320 - INFO - Project ctest-TestRoutersBasic-80310747 not found, creating it 2024-11-15 06:40:24,807 - INFO - Created Project:ctest-TestRoutersBasic-80310747, ID : b197771f-7a38-41e0-b898-66ba64d36ad7 2024-11-15 06:40:26,249 - INFO - ================================================================================ 2024-11-15 06:40:26,249 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-15 06:40:26,249 - 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-11-15 06:40:26,508 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.8': '0'}} with 2024-11-15 06:40:26,508 - INFO - Initial checks done. Running the testcase now 2024-11-15 06:40:26,508 - INFO - 2024-11-15 06:40:27,228 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-80310747 2024-11-15 06:40:27,330 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-80310747 2024-11-15 06:40:27,670 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80310747', 'default']} 2024-11-15 06:40:27,993 - DEBUG - Response for create_network : {'network': {'id': '44078717-c5c3-4668-b35f-e1ff4683a0c6', 'name': 'ctest-vn-87153082', 'tenant_id': 'b197771f7a3841e0b89866ba64d36ad7', 'project_id': 'b197771f7a3841e0b89866ba64d36ad7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80310747', 'ctest-vn-87153082'], 'port_security_enabled': True, 'description': ''}} 2024-11-15 06:40:28,205 - DEBUG - Response for create_subnet : {'subnet': {'id': '3a94e314-d9f5-491c-afd9-bc599b5d7540', 'name': '', 'tenant_id': 'b197771f7a3841e0b89866ba64d36ad7', 'network_id': '44078717-c5c3-4668-b35f-e1ff4683a0c6', 'ip_version': 4, 'cidr': '153.110.46.0/26', 'allocation_pools': [{'start': '153.110.46.2', 'end': '153.110.46.62'}], 'gateway_ip': '153.110.46.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.110.46.2', 'tags': [], 'project_id': 'b197771f7a3841e0b89866ba64d36ad7'}} 2024-11-15 06:40:28,226 - INFO - Created VN ctest-vn-87153082 2024-11-15 06:40:28,286 - DEBUG - VN ctest-vn-87153082 UUID is 44078717-c5c3-4668-b35f-e1ff4683a0c6 2024-11-15 06:40:28,622 - DEBUG - Response for create_network : {'network': {'id': 'e1f7f775-e707-44ea-91a8-701bc21dd1f6', 'name': 'ctest-ext_vn-74378947', 'tenant_id': 'b197771f7a3841e0b89866ba64d36ad7', 'project_id': 'b197771f7a3841e0b89866ba64d36ad7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80310747', 'ctest-ext_vn-74378947'], 'port_security_enabled': True, 'description': ''}} 2024-11-15 06:40:28,863 - DEBUG - Response for create_subnet : {'subnet': {'id': '42c7b8ef-1e07-4a4c-89d9-d8165e56427b', 'name': '', 'tenant_id': 'b197771f7a3841e0b89866ba64d36ad7', 'network_id': 'e1f7f775-e707-44ea-91a8-701bc21dd1f6', 'ip_version': 4, 'cidr': '11.58.34.0/26', 'allocation_pools': [{'start': '11.58.34.2', 'end': '11.58.34.62'}], 'gateway_ip': '11.58.34.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.58.34.2', 'tags': [], 'project_id': 'b197771f7a3841e0b89866ba64d36ad7'}} 2024-11-15 06:40:28,883 - INFO - Created VN ctest-ext_vn-74378947 2024-11-15 06:40:28,942 - DEBUG - VN ctest-ext_vn-74378947 UUID is e1f7f775-e707-44ea-91a8-701bc21dd1f6 2024-11-15 06:40:29,111 - DEBUG - Services list from nova: [, , ] 2024-11-15 06:40:30,132 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2309-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2309-1) 2024-11-15 06:40:31,261 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2309-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2309-1) 2024-11-15 06:40:31,336 - INFO - Setting gateway for router 64add79c-cd0b-4d02-9dfd-6c05c0507a41 to network e1f7f775-e707-44ea-91a8-701bc21dd1f6 2024-11-15 06:40:31,400 - INFO - Adding interface with subnet_id 3a94e314-d9f5-491c-afd9-bc599b5d7540, port_id None to router 64add79c-cd0b-4d02-9dfd-6c05c0507a41 2024-11-15 06:40:32,007 - INFO - Waiting for VM ctest-TestRoutersBasic-80310747-12716921 to be up.. 2024-11-15 06:40:32,139 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-15 06:40:37,222 - DEBUG - VM is in ACTIVE state now 2024-11-15 06:40:37,222 - INFO - VM name : ctest-TestRoutersBasic-80310747-12716921 2024-11-15 06:40:37,305 - DEBUG - VM ctest-TestRoutersBasic-80310747-12716921 ID is 41945ce4-4e40-40ea-947e-61a305879ec5 2024-11-15 06:40:37,324 - DEBUG - VM ctest-TestRoutersBasic-80310747-12716921 launched on Node cn-jenkins-deploy-platform-ansible-os-2309-1 2024-11-15 06:40:37,403 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/41945ce4-4e40-40ea-947e-61a305879ec5 2024-11-15 06:40:37,697 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/41945ce4-4e40-40ea-947e-61a305879ec5 2024-11-15 06:40:37,735 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/3ff7460e-551e-4b27-ac80-8e3e63ffcd49 2024-11-15 06:40:40,992 - 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 1016ms') 2024-11-15 06:40:40,992 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-80310747-12716921 failed! 2024-11-15 06:40:41,050 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-80310747:ctest-vn-87153082 is 153.110.46.1 and allocation pool is NOT set 2024-11-15 06:40:43,117 - 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=2.65 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.444 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 = 0.444/1.547/2.650/1.103 ms') 2024-11-15 06:40:43,117 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-80310747-12716921 passed 2024-11-15 06:40:43,274 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-15 06:40:43,274 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-80310747-12716921, IP 153.110.46.3, Port 22 2024-11-15 06:40:43,438 - DEBUG - VM ctest-TestRoutersBasic-80310747-12716921 is ready for SSH connections 2024-11-15 06:40:43,438 - INFO - Waiting for VM ctest-TestRoutersBasic-80310747-54783633 to be up.. 2024-11-15 06:40:43,549 - DEBUG - VM is in ACTIVE state now 2024-11-15 06:40:43,549 - INFO - VM name : ctest-TestRoutersBasic-80310747-54783633 2024-11-15 06:40:43,638 - DEBUG - VM ctest-TestRoutersBasic-80310747-54783633 ID is 2e22e152-e0f0-4350-a6e3-9c044a5cae11 2024-11-15 06:40:43,638 - DEBUG - VM ctest-TestRoutersBasic-80310747-54783633 launched on Node cn-jenkins-deploy-platform-ansible-os-2309-1 2024-11-15 06:40:43,739 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/2e22e152-e0f0-4350-a6e3-9c044a5cae11 2024-11-15 06:40:43,753 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/0fc9eb32-2af3-4750-9a95-9e81b0ab656c 2024-11-15 06:40:45,011 - 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.22 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.753 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.753/2.984/5.216/2.231 ms') 2024-11-15 06:40:45,012 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-80310747-54783633 passed 2024-11-15 06:40:45,170 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-15 06:40:45,170 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-80310747-54783633, IP 11.58.34.3, Port 22 2024-11-15 06:40:45,340 - DEBUG - VM ctest-TestRoutersBasic-80310747-54783633 is ready for SSH connections 2024-11-15 06:40:45,340 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-15 06:40:45,340 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 11.58.34.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2024-11-15 06:40:45,340 - DEBUG - ping -s 56 -c 3 -W 1 11.58.34.3 2024-11-15 06:40:49,018 - DEBUG - PING 11.58.34.3 (11.58.34.3): 56 data bytes 64 bytes from 11.58.34.3: seq=0 ttl=62 time=6.125 ms 64 bytes from 11.58.34.3: seq=1 ttl=62 time=0.886 ms 64 bytes from 11.58.34.3: seq=2 ttl=62 time=1.059 ms --- 11.58.34.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.886/2.690/6.125 ms 2024-11-15 06:40:49,019 - INFO - Ping to IP 11.58.34.3 from VM ctest-TestRoutersBasic-80310747-12716921 passed 2024-11-15 06:40:49,019 - INFO - Deleting interface with subnet_id 3a94e314-d9f5-491c-afd9-bc599b5d7540, port_id None from router 64add79c-cd0b-4d02-9dfd-6c05c0507a41 2024-11-15 06:40:49,235 - INFO - Deleting VM ctest-TestRoutersBasic-80310747-54783633 2024-11-15 06:40:49,295 - INFO - Deleting VM ctest-TestRoutersBasic-80310747-12716921 2024-11-15 06:40:49,362 - INFO - Deleting VN ctest-ext_vn-74378947 2024-11-15 06:40:49,441 - DEBUG - VN e1f7f775-e707-44ea-91a8-701bc21dd1f6 still in use: Unable to complete operation on network e1f7f775-e707-44ea-91a8-701bc21dd1f6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a3bfdec1-946b-455c-ba9b-8efd430506c2'] 2024-11-15 06:40:49,441 - WARNING - Deleting VN ctest-ext_vn-74378947 failed..Will retry 2024-11-15 06:40:51,541 - DEBUG - Response for deleting network () 2024-11-15 06:40:51,541 - INFO - Deleting VN ctest-vn-87153082 2024-11-15 06:40:51,643 - DEBUG - Response for deleting network () 2024-11-15 06:40:51,899 - DEBUG - No XMPP flaps were noticed during the test 2024-11-15 06:40:51,899 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2024-11-15 06:40:51,899 - INFO - -------------------------------------------------------------------------------- 2024-11-15 06:40:52,622 - INFO - Deleted project: ctest-TestRoutersBasic-80310747, ID : b197771f-7a38-41e0-b898-66ba64d36ad7