2024-08-26 21:25:04,906 - INFO - Domain Default found not creating 2024-08-26 21:25:05,058 - INFO - Project ctest-TestRoutersBasic-26206534 not found, creating it 2024-08-26 21:25:05,512 - INFO - Created Project:ctest-TestRoutersBasic-26206534, ID : db463d76-6134-436e-8026-b3b6d6975740 2024-08-26 21:25:07,850 - INFO - ================================================================================ 2024-08-26 21:25:07,851 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-26 21:25:07,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-08-26 21:25:08,106 - DEBUG - Nothing to compare xmpp stats {'10.0.0.68': {'10.20.0.6': '0'}} with 2024-08-26 21:25:08,106 - INFO - Initial checks done. Running the testcase now 2024-08-26 21:25:08,106 - INFO - 2024-08-26 21:25:08,855 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-26206534 2024-08-26 21:25:08,948 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-26206534 2024-08-26 21:25:09,268 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26206534', 'default']} 2024-08-26 21:25:09,563 - DEBUG - Response for create_network : {'network': {'id': '4af7b1b1-0f29-49f8-a207-88a14530984b', 'name': 'ctest-vn-99449162', 'tenant_id': 'db463d766134436e8026b3b6d6975740', 'project_id': 'db463d766134436e8026b3b6d6975740', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26206534', 'ctest-vn-99449162'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 21:25:09,781 - DEBUG - Response for create_subnet : {'subnet': {'id': 'daae1446-06af-4cca-b417-bdf85d532333', 'name': '', 'tenant_id': 'db463d766134436e8026b3b6d6975740', 'network_id': '4af7b1b1-0f29-49f8-a207-88a14530984b', 'ip_version': 4, 'cidr': '45.180.66.64/26', 'allocation_pools': [{'start': '45.180.66.66', 'end': '45.180.66.126'}], 'gateway_ip': '45.180.66.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.180.66.66', 'tags': [], 'project_id': 'db463d766134436e8026b3b6d6975740'}} 2024-08-26 21:25:09,802 - INFO - Created VN ctest-vn-99449162 2024-08-26 21:25:09,856 - DEBUG - VN ctest-vn-99449162 UUID is 4af7b1b1-0f29-49f8-a207-88a14530984b 2024-08-26 21:25:10,181 - DEBUG - Response for create_network : {'network': {'id': '84083c09-b97e-4492-9deb-d1e414be3ba0', 'name': 'ctest-ext_vn-99443875', 'tenant_id': 'db463d766134436e8026b3b6d6975740', 'project_id': 'db463d766134436e8026b3b6d6975740', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26206534', 'ctest-ext_vn-99443875'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 21:25:10,381 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f36a0b1-0219-48a3-9e45-7358f2169dfb', 'name': '', 'tenant_id': 'db463d766134436e8026b3b6d6975740', 'network_id': '84083c09-b97e-4492-9deb-d1e414be3ba0', 'ip_version': 4, 'cidr': '28.12.166.128/26', 'allocation_pools': [{'start': '28.12.166.130', 'end': '28.12.166.190'}], 'gateway_ip': '28.12.166.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.12.166.130', 'tags': [], 'project_id': 'db463d766134436e8026b3b6d6975740'}} 2024-08-26 21:25:10,404 - INFO - Created VN ctest-ext_vn-99443875 2024-08-26 21:25:10,456 - DEBUG - VN ctest-ext_vn-99443875 UUID is 84083c09-b97e-4492-9deb-d1e414be3ba0 2024-08-26 21:25:10,622 - DEBUG - Services list from nova: [, , ] 2024-08-26 21:25:11,628 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1773-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1773-1) 2024-08-26 21:25:12,720 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1773-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1773-1) 2024-08-26 21:25:12,805 - INFO - Setting gateway for router 61e70f4f-c24d-46f5-826f-26aa633b697e to network 84083c09-b97e-4492-9deb-d1e414be3ba0 2024-08-26 21:25:12,869 - INFO - Adding interface with subnet_id daae1446-06af-4cca-b417-bdf85d532333, port_id None to router 61e70f4f-c24d-46f5-826f-26aa633b697e 2024-08-26 21:25:13,247 - INFO - Waiting for VM ctest-TestRoutersBasic-26206534-58012083 to be up.. 2024-08-26 21:25:13,383 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-26 21:25:18,466 - DEBUG - VM is in ACTIVE state now 2024-08-26 21:25:18,466 - INFO - VM name : ctest-TestRoutersBasic-26206534-58012083 2024-08-26 21:25:18,542 - DEBUG - VM ctest-TestRoutersBasic-26206534-58012083 ID is 74f05959-7461-4306-b854-3ab370847b51 2024-08-26 21:25:18,561 - DEBUG - VM ctest-TestRoutersBasic-26206534-58012083 launched on Node cn-jenkins-deploy-platform-ansible-os-1773-1 2024-08-26 21:25:18,642 - DEBUG - Requesting: http://10.0.0.68:8082/virtual-machine/74f05959-7461-4306-b854-3ab370847b51 2024-08-26 21:25:18,938 - DEBUG - Requesting: http://10.0.0.68:8082/virtual-machine/74f05959-7461-4306-b854-3ab370847b51 2024-08-26 21:25:18,969 - DEBUG - Requesting: http://10.0.0.68:8082/virtual-machine-interface/43329771-cdf3-4277-a8a3-0498bb57d586 2024-08-26 21:25:22,219 - 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 1007ms') 2024-08-26 21:25:22,219 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-26206534-58012083 failed! 2024-08-26 21:25:22,272 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-26206534:ctest-vn-99449162 is 45.180.66.65 and allocation pool is NOT set 2024-08-26 21:25:24,340 - 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=7.16 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.33 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 1.328/4.242/7.157/2.914 ms') 2024-08-26 21:25:24,340 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-26206534-58012083 passed 2024-08-26 21:25:24,488 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:25:24,489 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-26206534-58012083, IP 45.180.66.67, Port 22 2024-08-26 21:25:24,644 - DEBUG - VM ctest-TestRoutersBasic-26206534-58012083 is ready for SSH connections 2024-08-26 21:25:24,644 - INFO - Waiting for VM ctest-TestRoutersBasic-26206534-15043897 to be up.. 2024-08-26 21:25:24,722 - DEBUG - VM is in ACTIVE state now 2024-08-26 21:25:24,722 - INFO - VM name : ctest-TestRoutersBasic-26206534-15043897 2024-08-26 21:25:24,805 - DEBUG - VM ctest-TestRoutersBasic-26206534-15043897 ID is 537edd5a-ab14-411f-8c6f-6103b97f712d 2024-08-26 21:25:24,805 - DEBUG - VM ctest-TestRoutersBasic-26206534-15043897 launched on Node cn-jenkins-deploy-platform-ansible-os-1773-1 2024-08-26 21:25:24,891 - DEBUG - Requesting: http://10.0.0.68:8082/virtual-machine/537edd5a-ab14-411f-8c6f-6103b97f712d 2024-08-26 21:25:24,899 - DEBUG - Requesting: http://10.0.0.68:8082/virtual-machine-interface/355f1d7d-649f-4879-bc0c-00d5e6a8d558 2024-08-26 21:25:26,134 - 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.90 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.447 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.447/1.674/2.902/1.227 ms') 2024-08-26 21:25:26,134 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-26206534-15043897 passed 2024-08-26 21:25:26,284 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:25:26,284 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-26206534-15043897, IP 28.12.166.131, Port 22 2024-08-26 21:25:26,440 - DEBUG - VM ctest-TestRoutersBasic-26206534-15043897 is ready for SSH connections 2024-08-26 21:25:26,440 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:25:26,440 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 28.12.166.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.68, gateway password: c0ntrail123 2024-08-26 21:25:26,440 - DEBUG - ping -s 56 -c 3 -W 1 28.12.166.131 2024-08-26 21:25:32,579 - DEBUG - PING 28.12.166.131 (28.12.166.131): 56 data bytes 64 bytes from 28.12.166.131: seq=0 ttl=62 time=4.513 ms 64 bytes from 28.12.166.131: seq=1 ttl=62 time=0.935 ms 64 bytes from 28.12.166.131: seq=2 ttl=62 time=0.837 ms --- 28.12.166.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.837/2.095/4.513 ms 2024-08-26 21:25:32,579 - INFO - Ping to IP 28.12.166.131 from VM ctest-TestRoutersBasic-26206534-58012083 passed 2024-08-26 21:25:32,579 - INFO - Deleting interface with subnet_id daae1446-06af-4cca-b417-bdf85d532333, port_id None from router 61e70f4f-c24d-46f5-826f-26aa633b697e 2024-08-26 21:25:33,748 - INFO - Deleting VM ctest-TestRoutersBasic-26206534-15043897 2024-08-26 21:25:33,821 - INFO - Deleting VM ctest-TestRoutersBasic-26206534-58012083 2024-08-26 21:25:33,900 - INFO - Deleting VN ctest-ext_vn-99443875 2024-08-26 21:25:33,980 - DEBUG - VN 84083c09-b97e-4492-9deb-d1e414be3ba0 still in use: Unable to complete operation on network 84083c09-b97e-4492-9deb-d1e414be3ba0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-46561c81-97c4-4cb9-9a86-0d673c00076a'] 2024-08-26 21:25:33,980 - WARNING - Deleting VN ctest-ext_vn-99443875 failed..Will retry 2024-08-26 21:25:36,097 - DEBUG - Response for deleting network () 2024-08-26 21:25:36,097 - INFO - Deleting VN ctest-vn-99449162 2024-08-26 21:25:36,200 - DEBUG - Response for deleting network () 2024-08-26 21:25:36,454 - DEBUG - No XMPP flaps were noticed during the test
2024-08-26 21:25:36,454 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:29]
2024-08-26 21:25:36,454 - INFO - -------------------------------------------------------------------------------- 2024-08-26 21:25:37,117 - INFO - Deleted project: ctest-TestRoutersBasic-26206534, ID : db463d76-6134-436e-8026-b3b6d6975740