2025-10-08 13:50:21,425 - INFO - Domain Default found not creating 2025-10-08 13:50:21,577 - INFO - Project ctest-TestBasicPolicy-54743052 not found, creating it 2025-10-08 13:50:22,087 - INFO - Created Project:ctest-TestBasicPolicy-54743052, ID : 1e152538-0daf-4751-85a3-bb5ad87f0535 2025-10-08 13:50:23,446 - INFO - ================================================================================ 2025-10-08 13:50:23,446 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-08 13:50:23,447 - 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 2025-10-08 13:50:24,725 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.25': '0', '10.20.0.14': '0'}, '10.0.0.131': {'10.20.0.14': '0', '10.20.0.25': '0'}} with 2025-10-08 13:50:24,725 - INFO - Initial checks done. Running the testcase now 2025-10-08 13:50:24,725 - INFO - 2025-10-08 13:50:25,387 - DEBUG - Response for create_network : {'network': {'id': '6ec9d8b4-ed5c-4532-a600-7985986e2192', 'name': 'ctest-vn-04171892', 'tenant_id': '1e1525380daf475185a3bb5ad87f0535', 'project_id': '1e1525380daf475185a3bb5ad87f0535', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54743052', 'ctest-vn-04171892'], 'port_security_enabled': True, 'description': ''}} 2025-10-08 13:50:25,596 - DEBUG - Response for create_subnet : {'subnet': {'id': '593d3916-4af8-4185-9bbe-7819dead947d', 'name': '', 'tenant_id': '1e1525380daf475185a3bb5ad87f0535', 'network_id': '6ec9d8b4-ed5c-4532-a600-7985986e2192', 'ip_version': 4, 'cidr': '217.29.88.0/26', 'allocation_pools': [{'start': '217.29.88.2', 'end': '217.29.88.62'}], 'gateway_ip': '217.29.88.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.29.88.2', 'tags': [], 'project_id': '1e1525380daf475185a3bb5ad87f0535'}} 2025-10-08 13:50:25,616 - INFO - Created VN ctest-vn-04171892 2025-10-08 13:50:25,630 - DEBUG - VN ctest-vn-04171892 UUID is 6ec9d8b4-ed5c-4532-a600-7985986e2192 2025-10-08 13:50:26,016 - DEBUG - Response for create_network : {'network': {'id': '16148c27-758d-46d7-b688-9e83ae444e8d', 'name': 'ctest-vn-69724263', 'tenant_id': '1e1525380daf475185a3bb5ad87f0535', 'project_id': '1e1525380daf475185a3bb5ad87f0535', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54743052', 'ctest-vn-69724263'], 'port_security_enabled': True, 'description': ''}} 2025-10-08 13:50:26,297 - DEBUG - Response for create_subnet : {'subnet': {'id': '2323361c-c56e-459f-bdd8-05c74fb11398', 'name': '', 'tenant_id': '1e1525380daf475185a3bb5ad87f0535', 'network_id': '16148c27-758d-46d7-b688-9e83ae444e8d', 'ip_version': 4, 'cidr': '212.46.249.128/26', 'allocation_pools': [{'start': '212.46.249.130', 'end': '212.46.249.190'}], 'gateway_ip': '212.46.249.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.46.249.130', 'tags': [], 'project_id': '1e1525380daf475185a3bb5ad87f0535'}} 2025-10-08 13:50:26,321 - INFO - Created VN ctest-vn-69724263 2025-10-08 13:50:26,334 - DEBUG - VN ctest-vn-69724263 UUID is 16148c27-758d-46d7-b688-9e83ae444e8d 2025-10-08 13:50:26,411 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892, 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-54743052:ctest-vn-69724263, 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] 2025-10-08 13:50:26,786 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6ec9d8b4-ed5c-4532-a600-7985986e2192', 'name': 'ctest-vn-04171892', 'tenant_id': '1e1525380daf475185a3bb5ad87f0535', 'project_id': '1e1525380daf475185a3bb5ad87f0535', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['593d3916-4af8-4185-9bbe-7819dead947d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54743052', 'ctest-vn-04171892'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54743052', 'ctest-policy-allow-all-59625585']], 'subnet_ipam': [{'subnet_cidr': '217.29.88.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-08 13:50:27,000 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16148c27-758d-46d7-b688-9e83ae444e8d', 'name': 'ctest-vn-69724263', 'tenant_id': '1e1525380daf475185a3bb5ad87f0535', 'project_id': '1e1525380daf475185a3bb5ad87f0535', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2323361c-c56e-459f-bdd8-05c74fb11398'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54743052', 'ctest-vn-69724263'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54743052', 'ctest-policy-allow-all-59625585']], 'subnet_ipam': [{'subnet_cidr': '212.46.249.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-08 13:50:27,102 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-08 13:50:27,401 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-08 13:50:27,427 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e655d23d-1695-42cd-a914-8836b4a49568 2025-10-08 13:50:27,441 - DEBUG - Requesting: http://10.0.0.33:8082/project/1e152538-0daf-4751-85a3-bb5ad87f0535 2025-10-08 13:50:27,534 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6ec9d8b4-ed5c-4532-a600-7985986e2192 2025-10-08 13:50:27,549 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6ec9d8b4-ed5c-4532-a600-7985986e2192 2025-10-08 13:50:27,560 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bd91d2d4-2028-47b6-a67d-b834c524d584 2025-10-08 13:50:27,567 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bd91d2d4-2028-47b6-a67d-b834c524d584 2025-10-08 13:50:27,573 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e639ed32-a0bd-4111-ab67-d60cd820aa66 2025-10-08 13:50:27,580 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 13:50:27,581 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6ec9d8b4-ed5c-4532-a600-7985986e2192 2025-10-08 13:50:27,589 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bd91d2d4-2028-47b6-a67d-b834c524d584 2025-10-08 13:50:27,603 - INFO - Verified VN network id 14 for VN 6ec9d8b4-ed5c-4532-a600-7985986e2192 2025-10-08 13:50:27,603 - INFO - Verifications in API Server for VN ctest-vn-04171892 passed 2025-10-08 13:50:27,603 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6ec9d8b4-ed5c-4532-a600-7985986e2192 2025-10-08 13:50:27,612 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bd91d2d4-2028-47b6-a67d-b834c524d584 2025-10-08 13:50:27,618 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bd91d2d4-2028-47b6-a67d-b834c524d584 2025-10-08 13:50:27,624 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e639ed32-a0bd-4111-ab67-d60cd820aa66 2025-10-08 13:50:27,635 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54743052', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7983150086078874930', 'uuid-lslong': '11961694224991003026'}, 'enable': 'true', 'created': '2025-10-08T13:50:25', 'last-modified': '2025-10-08T13:50:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.921646'} 2025-10-08 13:50:27,640 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 13:50:27,645 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54743052', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7983150086078874930', 'uuid-lslong': '11961694224991003026'}, 'enable': 'true', 'created': '2025-10-08T13:50:25', 'last-modified': '2025-10-08T13:50:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.932896'} 2025-10-08 13:50:27,651 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 13:50:27,655 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54743052', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7983150086078874930', 'uuid-lslong': '11961694224991003026'}, 'enable': 'true', 'created': '2025-10-08T13:50:25', 'last-modified': '2025-10-08T13:50:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.944492'} 2025-10-08 13:50:27,661 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 13:50:27,661 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04171892 passed 2025-10-08 13:50:27,661 - DEBUG - ====Verifying policy data for ctest-vn-04171892 in API_Server ====== 2025-10-08 13:50:27,661 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-08 13:50:27,666 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e655d23d-1695-42cd-a914-8836b4a49568 2025-10-08 13:50:27,676 - DEBUG - Requesting: http://10.0.0.33:8082/project/1e152538-0daf-4751-85a3-bb5ad87f0535 2025-10-08 13:50:27,766 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6ec9d8b4-ed5c-4532-a600-7985986e2192 2025-10-08 13:50:27,776 - DEBUG - ==>Verifying data for policy with id: b1ea348e-9309-4fc4-ac2d-70352c533e0a, fqn: ['default-domain', 'ctest-TestBasicPolicy-54743052', 'ctest-policy-allow-all-59625585'] 2025-10-08 13:50:27,776 - INFO - VN ctest-vn-04171892 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-08 13:50:27,776 - DEBUG - Verifying the vn in opserver 2025-10-08 13:50:27,776 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892 virtual network link through opserver 10.0.0.33 2025-10-08 13:50:27,776 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-08 13:50:28,077 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-08 13:50:28,129 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892?flat'} 2025-10-08 13:50:28,129 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892 virtual network link through opserver 10.0.0.19 2025-10-08 13:50:28,129 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-08 13:50:28,420 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-08 13:50:28,476 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892?flat'} 2025-10-08 13:50:28,476 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892 virtual network link through opserver 10.0.0.129 2025-10-08 13:50:28,476 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-10-08 13:50:28,765 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-10-08 13:50:28,817 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892?flat'} 2025-10-08 13:50:28,817 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892 is found in opserver 2025-10-08 13:50:28,836 - DEBUG - Do not have enough data to verify VN in agent 2025-10-08 13:50:28,847 - DEBUG - VRF ids for VN ctest-vn-04171892: {} 2025-10-08 13:50:28,847 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-08 13:50:28,854 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e655d23d-1695-42cd-a914-8836b4a49568 2025-10-08 13:50:28,864 - DEBUG - Requesting: http://10.0.0.33:8082/project/1e152538-0daf-4751-85a3-bb5ad87f0535 2025-10-08 13:50:28,959 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/16148c27-758d-46d7-b688-9e83ae444e8d 2025-10-08 13:50:28,971 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/16148c27-758d-46d7-b688-9e83ae444e8d 2025-10-08 13:50:28,979 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1a673bed-ab19-4618-9b93-670520084295 2025-10-08 13:50:28,988 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1a673bed-ab19-4618-9b93-670520084295 2025-10-08 13:50:28,993 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6e8ef7ab-83d7-49d1-bc59-12059c0b916e 2025-10-08 13:50:28,999 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-08 13:50:28,999 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/16148c27-758d-46d7-b688-9e83ae444e8d 2025-10-08 13:50:29,007 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1a673bed-ab19-4618-9b93-670520084295 2025-10-08 13:50:29,024 - INFO - Verified VN network id 15 for VN 16148c27-758d-46d7-b688-9e83ae444e8d 2025-10-08 13:50:29,024 - INFO - Verifications in API Server for VN ctest-vn-69724263 passed 2025-10-08 13:50:29,024 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/16148c27-758d-46d7-b688-9e83ae444e8d 2025-10-08 13:50:29,034 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1a673bed-ab19-4618-9b93-670520084295 2025-10-08 13:50:29,042 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1a673bed-ab19-4618-9b93-670520084295 2025-10-08 13:50:29,051 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6e8ef7ab-83d7-49d1-bc59-12059c0b916e 2025-10-08 13:50:29,063 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-69724263', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54743052', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1591050669472433879', 'uuid-lslong': '13152937000137150093'}, 'enable': 'true', 'created': '2025-10-08T13:50:25', 'last-modified': '2025-10-08T13:50:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.108135'} 2025-10-08 13:50:29,068 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-08 13:50:29,073 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-69724263', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54743052', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1591050669472433879', 'uuid-lslong': '13152937000137150093'}, 'enable': 'true', 'created': '2025-10-08T13:50:25', 'last-modified': '2025-10-08T13:50:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.114131'} 2025-10-08 13:50:29,079 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-08 13:50:29,083 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-69724263', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54743052', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1591050669472433879', 'uuid-lslong': '13152937000137150093'}, 'enable': 'true', 'created': '2025-10-08T13:50:25', 'last-modified': '2025-10-08T13:50:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.127166'} 2025-10-08 13:50:29,088 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-08 13:50:29,088 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69724263 passed 2025-10-08 13:50:29,088 - DEBUG - ====Verifying policy data for ctest-vn-69724263 in API_Server ====== 2025-10-08 13:50:29,089 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-08 13:50:29,094 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e655d23d-1695-42cd-a914-8836b4a49568 2025-10-08 13:50:29,106 - DEBUG - Requesting: http://10.0.0.33:8082/project/1e152538-0daf-4751-85a3-bb5ad87f0535 2025-10-08 13:50:29,190 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/16148c27-758d-46d7-b688-9e83ae444e8d 2025-10-08 13:50:29,198 - DEBUG - ==>Verifying data for policy with id: b1ea348e-9309-4fc4-ac2d-70352c533e0a, fqn: ['default-domain', 'ctest-TestBasicPolicy-54743052', 'ctest-policy-allow-all-59625585'] 2025-10-08 13:50:29,198 - INFO - VN ctest-vn-69724263 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-08 13:50:29,198 - DEBUG - Verifying the vn in opserver 2025-10-08 13:50:29,198 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-69724263 virtual network link through opserver 10.0.0.33 2025-10-08 13:50:29,198 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-08 13:50:29,253 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-69724263', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-69724263?flat'} 2025-10-08 13:50:29,253 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-69724263 virtual network link through opserver 10.0.0.19 2025-10-08 13:50:29,253 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-08 13:50:29,304 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-69724263', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-69724263?flat'} 2025-10-08 13:50:29,304 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-69724263 virtual network link through opserver 10.0.0.129 2025-10-08 13:50:29,304 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-10-08 13:50:29,358 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-69724263', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-69724263?flat'} 2025-10-08 13:50:29,358 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-69724263 is found in opserver 2025-10-08 13:50:29,377 - DEBUG - Do not have enough data to verify VN in agent 2025-10-08 13:50:29,386 - DEBUG - VRF ids for VN ctest-vn-69724263: {} 2025-10-08 13:50:29,444 - DEBUG - Services list from nova: [, , , ] 2025-10-08 13:50:30,402 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4234-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4234-2) 2025-10-08 13:50:31,563 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4234-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4234-1) 2025-10-08 13:50:31,564 - INFO - Waiting for VM ctest-TestBasicPolicy-54743052-76512167 to be up.. 2025-10-08 13:50:31,641 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-08 13:50:36,720 - DEBUG - VM is in ACTIVE state now 2025-10-08 13:50:36,721 - INFO - VM name : ctest-TestBasicPolicy-54743052-76512167 2025-10-08 13:50:36,796 - DEBUG - VM ctest-TestBasicPolicy-54743052-76512167 ID is 0961025b-8113-4d5f-98e8-769ca0e9756b 2025-10-08 13:50:36,820 - DEBUG - VM ctest-TestBasicPolicy-54743052-76512167 launched on Node an-jenkins-deploy-platform-ansible-os-4234-2 2025-10-08 13:50:36,893 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine/0961025b-8113-4d5f-98e8-769ca0e9756b 2025-10-08 13:50:37,181 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine/0961025b-8113-4d5f-98e8-769ca0e9756b 2025-10-08 13:50:37,212 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine-interface/b84112f3-8918-4fde-bdaf-4bfe1c12861c 2025-10-08 13:50:40,384 - 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 1008ms') 2025-10-08 13:50:40,384 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54743052-76512167 failed! 2025-10-08 13:50:40,397 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892 is 217.29.88.1 and allocation pool is NOT set 2025-10-08 13:50:44,481 - 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 1018ms') 2025-10-08 13:50:44,481 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54743052-76512167 failed! 2025-10-08 13:50:44,501 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892 is 217.29.88.1 and allocation pool is NOT set 2025-10-08 13:50:48,573 - 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 1015ms') 2025-10-08 13:50:48,573 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54743052-76512167 failed! 2025-10-08 13:50:48,586 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892 is 217.29.88.1 and allocation pool is NOT set 2025-10-08 13:50:52,669 - 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 1018ms') 2025-10-08 13:50:52,670 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54743052-76512167 failed! 2025-10-08 13:50:52,682 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892 is 217.29.88.1 and allocation pool is NOT set 2025-10-08 13:50:56,761 - 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 1015ms') 2025-10-08 13:50:56,761 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54743052-76512167 failed! 2025-10-08 13:50:56,777 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892 is 217.29.88.1 and allocation pool is NOT set 2025-10-08 13:51:00,863 - 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 1027ms') 2025-10-08 13:51:00,864 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54743052-76512167 failed! 2025-10-08 13:51:00,879 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892 is 217.29.88.1 and allocation pool is NOT set 2025-10-08 13:51:04,960 - 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 1013ms') 2025-10-08 13:51:04,960 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54743052-76512167 failed! 2025-10-08 13:51:04,975 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892 is 217.29.88.1 and allocation pool is NOT set 2025-10-08 13:51:09,058 - 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 1016ms') 2025-10-08 13:51:09,058 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54743052-76512167 failed! 2025-10-08 13:51:09,073 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892 is 217.29.88.1 and allocation pool is NOT set 2025-10-08 13:51:13,143 - 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 1014ms') 2025-10-08 13:51:13,143 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54743052-76512167 failed! 2025-10-08 13:51:13,160 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-54743052:ctest-vn-04171892 is 217.29.88.1 and allocation pool is NOT set 2025-10-08 13:51:15,227 - 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=6.44 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.72 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.722/4.079/6.436/2.357 ms') 2025-10-08 13:51:15,227 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54743052-76512167 passed 2025-10-08 13:51:15,301 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 13:51:15,301 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54743052-76512167, IP 217.29.88.3, Port 22 2025-10-08 13:51:15,367 - DEBUG - Error on ssh to ubuntu@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-10-08 13:51:15,443 - DEBUG - VM ctest-TestBasicPolicy-54743052-76512167 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-08 13:51:20,443 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 13:51:20,444 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54743052-76512167, IP 217.29.88.3, Port 22 2025-10-08 13:51:20,511 - DEBUG - Error on ssh to ubuntu@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-10-08 13:51:20,591 - DEBUG - VM ctest-TestBasicPolicy-54743052-76512167 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-08 13:51:25,592 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 13:51:25,592 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54743052-76512167, IP 217.29.88.3, Port 22 2025-10-08 13:51:25,660 - DEBUG - Error on ssh to ubuntu@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-10-08 13:51:25,740 - DEBUG - VM ctest-TestBasicPolicy-54743052-76512167 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-08 13:51:30,741 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 13:51:30,741 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54743052-76512167, IP 217.29.88.3, Port 22 2025-10-08 13:51:30,807 - DEBUG - Error on ssh to ubuntu@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-10-08 13:51:30,879 - DEBUG - VM ctest-TestBasicPolicy-54743052-76512167 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-08 13:51:35,880 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 13:51:35,880 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54743052-76512167, IP 217.29.88.3, Port 22 2025-10-08 13:51:36,051 - DEBUG - VM ctest-TestBasicPolicy-54743052-76512167 is ready for SSH connections 2025-10-08 13:51:36,051 - INFO - Waiting for VM ctest-TestBasicPolicy-54743052-33070617 to be up.. 2025-10-08 13:51:36,160 - DEBUG - VM is in ACTIVE state now 2025-10-08 13:51:36,160 - INFO - VM name : ctest-TestBasicPolicy-54743052-33070617 2025-10-08 13:51:36,252 - DEBUG - VM ctest-TestBasicPolicy-54743052-33070617 ID is 9dece390-35c2-432a-95b2-ab37cc5ba08b 2025-10-08 13:51:36,252 - DEBUG - VM ctest-TestBasicPolicy-54743052-33070617 launched on Node an-jenkins-deploy-platform-ansible-os-4234-1 2025-10-08 13:51:36,350 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine/9dece390-35c2-432a-95b2-ab37cc5ba08b 2025-10-08 13:51:36,361 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine-interface/ddc3b895-b88a-4705-9554-fc3024b8be59 2025-10-08 13:51:37,527 - 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.54 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.69 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 3.535/3.613/3.691/0.078 ms') 2025-10-08 13:51:37,527 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54743052-33070617 passed 2025-10-08 13:51:37,604 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 13:51:37,604 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54743052-33070617, IP 212.46.249.131, Port 22 2025-10-08 13:51:37,781 - DEBUG - VM ctest-TestBasicPolicy-54743052-33070617 is ready for SSH connections 2025-10-08 13:51:37,781 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 13:51:37,781 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 212.46.249.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.131, gateway password: c0ntrail123 2025-10-08 13:51:37,781 - DEBUG - ping -s 56 -c 3 -W 1 212.46.249.131 2025-10-08 13:52:01,699 - DEBUG - PING 212.46.249.131 (212.46.249.131) 56(84) bytes of data. 64 bytes from 212.46.249.131: icmp_req=1 ttl=63 time=7.91 ms 64 bytes from 212.46.249.131: icmp_req=2 ttl=63 time=1.36 ms 64 bytes from 212.46.249.131: icmp_req=3 ttl=63 time=1.59 ms --- 212.46.249.131 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 1.361/3.623/7.919/3.039 ms 2025-10-08 13:52:01,699 - INFO - Ping to IP 212.46.249.131 from VM ctest-TestBasicPolicy-54743052-76512167 passed 2025-10-08 13:52:01,919 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b1ea348e-9309-4fc4-ac2d-70352c533e0a", "href": "http://10.0.0.129:8082/network-policy/b1ea348e-9309-4fc4-ac2d-70352c533e0a"}} 2025-10-08 13:52:01,919 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 13:52:01,920 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 212.46.249.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.131, gateway password: c0ntrail123 2025-10-08 13:52:01,920 - DEBUG - ping -s 56 -c 3 -W 1 212.46.249.131 2025-10-08 13:52:05,968 - DEBUG - PING 212.46.249.131 (212.46.249.131) 56(84) bytes of data. --- 212.46.249.131 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2015ms 2025-10-08 13:52:05,968 - WARNING - Ping to IP 212.46.249.131 from VM ctest-TestBasicPolicy-54743052-76512167 failed 2025-10-08 13:52:05,969 - INFO - Deleting VM ctest-TestBasicPolicy-54743052-33070617 2025-10-08 13:52:06,029 - INFO - Deleting VM ctest-TestBasicPolicy-54743052-76512167 2025-10-08 13:52:06,463 - INFO - Deleted policy ctest-policy-allow-all-59625585 2025-10-08 13:52:06,463 - INFO - Deleting VN ctest-vn-69724263 2025-10-08 13:52:06,506 - DEBUG - VN 16148c27-758d-46d7-b688-9e83ae444e8d still in use: Unable to complete operation on network 16148c27-758d-46d7-b688-9e83ae444e8d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ef76d5b4-be06-4585-bc2f-c7a5ef55fe15'] 2025-10-08 13:52:06,506 - WARNING - Deleting VN ctest-vn-69724263 failed..Will retry 2025-10-08 13:52:08,689 - DEBUG - Response for deleting network () 2025-10-08 13:52:08,689 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1a673bed-ab19-4618-9b93-670520084295 2025-10-08 13:52:08,698 - DEBUG - Response Code: 404 2025-10-08 13:52:08,698 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-08 13:52:08,705 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e655d23d-1695-42cd-a914-8836b4a49568 2025-10-08 13:52:08,742 - DEBUG - Requesting: http://10.0.0.33:8082/project/1e152538-0daf-4751-85a3-bb5ad87f0535 2025-10-08 13:52:08,836 - INFO - Validated that VN ctest-vn-69724263 is not found in API Server 2025-10-08 13:52:08,847 - DEBUG - VN ctest-vn-69724263 is not present in Agent 10.0.0.130 2025-10-08 13:52:08,857 - DEBUG - VN ctest-vn-69724263 is not present in Agent 10.0.0.131 2025-10-08 13:52:08,857 - INFO - Validated that VN ctest-vn-69724263 is not in any agent 2025-10-08 13:52:08,886 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-69724263 info 2025-10-08 13:52:08,886 - INFO - Deleting VN ctest-vn-04171892 2025-10-08 13:52:09,052 - DEBUG - Response for deleting network () 2025-10-08 13:52:09,052 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bd91d2d4-2028-47b6-a67d-b834c524d584 2025-10-08 13:52:09,057 - DEBUG - Response Code: 404 2025-10-08 13:52:09,058 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-08 13:52:09,068 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e655d23d-1695-42cd-a914-8836b4a49568 2025-10-08 13:52:09,124 - DEBUG - Requesting: http://10.0.0.33:8082/project/1e152538-0daf-4751-85a3-bb5ad87f0535 2025-10-08 13:52:09,242 - INFO - Validated that VN ctest-vn-04171892 is not found in API Server 2025-10-08 13:52:09,259 - DEBUG - VN ctest-vn-04171892 is not present in Agent 10.0.0.130 2025-10-08 13:52:09,275 - DEBUG - VN ctest-vn-04171892 is not present in Agent 10.0.0.131 2025-10-08 13:52:09,275 - INFO - Validated that VN ctest-vn-04171892 is not in any agent 2025-10-08 13:52:09,314 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-04171892 info 2025-10-08 13:52:10,586 - DEBUG - No XMPP flaps were noticed during the test 2025-10-08 13:52:10,586 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:47] 2025-10-08 13:52:10,586 - INFO - -------------------------------------------------------------------------------- 2025-10-08 13:52:11,334 - INFO - Deleted project: ctest-TestBasicPolicy-54743052, ID : 1e152538-0daf-4751-85a3-bb5ad87f0535