2026-01-27 10:39:15,095 - INFO - Domain Default found not creating
2026-01-27 10:39:15,269 - INFO - Project ctest-TestBasicPolicy-78241315 not found, creating it
2026-01-27 10:39:15,748 - INFO - Created Project:ctest-TestBasicPolicy-78241315, ID : 83861721-15a2-41c0-ba6c-de0f8345d14c
2026-01-27 10:39:17,378 - INFO - ================================================================================
2026-01-27 10:39:17,379 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-27 10:39:17,379 - 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-01-27 10:39:17,634 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-01-27 10:39:17,634 - INFO - Initial checks done. Running the testcase now
2026-01-27 10:39:17,634 - INFO -
2026-01-27 10:39:18,243 - DEBUG - Response for create_network : {'network': {'id': 'b0bdbc3b-fb46-40e5-8b60-c72c2374e606', 'name': 'ctest-vn-94692637', 'tenant_id': '8386172115a241c0ba6cde0f8345d14c', 'project_id': '8386172115a241c0ba6cde0f8345d14c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78241315', 'ctest-vn-94692637'], 'port_security_enabled': True, 'description': ''}}
2026-01-27 10:39:18,451 - DEBUG - Response for create_subnet : {'subnet': {'id': 'df64b7e1-6738-43e0-a139-2f742c81666d', 'name': '', 'tenant_id': '8386172115a241c0ba6cde0f8345d14c', 'network_id': 'b0bdbc3b-fb46-40e5-8b60-c72c2374e606', 'ip_version': 4, 'cidr': '27.172.210.128/26', 'allocation_pools': [{'start': '27.172.210.130', 'end': '27.172.210.190'}], 'gateway_ip': '27.172.210.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.172.210.130', 'tags': [], 'project_id': '8386172115a241c0ba6cde0f8345d14c'}}
2026-01-27 10:39:18,471 - INFO - Created VN ctest-vn-94692637
2026-01-27 10:39:18,523 - DEBUG - VN ctest-vn-94692637 UUID is b0bdbc3b-fb46-40e5-8b60-c72c2374e606
2026-01-27 10:39:18,813 - DEBUG - Response for create_network : {'network': {'id': '36f860b3-476f-4e64-9559-b61c5cf2204e', 'name': 'ctest-vn-25849572', 'tenant_id': '8386172115a241c0ba6cde0f8345d14c', 'project_id': '8386172115a241c0ba6cde0f8345d14c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78241315', 'ctest-vn-25849572'], 'port_security_enabled': True, 'description': ''}}
2026-01-27 10:39:18,990 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fba51612-cf80-4ec3-9a99-f27c452ed728', 'name': '', 'tenant_id': '8386172115a241c0ba6cde0f8345d14c', 'network_id': '36f860b3-476f-4e64-9559-b61c5cf2204e', 'ip_version': 4, 'cidr': '28.165.3.64/26', 'allocation_pools': [{'start': '28.165.3.66', 'end': '28.165.3.126'}], 'gateway_ip': '28.165.3.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.165.3.66', 'tags': [], 'project_id': '8386172115a241c0ba6cde0f8345d14c'}}
2026-01-27 10:39:19,007 - INFO - Created VN ctest-vn-25849572
2026-01-27 10:39:19,059 - DEBUG - VN ctest-vn-25849572 UUID is 36f860b3-476f-4e64-9559-b61c5cf2204e
2026-01-27 10:39:19,173 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78241315:ctest-vn-94692637, 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-78241315:ctest-vn-25849572, 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-01-27 10:39:19,458 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b0bdbc3b-fb46-40e5-8b60-c72c2374e606', 'name': 'ctest-vn-94692637', 'tenant_id': '8386172115a241c0ba6cde0f8345d14c', 'project_id': '8386172115a241c0ba6cde0f8345d14c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['df64b7e1-6738-43e0-a139-2f742c81666d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78241315', 'ctest-vn-94692637'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78241315', 'ctest-policy-allow-all-25134915']], 'subnet_ipam': [{'subnet_cidr': '27.172.210.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-27 10:39:19,757 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '36f860b3-476f-4e64-9559-b61c5cf2204e', 'name': 'ctest-vn-25849572', 'tenant_id': '8386172115a241c0ba6cde0f8345d14c', 'project_id': '8386172115a241c0ba6cde0f8345d14c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fba51612-cf80-4ec3-9a99-f27c452ed728'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78241315', 'ctest-vn-25849572'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78241315', 'ctest-policy-allow-all-25134915']], 'subnet_ipam': [{'subnet_cidr': '28.165.3.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-27 10:39:19,907 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-27 10:39:20,244 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-27 10:39:20,275 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7a1bdd52-d4fd-45ed-a53e-8bdd6c90a83f
2026-01-27 10:39:20,287 - DEBUG - Requesting: http://10.0.0.38:8082/project/83861721-15a2-41c0-ba6c-de0f8345d14c
2026-01-27 10:39:20,360 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b0bdbc3b-fb46-40e5-8b60-c72c2374e606
2026-01-27 10:39:20,370 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b0bdbc3b-fb46-40e5-8b60-c72c2374e606
2026-01-27 10:39:20,379 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bf88a2c6-d5eb-4f70-a0c1-ae5b0d3c7415
2026-01-27 10:39:20,386 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bf88a2c6-d5eb-4f70-a0c1-ae5b0d3c7415
2026-01-27 10:39:20,392 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e4975425-69ce-44bf-9740-0e7eb77b429b
2026-01-27 10:39:20,397 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-27 10:39:20,397 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b0bdbc3b-fb46-40e5-8b60-c72c2374e606
2026-01-27 10:39:20,406 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bf88a2c6-d5eb-4f70-a0c1-ae5b0d3c7415
2026-01-27 10:39:20,419 - INFO - Verified VN network id 11 for VN b0bdbc3b-fb46-40e5-8b60-c72c2374e606
2026-01-27 10:39:20,419 - INFO - Verifications in API Server for VN ctest-vn-94692637 passed
2026-01-27 10:39:20,419 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b0bdbc3b-fb46-40e5-8b60-c72c2374e606
2026-01-27 10:39:20,427 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bf88a2c6-d5eb-4f70-a0c1-ae5b0d3c7415
2026-01-27 10:39:20,434 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bf88a2c6-d5eb-4f70-a0c1-ae5b0d3c7415
2026-01-27 10:39:20,440 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e4975425-69ce-44bf-9740-0e7eb77b429b
2026-01-27 10:39:20,451 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78241315:ctest-vn-94692637', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78241315', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12735542287078408421', 'uuid-lslong': '10043246161423558150'}, 'enable': 'true', 'created': '2026-01-27T10:39:18', 'last-modified': '2026-01-27T10:39:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.012998'}
2026-01-27 10:39:20,457 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-27 10:39:20,457 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94692637 passed
2026-01-27 10:39:20,458 - DEBUG - ====Verifying policy data for ctest-vn-94692637 in API_Server ======
2026-01-27 10:39:20,458 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-27 10:39:20,463 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7a1bdd52-d4fd-45ed-a53e-8bdd6c90a83f
2026-01-27 10:39:20,473 - DEBUG - Requesting: http://10.0.0.38:8082/project/83861721-15a2-41c0-ba6c-de0f8345d14c
2026-01-27 10:39:20,543 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b0bdbc3b-fb46-40e5-8b60-c72c2374e606
2026-01-27 10:39:20,553 - DEBUG - ==>Verifying data for policy with id: 2483da72-0438-4099-bdb6-db615d72c869, fqn: ['default-domain', 'ctest-TestBasicPolicy-78241315', 'ctest-policy-allow-all-25134915']
2026-01-27 10:39:20,553 - INFO - VN ctest-vn-94692637 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-27 10:39:20,553 - DEBUG - Verifying the vn in opserver
2026-01-27 10:39:20,553 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78241315:ctest-vn-94692637 virtual network link through opserver 10.0.0.38
2026-01-27 10:39:20,553 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-27 10:39:20,892 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-27 10:39:20,954 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78241315:ctest-vn-94692637', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78241315:ctest-vn-94692637?flat'}
2026-01-27 10:39:20,955 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78241315:ctest-vn-94692637 is found in opserver
2026-01-27 10:39:20,964 - DEBUG - Do not have enough data to verify VN in agent
2026-01-27 10:39:20,968 - DEBUG - VRF ids for VN ctest-vn-94692637: {}
2026-01-27 10:39:20,968 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-27 10:39:20,973 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7a1bdd52-d4fd-45ed-a53e-8bdd6c90a83f
2026-01-27 10:39:20,983 - DEBUG - Requesting: http://10.0.0.38:8082/project/83861721-15a2-41c0-ba6c-de0f8345d14c
2026-01-27 10:39:21,054 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/36f860b3-476f-4e64-9559-b61c5cf2204e
2026-01-27 10:39:21,065 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/36f860b3-476f-4e64-9559-b61c5cf2204e
2026-01-27 10:39:21,074 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/156bb2ed-6f3f-4280-a914-9679e02430dd
2026-01-27 10:39:21,080 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/156bb2ed-6f3f-4280-a914-9679e02430dd
2026-01-27 10:39:21,087 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3b989970-d3c0-45a7-a84a-0737842866b5
2026-01-27 10:39:21,093 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-27 10:39:21,093 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/36f860b3-476f-4e64-9559-b61c5cf2204e
2026-01-27 10:39:21,101 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/156bb2ed-6f3f-4280-a914-9679e02430dd
2026-01-27 10:39:21,113 - INFO - Verified VN network id 12 for VN 36f860b3-476f-4e64-9559-b61c5cf2204e
2026-01-27 10:39:21,113 - INFO - Verifications in API Server for VN ctest-vn-25849572 passed
2026-01-27 10:39:21,114 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/36f860b3-476f-4e64-9559-b61c5cf2204e
2026-01-27 10:39:21,122 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/156bb2ed-6f3f-4280-a914-9679e02430dd
2026-01-27 10:39:21,128 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/156bb2ed-6f3f-4280-a914-9679e02430dd
2026-01-27 10:39:21,135 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3b989970-d3c0-45a7-a84a-0737842866b5
2026-01-27 10:39:21,147 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78241315:ctest-vn-25849572', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78241315', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3961022195386240612', 'uuid-lslong': '10761833017513222222'}, 'enable': 'true', 'created': '2026-01-27T10:39:18', 'last-modified': '2026-01-27T10:39:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.471885'}
2026-01-27 10:39:21,154 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-27 10:39:21,154 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25849572 passed
2026-01-27 10:39:21,154 - DEBUG - ====Verifying policy data for ctest-vn-25849572 in API_Server ======
2026-01-27 10:39:21,154 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-27 10:39:21,160 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7a1bdd52-d4fd-45ed-a53e-8bdd6c90a83f
2026-01-27 10:39:21,173 - DEBUG - Requesting: http://10.0.0.38:8082/project/83861721-15a2-41c0-ba6c-de0f8345d14c
2026-01-27 10:39:21,241 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/36f860b3-476f-4e64-9559-b61c5cf2204e
2026-01-27 10:39:21,250 - DEBUG - ==>Verifying data for policy with id: 2483da72-0438-4099-bdb6-db615d72c869, fqn: ['default-domain', 'ctest-TestBasicPolicy-78241315', 'ctest-policy-allow-all-25134915']
2026-01-27 10:39:21,250 - INFO - VN ctest-vn-25849572 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-27 10:39:21,250 - DEBUG - Verifying the vn in opserver
2026-01-27 10:39:21,250 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78241315:ctest-vn-25849572 virtual network link through opserver 10.0.0.38
2026-01-27 10:39:21,250 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-27 10:39:21,260 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78241315:ctest-vn-25849572', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78241315:ctest-vn-25849572?flat'}
2026-01-27 10:39:21,260 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78241315:ctest-vn-25849572 is found in opserver
2026-01-27 10:39:21,270 - DEBUG - Do not have enough data to verify VN in agent
2026-01-27 10:39:21,274 - DEBUG - VRF ids for VN ctest-vn-25849572: {}
2026-01-27 10:39:21,332 - DEBUG - Services list from nova: [