2025-01-08 16:54:35,826 - INFO - Domain Default found not creating 2025-01-08 16:54:36,003 - INFO - Project ctest-TestRoutersBasic-95758879 not found, creating it 2025-01-08 16:54:36,487 - INFO - Created Project:ctest-TestRoutersBasic-95758879, ID : f88b6f91-4f87-4c6b-8f86-35a50f74772b 2025-01-08 16:54:38,076 - INFO - ================================================================================ 2025-01-08 16:54:38,076 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-08 16:54:38,076 - 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 2025-01-08 16:54:38,338 - DEBUG - Nothing to compare xmpp stats {'10.0.0.43': {'10.20.0.12': '0'}} with 2025-01-08 16:54:38,338 - INFO - Initial checks done. Running the testcase now 2025-01-08 16:54:38,338 - INFO - 2025-01-08 16:54:39,088 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-95758879 2025-01-08 16:54:39,190 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-95758879 2025-01-08 16:54:39,529 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-95758879', 'default']} 2025-01-08 16:54:39,879 - DEBUG - Response for create_network : {'network': {'id': '3309997c-9a2e-4648-8ac2-11d9005e8a07', 'name': 'ctest-vn-38433894', 'tenant_id': 'f88b6f914f874c6b8f8635a50f74772b', 'project_id': 'f88b6f914f874c6b8f8635a50f74772b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-95758879', 'ctest-vn-38433894'], 'port_security_enabled': True, 'description': ''}} 2025-01-08 16:54:40,134 - DEBUG - Response for create_subnet : {'subnet': {'id': '082ab440-15b3-4eb4-a0f5-cd4b19910bfb', 'name': '', 'tenant_id': 'f88b6f914f874c6b8f8635a50f74772b', 'network_id': '3309997c-9a2e-4648-8ac2-11d9005e8a07', 'ip_version': 4, 'cidr': '92.146.209.128/26', 'allocation_pools': [{'start': '92.146.209.130', 'end': '92.146.209.190'}], 'gateway_ip': '92.146.209.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.146.209.130', 'tags': [], 'project_id': 'f88b6f914f874c6b8f8635a50f74772b'}} 2025-01-08 16:54:40,159 - INFO - Created VN ctest-vn-38433894 2025-01-08 16:54:40,218 - DEBUG - VN ctest-vn-38433894 UUID is 3309997c-9a2e-4648-8ac2-11d9005e8a07 2025-01-08 16:54:40,604 - DEBUG - Response for create_network : {'network': {'id': '3470ba0d-1f5e-43ea-bb9f-b9d4076f5d56', 'name': 'ctest-ext_vn-78997935', 'tenant_id': 'f88b6f914f874c6b8f8635a50f74772b', 'project_id': 'f88b6f914f874c6b8f8635a50f74772b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-95758879', 'ctest-ext_vn-78997935'], 'port_security_enabled': True, 'description': ''}} 2025-01-08 16:54:40,783 - DEBUG - Response for create_subnet : {'subnet': {'id': '64e43e97-b91a-41ae-947d-92bd2d99e2cc', 'name': '', 'tenant_id': 'f88b6f914f874c6b8f8635a50f74772b', 'network_id': '3470ba0d-1f5e-43ea-bb9f-b9d4076f5d56', 'ip_version': 4, 'cidr': '7.131.16.128/26', 'allocation_pools': [{'start': '7.131.16.130', 'end': '7.131.16.190'}], 'gateway_ip': '7.131.16.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.131.16.130', 'tags': [], 'project_id': 'f88b6f914f874c6b8f8635a50f74772b'}} 2025-01-08 16:54:40,803 - INFO - Created VN ctest-ext_vn-78997935 2025-01-08 16:54:40,858 - DEBUG - VN ctest-ext_vn-78997935 UUID is 3470ba0d-1f5e-43ea-bb9f-b9d4076f5d56 2025-01-08 16:54:41,047 - DEBUG - Services list from nova: [, , ] 2025-01-08 16:54:42,127 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2564-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2564-1) 2025-01-08 16:54:43,251 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2564-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2564-1) 2025-01-08 16:54:43,324 - INFO - Setting gateway for router 64233e9d-53ba-43de-8084-8f8f490480ff to network 3470ba0d-1f5e-43ea-bb9f-b9d4076f5d56 2025-01-08 16:54:43,374 - INFO - Adding interface with subnet_id 082ab440-15b3-4eb4-a0f5-cd4b19910bfb, port_id None to router 64233e9d-53ba-43de-8084-8f8f490480ff 2025-01-08 16:54:43,785 - INFO - Waiting for VM ctest-TestRoutersBasic-95758879-87704944 to be up.. 2025-01-08 16:54:43,970 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-08 16:54:49,057 - DEBUG - VM is in ACTIVE state now 2025-01-08 16:54:49,057 - INFO - VM name : ctest-TestRoutersBasic-95758879-87704944 2025-01-08 16:54:49,139 - DEBUG - VM ctest-TestRoutersBasic-95758879-87704944 ID is d9072062-bf37-46b7-a745-9ac780908608 2025-01-08 16:54:49,158 - DEBUG - VM ctest-TestRoutersBasic-95758879-87704944 launched on Node cn-jenkins-deploy-platform-ansible-os-2564-1 2025-01-08 16:54:49,249 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/d9072062-bf37-46b7-a745-9ac780908608 2025-01-08 16:54:49,549 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/d9072062-bf37-46b7-a745-9ac780908608 2025-01-08 16:54:49,589 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/02366dff-fab0-43cb-8fe4-0172e9f68f17 2025-01-08 16:54:52,844 - 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 1011ms') 2025-01-08 16:54:52,844 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-95758879-87704944 failed! 2025-01-08 16:54:52,898 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-95758879:ctest-vn-38433894 is 92.146.209.129 and allocation pool is NOT set 2025-01-08 16:54:54,953 - 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.64 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.339 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.339/1.987/3.635/1.648 ms') 2025-01-08 16:54:54,953 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-95758879-87704944 passed 2025-01-08 16:54:55,106 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 16:54:55,106 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-95758879-87704944, IP 92.146.209.131, Port 22 2025-01-08 16:54:55,279 - DEBUG - VM ctest-TestRoutersBasic-95758879-87704944 is ready for SSH connections 2025-01-08 16:54:55,280 - INFO - Waiting for VM ctest-TestRoutersBasic-95758879-29402409 to be up.. 2025-01-08 16:54:55,363 - DEBUG - VM is in ACTIVE state now 2025-01-08 16:54:55,363 - INFO - VM name : ctest-TestRoutersBasic-95758879-29402409 2025-01-08 16:54:55,444 - DEBUG - VM ctest-TestRoutersBasic-95758879-29402409 ID is 0fcad890-c3a0-40c8-8ebc-a49792c0bf8e 2025-01-08 16:54:55,445 - DEBUG - VM ctest-TestRoutersBasic-95758879-29402409 launched on Node cn-jenkins-deploy-platform-ansible-os-2564-1 2025-01-08 16:54:55,522 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/0fcad890-c3a0-40c8-8ebc-a49792c0bf8e 2025-01-08 16:54:55,532 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/e8364390-04b7-419d-a115-624a984de6a6 2025-01-08 16:54:56,793 - 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=4.69 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.432 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.432/2.562/4.692/2.130 ms') 2025-01-08 16:54:56,793 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-95758879-29402409 passed 2025-01-08 16:54:56,946 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 16:54:56,946 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-95758879-29402409, IP 7.131.16.131, Port 22 2025-01-08 16:54:57,112 - DEBUG - VM ctest-TestRoutersBasic-95758879-29402409 is ready for SSH connections 2025-01-08 16:54:57,112 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 16:54:57,112 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 7.131.16.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123 2025-01-08 16:54:57,112 - DEBUG - ping -s 56 -c 3 -W 1 7.131.16.131 2025-01-08 16:55:01,071 - DEBUG - PING 7.131.16.131 (7.131.16.131): 56 data bytes 64 bytes from 7.131.16.131: seq=0 ttl=62 time=6.977 ms 64 bytes from 7.131.16.131: seq=1 ttl=62 time=0.829 ms 64 bytes from 7.131.16.131: seq=2 ttl=62 time=0.817 ms --- 7.131.16.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.817/2.874/6.977 ms 2025-01-08 16:55:01,072 - INFO - Ping to IP 7.131.16.131 from VM ctest-TestRoutersBasic-95758879-87704944 passed 2025-01-08 16:55:01,072 - INFO - Deleting interface with subnet_id 082ab440-15b3-4eb4-a0f5-cd4b19910bfb, port_id None from router 64233e9d-53ba-43de-8084-8f8f490480ff 2025-01-08 16:55:01,255 - INFO - Deleting VM ctest-TestRoutersBasic-95758879-29402409 2025-01-08 16:55:01,326 - INFO - Deleting VM ctest-TestRoutersBasic-95758879-87704944 2025-01-08 16:55:01,410 - INFO - Deleting VN ctest-ext_vn-78997935 2025-01-08 16:55:01,475 - DEBUG - VN 3470ba0d-1f5e-43ea-bb9f-b9d4076f5d56 still in use: Unable to complete operation on network 3470ba0d-1f5e-43ea-bb9f-b9d4076f5d56. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-096eeb61-05d1-4c46-bfe9-7414de8787c4'] 2025-01-08 16:55:01,475 - WARNING - Deleting VN ctest-ext_vn-78997935 failed..Will retry 2025-01-08 16:55:03,603 - DEBUG - Response for deleting network () 2025-01-08 16:55:03,604 - INFO - Deleting VN ctest-vn-38433894 2025-01-08 16:55:03,729 - DEBUG - Response for deleting network () 2025-01-08 16:55:03,989 - DEBUG - No XMPP flaps were noticed during the test
2025-01-08 16:55:03,989 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25]
2025-01-08 16:55:03,989 - INFO - -------------------------------------------------------------------------------- 2025-01-08 16:55:04,669 - INFO - Deleted project: ctest-TestRoutersBasic-95758879, ID : f88b6f91-4f87-4c6b-8f86-35a50f74772b