2025-05-07 14:14:06,128 - INFO - Domain Default found not creating 2025-05-07 14:14:06,260 - INFO - Project ctest-TestRoutersBasic-97627566 not found, creating it 2025-05-07 14:14:06,691 - INFO - Created Project:ctest-TestRoutersBasic-97627566, ID : ae555d7d-0e9d-4948-8201-97ac91fb6ff0 2025-05-07 14:14:08,063 - INFO - ================================================================================ 2025-05-07 14:14:08,063 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-05-07 14:14:08,063 - 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-05-07 14:14:08,330 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with 2025-05-07 14:14:08,331 - INFO - Initial checks done. Running the testcase now 2025-05-07 14:14:08,331 - INFO - 2025-05-07 14:14:09,031 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-97627566 2025-05-07 14:14:09,128 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-97627566 2025-05-07 14:14:09,452 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-97627566', 'default']} 2025-05-07 14:14:09,731 - DEBUG - Response for create_network : {'network': {'id': '92bbb2f8-2d07-4294-917f-256ef411b7a9', 'name': 'ctest-vn-31340624', 'tenant_id': 'ae555d7d0e9d4948820197ac91fb6ff0', 'project_id': 'ae555d7d0e9d4948820197ac91fb6ff0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-97627566', 'ctest-vn-31340624'], 'port_security_enabled': True, 'description': ''}} 2025-05-07 14:14:09,896 - DEBUG - Response for create_subnet : {'subnet': {'id': '17665981-ac0c-4e9e-a4e4-99c9b517288a', 'name': '', 'tenant_id': 'ae555d7d0e9d4948820197ac91fb6ff0', 'network_id': '92bbb2f8-2d07-4294-917f-256ef411b7a9', 'ip_version': 4, 'cidr': '33.141.195.192/26', 'allocation_pools': [{'start': '33.141.195.194', 'end': '33.141.195.254'}], 'gateway_ip': '33.141.195.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.141.195.194', 'tags': [], 'project_id': 'ae555d7d0e9d4948820197ac91fb6ff0'}} 2025-05-07 14:14:09,915 - INFO - Created VN ctest-vn-31340624 2025-05-07 14:14:09,968 - DEBUG - VN ctest-vn-31340624 UUID is 92bbb2f8-2d07-4294-917f-256ef411b7a9 2025-05-07 14:14:10,324 - DEBUG - Response for create_network : {'network': {'id': '5d6e1972-ca78-4733-bec1-c605b1a77bdd', 'name': 'ctest-ext_vn-89891987', 'tenant_id': 'ae555d7d0e9d4948820197ac91fb6ff0', 'project_id': 'ae555d7d0e9d4948820197ac91fb6ff0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-97627566', 'ctest-ext_vn-89891987'], 'port_security_enabled': True, 'description': ''}} 2025-05-07 14:14:10,490 - DEBUG - Response for create_subnet : {'subnet': {'id': '199575d3-6c84-426a-a151-fded02b87808', 'name': '', 'tenant_id': 'ae555d7d0e9d4948820197ac91fb6ff0', 'network_id': '5d6e1972-ca78-4733-bec1-c605b1a77bdd', 'ip_version': 4, 'cidr': '44.187.127.0/26', 'allocation_pools': [{'start': '44.187.127.2', 'end': '44.187.127.62'}], 'gateway_ip': '44.187.127.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.187.127.2', 'tags': [], 'project_id': 'ae555d7d0e9d4948820197ac91fb6ff0'}} 2025-05-07 14:14:10,507 - INFO - Created VN ctest-ext_vn-89891987 2025-05-07 14:14:10,560 - DEBUG - VN ctest-ext_vn-89891987 UUID is 5d6e1972-ca78-4733-bec1-c605b1a77bdd 2025-05-07 14:14:10,757 - DEBUG - Services list from nova: [, , ] 2025-05-07 14:14:11,713 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3283-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3283-1) 2025-05-07 14:14:12,825 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3283-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3283-1) 2025-05-07 14:14:12,903 - INFO - Setting gateway for router a9d42288-30b7-4fcf-807e-035d1bc9225e to network 5d6e1972-ca78-4733-bec1-c605b1a77bdd 2025-05-07 14:14:12,990 - INFO - Adding interface with subnet_id 17665981-ac0c-4e9e-a4e4-99c9b517288a, port_id None to router a9d42288-30b7-4fcf-807e-035d1bc9225e 2025-05-07 14:14:13,411 - INFO - Waiting for VM ctest-TestRoutersBasic-97627566-38006850 to be up.. 2025-05-07 14:14:13,550 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-07 14:14:18,622 - DEBUG - VM is in ACTIVE state now 2025-05-07 14:14:18,622 - INFO - VM name : ctest-TestRoutersBasic-97627566-38006850 2025-05-07 14:14:18,692 - DEBUG - VM ctest-TestRoutersBasic-97627566-38006850 ID is 699898d8-1979-4ed1-bc0e-232aaba1a545 2025-05-07 14:14:18,710 - DEBUG - VM ctest-TestRoutersBasic-97627566-38006850 launched on Node cn-jenkins-deploy-platform-ansible-os-3283-1 2025-05-07 14:14:18,779 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/699898d8-1979-4ed1-bc0e-232aaba1a545 2025-05-07 14:14:19,073 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/699898d8-1979-4ed1-bc0e-232aaba1a545 2025-05-07 14:14:19,103 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/6b53ae83-7547-4c96-95bf-b39f7104e739 2025-05-07 14:14:22,353 - 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=2 ttl=63 time=12.1 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1012ms\r\nrtt min/avg/max/mdev = 12.127/12.127/12.127/0.000 ms') 2025-05-07 14:14:22,353 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-97627566-38006850 passed 2025-05-07 14:14:22,500 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-07 14:14:22,500 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-97627566-38006850, IP 33.141.195.195, Port 22 2025-05-07 14:14:22,556 - 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': ''} 2025-05-07 14:14:22,627 - DEBUG - VM ctest-TestRoutersBasic-97627566-38006850 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-07 14:14:27,627 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-07 14:14:27,628 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-97627566-38006850, IP 33.141.195.195, Port 22 2025-05-07 14:14:27,779 - DEBUG - VM ctest-TestRoutersBasic-97627566-38006850 is ready for SSH connections 2025-05-07 14:14:27,779 - INFO - Waiting for VM ctest-TestRoutersBasic-97627566-83047202 to be up.. 2025-05-07 14:14:27,849 - DEBUG - VM is in ACTIVE state now 2025-05-07 14:14:27,849 - INFO - VM name : ctest-TestRoutersBasic-97627566-83047202 2025-05-07 14:14:27,916 - DEBUG - VM ctest-TestRoutersBasic-97627566-83047202 ID is bd98b190-7801-442f-9fe8-49c76352cbdc 2025-05-07 14:14:27,916 - DEBUG - VM ctest-TestRoutersBasic-97627566-83047202 launched on Node cn-jenkins-deploy-platform-ansible-os-3283-1 2025-05-07 14:14:27,984 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/bd98b190-7801-442f-9fe8-49c76352cbdc 2025-05-07 14:14:27,993 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/e5be4cdd-352f-4a31-8b81-24de08cbd03f 2025-05-07 14:14:29,230 - 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.68 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.347 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.347/1.511/2.676/1.164 ms') 2025-05-07 14:14:29,230 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-97627566-83047202 passed 2025-05-07 14:14:29,380 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-07 14:14:29,380 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-97627566-83047202, IP 44.187.127.3, Port 22 2025-05-07 14:14:29,539 - DEBUG - VM ctest-TestRoutersBasic-97627566-83047202 is ready for SSH connections 2025-05-07 14:14:29,539 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-07 14:14:29,540 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 44.187.127.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-05-07 14:14:29,540 - DEBUG - ping -s 56 -c 3 -W 1 44.187.127.3 2025-05-07 14:14:33,225 - DEBUG - PING 44.187.127.3 (44.187.127.3): 56 data bytes 64 bytes from 44.187.127.3: seq=0 ttl=62 time=5.476 ms 64 bytes from 44.187.127.3: seq=1 ttl=62 time=1.098 ms 64 bytes from 44.187.127.3: seq=2 ttl=62 time=0.910 ms --- 44.187.127.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.910/2.494/5.476 ms 2025-05-07 14:14:33,225 - INFO - Ping to IP 44.187.127.3 from VM ctest-TestRoutersBasic-97627566-38006850 passed 2025-05-07 14:14:33,225 - INFO - Deleting interface with subnet_id 17665981-ac0c-4e9e-a4e4-99c9b517288a, port_id None from router a9d42288-30b7-4fcf-807e-035d1bc9225e 2025-05-07 14:14:33,433 - INFO - Deleting VM ctest-TestRoutersBasic-97627566-83047202 2025-05-07 14:14:33,504 - INFO - Deleting VM ctest-TestRoutersBasic-97627566-38006850 2025-05-07 14:14:33,601 - INFO - Deleting VN ctest-ext_vn-89891987 2025-05-07 14:14:33,702 - DEBUG - VN 5d6e1972-ca78-4733-bec1-c605b1a77bdd still in use: Unable to complete operation on network 5d6e1972-ca78-4733-bec1-c605b1a77bdd. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6e31f85d-2375-4d00-bae6-aec113f9852b'] 2025-05-07 14:14:33,702 - WARNING - Deleting VN ctest-ext_vn-89891987 failed..Will retry 2025-05-07 14:14:35,829 - DEBUG - Response for deleting network () 2025-05-07 14:14:35,829 - INFO - Deleting VN ctest-vn-31340624 2025-05-07 14:14:35,924 - DEBUG - Response for deleting network () 2025-05-07 14:14:36,177 - DEBUG - No XMPP flaps were noticed during the test
2025-05-07 14:14:36,177 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:28]
2025-05-07 14:14:36,178 - INFO - -------------------------------------------------------------------------------- 2025-05-07 14:14:36,867 - INFO - Deleted project: ctest-TestRoutersBasic-97627566, ID : ae555d7d-0e9d-4948-8201-97ac91fb6ff0