2024-10-23 18:07:03,638 - INFO - Domain Default found not creating
2024-10-23 18:07:03,844 - INFO - Project ctest-TestRoutersBasic-31094451 not found, creating it
2024-10-23 18:07:04,405 - INFO - Created Project:ctest-TestRoutersBasic-31094451, ID : 0d5e2f1f-3dc6-44ce-9795-65884bcf6c47
2024-10-23 18:07:06,034 - INFO - ================================================================================
2024-10-23 18:07:06,035 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity
2024-10-23 18:07:06,035 - 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-10-23 18:07:06,309 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.6': '0'}} with
2024-10-23 18:07:06,309 - INFO - Initial checks done. Running the testcase now
2024-10-23 18:07:06,309 - INFO -
2024-10-23 18:07:07,074 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-31094451
2024-10-23 18:07:07,174 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-31094451
2024-10-23 18:07:07,510 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31094451', 'default']}
2024-10-23 18:07:07,876 - DEBUG - Response for create_network : {'network': {'id': '00a52f48-ea74-4f27-ad04-084f3fd48a13', 'name': 'ctest-vn-32706309', 'tenant_id': '0d5e2f1f3dc644ce979565884bcf6c47', 'project_id': '0d5e2f1f3dc644ce979565884bcf6c47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31094451', 'ctest-vn-32706309'], 'port_security_enabled': True, 'description': ''}}
2024-10-23 18:07:08,087 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b70daf06-4947-4a5a-a2d7-d30d9545a804', 'name': '', 'tenant_id': '0d5e2f1f3dc644ce979565884bcf6c47', 'network_id': '00a52f48-ea74-4f27-ad04-084f3fd48a13', 'ip_version': 4, 'cidr': '61.167.0.64/26', 'allocation_pools': [{'start': '61.167.0.66', 'end': '61.167.0.126'}], 'gateway_ip': '61.167.0.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.167.0.66', 'tags': [], 'project_id': '0d5e2f1f3dc644ce979565884bcf6c47'}}
2024-10-23 18:07:08,114 - INFO - Created VN ctest-vn-32706309
2024-10-23 18:07:08,175 - DEBUG - VN ctest-vn-32706309 UUID is 00a52f48-ea74-4f27-ad04-084f3fd48a13
2024-10-23 18:07:08,577 - DEBUG - Response for create_network : {'network': {'id': '105e19e8-7524-4d25-8e30-9aa2da53042e', 'name': 'ctest-ext_vn-14673415', 'tenant_id': '0d5e2f1f3dc644ce979565884bcf6c47', 'project_id': '0d5e2f1f3dc644ce979565884bcf6c47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31094451', 'ctest-ext_vn-14673415'], 'port_security_enabled': True, 'description': ''}}
2024-10-23 18:07:08,822 - DEBUG - Response for create_subnet : {'subnet': {'id': '772e7bb0-6f07-424b-aaa8-0038cf304779', 'name': '', 'tenant_id': '0d5e2f1f3dc644ce979565884bcf6c47', 'network_id': '105e19e8-7524-4d25-8e30-9aa2da53042e', 'ip_version': 4, 'cidr': '184.119.0.64/26', 'allocation_pools': [{'start': '184.119.0.66', 'end': '184.119.0.126'}], 'gateway_ip': '184.119.0.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.119.0.66', 'tags': [], 'project_id': '0d5e2f1f3dc644ce979565884bcf6c47'}}
2024-10-23 18:07:08,848 - INFO - Created VN ctest-ext_vn-14673415
2024-10-23 18:07:08,906 - DEBUG - VN ctest-ext_vn-14673415 UUID is 105e19e8-7524-4d25-8e30-9aa2da53042e
2024-10-23 18:07:09,109 - DEBUG - Services list from nova: [, , ]
2024-10-23 18:07:10,259 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2132-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2132-1)
2024-10-23 18:07:11,557 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2132-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2132-1)
2024-10-23 18:07:11,646 - INFO - Setting gateway for router 03a07731-6586-492f-85db-39e1f34f9845 to network 105e19e8-7524-4d25-8e30-9aa2da53042e
2024-10-23 18:07:11,732 - INFO - Adding interface with subnet_id b70daf06-4947-4a5a-a2d7-d30d9545a804, port_id None to router 03a07731-6586-492f-85db-39e1f34f9845
2024-10-23 18:07:12,191 - INFO - Waiting for VM ctest-TestRoutersBasic-31094451-42848942 to be up..
2024-10-23 18:07:12,450 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2024-10-23 18:07:17,541 - DEBUG - VM is in ACTIVE state now
2024-10-23 18:07:17,541 - INFO - VM name : ctest-TestRoutersBasic-31094451-42848942
2024-10-23 18:07:17,634 - DEBUG - VM ctest-TestRoutersBasic-31094451-42848942 ID is d96e04e7-e83e-4530-83ef-f48d73e2e744
2024-10-23 18:07:17,655 - DEBUG - VM ctest-TestRoutersBasic-31094451-42848942 launched on Node cn-jenkins-deploy-platform-ansible-os-2132-1
2024-10-23 18:07:17,777 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/d96e04e7-e83e-4530-83ef-f48d73e2e744
2024-10-23 18:07:18,100 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/d96e04e7-e83e-4530-83ef-f48d73e2e744
2024-10-23 18:07:18,147 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/5bdc5206-3184-4ae5-bd0b-44740bb3a286
2024-10-23 18:07:21,446 - 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 1019ms')
2024-10-23 18:07:21,446 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-31094451-42848942 failed!
2024-10-23 18:07:21,514 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-31094451:ctest-vn-32706309 is 61.167.0.65 and allocation pool is NOT set
2024-10-23 18:07:23,580 - 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=4.33 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.975 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.975/2.651/4.327/1.676 ms')
2024-10-23 18:07:23,580 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-31094451-42848942 passed
2024-10-23 18:07:23,743 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2024-10-23 18:07:23,744 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31094451-42848942, IP 61.167.0.67, Port 22
2024-10-23 18:07:23,918 - DEBUG - VM ctest-TestRoutersBasic-31094451-42848942 is ready for SSH connections
2024-10-23 18:07:23,918 - INFO - Waiting for VM ctest-TestRoutersBasic-31094451-89936933 to be up..
2024-10-23 18:07:24,036 - DEBUG - VM is in ACTIVE state now
2024-10-23 18:07:24,037 - INFO - VM name : ctest-TestRoutersBasic-31094451-89936933
2024-10-23 18:07:24,126 - DEBUG - VM ctest-TestRoutersBasic-31094451-89936933 ID is 3d76dc90-c64f-44b9-bcee-53e3db44b57e
2024-10-23 18:07:24,126 - DEBUG - VM ctest-TestRoutersBasic-31094451-89936933 launched on Node cn-jenkins-deploy-platform-ansible-os-2132-1
2024-10-23 18:07:24,217 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/3d76dc90-c64f-44b9-bcee-53e3db44b57e
2024-10-23 18:07:24,229 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/4485d263-3f63-4572-95fa-81b6b93846c3
2024-10-23 18:07:25,508 - 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.23 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.18 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.178/3.205/5.232/2.027 ms')
2024-10-23 18:07:25,508 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-31094451-89936933 passed
2024-10-23 18:07:25,666 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2024-10-23 18:07:25,666 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31094451-89936933, IP 184.119.0.67, Port 22
2024-10-23 18:07:25,732 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused
/bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''}
2024-10-23 18:07:25,829 - DEBUG - VM ctest-TestRoutersBasic-31094451-89936933 is NOT ready for SSH connections, VM status: ACTIVE
2024-10-23 18:07:30,831 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2024-10-23 18:07:30,831 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31094451-89936933, IP 184.119.0.67, Port 22
2024-10-23 18:07:30,994 - DEBUG - VM ctest-TestRoutersBasic-31094451-89936933 is ready for SSH connections
2024-10-23 18:07:30,994 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2024-10-23 18:07:30,994 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 184.119.0.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123
2024-10-23 18:07:30,994 - DEBUG - ping -s 56 -c 3 -W 1 184.119.0.67
2024-10-23 18:07:34,735 - DEBUG - PING 184.119.0.67 (184.119.0.67): 56 data bytes
64 bytes from 184.119.0.67: seq=0 ttl=62 time=8.574 ms
64 bytes from 184.119.0.67: seq=1 ttl=62 time=1.323 ms
64 bytes from 184.119.0.67: seq=2 ttl=62 time=1.002 ms
--- 184.119.0.67 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 1.002/3.633/8.574 ms
2024-10-23 18:07:34,735 - INFO - Ping to IP 184.119.0.67 from VM ctest-TestRoutersBasic-31094451-42848942 passed
2024-10-23 18:07:34,735 - INFO - Deleting interface with subnet_id b70daf06-4947-4a5a-a2d7-d30d9545a804, port_id None from router 03a07731-6586-492f-85db-39e1f34f9845
2024-10-23 18:07:35,172 - INFO - Deleting VM ctest-TestRoutersBasic-31094451-89936933
2024-10-23 18:07:35,250 - INFO - Deleting VM ctest-TestRoutersBasic-31094451-42848942
2024-10-23 18:07:35,339 - INFO - Deleting VN ctest-ext_vn-14673415
2024-10-23 18:07:35,441 - DEBUG - VN 105e19e8-7524-4d25-8e30-9aa2da53042e still in use: Unable to complete operation on network 105e19e8-7524-4d25-8e30-9aa2da53042e. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-be6fe715-a5ba-4ac6-b2a1-fe6a1d98beea']
2024-10-23 18:07:35,441 - WARNING - Deleting VN ctest-ext_vn-14673415 failed..Will retry
2024-10-23 18:07:37,565 - DEBUG - Response for deleting network ()
2024-10-23 18:07:37,565 - INFO - Deleting VN ctest-vn-32706309
2024-10-23 18:07:37,680 - DEBUG - Response for deleting network ()
2024-10-23 18:07:37,936 - DEBUG - No XMPP flaps were noticed during the test
2024-10-23 18:07:37,936 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2024-10-23 18:07:37,936 - INFO - --------------------------------------------------------------------------------
2024-10-23 18:07:38,656 - INFO - Deleted project: ctest-TestRoutersBasic-31094451, ID : 0d5e2f1f-3dc6-44ce-9795-65884bcf6c47