2026-04-18 08:46:21,053 - INFO - Domain Default found not creating
2026-04-18 08:46:21,225 - INFO - Project ctest-TestBasicPolicy-80127704 not found, creating it
2026-04-18 08:46:21,698 - INFO - Created Project:ctest-TestBasicPolicy-80127704, ID : eec89b50-6ccf-4a5d-a225-b36da169695a
2026-04-18 08:46:23,205 - INFO - ================================================================================
2026-04-18 08:46:23,205 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-18 08:46:23,205 - 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
2026-04-18 08:46:23,469 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-04-18 08:46:23,469 - INFO - Initial checks done. Running the testcase now
2026-04-18 08:46:23,469 - INFO -
2026-04-18 08:46:24,008 - DEBUG - Response for create_network : {'network': {'id': '144d4b4c-13d6-4f4a-9406-cc4f523a9e6b', 'name': 'ctest-vn-88842647', 'tenant_id': 'eec89b506ccf4a5da225b36da169695a', 'project_id': 'eec89b506ccf4a5da225b36da169695a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80127704', 'ctest-vn-88842647'], 'port_security_enabled': True, 'description': ''}}
2026-04-18 08:46:24,208 - DEBUG - Response for create_subnet : {'subnet': {'id': '480f7ed8-7914-4652-8906-d11de13bf50c', 'name': '', 'tenant_id': 'eec89b506ccf4a5da225b36da169695a', 'network_id': '144d4b4c-13d6-4f4a-9406-cc4f523a9e6b', 'ip_version': 4, 'cidr': '213.87.242.64/26', 'allocation_pools': [{'start': '213.87.242.66', 'end': '213.87.242.126'}], 'gateway_ip': '213.87.242.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.87.242.66', 'tags': [], 'project_id': 'eec89b506ccf4a5da225b36da169695a'}}
2026-04-18 08:46:24,231 - INFO - Created VN ctest-vn-88842647
2026-04-18 08:46:24,284 - DEBUG - VN ctest-vn-88842647 UUID is 144d4b4c-13d6-4f4a-9406-cc4f523a9e6b
2026-04-18 08:46:24,575 - DEBUG - Response for create_network : {'network': {'id': '6244ccf3-25cc-4aa8-8623-77c72e99573a', 'name': 'ctest-vn-61958773', 'tenant_id': 'eec89b506ccf4a5da225b36da169695a', 'project_id': 'eec89b506ccf4a5da225b36da169695a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80127704', 'ctest-vn-61958773'], 'port_security_enabled': True, 'description': ''}}
2026-04-18 08:46:24,810 - DEBUG - Response for create_subnet : {'subnet': {'id': '64265276-4fc3-4010-9ccd-2c8b56cd63b7', 'name': '', 'tenant_id': 'eec89b506ccf4a5da225b36da169695a', 'network_id': '6244ccf3-25cc-4aa8-8623-77c72e99573a', 'ip_version': 4, 'cidr': '90.45.75.64/26', 'allocation_pools': [{'start': '90.45.75.66', 'end': '90.45.75.126'}], 'gateway_ip': '90.45.75.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.45.75.66', 'tags': [], 'project_id': 'eec89b506ccf4a5da225b36da169695a'}}
2026-04-18 08:46:24,828 - INFO - Created VN ctest-vn-61958773
2026-04-18 08:46:24,880 - DEBUG - VN ctest-vn-61958773 UUID is 6244ccf3-25cc-4aa8-8623-77c72e99573a
2026-04-18 08:46:25,032 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80127704:ctest-vn-88842647, 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-80127704:ctest-vn-61958773, 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]
2026-04-18 08:46:25,314 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '144d4b4c-13d6-4f4a-9406-cc4f523a9e6b', 'name': 'ctest-vn-88842647', 'tenant_id': 'eec89b506ccf4a5da225b36da169695a', 'project_id': 'eec89b506ccf4a5da225b36da169695a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['480f7ed8-7914-4652-8906-d11de13bf50c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80127704', 'ctest-vn-88842647'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80127704', 'ctest-policy-allow-all-43984289']], 'subnet_ipam': [{'subnet_cidr': '213.87.242.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-18 08:46:25,540 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6244ccf3-25cc-4aa8-8623-77c72e99573a', 'name': 'ctest-vn-61958773', 'tenant_id': 'eec89b506ccf4a5da225b36da169695a', 'project_id': 'eec89b506ccf4a5da225b36da169695a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64265276-4fc3-4010-9ccd-2c8b56cd63b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80127704', 'ctest-vn-61958773'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80127704', 'ctest-policy-allow-all-43984289']], 'subnet_ipam': [{'subnet_cidr': '90.45.75.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-18 08:46:25,700 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-18 08:46:25,994 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-18 08:46:26,024 - DEBUG - Requesting: http://10.0.0.38:8082/domain/03b75f51-8237-4036-b6db-a5f5b8d0df7b
2026-04-18 08:46:26,036 - DEBUG - Requesting: http://10.0.0.38:8082/project/eec89b50-6ccf-4a5d-a225-b36da169695a
2026-04-18 08:46:26,108 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/144d4b4c-13d6-4f4a-9406-cc4f523a9e6b
2026-04-18 08:46:26,119 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/144d4b4c-13d6-4f4a-9406-cc4f523a9e6b
2026-04-18 08:46:26,127 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3a85821-963a-48f0-9332-a49df8dcbcfb
2026-04-18 08:46:26,135 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3a85821-963a-48f0-9332-a49df8dcbcfb
2026-04-18 08:46:26,142 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6d240930-8bd1-4b12-b24e-bab39db600bd
2026-04-18 08:46:26,149 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-18 08:46:26,149 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/144d4b4c-13d6-4f4a-9406-cc4f523a9e6b
2026-04-18 08:46:26,158 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3a85821-963a-48f0-9332-a49df8dcbcfb
2026-04-18 08:46:26,172 - INFO - Verified VN network id 11 for VN 144d4b4c-13d6-4f4a-9406-cc4f523a9e6b
2026-04-18 08:46:26,172 - INFO - Verifications in API Server for VN ctest-vn-88842647 passed
2026-04-18 08:46:26,172 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/144d4b4c-13d6-4f4a-9406-cc4f523a9e6b
2026-04-18 08:46:26,180 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3a85821-963a-48f0-9332-a49df8dcbcfb
2026-04-18 08:46:26,187 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3a85821-963a-48f0-9332-a49df8dcbcfb
2026-04-18 08:46:26,195 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6d240930-8bd1-4b12-b24e-bab39db600bd
2026-04-18 08:46:26,207 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80127704:ctest-vn-88842647', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80127704', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1462908244087689034', 'uuid-lslong': '10666437408527654507'}, 'enable': 'true', 'created': '2026-04-18T08:46:23', 'last-modified': '2026-04-18T08:46:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.912600'}
2026-04-18 08:46:26,214 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-18 08:46:26,214 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88842647 passed
2026-04-18 08:46:26,214 - DEBUG - ====Verifying policy data for ctest-vn-88842647 in API_Server ======
2026-04-18 08:46:26,215 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-18 08:46:26,220 - DEBUG - Requesting: http://10.0.0.38:8082/domain/03b75f51-8237-4036-b6db-a5f5b8d0df7b
2026-04-18 08:46:26,231 - DEBUG - Requesting: http://10.0.0.38:8082/project/eec89b50-6ccf-4a5d-a225-b36da169695a
2026-04-18 08:46:26,302 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/144d4b4c-13d6-4f4a-9406-cc4f523a9e6b
2026-04-18 08:46:26,311 - DEBUG - ==>Verifying data for policy with id: df8e4ec6-5466-42ee-baed-f504de71af7c, fqn: ['default-domain', 'ctest-TestBasicPolicy-80127704', 'ctest-policy-allow-all-43984289']
2026-04-18 08:46:26,311 - INFO - VN ctest-vn-88842647 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-18 08:46:26,311 - DEBUG - Verifying the vn in opserver
2026-04-18 08:46:26,311 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80127704:ctest-vn-88842647 virtual network link through opserver 10.0.0.38
2026-04-18 08:46:26,311 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-18 08:46:26,604 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-18 08:46:26,665 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80127704:ctest-vn-88842647', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80127704:ctest-vn-88842647?flat'}
2026-04-18 08:46:26,665 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80127704:ctest-vn-88842647 is found in opserver
2026-04-18 08:46:26,676 - DEBUG - Do not have enough data to verify VN in agent
2026-04-18 08:46:26,681 - DEBUG - VRF ids for VN ctest-vn-88842647: {}
2026-04-18 08:46:26,681 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-18 08:46:26,686 - DEBUG - Requesting: http://10.0.0.38:8082/domain/03b75f51-8237-4036-b6db-a5f5b8d0df7b
2026-04-18 08:46:26,697 - DEBUG - Requesting: http://10.0.0.38:8082/project/eec89b50-6ccf-4a5d-a225-b36da169695a
2026-04-18 08:46:26,763 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6244ccf3-25cc-4aa8-8623-77c72e99573a
2026-04-18 08:46:26,775 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6244ccf3-25cc-4aa8-8623-77c72e99573a
2026-04-18 08:46:26,790 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3908cf89-67d4-461f-bfe6-232d4db6d218
2026-04-18 08:46:26,798 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3908cf89-67d4-461f-bfe6-232d4db6d218
2026-04-18 08:46:26,805 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ca16c338-d6ce-410f-b983-5d2923e1ecde
2026-04-18 08:46:26,812 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-18 08:46:26,812 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6244ccf3-25cc-4aa8-8623-77c72e99573a
2026-04-18 08:46:26,821 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3908cf89-67d4-461f-bfe6-232d4db6d218
2026-04-18 08:46:26,838 - INFO - Verified VN network id 12 for VN 6244ccf3-25cc-4aa8-8623-77c72e99573a
2026-04-18 08:46:26,838 - INFO - Verifications in API Server for VN ctest-vn-61958773 passed
2026-04-18 08:46:26,838 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6244ccf3-25cc-4aa8-8623-77c72e99573a
2026-04-18 08:46:26,847 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3908cf89-67d4-461f-bfe6-232d4db6d218
2026-04-18 08:46:26,853 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3908cf89-67d4-461f-bfe6-232d4db6d218
2026-04-18 08:46:26,860 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ca16c338-d6ce-410f-b983-5d2923e1ecde
2026-04-18 08:46:26,871 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80127704:ctest-vn-61958773', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80127704', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7081009858816527016', 'uuid-lslong': '9665700922631214906'}, 'enable': 'true', 'created': '2026-04-18T08:46:24', 'last-modified': '2026-04-18T08:46:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.345593'}
2026-04-18 08:46:26,877 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-18 08:46:26,877 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61958773 passed
2026-04-18 08:46:26,877 - DEBUG - ====Verifying policy data for ctest-vn-61958773 in API_Server ======
2026-04-18 08:46:26,877 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-18 08:46:26,882 - DEBUG - Requesting: http://10.0.0.38:8082/domain/03b75f51-8237-4036-b6db-a5f5b8d0df7b
2026-04-18 08:46:26,893 - DEBUG - Requesting: http://10.0.0.38:8082/project/eec89b50-6ccf-4a5d-a225-b36da169695a
2026-04-18 08:46:26,963 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6244ccf3-25cc-4aa8-8623-77c72e99573a
2026-04-18 08:46:26,972 - DEBUG - ==>Verifying data for policy with id: df8e4ec6-5466-42ee-baed-f504de71af7c, fqn: ['default-domain', 'ctest-TestBasicPolicy-80127704', 'ctest-policy-allow-all-43984289']
2026-04-18 08:46:26,972 - INFO - VN ctest-vn-61958773 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-18 08:46:26,972 - DEBUG - Verifying the vn in opserver
2026-04-18 08:46:26,972 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80127704:ctest-vn-61958773 virtual network link through opserver 10.0.0.38
2026-04-18 08:46:26,972 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-18 08:46:26,982 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80127704:ctest-vn-61958773', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80127704:ctest-vn-61958773?flat'}
2026-04-18 08:46:26,982 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80127704:ctest-vn-61958773 is found in opserver
2026-04-18 08:46:26,993 - DEBUG - Do not have enough data to verify VN in agent
2026-04-18 08:46:26,997 - DEBUG - VRF ids for VN ctest-vn-61958773: {}
2026-04-18 08:46:27,053 - DEBUG - Services list from nova: [