2026-11-02 18:50:24,899 - INFO - Domain Default found not creating
2026-11-02 18:50:25,139 - INFO - Project ctest-TestBasicPolicy-62231355 not found, creating it
2026-11-02 18:50:25,685 - INFO - Created Project:ctest-TestBasicPolicy-62231355, ID : da1d0537-31bb-4c7c-ac20-3ea97c2cf78c
2026-11-02 18:50:27,429 - INFO - ================================================================================
2026-11-02 18:50:27,429 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-11-02 18:50:27,429 - 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-11-02 18:50:27,697 - DEBUG - Nothing to compare xmpp stats {'10.0.0.251': {'10.20.0.25': '0'}} with
2026-11-02 18:50:27,698 - INFO - Initial checks done. Running the testcase now
2026-11-02 18:50:27,698 - INFO -
2026-11-02 18:50:28,307 - DEBUG - Response for create_network : {'network': {'id': 'd2f7c4da-b33f-45f0-995c-d19cb85c2e9e', 'name': 'ctest-vn-86274797', 'tenant_id': 'da1d053731bb4c7cac203ea97c2cf78c', 'project_id': 'da1d053731bb4c7cac203ea97c2cf78c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62231355', 'ctest-vn-86274797'], 'port_security_enabled': True, 'description': ''}}
2026-11-02 18:50:28,536 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f99a273e-82b2-4ef3-8bd9-ccdda96a1556', 'name': '', 'tenant_id': 'da1d053731bb4c7cac203ea97c2cf78c', 'network_id': 'd2f7c4da-b33f-45f0-995c-d19cb85c2e9e', 'ip_version': 4, 'cidr': '195.161.57.192/26', 'allocation_pools': [{'start': '195.161.57.194', 'end': '195.161.57.254'}], 'gateway_ip': '195.161.57.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.161.57.194', 'tags': [], 'project_id': 'da1d053731bb4c7cac203ea97c2cf78c'}}
2026-11-02 18:50:28,556 - INFO - Created VN ctest-vn-86274797
2026-11-02 18:50:28,609 - DEBUG - VN ctest-vn-86274797 UUID is d2f7c4da-b33f-45f0-995c-d19cb85c2e9e
2026-11-02 18:50:28,942 - DEBUG - Response for create_network : {'network': {'id': '9819a202-677f-4c64-9c37-6f7f253d5f24', 'name': 'ctest-vn-38128935', 'tenant_id': 'da1d053731bb4c7cac203ea97c2cf78c', 'project_id': 'da1d053731bb4c7cac203ea97c2cf78c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62231355', 'ctest-vn-38128935'], 'port_security_enabled': True, 'description': ''}}
2026-11-02 18:50:29,164 - DEBUG - Response for create_subnet : {'subnet': {'id': '326e102a-0358-4611-b32b-a20aa7ce8901', 'name': '', 'tenant_id': 'da1d053731bb4c7cac203ea97c2cf78c', 'network_id': '9819a202-677f-4c64-9c37-6f7f253d5f24', 'ip_version': 4, 'cidr': '92.135.105.64/26', 'allocation_pools': [{'start': '92.135.105.66', 'end': '92.135.105.126'}], 'gateway_ip': '92.135.105.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.135.105.66', 'tags': [], 'project_id': 'da1d053731bb4c7cac203ea97c2cf78c'}}
2026-11-02 18:50:29,186 - INFO - Created VN ctest-vn-38128935
2026-11-02 18:50:29,245 - DEBUG - VN ctest-vn-38128935 UUID is 9819a202-677f-4c64-9c37-6f7f253d5f24
2026-11-02 18:50:29,366 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62231355:ctest-vn-86274797, 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-62231355:ctest-vn-38128935, 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-11-02 18:50:29,673 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd2f7c4da-b33f-45f0-995c-d19cb85c2e9e', 'name': 'ctest-vn-86274797', 'tenant_id': 'da1d053731bb4c7cac203ea97c2cf78c', 'project_id': 'da1d053731bb4c7cac203ea97c2cf78c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['f99a273e-82b2-4ef3-8bd9-ccdda96a1556'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62231355', 'ctest-vn-86274797'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62231355', 'ctest-policy-allow-all-22662379']], 'subnet_ipam': [{'subnet_cidr': '195.161.57.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-02 18:50:29,925 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9819a202-677f-4c64-9c37-6f7f253d5f24', 'name': 'ctest-vn-38128935', 'tenant_id': 'da1d053731bb4c7cac203ea97c2cf78c', 'project_id': 'da1d053731bb4c7cac203ea97c2cf78c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['326e102a-0358-4611-b32b-a20aa7ce8901'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62231355', 'ctest-vn-38128935'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62231355', 'ctest-policy-allow-all-22662379']], 'subnet_ipam': [{'subnet_cidr': '92.135.105.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-02 18:50:30,093 - DEBUG - Requesting: http://10.0.0.251:8082/domains
2026-11-02 18:50:30,442 - DEBUG - Requesting: http://10.0.0.251:8082/domains
2026-11-02 18:50:30,476 - DEBUG - Requesting: http://10.0.0.251:8082/domain/b1f9e354-6ab3-42f3-baae-bbcc43c36aa6
2026-11-02 18:50:30,491 - DEBUG - Requesting: http://10.0.0.251:8082/project/da1d0537-31bb-4c7c-ac20-3ea97c2cf78c
2026-11-02 18:50:30,578 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/d2f7c4da-b33f-45f0-995c-d19cb85c2e9e
2026-11-02 18:50:30,597 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/d2f7c4da-b33f-45f0-995c-d19cb85c2e9e
2026-11-02 18:50:30,611 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/7ee304fb-9b9b-4e64-add3-86f61a728b6e
2026-11-02 18:50:30,621 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/7ee304fb-9b9b-4e64-add3-86f61a728b6e
2026-11-02 18:50:30,631 - DEBUG - Requesting: http://10.0.0.251:8082/route-target/55e47805-b19a-45e3-b5e8-9b1fcb1238c5
2026-11-02 18:50:30,640 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-02 18:50:30,640 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/d2f7c4da-b33f-45f0-995c-d19cb85c2e9e
2026-11-02 18:50:30,654 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/7ee304fb-9b9b-4e64-add3-86f61a728b6e
2026-11-02 18:50:30,675 - INFO - Verified VN network id 12 for VN d2f7c4da-b33f-45f0-995c-d19cb85c2e9e
2026-11-02 18:50:30,675 - INFO - Verifications in API Server for VN ctest-vn-86274797 passed
2026-11-02 18:50:30,675 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/d2f7c4da-b33f-45f0-995c-d19cb85c2e9e
2026-11-02 18:50:30,687 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/7ee304fb-9b9b-4e64-add3-86f61a728b6e
2026-11-02 18:50:30,696 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/7ee304fb-9b9b-4e64-add3-86f61a728b6e
2026-11-02 18:50:30,706 - DEBUG - Requesting: http://10.0.0.251:8082/route-target/55e47805-b19a-45e3-b5e8-9b1fcb1238c5
2026-11-02 18:50:30,724 - DEBUG - Control-node 10.0.0.251 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62231355:ctest-vn-86274797', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62231355', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15201835510801581552', 'uuid-lslong': '11050938056698506910'}, 'enable': 'true', 'created': '2026-11-02T18:50:28', 'last-modified': '2026-11-02T18:50:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.063722'}
2026-11-02 18:50:30,731 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-02 18:50:30,731 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86274797 passed
2026-11-02 18:50:30,732 - DEBUG - ====Verifying policy data for ctest-vn-86274797 in API_Server ======
2026-11-02 18:50:30,732 - DEBUG - Requesting: http://10.0.0.251:8082/domains
2026-11-02 18:50:30,738 - DEBUG - Requesting: http://10.0.0.251:8082/domain/b1f9e354-6ab3-42f3-baae-bbcc43c36aa6
2026-11-02 18:50:30,751 - DEBUG - Requesting: http://10.0.0.251:8082/project/da1d0537-31bb-4c7c-ac20-3ea97c2cf78c
2026-11-02 18:50:30,830 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/d2f7c4da-b33f-45f0-995c-d19cb85c2e9e
2026-11-02 18:50:30,843 - DEBUG - ==>Verifying data for policy with id: b80fc197-483e-46cb-b5ef-cf266207eb94, fqn: ['default-domain', 'ctest-TestBasicPolicy-62231355', 'ctest-policy-allow-all-22662379']
2026-11-02 18:50:30,843 - INFO - VN ctest-vn-86274797 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-02 18:50:30,843 - DEBUG - Verifying the vn in opserver
2026-11-02 18:50:30,843 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62231355:ctest-vn-86274797 virtual network link through opserver 10.0.0.251
2026-11-02 18:50:30,843 - DEBUG - Requesting: http://10.0.0.251:8081/analytics/uves/virtual-networks
2026-11-02 18:50:31,173 - DEBUG - Requesting: http://10.0.0.251:8081/analytics/uves/virtual-networks
2026-11-02 18:50:31,244 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62231355:ctest-vn-86274797', 'href': 'http://10.0.0.251:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62231355:ctest-vn-86274797?flat'}
2026-11-02 18:50:31,244 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62231355:ctest-vn-86274797 is found in opserver
2026-11-02 18:50:31,255 - DEBUG - Do not have enough data to verify VN in agent
2026-11-02 18:50:31,261 - DEBUG - VRF ids for VN ctest-vn-86274797: {}
2026-11-02 18:50:31,261 - DEBUG - Requesting: http://10.0.0.251:8082/domains
2026-11-02 18:50:31,269 - DEBUG - Requesting: http://10.0.0.251:8082/domain/b1f9e354-6ab3-42f3-baae-bbcc43c36aa6
2026-11-02 18:50:31,281 - DEBUG - Requesting: http://10.0.0.251:8082/project/da1d0537-31bb-4c7c-ac20-3ea97c2cf78c
2026-11-02 18:50:31,356 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/9819a202-677f-4c64-9c37-6f7f253d5f24
2026-11-02 18:50:31,371 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/9819a202-677f-4c64-9c37-6f7f253d5f24
2026-11-02 18:50:31,385 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/e77be0e0-bb56-451e-a613-c68db7815bfd
2026-11-02 18:50:31,394 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/e77be0e0-bb56-451e-a613-c68db7815bfd
2026-11-02 18:50:31,404 - DEBUG - Requesting: http://10.0.0.251:8082/route-target/67460ac7-d280-4984-b46a-9d6017c40146
2026-11-02 18:50:31,414 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-02 18:50:31,414 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/9819a202-677f-4c64-9c37-6f7f253d5f24
2026-11-02 18:50:31,426 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/e77be0e0-bb56-451e-a613-c68db7815bfd
2026-11-02 18:50:31,445 - INFO - Verified VN network id 13 for VN 9819a202-677f-4c64-9c37-6f7f253d5f24
2026-11-02 18:50:31,445 - INFO - Verifications in API Server for VN ctest-vn-38128935 passed
2026-11-02 18:50:31,445 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/9819a202-677f-4c64-9c37-6f7f253d5f24
2026-11-02 18:50:31,457 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/e77be0e0-bb56-451e-a613-c68db7815bfd
2026-11-02 18:50:31,466 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/e77be0e0-bb56-451e-a613-c68db7815bfd
2026-11-02 18:50:31,475 - DEBUG - Requesting: http://10.0.0.251:8082/route-target/67460ac7-d280-4984-b46a-9d6017c40146
2026-11-02 18:50:31,494 - DEBUG - Control-node 10.0.0.251 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62231355:ctest-vn-38128935', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62231355', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10959969299392842852', 'uuid-lslong': '11256588385512152868'}, 'enable': 'true', 'created': '2026-11-02T18:50:28', 'last-modified': '2026-11-02T18:50:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.585451'}
2026-11-02 18:50:31,503 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-02 18:50:31,503 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38128935 passed
2026-11-02 18:50:31,504 - DEBUG - ====Verifying policy data for ctest-vn-38128935 in API_Server ======
2026-11-02 18:50:31,504 - DEBUG - Requesting: http://10.0.0.251:8082/domains
2026-11-02 18:50:31,514 - DEBUG - Requesting: http://10.0.0.251:8082/domain/b1f9e354-6ab3-42f3-baae-bbcc43c36aa6
2026-11-02 18:50:31,527 - DEBUG - Requesting: http://10.0.0.251:8082/project/da1d0537-31bb-4c7c-ac20-3ea97c2cf78c
2026-11-02 18:50:31,639 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/9819a202-677f-4c64-9c37-6f7f253d5f24
2026-11-02 18:50:31,661 - DEBUG - ==>Verifying data for policy with id: b80fc197-483e-46cb-b5ef-cf266207eb94, fqn: ['default-domain', 'ctest-TestBasicPolicy-62231355', 'ctest-policy-allow-all-22662379']
2026-11-02 18:50:31,661 - INFO - VN ctest-vn-38128935 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-02 18:50:31,662 - DEBUG - Verifying the vn in opserver
2026-11-02 18:50:31,662 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62231355:ctest-vn-38128935 virtual network link through opserver 10.0.0.251
2026-11-02 18:50:31,662 - DEBUG - Requesting: http://10.0.0.251:8081/analytics/uves/virtual-networks
2026-11-02 18:50:31,702 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62231355:ctest-vn-38128935', 'href': 'http://10.0.0.251:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62231355:ctest-vn-38128935?flat'}
2026-11-02 18:50:31,702 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62231355:ctest-vn-38128935 is found in opserver
2026-11-02 18:50:31,715 - DEBUG - Do not have enough data to verify VN in agent
2026-11-02 18:50:31,721 - DEBUG - VRF ids for VN ctest-vn-38128935: {}
2026-11-02 18:50:31,816 - DEBUG - Services list from nova: [