2026-02-02 02:11:16,385 - INFO - Domain Default found not creating
2026-02-02 02:11:16,559 - INFO - Project ctest-TestBasicPolicy-45599025 not found, creating it
2026-02-02 02:11:17,027 - INFO - Created Project:ctest-TestBasicPolicy-45599025, ID : e6aed1d6-f207-4eb9-8a26-551403620ee0
2026-02-02 02:11:18,519 - INFO - ================================================================================
2026-02-02 02:11:18,519 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-02 02:11:18,519 - 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-02-02 02:11:18,776 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.18': '0'}} with
2026-02-02 02:11:18,776 - INFO - Initial checks done. Running the testcase now
2026-02-02 02:11:18,776 - INFO -
2026-02-02 02:11:19,314 - DEBUG - Response for create_network : {'network': {'id': '8d0d748b-e19e-475b-bf25-1cee8046dd94', 'name': 'ctest-vn-22881432', 'tenant_id': 'e6aed1d6f2074eb98a26551403620ee0', 'project_id': 'e6aed1d6f2074eb98a26551403620ee0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45599025', 'ctest-vn-22881432'], 'port_security_enabled': True, 'description': ''}}
2026-02-02 02:11:19,486 - DEBUG - Response for create_subnet : {'subnet': {'id': '814d247d-a78d-4fd8-967f-fbcb6e2e4e97', 'name': '', 'tenant_id': 'e6aed1d6f2074eb98a26551403620ee0', 'network_id': '8d0d748b-e19e-475b-bf25-1cee8046dd94', 'ip_version': 4, 'cidr': '53.129.152.128/26', 'allocation_pools': [{'start': '53.129.152.130', 'end': '53.129.152.190'}], 'gateway_ip': '53.129.152.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.129.152.130', 'tags': [], 'project_id': 'e6aed1d6f2074eb98a26551403620ee0'}}
2026-02-02 02:11:19,506 - INFO - Created VN ctest-vn-22881432
2026-02-02 02:11:19,560 - DEBUG - VN ctest-vn-22881432 UUID is 8d0d748b-e19e-475b-bf25-1cee8046dd94
2026-02-02 02:11:19,880 - DEBUG - Response for create_network : {'network': {'id': '9f147572-76bd-4747-901e-385b669e32af', 'name': 'ctest-vn-54391104', 'tenant_id': 'e6aed1d6f2074eb98a26551403620ee0', 'project_id': 'e6aed1d6f2074eb98a26551403620ee0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45599025', 'ctest-vn-54391104'], 'port_security_enabled': True, 'description': ''}}
2026-02-02 02:11:20,020 - DEBUG - Response for create_subnet : {'subnet': {'id': '72f14550-c0d0-4f2f-a6fb-cc323f83d740', 'name': '', 'tenant_id': 'e6aed1d6f2074eb98a26551403620ee0', 'network_id': '9f147572-76bd-4747-901e-385b669e32af', 'ip_version': 4, 'cidr': '168.15.58.128/26', 'allocation_pools': [{'start': '168.15.58.130', 'end': '168.15.58.190'}], 'gateway_ip': '168.15.58.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.15.58.130', 'tags': [], 'project_id': 'e6aed1d6f2074eb98a26551403620ee0'}}
2026-02-02 02:11:20,036 - INFO - Created VN ctest-vn-54391104
2026-02-02 02:11:20,092 - DEBUG - VN ctest-vn-54391104 UUID is 9f147572-76bd-4747-901e-385b669e32af
2026-02-02 02:11:20,206 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45599025:ctest-vn-22881432, 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-45599025:ctest-vn-54391104, 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-02-02 02:11:20,494 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8d0d748b-e19e-475b-bf25-1cee8046dd94', 'name': 'ctest-vn-22881432', 'tenant_id': 'e6aed1d6f2074eb98a26551403620ee0', 'project_id': 'e6aed1d6f2074eb98a26551403620ee0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['814d247d-a78d-4fd8-967f-fbcb6e2e4e97'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45599025', 'ctest-vn-22881432'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45599025', 'ctest-policy-allow-all-47470057']], 'subnet_ipam': [{'subnet_cidr': '53.129.152.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-02 02:11:20,709 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9f147572-76bd-4747-901e-385b669e32af', 'name': 'ctest-vn-54391104', 'tenant_id': 'e6aed1d6f2074eb98a26551403620ee0', 'project_id': 'e6aed1d6f2074eb98a26551403620ee0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['72f14550-c0d0-4f2f-a6fb-cc323f83d740'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45599025', 'ctest-vn-54391104'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45599025', 'ctest-policy-allow-all-47470057']], 'subnet_ipam': [{'subnet_cidr': '168.15.58.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-02 02:11:20,884 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-02-02 02:11:21,212 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-02-02 02:11:21,250 - DEBUG - Requesting: http://10.0.0.130:8082/domain/2c1e3d39-3dd7-4b5e-acaf-6c5099be7843
2026-02-02 02:11:21,310 - DEBUG - Requesting: http://10.0.0.130:8082/project/e6aed1d6-f207-4eb9-8a26-551403620ee0
2026-02-02 02:11:21,391 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/8d0d748b-e19e-475b-bf25-1cee8046dd94
2026-02-02 02:11:21,420 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/8d0d748b-e19e-475b-bf25-1cee8046dd94
2026-02-02 02:11:21,429 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/bafcd777-115d-4904-a86c-137e7f083f32
2026-02-02 02:11:21,437 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/bafcd777-115d-4904-a86c-137e7f083f32
2026-02-02 02:11:21,444 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/f878af39-dc2b-4ff5-950e-610c15f9ee99
2026-02-02 02:11:21,451 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-02 02:11:21,451 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/8d0d748b-e19e-475b-bf25-1cee8046dd94
2026-02-02 02:11:21,462 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/bafcd777-115d-4904-a86c-137e7f083f32
2026-02-02 02:11:21,478 - INFO - Verified VN network id 12 for VN 8d0d748b-e19e-475b-bf25-1cee8046dd94
2026-02-02 02:11:21,478 - INFO - Verifications in API Server for VN ctest-vn-22881432 passed
2026-02-02 02:11:21,478 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/8d0d748b-e19e-475b-bf25-1cee8046dd94
2026-02-02 02:11:21,491 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/bafcd777-115d-4904-a86c-137e7f083f32
2026-02-02 02:11:21,497 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/bafcd777-115d-4904-a86c-137e7f083f32
2026-02-02 02:11:21,505 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/f878af39-dc2b-4ff5-950e-610c15f9ee99
2026-02-02 02:11:21,517 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45599025:ctest-vn-22881432', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45599025', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10163908078179600219', 'uuid-lslong': '13773446846062452116'}, 'enable': 'true', 'created': '2026-02-02T02:11:19', 'last-modified': '2026-02-02T02:11:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.044933'}
2026-02-02 02:11:21,524 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-02 02:11:21,524 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22881432 passed
2026-02-02 02:11:21,524 - DEBUG - ====Verifying policy data for ctest-vn-22881432 in API_Server ======
2026-02-02 02:11:21,524 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-02-02 02:11:21,529 - DEBUG - Requesting: http://10.0.0.130:8082/domain/2c1e3d39-3dd7-4b5e-acaf-6c5099be7843
2026-02-02 02:11:21,541 - DEBUG - Requesting: http://10.0.0.130:8082/project/e6aed1d6-f207-4eb9-8a26-551403620ee0
2026-02-02 02:11:21,608 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/8d0d748b-e19e-475b-bf25-1cee8046dd94
2026-02-02 02:11:21,616 - DEBUG - ==>Verifying data for policy with id: db7474f5-938e-431a-87b1-c72482dc1363, fqn: ['default-domain', 'ctest-TestBasicPolicy-45599025', 'ctest-policy-allow-all-47470057']
2026-02-02 02:11:21,616 - INFO - VN ctest-vn-22881432 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-02 02:11:21,616 - DEBUG - Verifying the vn in opserver
2026-02-02 02:11:21,616 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45599025:ctest-vn-22881432 virtual network link through opserver 10.0.0.130
2026-02-02 02:11:21,616 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-02-02 02:11:21,917 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-02-02 02:11:21,979 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45599025:ctest-vn-22881432', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45599025:ctest-vn-22881432?flat'}
2026-02-02 02:11:21,979 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45599025:ctest-vn-22881432 is found in opserver
2026-02-02 02:11:21,988 - DEBUG - Do not have enough data to verify VN in agent
2026-02-02 02:11:21,992 - DEBUG - VRF ids for VN ctest-vn-22881432: {}
2026-02-02 02:11:21,992 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-02-02 02:11:21,997 - DEBUG - Requesting: http://10.0.0.130:8082/domain/2c1e3d39-3dd7-4b5e-acaf-6c5099be7843
2026-02-02 02:11:22,007 - DEBUG - Requesting: http://10.0.0.130:8082/project/e6aed1d6-f207-4eb9-8a26-551403620ee0
2026-02-02 02:11:22,077 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/9f147572-76bd-4747-901e-385b669e32af
2026-02-02 02:11:22,088 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/9f147572-76bd-4747-901e-385b669e32af
2026-02-02 02:11:22,098 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d669769d-0c06-45a0-b832-6b30b422d10f
2026-02-02 02:11:22,105 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d669769d-0c06-45a0-b832-6b30b422d10f
2026-02-02 02:11:22,112 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/828ddc69-d920-410a-a906-3729372e0646
2026-02-02 02:11:22,119 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-02 02:11:22,119 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/9f147572-76bd-4747-901e-385b669e32af
2026-02-02 02:11:22,127 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d669769d-0c06-45a0-b832-6b30b422d10f
2026-02-02 02:11:22,140 - INFO - Verified VN network id 13 for VN 9f147572-76bd-4747-901e-385b669e32af
2026-02-02 02:11:22,140 - INFO - Verifications in API Server for VN ctest-vn-54391104 passed
2026-02-02 02:11:22,140 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/9f147572-76bd-4747-901e-385b669e32af
2026-02-02 02:11:22,148 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d669769d-0c06-45a0-b832-6b30b422d10f
2026-02-02 02:11:22,153 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d669769d-0c06-45a0-b832-6b30b422d10f
2026-02-02 02:11:22,159 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/828ddc69-d920-410a-a906-3729372e0646
2026-02-02 02:11:22,172 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45599025:ctest-vn-54391104', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45599025', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11462916086043592519', 'uuid-lslong': '10384799755977765551'}, 'enable': 'true', 'created': '2026-02-02T02:11:19', 'last-modified': '2026-02-02T02:11:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.481349'}
2026-02-02 02:11:22,178 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-02 02:11:22,178 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54391104 passed
2026-02-02 02:11:22,178 - DEBUG - ====Verifying policy data for ctest-vn-54391104 in API_Server ======
2026-02-02 02:11:22,179 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-02-02 02:11:22,184 - DEBUG - Requesting: http://10.0.0.130:8082/domain/2c1e3d39-3dd7-4b5e-acaf-6c5099be7843
2026-02-02 02:11:22,194 - DEBUG - Requesting: http://10.0.0.130:8082/project/e6aed1d6-f207-4eb9-8a26-551403620ee0
2026-02-02 02:11:22,274 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/9f147572-76bd-4747-901e-385b669e32af
2026-02-02 02:11:22,283 - DEBUG - ==>Verifying data for policy with id: db7474f5-938e-431a-87b1-c72482dc1363, fqn: ['default-domain', 'ctest-TestBasicPolicy-45599025', 'ctest-policy-allow-all-47470057']
2026-02-02 02:11:22,283 - INFO - VN ctest-vn-54391104 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-02 02:11:22,283 - DEBUG - Verifying the vn in opserver
2026-02-02 02:11:22,283 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45599025:ctest-vn-54391104 virtual network link through opserver 10.0.0.130
2026-02-02 02:11:22,283 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-02-02 02:11:22,292 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45599025:ctest-vn-54391104', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45599025:ctest-vn-54391104?flat'}
2026-02-02 02:11:22,292 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45599025:ctest-vn-54391104 is found in opserver
2026-02-02 02:11:22,301 - DEBUG - Do not have enough data to verify VN in agent
2026-02-02 02:11:22,305 - DEBUG - VRF ids for VN ctest-vn-54391104: {}
2026-02-02 02:11:22,359 - DEBUG - Services list from nova: [