2024-11-10 18:04:00,333 - INFO - Domain Default found not creating 2024-11-10 18:04:00,527 - INFO - Project ctest-TestRoutersBasic-47228984 not found, creating it 2024-11-10 18:04:01,097 - INFO - Created Project:ctest-TestRoutersBasic-47228984, ID : 537b71bf-82ad-435d-879f-acf0eb6aaf7c 2024-11-10 18:04:02,973 - INFO - ================================================================================ 2024-11-10 18:04:02,974 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-10 18:04:02,974 - 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-10 18:04:03,237 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.25': '0'}} with 2024-11-10 18:04:03,237 - INFO - Initial checks done. Running the testcase now 2024-11-10 18:04:03,237 - INFO - 2024-11-10 18:04:04,075 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-47228984 2024-11-10 18:04:04,177 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-47228984 2024-11-10 18:04:04,576 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-47228984', 'default']} 2024-11-10 18:04:05,005 - DEBUG - Response for create_network : {'network': {'id': '0e991ba5-08b8-4b29-8314-ae22d304a775', 'name': 'ctest-vn-79544574', 'tenant_id': '537b71bf82ad435d879facf0eb6aaf7c', 'project_id': '537b71bf82ad435d879facf0eb6aaf7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-47228984', 'ctest-vn-79544574'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 18:04:05,242 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c0d5cbb-03e3-4015-a521-e7061ba8685a', 'name': '', 'tenant_id': '537b71bf82ad435d879facf0eb6aaf7c', 'network_id': '0e991ba5-08b8-4b29-8314-ae22d304a775', 'ip_version': 4, 'cidr': '150.214.101.0/26', 'allocation_pools': [{'start': '150.214.101.2', 'end': '150.214.101.62'}], 'gateway_ip': '150.214.101.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.214.101.2', 'tags': [], 'project_id': '537b71bf82ad435d879facf0eb6aaf7c'}} 2024-11-10 18:04:05,267 - INFO - Created VN ctest-vn-79544574 2024-11-10 18:04:05,328 - DEBUG - VN ctest-vn-79544574 UUID is 0e991ba5-08b8-4b29-8314-ae22d304a775 2024-11-10 18:04:05,791 - DEBUG - Response for create_network : {'network': {'id': '58f63dc2-b655-4b53-9af1-b60e1441b7d5', 'name': 'ctest-ext_vn-91140977', 'tenant_id': '537b71bf82ad435d879facf0eb6aaf7c', 'project_id': '537b71bf82ad435d879facf0eb6aaf7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-47228984', 'ctest-ext_vn-91140977'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 18:04:05,962 - DEBUG - Response for create_subnet : {'subnet': {'id': '2bb3f5a1-d378-4673-9e75-d3b1a8ccf8f5', 'name': '', 'tenant_id': '537b71bf82ad435d879facf0eb6aaf7c', 'network_id': '58f63dc2-b655-4b53-9af1-b60e1441b7d5', 'ip_version': 4, 'cidr': '60.107.35.64/26', 'allocation_pools': [{'start': '60.107.35.66', 'end': '60.107.35.126'}], 'gateway_ip': '60.107.35.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.107.35.66', 'tags': [], 'project_id': '537b71bf82ad435d879facf0eb6aaf7c'}} 2024-11-10 18:04:05,991 - INFO - Created VN ctest-ext_vn-91140977 2024-11-10 18:04:06,048 - DEBUG - VN ctest-ext_vn-91140977 UUID is 58f63dc2-b655-4b53-9af1-b60e1441b7d5 2024-11-10 18:04:06,302 - DEBUG - Services list from nova: [, , ] 2024-11-10 18:04:07,561 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2259-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2259-1) 2024-11-10 18:04:08,992 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2259-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2259-1) 2024-11-10 18:04:09,124 - INFO - Setting gateway for router fbc28fc0-d7d9-4873-a94e-81fe205ea0b4 to network 58f63dc2-b655-4b53-9af1-b60e1441b7d5 2024-11-10 18:04:09,236 - INFO - Adding interface with subnet_id 0c0d5cbb-03e3-4015-a521-e7061ba8685a, port_id None to router fbc28fc0-d7d9-4873-a94e-81fe205ea0b4 2024-11-10 18:04:09,706 - INFO - Waiting for VM ctest-TestRoutersBasic-47228984-98337649 to be up.. 2024-11-10 18:04:09,895 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 18:04:15,080 - DEBUG - VM is in ACTIVE state now 2024-11-10 18:04:15,080 - INFO - VM name : ctest-TestRoutersBasic-47228984-98337649 2024-11-10 18:04:15,200 - DEBUG - VM ctest-TestRoutersBasic-47228984-98337649 ID is 3099b103-a7f9-4a4c-a6ce-8d46381b7389 2024-11-10 18:04:15,222 - DEBUG - VM ctest-TestRoutersBasic-47228984-98337649 launched on Node cn-jenkins-deploy-platform-ansible-os-2259-1 2024-11-10 18:04:15,332 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/3099b103-a7f9-4a4c-a6ce-8d46381b7389 2024-11-10 18:04:15,640 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/3099b103-a7f9-4a4c-a6ce-8d46381b7389 2024-11-10 18:04:15,705 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/60c07560-fc5e-4bcb-9c35-c33d203f3e36 2024-11-10 18:04:19,024 - 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 1000ms') 2024-11-10 18:04:19,024 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-47228984-98337649 failed! 2024-11-10 18:04:19,120 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-47228984:ctest-vn-79544574 is 150.214.101.1 and allocation pool is NOT set 2024-11-10 18:04:21,189 - 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.46 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.51 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 = 1.507/4.483/7.460/2.976 ms') 2024-11-10 18:04:21,190 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-47228984-98337649 passed 2024-11-10 18:04:21,316 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 18:04:21,316 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-47228984-98337649, IP 150.214.101.3, Port 22 2024-11-10 18:04:21,382 - 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-11-10 18:04:21,528 - DEBUG - VM ctest-TestRoutersBasic-47228984-98337649 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-10 18:04:26,529 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 18:04:26,529 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-47228984-98337649, IP 150.214.101.3, Port 22 2024-11-10 18:04:26,711 - DEBUG - VM ctest-TestRoutersBasic-47228984-98337649 is ready for SSH connections 2024-11-10 18:04:26,711 - INFO - Waiting for VM ctest-TestRoutersBasic-47228984-43331974 to be up.. 2024-11-10 18:04:26,883 - DEBUG - VM is in ACTIVE state now 2024-11-10 18:04:26,884 - INFO - VM name : ctest-TestRoutersBasic-47228984-43331974 2024-11-10 18:04:26,997 - DEBUG - VM ctest-TestRoutersBasic-47228984-43331974 ID is efaf3137-7193-46e0-885c-13554f22f636 2024-11-10 18:04:26,997 - DEBUG - VM ctest-TestRoutersBasic-47228984-43331974 launched on Node cn-jenkins-deploy-platform-ansible-os-2259-1 2024-11-10 18:04:27,111 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/efaf3137-7193-46e0-885c-13554f22f636 2024-11-10 18:04:27,128 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/cc3a6d21-cda2-4982-a1bf-f3323475f44f 2024-11-10 18:04:28,417 - 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.48 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.641 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.641/2.562/4.484/1.921 ms') 2024-11-10 18:04:28,417 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-47228984-43331974 passed 2024-11-10 18:04:28,604 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 18:04:28,604 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-47228984-43331974, IP 60.107.35.67, Port 22 2024-11-10 18:04:28,770 - DEBUG - VM ctest-TestRoutersBasic-47228984-43331974 is ready for SSH connections 2024-11-10 18:04:28,770 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 18:04:28,770 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.107.35.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-11-10 18:04:28,771 - DEBUG - ping -s 56 -c 3 -W 1 60.107.35.67 2024-11-10 18:04:32,598 - DEBUG - PING 60.107.35.67 (60.107.35.67): 56 data bytes 64 bytes from 60.107.35.67: seq=0 ttl=62 time=5.995 ms 64 bytes from 60.107.35.67: seq=1 ttl=62 time=1.159 ms 64 bytes from 60.107.35.67: seq=2 ttl=62 time=1.064 ms --- 60.107.35.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.064/2.739/5.995 ms 2024-11-10 18:04:32,598 - INFO - Ping to IP 60.107.35.67 from VM ctest-TestRoutersBasic-47228984-98337649 passed 2024-11-10 18:04:32,598 - INFO - Deleting interface with subnet_id 0c0d5cbb-03e3-4015-a521-e7061ba8685a, port_id None from router fbc28fc0-d7d9-4873-a94e-81fe205ea0b4 2024-11-10 18:04:32,844 - INFO - Deleting VM ctest-TestRoutersBasic-47228984-43331974 2024-11-10 18:04:32,930 - INFO - Deleting VM ctest-TestRoutersBasic-47228984-98337649 2024-11-10 18:04:33,032 - INFO - Deleting VN ctest-ext_vn-91140977 2024-11-10 18:04:33,103 - DEBUG - VN 58f63dc2-b655-4b53-9af1-b60e1441b7d5 still in use: Unable to complete operation on network 58f63dc2-b655-4b53-9af1-b60e1441b7d5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7d9117ee-1db5-4f04-a340-ce64ab3f4bfb'] 2024-11-10 18:04:33,104 - WARNING - Deleting VN ctest-ext_vn-91140977 failed..Will retry 2024-11-10 18:04:35,337 - DEBUG - Response for deleting network () 2024-11-10 18:04:35,337 - INFO - Deleting VN ctest-vn-79544574 2024-11-10 18:04:35,483 - DEBUG - Response for deleting network () 2024-11-10 18:04:35,749 - DEBUG - No XMPP flaps were noticed during the test
2024-11-10 18:04:35,749 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:33]
2024-11-10 18:04:35,749 - INFO - -------------------------------------------------------------------------------- 2024-11-10 18:04:36,556 - INFO - Deleted project: ctest-TestRoutersBasic-47228984, ID : 537b71bf-82ad-435d-879f-acf0eb6aaf7c