2024-11-06 13:15:07,298 - INFO - Domain Default found not creating
2024-11-06 13:15:07,475 - INFO - Project ctest-TestRoutersBasic-63145580 not found, creating it
2024-11-06 13:15:07,997 - INFO - Created Project:ctest-TestRoutersBasic-63145580, ID : 9cc99fda-6b48-49d1-a94b-8a7685ef9f45
2024-11-06 13:15:09,533 - INFO - ================================================================================
2024-11-06 13:15:09,533 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity
2024-11-06 13:15:09,533 - 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-06 13:15:09,797 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.20': '0'}} with
2024-11-06 13:15:09,797 - INFO - Initial checks done. Running the testcase now
2024-11-06 13:15:09,797 - INFO -
2024-11-06 13:15:10,561 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-63145580
2024-11-06 13:15:10,662 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-63145580
2024-11-06 13:15:11,018 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-63145580', 'default']}
2024-11-06 13:15:11,374 - DEBUG - Response for create_network : {'network': {'id': '91c36139-c471-4364-9f9c-8d9493cfc9a0', 'name': 'ctest-vn-41414130', 'tenant_id': '9cc99fda6b4849d1a94b8a7685ef9f45', 'project_id': '9cc99fda6b4849d1a94b8a7685ef9f45', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-63145580', 'ctest-vn-41414130'], 'port_security_enabled': True, 'description': ''}}
2024-11-06 13:15:11,566 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9cdcf60-3a50-433b-bd07-afe1183303fb', 'name': '', 'tenant_id': '9cc99fda6b4849d1a94b8a7685ef9f45', 'network_id': '91c36139-c471-4364-9f9c-8d9493cfc9a0', 'ip_version': 4, 'cidr': '34.115.50.192/26', 'allocation_pools': [{'start': '34.115.50.194', 'end': '34.115.50.254'}], 'gateway_ip': '34.115.50.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.115.50.194', 'tags': [], 'project_id': '9cc99fda6b4849d1a94b8a7685ef9f45'}}
2024-11-06 13:15:11,586 - INFO - Created VN ctest-vn-41414130
2024-11-06 13:15:11,642 - DEBUG - VN ctest-vn-41414130 UUID is 91c36139-c471-4364-9f9c-8d9493cfc9a0
2024-11-06 13:15:12,028 - DEBUG - Response for create_network : {'network': {'id': '41eeac5e-7a33-40f0-b7a0-ca73412b0e13', 'name': 'ctest-ext_vn-56596038', 'tenant_id': '9cc99fda6b4849d1a94b8a7685ef9f45', 'project_id': '9cc99fda6b4849d1a94b8a7685ef9f45', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-63145580', 'ctest-ext_vn-56596038'], 'port_security_enabled': True, 'description': ''}}
2024-11-06 13:15:12,236 - DEBUG - Response for create_subnet : {'subnet': {'id': 'adb2b7ad-4279-429d-af65-413c5651e6ff', 'name': '', 'tenant_id': '9cc99fda6b4849d1a94b8a7685ef9f45', 'network_id': '41eeac5e-7a33-40f0-b7a0-ca73412b0e13', 'ip_version': 4, 'cidr': '206.23.20.0/26', 'allocation_pools': [{'start': '206.23.20.2', 'end': '206.23.20.62'}], 'gateway_ip': '206.23.20.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.23.20.2', 'tags': [], 'project_id': '9cc99fda6b4849d1a94b8a7685ef9f45'}}
2024-11-06 13:15:12,260 - INFO - Created VN ctest-ext_vn-56596038
2024-11-06 13:15:12,318 - DEBUG - VN ctest-ext_vn-56596038 UUID is 41eeac5e-7a33-40f0-b7a0-ca73412b0e13
2024-11-06 13:15:12,500 - DEBUG - Services list from nova: [, , ]
2024-11-06 13:15:13,596 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2202-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2202-1)
2024-11-06 13:15:14,835 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2202-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2202-1)
2024-11-06 13:15:14,916 - INFO - Setting gateway for router 9cce0151-f666-408d-a4f9-f5a5de180eae to network 41eeac5e-7a33-40f0-b7a0-ca73412b0e13
2024-11-06 13:15:15,000 - INFO - Adding interface with subnet_id a9cdcf60-3a50-433b-bd07-afe1183303fb, port_id None to router 9cce0151-f666-408d-a4f9-f5a5de180eae
2024-11-06 13:15:15,410 - INFO - Waiting for VM ctest-TestRoutersBasic-63145580-47311384 to be up..
2024-11-06 13:15:15,654 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2024-11-06 13:15:20,735 - DEBUG - VM is in ACTIVE state now
2024-11-06 13:15:20,735 - INFO - VM name : ctest-TestRoutersBasic-63145580-47311384
2024-11-06 13:15:20,842 - DEBUG - VM ctest-TestRoutersBasic-63145580-47311384 ID is ab64e028-7cb7-4a24-87ea-e5637952da03
2024-11-06 13:15:20,862 - DEBUG - VM ctest-TestRoutersBasic-63145580-47311384 launched on Node cn-jenkins-deploy-platform-ansible-os-2202-1
2024-11-06 13:15:20,967 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/ab64e028-7cb7-4a24-87ea-e5637952da03
2024-11-06 13:15:21,265 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/ab64e028-7cb7-4a24-87ea-e5637952da03
2024-11-06 13:15:21,305 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/c42b2c8a-4fd8-4518-8ca6-0d8f5ddab7e7
2024-11-06 13:15:24,571 - 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')
2024-11-06 13:15:24,571 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-63145580-47311384 failed!
2024-11-06 13:15:24,642 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-63145580:ctest-vn-41414130 is 34.115.50.193 and allocation pool is NOT set
2024-11-06 13:15:26,710 - 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.55 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.845 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.845/2.697/4.550/1.852 ms')
2024-11-06 13:15:26,710 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-63145580-47311384 passed
2024-11-06 13:15:26,870 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2024-11-06 13:15:26,870 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-63145580-47311384, IP 34.115.50.195, Port 22
2024-11-06 13:15:26,925 - 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-06 13:15:27,010 - DEBUG - VM ctest-TestRoutersBasic-63145580-47311384 is NOT ready for SSH connections, VM status: ACTIVE
2024-11-06 13:15:32,012 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2024-11-06 13:15:32,012 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-63145580-47311384, IP 34.115.50.195, Port 22
2024-11-06 13:15:32,177 - DEBUG - VM ctest-TestRoutersBasic-63145580-47311384 is ready for SSH connections
2024-11-06 13:15:32,177 - INFO - Waiting for VM ctest-TestRoutersBasic-63145580-17927059 to be up..
2024-11-06 13:15:32,264 - DEBUG - VM is in ACTIVE state now
2024-11-06 13:15:32,265 - INFO - VM name : ctest-TestRoutersBasic-63145580-17927059
2024-11-06 13:15:32,343 - DEBUG - VM ctest-TestRoutersBasic-63145580-17927059 ID is f3920f47-878d-4429-9010-da8e72962f5e
2024-11-06 13:15:32,344 - DEBUG - VM ctest-TestRoutersBasic-63145580-17927059 launched on Node cn-jenkins-deploy-platform-ansible-os-2202-1
2024-11-06 13:15:32,422 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/f3920f47-878d-4429-9010-da8e72962f5e
2024-11-06 13:15:32,431 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/7dabb744-ff4d-49a9-a0be-e9b90f445932
2024-11-06 13:15:33,682 - 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.92 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.348 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.348/1.635/2.922/1.287 ms')
2024-11-06 13:15:33,682 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-63145580-17927059 passed
2024-11-06 13:15:33,846 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2024-11-06 13:15:33,846 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-63145580-17927059, IP 206.23.20.3, Port 22
2024-11-06 13:15:34,001 - DEBUG - VM ctest-TestRoutersBasic-63145580-17927059 is ready for SSH connections
2024-11-06 13:15:34,002 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2024-11-06 13:15:34,002 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 206.23.20.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123
2024-11-06 13:15:34,002 - DEBUG - ping -s 56 -c 3 -W 1 206.23.20.3
2024-11-06 13:15:37,708 - DEBUG - PING 206.23.20.3 (206.23.20.3): 56 data bytes
64 bytes from 206.23.20.3: seq=0 ttl=62 time=5.608 ms
64 bytes from 206.23.20.3: seq=1 ttl=62 time=0.841 ms
64 bytes from 206.23.20.3: seq=2 ttl=62 time=0.980 ms
--- 206.23.20.3 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.841/2.476/5.608 ms
2024-11-06 13:15:37,708 - INFO - Ping to IP 206.23.20.3 from VM ctest-TestRoutersBasic-63145580-47311384 passed
2024-11-06 13:15:37,708 - INFO - Deleting interface with subnet_id a9cdcf60-3a50-433b-bd07-afe1183303fb, port_id None from router 9cce0151-f666-408d-a4f9-f5a5de180eae
2024-11-06 13:15:37,933 - INFO - Deleting VM ctest-TestRoutersBasic-63145580-17927059
2024-11-06 13:15:38,011 - INFO - Deleting VM ctest-TestRoutersBasic-63145580-47311384
2024-11-06 13:15:38,091 - INFO - Deleting VN ctest-ext_vn-56596038
2024-11-06 13:15:38,190 - DEBUG - VN 41eeac5e-7a33-40f0-b7a0-ca73412b0e13 still in use: Unable to complete operation on network 41eeac5e-7a33-40f0-b7a0-ca73412b0e13. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-a0bab885-5d58-4e94-88aa-07b95c9f9323']
2024-11-06 13:15:38,190 - WARNING - Deleting VN ctest-ext_vn-56596038 failed..Will retry
2024-11-06 13:15:40,300 - DEBUG - Response for deleting network ()
2024-11-06 13:15:40,300 - INFO - Deleting VN ctest-vn-41414130
2024-11-06 13:15:40,422 - DEBUG - Response for deleting network ()
2024-11-06 13:15:40,679 - DEBUG - No XMPP flaps were noticed during the test
2024-11-06 13:15:40,679 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2024-11-06 13:15:40,680 - INFO - --------------------------------------------------------------------------------
2024-11-06 13:15:41,748 - INFO - Deleted project: ctest-TestRoutersBasic-63145580, ID : 9cc99fda-6b48-49d1-a94b-8a7685ef9f45