2024-09-19 18:44:07,104 - INFO - Domain Default found not creating 2024-09-19 18:44:07,516 - INFO - Project ctest-TestBasicPolicy-99559149 not found, creating it 2024-09-19 18:44:08,230 - INFO - Created Project:ctest-TestBasicPolicy-99559149, ID : 6e7bf022-bd20-44e1-aa26-fcd53e2b1e46 2024-09-19 18:44:10,633 - INFO - ================================================================================ 2024-09-19 18:44:10,634 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-19 18:44:10,634 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2024-09-19 18:44:10,956 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.20': '0'}} with 2024-09-19 18:44:10,956 - INFO - Initial checks done. Running the testcase now 2024-09-19 18:44:10,956 - INFO - 2024-09-19 18:44:11,945 - DEBUG - Response for create_network : {'network': {'id': '08e6eecc-4789-4eee-991c-a817908ce842', 'name': 'ctest-vn-16428759', 'tenant_id': '6e7bf022bd2044e1aa26fcd53e2b1e46', 'project_id': '6e7bf022bd2044e1aa26fcd53e2b1e46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99559149', 'ctest-vn-16428759'], 'port_security_enabled': True, 'description': ''}} 2024-09-19 18:44:12,237 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b616809a-a81b-48df-bcd3-c8a26495ffd5', 'name': '', 'tenant_id': '6e7bf022bd2044e1aa26fcd53e2b1e46', 'network_id': '08e6eecc-4789-4eee-991c-a817908ce842', 'ip_version': 4, 'cidr': '24.91.78.128/26', 'allocation_pools': [{'start': '24.91.78.130', 'end': '24.91.78.190'}], 'gateway_ip': '24.91.78.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.91.78.130', 'tags': [], 'project_id': '6e7bf022bd2044e1aa26fcd53e2b1e46'}} 2024-09-19 18:44:12,283 - INFO - Created VN ctest-vn-16428759 2024-09-19 18:44:12,354 - DEBUG - VN ctest-vn-16428759 UUID is 08e6eecc-4789-4eee-991c-a817908ce842 2024-09-19 18:44:12,747 - DEBUG - Response for create_network : {'network': {'id': 'c27dd510-bccc-4584-8c60-cbbb3d22c782', 'name': 'ctest-vn-41390247', 'tenant_id': '6e7bf022bd2044e1aa26fcd53e2b1e46', 'project_id': '6e7bf022bd2044e1aa26fcd53e2b1e46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99559149', 'ctest-vn-41390247'], 'port_security_enabled': True, 'description': ''}} 2024-09-19 18:44:12,991 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c176147e-a167-4c7c-a019-c768aec0e818', 'name': '', 'tenant_id': '6e7bf022bd2044e1aa26fcd53e2b1e46', 'network_id': 'c27dd510-bccc-4584-8c60-cbbb3d22c782', 'ip_version': 4, 'cidr': '115.50.89.64/26', 'allocation_pools': [{'start': '115.50.89.66', 'end': '115.50.89.126'}], 'gateway_ip': '115.50.89.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.50.89.66', 'tags': [], 'project_id': '6e7bf022bd2044e1aa26fcd53e2b1e46'}} 2024-09-19 18:44:13,012 - INFO - Created VN ctest-vn-41390247 2024-09-19 18:44:13,074 - DEBUG - VN ctest-vn-41390247 UUID is c27dd510-bccc-4584-8c60-cbbb3d22c782 2024-09-19 18:44:13,263 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-16428759, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-41390247, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2024-09-19 18:44:13,781 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '08e6eecc-4789-4eee-991c-a817908ce842', 'name': 'ctest-vn-16428759', 'tenant_id': '6e7bf022bd2044e1aa26fcd53e2b1e46', 'project_id': '6e7bf022bd2044e1aa26fcd53e2b1e46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b616809a-a81b-48df-bcd3-c8a26495ffd5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99559149', 'ctest-vn-16428759'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99559149', 'ctest-policy-allow-all-42856460']], 'subnet_ipam': [{'subnet_cidr': '24.91.78.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-19 18:44:14,174 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c27dd510-bccc-4584-8c60-cbbb3d22c782', 'name': 'ctest-vn-41390247', 'tenant_id': '6e7bf022bd2044e1aa26fcd53e2b1e46', 'project_id': '6e7bf022bd2044e1aa26fcd53e2b1e46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c176147e-a167-4c7c-a019-c768aec0e818'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99559149', 'ctest-vn-41390247'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99559149', 'ctest-policy-allow-all-42856460']], 'subnet_ipam': [{'subnet_cidr': '115.50.89.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-19 18:44:14,357 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-19 18:44:14,900 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-19 18:44:14,995 - DEBUG - Requesting: http://10.0.0.31:8082/domain/1f969ea6-b8e3-4725-81e4-b6b63e29d1fd 2024-09-19 18:44:15,045 - DEBUG - Requesting: http://10.0.0.31:8082/project/6e7bf022-bd20-44e1-aa26-fcd53e2b1e46 2024-09-19 18:44:15,125 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/08e6eecc-4789-4eee-991c-a817908ce842 2024-09-19 18:44:15,155 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/08e6eecc-4789-4eee-991c-a817908ce842 2024-09-19 18:44:15,179 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/75fa4af9-5c13-42f8-aed8-2db3da2b4aee 2024-09-19 18:44:15,195 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/75fa4af9-5c13-42f8-aed8-2db3da2b4aee 2024-09-19 18:44:15,216 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/85952d3f-f307-4d8c-9704-e958281d4c44 2024-09-19 18:44:15,231 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-19 18:44:15,231 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/08e6eecc-4789-4eee-991c-a817908ce842 2024-09-19 18:44:15,258 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/75fa4af9-5c13-42f8-aed8-2db3da2b4aee 2024-09-19 18:44:15,318 - INFO - Verified VN network id 8 for VN 08e6eecc-4789-4eee-991c-a817908ce842 2024-09-19 18:44:15,319 - INFO - Verifications in API Server for VN ctest-vn-16428759 passed 2024-09-19 18:44:15,319 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/08e6eecc-4789-4eee-991c-a817908ce842 2024-09-19 18:44:15,361 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/75fa4af9-5c13-42f8-aed8-2db3da2b4aee 2024-09-19 18:44:15,379 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/75fa4af9-5c13-42f8-aed8-2db3da2b4aee 2024-09-19 18:44:15,400 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/85952d3f-f307-4d8c-9704-e958281d4c44 2024-09-19 18:44:15,434 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-16428759', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99559149', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '641462558087794414', 'uuid-lslong': '11032878006313740354'}, 'enable': 'true', 'created': '2024-09-19T18:44:11', 'last-modified': '2024-09-19T18:44:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.696830'} 2024-09-19 18:44:15,454 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-19 18:44:15,455 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16428759 passed 2024-09-19 18:44:15,456 - DEBUG - ====Verifying policy data for ctest-vn-16428759 in API_Server ====== 2024-09-19 18:44:15,456 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-19 18:44:15,478 - DEBUG - Requesting: http://10.0.0.31:8082/domain/1f969ea6-b8e3-4725-81e4-b6b63e29d1fd 2024-09-19 18:44:15,523 - DEBUG - Requesting: http://10.0.0.31:8082/project/6e7bf022-bd20-44e1-aa26-fcd53e2b1e46 2024-09-19 18:44:15,677 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/08e6eecc-4789-4eee-991c-a817908ce842 2024-09-19 18:44:15,716 - DEBUG - ==>Verifying data for policy with id: 33836a18-6ab5-4f99-bc41-3a1bca253d5f, fqn: ['default-domain', 'ctest-TestBasicPolicy-99559149', 'ctest-policy-allow-all-42856460'] 2024-09-19 18:44:15,716 - INFO - VN ctest-vn-16428759 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-19 18:44:15,716 - DEBUG - Verifying the vn in opserver 2024-09-19 18:44:15,717 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-16428759 virtual network link through opserver 10.0.0.31 2024-09-19 18:44:15,717 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-09-19 18:44:16,034 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-09-19 18:44:16,140 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-16428759', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-16428759?flat'} 2024-09-19 18:44:16,140 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-16428759 is found in opserver 2024-09-19 18:44:16,169 - DEBUG - Do not have enough data to verify VN in agent 2024-09-19 18:44:16,175 - DEBUG - VRF ids for VN ctest-vn-16428759: {} 2024-09-19 18:44:16,175 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-19 18:44:16,185 - DEBUG - Requesting: http://10.0.0.31:8082/domain/1f969ea6-b8e3-4725-81e4-b6b63e29d1fd 2024-09-19 18:44:16,214 - DEBUG - Requesting: http://10.0.0.31:8082/project/6e7bf022-bd20-44e1-aa26-fcd53e2b1e46 2024-09-19 18:44:16,371 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/c27dd510-bccc-4584-8c60-cbbb3d22c782 2024-09-19 18:44:16,408 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/c27dd510-bccc-4584-8c60-cbbb3d22c782 2024-09-19 18:44:16,439 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4c114348-a5ae-4947-9685-adb39eb9080c 2024-09-19 18:44:16,459 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4c114348-a5ae-4947-9685-adb39eb9080c 2024-09-19 18:44:16,481 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/f8ad27b8-2743-4c60-a992-09001aabca95 2024-09-19 18:44:16,499 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-19 18:44:16,500 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/c27dd510-bccc-4584-8c60-cbbb3d22c782 2024-09-19 18:44:16,530 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4c114348-a5ae-4947-9685-adb39eb9080c 2024-09-19 18:44:16,569 - INFO - Verified VN network id 9 for VN c27dd510-bccc-4584-8c60-cbbb3d22c782 2024-09-19 18:44:16,570 - INFO - Verifications in API Server for VN ctest-vn-41390247 passed 2024-09-19 18:44:16,570 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/c27dd510-bccc-4584-8c60-cbbb3d22c782 2024-09-19 18:44:16,599 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4c114348-a5ae-4947-9685-adb39eb9080c 2024-09-19 18:44:16,620 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4c114348-a5ae-4947-9685-adb39eb9080c 2024-09-19 18:44:16,641 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/f8ad27b8-2743-4c60-a992-09001aabca95 2024-09-19 18:44:16,671 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-41390247', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99559149', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14014591883310548356', 'uuid-lslong': '10115308768119146370'}, 'enable': 'true', 'created': '2024-09-19T18:44:12', 'last-modified': '2024-09-19T18:44:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.574867'} 2024-09-19 18:44:16,686 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-19 18:44:16,686 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41390247 passed 2024-09-19 18:44:16,687 - DEBUG - ====Verifying policy data for ctest-vn-41390247 in API_Server ====== 2024-09-19 18:44:16,687 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-19 18:44:16,701 - DEBUG - Requesting: http://10.0.0.31:8082/domain/1f969ea6-b8e3-4725-81e4-b6b63e29d1fd 2024-09-19 18:44:16,734 - DEBUG - Requesting: http://10.0.0.31:8082/project/6e7bf022-bd20-44e1-aa26-fcd53e2b1e46 2024-09-19 18:44:16,882 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/c27dd510-bccc-4584-8c60-cbbb3d22c782 2024-09-19 18:44:16,918 - DEBUG - ==>Verifying data for policy with id: 33836a18-6ab5-4f99-bc41-3a1bca253d5f, fqn: ['default-domain', 'ctest-TestBasicPolicy-99559149', 'ctest-policy-allow-all-42856460'] 2024-09-19 18:44:16,918 - INFO - VN ctest-vn-41390247 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-19 18:44:16,918 - DEBUG - Verifying the vn in opserver 2024-09-19 18:44:16,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-41390247 virtual network link through opserver 10.0.0.31 2024-09-19 18:44:16,919 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-09-19 18:44:16,941 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-41390247', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-41390247?flat'} 2024-09-19 18:44:16,941 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-41390247 is found in opserver 2024-09-19 18:44:16,967 - DEBUG - Do not have enough data to verify VN in agent 2024-09-19 18:44:16,986 - DEBUG - VRF ids for VN ctest-vn-41390247: {} 2024-09-19 18:44:17,107 - DEBUG - Services list from nova: [, , ] 2024-09-19 18:44:18,641 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2006-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2006-1) 2024-09-19 18:44:20,252 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2006-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2006-1) 2024-09-19 18:44:20,252 - INFO - Waiting for VM ctest-TestBasicPolicy-99559149-53023056 to be up.. 2024-09-19 18:44:20,363 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-19 18:44:25,551 - DEBUG - VM is in ACTIVE state now 2024-09-19 18:44:25,551 - INFO - VM name : ctest-TestBasicPolicy-99559149-53023056 2024-09-19 18:44:25,703 - DEBUG - VM ctest-TestBasicPolicy-99559149-53023056 ID is 1538f894-7ca9-4aa8-8a1f-e04909a71a42 2024-09-19 18:44:25,741 - DEBUG - VM ctest-TestBasicPolicy-99559149-53023056 launched on Node cn-jenkins-deploy-platform-ansible-os-2006-1 2024-09-19 18:44:25,907 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/1538f894-7ca9-4aa8-8a1f-e04909a71a42 2024-09-19 18:44:25,935 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/5c875d8c-be1d-48c4-bd94-8f1908773177 2024-09-19 18:44:29,317 - 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 1025ms') 2024-09-19 18:44:29,317 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99559149-53023056 failed! 2024-09-19 18:44:29,389 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-16428759 is 24.91.78.129 and allocation pool is NOT set 2024-09-19 18:44:31,474 - 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=17.2 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=4.44 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 4.438/10.802/17.166/6.364 ms') 2024-09-19 18:44:31,474 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99559149-53023056 passed 2024-09-19 18:44:31,649 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 18:44:31,649 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99559149-53023056, IP 24.91.78.131, Port 22 2024-09-19 18:44:31,731 - 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-09-19 18:44:31,898 - DEBUG - VM ctest-TestBasicPolicy-99559149-53023056 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-19 18:44:36,899 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 18:44:36,899 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99559149-53023056, IP 24.91.78.131, Port 22 2024-09-19 18:44:37,094 - DEBUG - VM ctest-TestBasicPolicy-99559149-53023056 is ready for SSH connections 2024-09-19 18:44:37,094 - INFO - Waiting for VM ctest-TestBasicPolicy-99559149-11556861 to be up.. 2024-09-19 18:44:37,247 - DEBUG - VM is in ACTIVE state now 2024-09-19 18:44:37,247 - INFO - VM name : ctest-TestBasicPolicy-99559149-11556861 2024-09-19 18:44:37,368 - DEBUG - VM ctest-TestBasicPolicy-99559149-11556861 ID is c9c6222c-eb0f-44a8-93ff-6428ff53ec69 2024-09-19 18:44:37,368 - DEBUG - VM ctest-TestBasicPolicy-99559149-11556861 launched on Node cn-jenkins-deploy-platform-ansible-os-2006-1 2024-09-19 18:44:37,467 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/c9c6222c-eb0f-44a8-93ff-6428ff53ec69 2024-09-19 18:44:37,482 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/3b14af79-7e56-41aa-877b-831979d6e7b4 2024-09-19 18:44:38,785 - 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=11.5 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.564 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.564/6.044/11.524/5.480 ms') 2024-09-19 18:44:38,786 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-99559149-11556861 passed 2024-09-19 18:44:38,982 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 18:44:38,982 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99559149-11556861, IP 115.50.89.67, Port 22 2024-09-19 18:44:39,178 - DEBUG - VM ctest-TestBasicPolicy-99559149-11556861 is ready for SSH connections 2024-09-19 18:44:39,178 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 18:44:39,179 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 115.50.89.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-09-19 18:44:39,179 - DEBUG - ping -s 56 -c 3 -W 1 115.50.89.67 2024-09-19 18:44:43,734 - DEBUG - PING 115.50.89.67 (115.50.89.67): 56 data bytes 64 bytes from 115.50.89.67: seq=0 ttl=63 time=6.228 ms 64 bytes from 115.50.89.67: seq=1 ttl=63 time=2.337 ms 64 bytes from 115.50.89.67: seq=2 ttl=63 time=1.384 ms --- 115.50.89.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.384/3.316/6.228 ms 2024-09-19 18:44:43,734 - INFO - Ping to IP 115.50.89.67 from VM ctest-TestBasicPolicy-99559149-53023056 passed 2024-09-19 18:44:44,005 - DEBUG - Policy Update Response {"network-policy": {"uuid": "33836a18-6ab5-4f99-bc41-3a1bca253d5f", "href": "http://10.0.0.31:8082/network-policy/33836a18-6ab5-4f99-bc41-3a1bca253d5f"}} 2024-09-19 18:44:44,005 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 18:44:44,005 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 115.50.89.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-09-19 18:44:44,006 - DEBUG - ping -s 56 -c 3 -W 1 115.50.89.67 2024-09-19 18:44:47,290 - DEBUG - PING 115.50.89.67 (115.50.89.67): 56 data bytes --- 115.50.89.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-19 18:44:47,290 - WARNING - Ping to IP 115.50.89.67 from VM ctest-TestBasicPolicy-99559149-53023056 failed 2024-09-19 18:44:47,291 - INFO - Deleting VM ctest-TestBasicPolicy-99559149-11556861 2024-09-19 18:44:47,448 - INFO - Deleting VM ctest-TestBasicPolicy-99559149-53023056 2024-09-19 18:44:48,058 - INFO - Deleted policy ctest-policy-allow-all-42856460 2024-09-19 18:44:48,059 - INFO - Deleting VN ctest-vn-41390247 2024-09-19 18:44:48,110 - DEBUG - VN c27dd510-bccc-4584-8c60-cbbb3d22c782 still in use: Unable to complete operation on network c27dd510-bccc-4584-8c60-cbbb3d22c782. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4fa7aa3f-6f78-4204-81b3-04690ef8b545'] 2024-09-19 18:44:48,110 - WARNING - Deleting VN ctest-vn-41390247 failed..Will retry 2024-09-19 18:44:50,369 - DEBUG - Response for deleting network () 2024-09-19 18:44:50,369 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4c114348-a5ae-4947-9685-adb39eb9080c 2024-09-19 18:44:50,375 - DEBUG - Response Code: 404 2024-09-19 18:44:50,375 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-19 18:44:50,387 - DEBUG - Requesting: http://10.0.0.31:8082/domain/1f969ea6-b8e3-4725-81e4-b6b63e29d1fd 2024-09-19 18:44:50,449 - DEBUG - Requesting: http://10.0.0.31:8082/project/6e7bf022-bd20-44e1-aa26-fcd53e2b1e46 2024-09-19 18:44:50,562 - INFO - Validated that VN ctest-vn-41390247 is not found in API Server 2024-09-19 18:44:50,583 - DEBUG - VN ctest-vn-41390247 is not present in Agent 10.0.0.31 2024-09-19 18:44:50,583 - INFO - Validated that VN ctest-vn-41390247 is not in any agent 2024-09-19 18:44:50,626 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-41390247 info 2024-09-19 18:44:50,626 - INFO - Deleting VN ctest-vn-16428759 2024-09-19 18:44:50,823 - DEBUG - Response for deleting network () 2024-09-19 18:44:50,823 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/75fa4af9-5c13-42f8-aed8-2db3da2b4aee 2024-09-19 18:44:50,833 - DEBUG - Response Code: 404 2024-09-19 18:44:50,833 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-09-19 18:44:50,844 - DEBUG - Requesting: http://10.0.0.31:8082/domain/1f969ea6-b8e3-4725-81e4-b6b63e29d1fd 2024-09-19 18:44:50,910 - DEBUG - Requesting: http://10.0.0.31:8082/project/6e7bf022-bd20-44e1-aa26-fcd53e2b1e46 2024-09-19 18:44:51,054 - INFO - Validated that VN ctest-vn-16428759 is not found in API Server 2024-09-19 18:44:51,075 - DEBUG - VN ctest-vn-16428759 is not present in Agent 10.0.0.31 2024-09-19 18:44:51,076 - INFO - Validated that VN ctest-vn-16428759 is not in any agent 2024-09-19 18:44:51,117 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-16428759 info 2024-09-19 18:44:51,438 - DEBUG - No XMPP flaps were noticed during the test 2024-09-19 18:44:51,438 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:41] 2024-09-19 18:44:51,439 - INFO - -------------------------------------------------------------------------------- 2024-09-19 18:44:52,429 - INFO - Deleted project: ctest-TestBasicPolicy-99559149, ID : 6e7bf022-bd20-44e1-aa26-fcd53e2b1e46