2024-10-26 20:52:42,081 - INFO - Domain Default found not creating
2024-10-26 20:52:42,266 - INFO - Project ctest-TestRoutersBasic-78432625 not found, creating it
2024-10-26 20:52:42,806 - INFO - Created Project:ctest-TestRoutersBasic-78432625, ID : fda95a61-4501-4e53-a20e-0920f531da80
2024-10-26 20:52:44,585 - INFO - ================================================================================
2024-10-26 20:52:44,585 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity
2024-10-26 20:52:44,585 - 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-26 20:52:44,846 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.19': '0'}} with
2024-10-26 20:52:44,846 - INFO - Initial checks done. Running the testcase now
2024-10-26 20:52:44,846 - INFO -
2024-10-26 20:52:45,685 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-78432625
2024-10-26 20:52:45,786 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-78432625
2024-10-26 20:52:46,146 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-78432625', 'default']}
2024-10-26 20:52:46,539 - DEBUG - Response for create_network : {'network': {'id': '07379ef8-af16-4296-8052-541b71a57bc1', 'name': 'ctest-vn-84561867', 'tenant_id': 'fda95a6145014e53a20e0920f531da80', 'project_id': 'fda95a6145014e53a20e0920f531da80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-78432625', 'ctest-vn-84561867'], 'port_security_enabled': True, 'description': ''}}
2024-10-26 20:52:46,732 - DEBUG - Response for create_subnet : {'subnet': {'id': '1948b577-3a91-411e-9c9b-f7b0463b70df', 'name': '', 'tenant_id': 'fda95a6145014e53a20e0920f531da80', 'network_id': '07379ef8-af16-4296-8052-541b71a57bc1', 'ip_version': 4, 'cidr': '62.145.157.128/26', 'allocation_pools': [{'start': '62.145.157.130', 'end': '62.145.157.190'}], 'gateway_ip': '62.145.157.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.145.157.130', 'tags': [], 'project_id': 'fda95a6145014e53a20e0920f531da80'}}
2024-10-26 20:52:46,757 - INFO - Created VN ctest-vn-84561867
2024-10-26 20:52:46,818 - DEBUG - VN ctest-vn-84561867 UUID is 07379ef8-af16-4296-8052-541b71a57bc1
2024-10-26 20:52:47,227 - DEBUG - Response for create_network : {'network': {'id': 'e1d07dc8-4083-46d8-a8fe-ff80bd4cb879', 'name': 'ctest-ext_vn-58154662', 'tenant_id': 'fda95a6145014e53a20e0920f531da80', 'project_id': 'fda95a6145014e53a20e0920f531da80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-78432625', 'ctest-ext_vn-58154662'], 'port_security_enabled': True, 'description': ''}}
2024-10-26 20:52:47,395 - DEBUG - Response for create_subnet : {'subnet': {'id': '2859cca1-d85f-4b78-89b8-49e852e160bf', 'name': '', 'tenant_id': 'fda95a6145014e53a20e0920f531da80', 'network_id': 'e1d07dc8-4083-46d8-a8fe-ff80bd4cb879', 'ip_version': 4, 'cidr': '71.3.182.0/26', 'allocation_pools': [{'start': '71.3.182.2', 'end': '71.3.182.62'}], 'gateway_ip': '71.3.182.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.3.182.2', 'tags': [], 'project_id': 'fda95a6145014e53a20e0920f531da80'}}
2024-10-26 20:52:47,423 - INFO - Created VN ctest-ext_vn-58154662
2024-10-26 20:52:47,482 - DEBUG - VN ctest-ext_vn-58154662 UUID is e1d07dc8-4083-46d8-a8fe-ff80bd4cb879
2024-10-26 20:52:47,687 - DEBUG - Services list from nova: [, , ]
2024-10-26 20:52:48,875 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2153-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2153-1)
2024-10-26 20:52:50,233 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2153-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2153-1)
2024-10-26 20:52:50,336 - INFO - Setting gateway for router 1ae79e8c-3af8-4dcf-a4fd-61533c831179 to network e1d07dc8-4083-46d8-a8fe-ff80bd4cb879
2024-10-26 20:52:50,433 - INFO - Adding interface with subnet_id 1948b577-3a91-411e-9c9b-f7b0463b70df, port_id None to router 1ae79e8c-3af8-4dcf-a4fd-61533c831179
2024-10-26 20:52:50,898 - INFO - Waiting for VM ctest-TestRoutersBasic-78432625-63416694 to be up..
2024-10-26 20:52:51,061 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2024-10-26 20:52:56,162 - DEBUG - VM is in ACTIVE state now
2024-10-26 20:52:56,162 - INFO - VM name : ctest-TestRoutersBasic-78432625-63416694
2024-10-26 20:52:56,255 - DEBUG - VM ctest-TestRoutersBasic-78432625-63416694 ID is 53654af4-e9b8-4465-bf3c-684c104f0797
2024-10-26 20:52:56,282 - DEBUG - VM ctest-TestRoutersBasic-78432625-63416694 launched on Node cn-jenkins-deploy-platform-ansible-os-2153-1
2024-10-26 20:52:56,374 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/53654af4-e9b8-4465-bf3c-684c104f0797
2024-10-26 20:52:56,717 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/53654af4-e9b8-4465-bf3c-684c104f0797
2024-10-26 20:52:56,757 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/4edcbbbc-2f9a-4609-ab83-8a7d664f852b
2024-10-26 20:53:00,059 - 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 1031ms')
2024-10-26 20:53:00,059 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-78432625-63416694 failed!
2024-10-26 20:53:00,122 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-78432625:ctest-vn-84561867 is 62.145.157.129 and allocation pool is NOT set
2024-10-26 20:53:02,186 - 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.32 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.80 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 = 3.317/3.556/3.795/0.239 ms')
2024-10-26 20:53:02,186 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-78432625-63416694 passed
2024-10-26 20:53:02,346 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2024-10-26 20:53:02,346 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-78432625-63416694, IP 62.145.157.131, Port 22
2024-10-26 20:53:02,412 - 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-10-26 20:53:02,510 - DEBUG - VM ctest-TestRoutersBasic-78432625-63416694 is NOT ready for SSH connections, VM status: ACTIVE
2024-10-26 20:53:07,511 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2024-10-26 20:53:07,511 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-78432625-63416694, IP 62.145.157.131, Port 22
2024-10-26 20:53:07,667 - DEBUG - VM ctest-TestRoutersBasic-78432625-63416694 is ready for SSH connections
2024-10-26 20:53:07,667 - INFO - Waiting for VM ctest-TestRoutersBasic-78432625-97420195 to be up..
2024-10-26 20:53:07,762 - DEBUG - VM is in ACTIVE state now
2024-10-26 20:53:07,762 - INFO - VM name : ctest-TestRoutersBasic-78432625-97420195
2024-10-26 20:53:07,875 - DEBUG - VM ctest-TestRoutersBasic-78432625-97420195 ID is c20a43b2-0b77-4217-9ba6-6a536faaa615
2024-10-26 20:53:07,875 - DEBUG - VM ctest-TestRoutersBasic-78432625-97420195 launched on Node cn-jenkins-deploy-platform-ansible-os-2153-1
2024-10-26 20:53:07,968 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/c20a43b2-0b77-4217-9ba6-6a536faaa615
2024-10-26 20:53:07,982 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/723b77ff-a537-4037-b325-f8dbdebd40f3
2024-10-26 20:53:09,239 - 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=3.05 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.466 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.466/1.759/3.053/1.293 ms')
2024-10-26 20:53:09,239 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-78432625-97420195 passed
2024-10-26 20:53:09,410 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2024-10-26 20:53:09,411 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-78432625-97420195, IP 71.3.182.3, Port 22
2024-10-26 20:53:09,577 - DEBUG - VM ctest-TestRoutersBasic-78432625-97420195 is ready for SSH connections
2024-10-26 20:53:09,577 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2024-10-26 20:53:09,578 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 71.3.182.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123
2024-10-26 20:53:09,578 - DEBUG - ping -s 56 -c 3 -W 1 71.3.182.3
2024-10-26 20:53:13,359 - DEBUG - PING 71.3.182.3 (71.3.182.3): 56 data bytes
64 bytes from 71.3.182.3: seq=0 ttl=62 time=7.567 ms
64 bytes from 71.3.182.3: seq=1 ttl=62 time=0.943 ms
64 bytes from 71.3.182.3: seq=2 ttl=62 time=1.365 ms
--- 71.3.182.3 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.943/3.291/7.567 ms
2024-10-26 20:53:13,359 - INFO - Ping to IP 71.3.182.3 from VM ctest-TestRoutersBasic-78432625-63416694 passed
2024-10-26 20:53:13,359 - INFO - Deleting interface with subnet_id 1948b577-3a91-411e-9c9b-f7b0463b70df, port_id None from router 1ae79e8c-3af8-4dcf-a4fd-61533c831179
2024-10-26 20:53:13,608 - INFO - Deleting VM ctest-TestRoutersBasic-78432625-97420195
2024-10-26 20:53:13,682 - INFO - Deleting VM ctest-TestRoutersBasic-78432625-63416694
2024-10-26 20:53:13,789 - INFO - Deleting VN ctest-ext_vn-58154662
2024-10-26 20:53:13,896 - DEBUG - VN e1d07dc8-4083-46d8-a8fe-ff80bd4cb879 still in use: Unable to complete operation on network e1d07dc8-4083-46d8-a8fe-ff80bd4cb879. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-138e97c1-b4dc-4038-90b8-a26545bd8552']
2024-10-26 20:53:13,896 - WARNING - Deleting VN ctest-ext_vn-58154662 failed..Will retry
2024-10-26 20:53:16,034 - DEBUG - Response for deleting network ()
2024-10-26 20:53:16,035 - INFO - Deleting VN ctest-vn-84561867
2024-10-26 20:53:16,178 - DEBUG - Response for deleting network ()
2024-10-26 20:53:16,432 - DEBUG - No XMPP flaps were noticed during the test
2024-10-26 20:53:16,432 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2024-10-26 20:53:16,432 - INFO - --------------------------------------------------------------------------------
2024-10-26 20:53:17,216 - INFO - Deleted project: ctest-TestRoutersBasic-78432625, ID : fda95a61-4501-4e53-a20e-0920f531da80