2026-08-21 15:16:30,769 - INFO - Domain Default found not creating
2026-08-21 15:16:30,937 - INFO - Project ctest-TestBasicPolicy-86932723 not found, creating it
2026-08-21 15:16:31,435 - INFO - Created Project:ctest-TestBasicPolicy-86932723, ID : 7037643e-8c77-4357-8803-92c8d5bd4996
2026-08-21 15:16:33,158 - INFO - ================================================================================
2026-08-21 15:16:33,160 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-21 15:16:33,160 - 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-08-21 15:16:33,415 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with
2026-08-21 15:16:33,416 - INFO - Initial checks done. Running the testcase now
2026-08-21 15:16:33,416 - INFO -
2026-08-21 15:16:34,072 - DEBUG - Response for create_network : {'network': {'id': '54902a48-ff5e-419f-b1f0-fe92b3ff15eb', 'name': 'ctest-vn-87263499', 'tenant_id': '7037643e8c774357880392c8d5bd4996', 'project_id': '7037643e8c774357880392c8d5bd4996', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86932723', 'ctest-vn-87263499'], 'port_security_enabled': True, 'description': ''}}
2026-08-21 15:16:34,283 - DEBUG - Response for create_subnet : {'subnet': {'id': '9f9e55de-e945-434b-8e37-289ef17f9be7', 'name': '', 'tenant_id': '7037643e8c774357880392c8d5bd4996', 'network_id': '54902a48-ff5e-419f-b1f0-fe92b3ff15eb', 'ip_version': 4, 'cidr': '24.195.220.128/26', 'allocation_pools': [{'start': '24.195.220.130', 'end': '24.195.220.190'}], 'gateway_ip': '24.195.220.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.195.220.130', 'tags': [], 'project_id': '7037643e8c774357880392c8d5bd4996'}}
2026-08-21 15:16:34,302 - INFO - Created VN ctest-vn-87263499
2026-08-21 15:16:34,356 - DEBUG - VN ctest-vn-87263499 UUID is 54902a48-ff5e-419f-b1f0-fe92b3ff15eb
2026-08-21 15:16:34,693 - DEBUG - Response for create_network : {'network': {'id': 'cd6fb62b-b6ea-40cb-aaed-302cfe77fe45', 'name': 'ctest-vn-15123844', 'tenant_id': '7037643e8c774357880392c8d5bd4996', 'project_id': '7037643e8c774357880392c8d5bd4996', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86932723', 'ctest-vn-15123844'], 'port_security_enabled': True, 'description': ''}}
2026-08-21 15:16:34,872 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f509ce4e-5834-4dd3-978c-c59eba1cfe2e', 'name': '', 'tenant_id': '7037643e8c774357880392c8d5bd4996', 'network_id': 'cd6fb62b-b6ea-40cb-aaed-302cfe77fe45', 'ip_version': 4, 'cidr': '138.198.152.128/26', 'allocation_pools': [{'start': '138.198.152.130', 'end': '138.198.152.190'}], 'gateway_ip': '138.198.152.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.198.152.130', 'tags': [], 'project_id': '7037643e8c774357880392c8d5bd4996'}}
2026-08-21 15:16:34,891 - INFO - Created VN ctest-vn-15123844
2026-08-21 15:16:34,944 - DEBUG - VN ctest-vn-15123844 UUID is cd6fb62b-b6ea-40cb-aaed-302cfe77fe45
2026-08-21 15:16:35,062 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-86932723:ctest-vn-87263499, 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-86932723:ctest-vn-15123844, 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-08-21 15:16:35,368 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '54902a48-ff5e-419f-b1f0-fe92b3ff15eb', 'name': 'ctest-vn-87263499', 'tenant_id': '7037643e8c774357880392c8d5bd4996', 'project_id': '7037643e8c774357880392c8d5bd4996', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9f9e55de-e945-434b-8e37-289ef17f9be7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86932723', 'ctest-vn-87263499'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86932723', 'ctest-policy-allow-all-52324633']], 'subnet_ipam': [{'subnet_cidr': '24.195.220.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-21 15:16:35,620 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cd6fb62b-b6ea-40cb-aaed-302cfe77fe45', 'name': 'ctest-vn-15123844', 'tenant_id': '7037643e8c774357880392c8d5bd4996', 'project_id': '7037643e8c774357880392c8d5bd4996', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f509ce4e-5834-4dd3-978c-c59eba1cfe2e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86932723', 'ctest-vn-15123844'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86932723', 'ctest-policy-allow-all-52324633']], 'subnet_ipam': [{'subnet_cidr': '138.198.152.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-21 15:16:35,784 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-08-21 15:16:36,155 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-08-21 15:16:36,183 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ea1cb62f-4c37-4e8c-8491-f74419af5219
2026-08-21 15:16:36,197 - DEBUG - Requesting: http://10.0.0.50:8082/project/7037643e-8c77-4357-8803-92c8d5bd4996
2026-08-21 15:16:36,279 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/54902a48-ff5e-419f-b1f0-fe92b3ff15eb
2026-08-21 15:16:36,292 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/54902a48-ff5e-419f-b1f0-fe92b3ff15eb
2026-08-21 15:16:36,303 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bf7b84b2-98ac-4781-905e-3ddbe58a6f53
2026-08-21 15:16:36,311 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bf7b84b2-98ac-4781-905e-3ddbe58a6f53
2026-08-21 15:16:36,320 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6c039993-5d4c-4b1c-939e-e3c456ddb913
2026-08-21 15:16:36,328 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-21 15:16:36,328 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/54902a48-ff5e-419f-b1f0-fe92b3ff15eb
2026-08-21 15:16:36,339 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bf7b84b2-98ac-4781-905e-3ddbe58a6f53
2026-08-21 15:16:36,353 - INFO - Verified VN network id 11 for VN 54902a48-ff5e-419f-b1f0-fe92b3ff15eb
2026-08-21 15:16:36,354 - INFO - Verifications in API Server for VN ctest-vn-87263499 passed
2026-08-21 15:16:36,354 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/54902a48-ff5e-419f-b1f0-fe92b3ff15eb
2026-08-21 15:16:36,364 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bf7b84b2-98ac-4781-905e-3ddbe58a6f53
2026-08-21 15:16:36,370 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bf7b84b2-98ac-4781-905e-3ddbe58a6f53
2026-08-21 15:16:36,378 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6c039993-5d4c-4b1c-939e-e3c456ddb913
2026-08-21 15:16:36,391 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86932723:ctest-vn-87263499', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86932723', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6093416788842660255', 'uuid-lslong': '12822028045162321387'}, 'enable': 'true', 'created': '2026-08-21T15:16:34', 'last-modified': '2026-08-21T15:16:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.048326'}
2026-08-21 15:16:36,398 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-21 15:16:36,398 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87263499 passed
2026-08-21 15:16:36,398 - DEBUG - ====Verifying policy data for ctest-vn-87263499 in API_Server ======
2026-08-21 15:16:36,398 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-08-21 15:16:36,404 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ea1cb62f-4c37-4e8c-8491-f74419af5219
2026-08-21 15:16:36,416 - DEBUG - Requesting: http://10.0.0.50:8082/project/7037643e-8c77-4357-8803-92c8d5bd4996
2026-08-21 15:16:36,488 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/54902a48-ff5e-419f-b1f0-fe92b3ff15eb
2026-08-21 15:16:36,501 - DEBUG - ==>Verifying data for policy with id: 03751192-93ed-4bdf-bf0c-2565ff8388cb, fqn: ['default-domain', 'ctest-TestBasicPolicy-86932723', 'ctest-policy-allow-all-52324633']
2026-08-21 15:16:36,501 - INFO - VN ctest-vn-87263499 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-21 15:16:36,501 - DEBUG - Verifying the vn in opserver
2026-08-21 15:16:36,501 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86932723:ctest-vn-87263499 virtual network link through opserver 10.0.0.50
2026-08-21 15:16:36,501 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-08-21 15:16:36,874 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-08-21 15:16:36,937 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86932723:ctest-vn-87263499', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86932723:ctest-vn-87263499?flat'}
2026-08-21 15:16:36,937 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86932723:ctest-vn-87263499 is found in opserver
2026-08-21 15:16:36,948 - DEBUG - Do not have enough data to verify VN in agent
2026-08-21 15:16:36,953 - DEBUG - VRF ids for VN ctest-vn-87263499: {}
2026-08-21 15:16:36,953 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-08-21 15:16:36,962 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ea1cb62f-4c37-4e8c-8491-f74419af5219
2026-08-21 15:16:36,975 - DEBUG - Requesting: http://10.0.0.50:8082/project/7037643e-8c77-4357-8803-92c8d5bd4996
2026-08-21 15:16:37,059 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cd6fb62b-b6ea-40cb-aaed-302cfe77fe45
2026-08-21 15:16:37,073 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cd6fb62b-b6ea-40cb-aaed-302cfe77fe45
2026-08-21 15:16:37,084 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d2c46cfd-fc0d-4996-8428-0f300c188298
2026-08-21 15:16:37,093 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d2c46cfd-fc0d-4996-8428-0f300c188298
2026-08-21 15:16:37,101 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f3fc09db-4d11-4b7d-8ad4-6c8cd2d7284d
2026-08-21 15:16:37,109 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-21 15:16:37,109 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cd6fb62b-b6ea-40cb-aaed-302cfe77fe45
2026-08-21 15:16:37,119 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d2c46cfd-fc0d-4996-8428-0f300c188298
2026-08-21 15:16:37,137 - INFO - Verified VN network id 12 for VN cd6fb62b-b6ea-40cb-aaed-302cfe77fe45
2026-08-21 15:16:37,138 - INFO - Verifications in API Server for VN ctest-vn-15123844 passed
2026-08-21 15:16:37,138 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cd6fb62b-b6ea-40cb-aaed-302cfe77fe45
2026-08-21 15:16:37,149 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d2c46cfd-fc0d-4996-8428-0f300c188298
2026-08-21 15:16:37,157 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d2c46cfd-fc0d-4996-8428-0f300c188298
2026-08-21 15:16:37,166 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f3fc09db-4d11-4b7d-8ad4-6c8cd2d7284d
2026-08-21 15:16:37,180 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86932723:ctest-vn-15123844', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86932723', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14803250799058763979', 'uuid-lslong': '12316553525734145605'}, 'enable': 'true', 'created': '2026-08-21T15:16:34', 'last-modified': '2026-08-21T15:16:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.597278'}
2026-08-21 15:16:37,186 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-21 15:16:37,186 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15123844 passed
2026-08-21 15:16:37,186 - DEBUG - ====Verifying policy data for ctest-vn-15123844 in API_Server ======
2026-08-21 15:16:37,186 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-08-21 15:16:37,193 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ea1cb62f-4c37-4e8c-8491-f74419af5219
2026-08-21 15:16:37,204 - DEBUG - Requesting: http://10.0.0.50:8082/project/7037643e-8c77-4357-8803-92c8d5bd4996
2026-08-21 15:16:37,280 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cd6fb62b-b6ea-40cb-aaed-302cfe77fe45
2026-08-21 15:16:37,294 - DEBUG - ==>Verifying data for policy with id: 03751192-93ed-4bdf-bf0c-2565ff8388cb, fqn: ['default-domain', 'ctest-TestBasicPolicy-86932723', 'ctest-policy-allow-all-52324633']
2026-08-21 15:16:37,294 - INFO - VN ctest-vn-15123844 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-21 15:16:37,294 - DEBUG - Verifying the vn in opserver
2026-08-21 15:16:37,294 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86932723:ctest-vn-15123844 virtual network link through opserver 10.0.0.50
2026-08-21 15:16:37,295 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-08-21 15:16:37,307 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86932723:ctest-vn-15123844', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86932723:ctest-vn-15123844?flat'}
2026-08-21 15:16:37,307 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86932723:ctest-vn-15123844 is found in opserver
2026-08-21 15:16:37,320 - DEBUG - Do not have enough data to verify VN in agent
2026-08-21 15:16:37,325 - DEBUG - VRF ids for VN ctest-vn-15123844: {}
2026-08-21 15:16:37,388 - DEBUG - Services list from nova: [