2026-04-21 12:14:17,335 - INFO - Domain Default found not creating
2026-04-21 12:14:17,512 - INFO - Project ctest-TestBasicPolicy-19377585 not found, creating it
2026-04-21 12:14:17,966 - INFO - Created Project:ctest-TestBasicPolicy-19377585, ID : db6de5a7-4f46-4456-aa40-554938eea487
2026-04-21 12:14:19,471 - INFO - ================================================================================
2026-04-21 12:14:19,472 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-21 12:14:19,472 - 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-21 12:14:19,735 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-04-21 12:14:19,735 - INFO - Initial checks done. Running the testcase now
2026-04-21 12:14:19,735 - INFO -
2026-04-21 12:14:20,339 - DEBUG - Response for create_network : {'network': {'id': '92a3e266-5e57-435b-8e35-ff35ba0753cb', 'name': 'ctest-vn-92975291', 'tenant_id': 'db6de5a74f464456aa40554938eea487', 'project_id': 'db6de5a74f464456aa40554938eea487', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19377585', 'ctest-vn-92975291'], 'port_security_enabled': True, 'description': ''}}
2026-04-21 12:14:20,557 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b6f97687-9daa-4d23-ba26-7576b3c07a96', 'name': '', 'tenant_id': 'db6de5a74f464456aa40554938eea487', 'network_id': '92a3e266-5e57-435b-8e35-ff35ba0753cb', 'ip_version': 4, 'cidr': '40.36.140.64/26', 'allocation_pools': [{'start': '40.36.140.66', 'end': '40.36.140.126'}], 'gateway_ip': '40.36.140.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.36.140.66', 'tags': [], 'project_id': 'db6de5a74f464456aa40554938eea487'}}
2026-04-21 12:14:20,575 - INFO - Created VN ctest-vn-92975291
2026-04-21 12:14:20,627 - DEBUG - VN ctest-vn-92975291 UUID is 92a3e266-5e57-435b-8e35-ff35ba0753cb
2026-04-21 12:14:20,947 - DEBUG - Response for create_network : {'network': {'id': '43e924a7-2d2f-41d5-a137-704ab0dc456f', 'name': 'ctest-vn-93804292', 'tenant_id': 'db6de5a74f464456aa40554938eea487', 'project_id': 'db6de5a74f464456aa40554938eea487', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19377585', 'ctest-vn-93804292'], 'port_security_enabled': True, 'description': ''}}
2026-04-21 12:14:21,158 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a83dbaf-2449-4c7e-b98e-f87e75e40d28', 'name': '', 'tenant_id': 'db6de5a74f464456aa40554938eea487', 'network_id': '43e924a7-2d2f-41d5-a137-704ab0dc456f', 'ip_version': 4, 'cidr': '36.52.219.64/26', 'allocation_pools': [{'start': '36.52.219.66', 'end': '36.52.219.126'}], 'gateway_ip': '36.52.219.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.52.219.66', 'tags': [], 'project_id': 'db6de5a74f464456aa40554938eea487'}}
2026-04-21 12:14:21,177 - INFO - Created VN ctest-vn-93804292
2026-04-21 12:14:21,231 - DEBUG - VN ctest-vn-93804292 UUID is 43e924a7-2d2f-41d5-a137-704ab0dc456f
2026-04-21 12:14:21,383 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19377585:ctest-vn-92975291, 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-19377585:ctest-vn-93804292, 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-21 12:14:21,688 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '92a3e266-5e57-435b-8e35-ff35ba0753cb', 'name': 'ctest-vn-92975291', 'tenant_id': 'db6de5a74f464456aa40554938eea487', 'project_id': 'db6de5a74f464456aa40554938eea487', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b6f97687-9daa-4d23-ba26-7576b3c07a96'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19377585', 'ctest-vn-92975291'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19377585', 'ctest-policy-allow-all-18829069']], 'subnet_ipam': [{'subnet_cidr': '40.36.140.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-21 12:14:21,913 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '43e924a7-2d2f-41d5-a137-704ab0dc456f', 'name': 'ctest-vn-93804292', 'tenant_id': 'db6de5a74f464456aa40554938eea487', 'project_id': 'db6de5a74f464456aa40554938eea487', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5a83dbaf-2449-4c7e-b98e-f87e75e40d28'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19377585', 'ctest-vn-93804292'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19377585', 'ctest-policy-allow-all-18829069']], 'subnet_ipam': [{'subnet_cidr': '36.52.219.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-21 12:14:22,079 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-21 12:14:22,376 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-21 12:14:22,412 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1ff37e0d-8f7a-4c4e-85f1-324549c1004b
2026-04-21 12:14:22,423 - DEBUG - Requesting: http://10.0.0.38:8082/project/db6de5a7-4f46-4456-aa40-554938eea487
2026-04-21 12:14:22,495 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/92a3e266-5e57-435b-8e35-ff35ba0753cb
2026-04-21 12:14:22,506 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/92a3e266-5e57-435b-8e35-ff35ba0753cb
2026-04-21 12:14:22,516 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b942cf9-4143-4303-bd8f-f91a5eba0cc9
2026-04-21 12:14:22,523 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b942cf9-4143-4303-bd8f-f91a5eba0cc9
2026-04-21 12:14:22,530 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/40cb7202-c9ad-4611-88a3-17ca18c94df1
2026-04-21 12:14:22,536 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-21 12:14:22,536 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/92a3e266-5e57-435b-8e35-ff35ba0753cb
2026-04-21 12:14:22,545 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b942cf9-4143-4303-bd8f-f91a5eba0cc9
2026-04-21 12:14:22,559 - INFO - Verified VN network id 11 for VN 92a3e266-5e57-435b-8e35-ff35ba0753cb
2026-04-21 12:14:22,559 - INFO - Verifications in API Server for VN ctest-vn-92975291 passed
2026-04-21 12:14:22,560 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/92a3e266-5e57-435b-8e35-ff35ba0753cb
2026-04-21 12:14:22,568 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b942cf9-4143-4303-bd8f-f91a5eba0cc9
2026-04-21 12:14:22,574 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b942cf9-4143-4303-bd8f-f91a5eba0cc9
2026-04-21 12:14:22,582 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/40cb7202-c9ad-4611-88a3-17ca18c94df1
2026-04-21 12:14:22,594 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19377585:ctest-vn-92975291', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19377585', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10566538080038634331', 'uuid-lslong': '10247377133370823627'}, 'enable': 'true', 'created': '2026-04-21T12:14:20', 'last-modified': '2026-04-21T12:14:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.930745'}
2026-04-21 12:14:22,601 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-21 12:14:22,601 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92975291 passed
2026-04-21 12:14:22,601 - DEBUG - ====Verifying policy data for ctest-vn-92975291 in API_Server ======
2026-04-21 12:14:22,601 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-21 12:14:22,607 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1ff37e0d-8f7a-4c4e-85f1-324549c1004b
2026-04-21 12:14:22,619 - DEBUG - Requesting: http://10.0.0.38:8082/project/db6de5a7-4f46-4456-aa40-554938eea487
2026-04-21 12:14:22,693 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/92a3e266-5e57-435b-8e35-ff35ba0753cb
2026-04-21 12:14:22,702 - DEBUG - ==>Verifying data for policy with id: 444ead78-18d3-4d81-985f-d45fba3e0c09, fqn: ['default-domain', 'ctest-TestBasicPolicy-19377585', 'ctest-policy-allow-all-18829069']
2026-04-21 12:14:22,702 - INFO - VN ctest-vn-92975291 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-21 12:14:22,702 - DEBUG - Verifying the vn in opserver
2026-04-21 12:14:22,702 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19377585:ctest-vn-92975291 virtual network link through opserver 10.0.0.38
2026-04-21 12:14:22,702 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-21 12:14:23,001 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-21 12:14:23,079 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19377585:ctest-vn-92975291', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19377585:ctest-vn-92975291?flat'}
2026-04-21 12:14:23,079 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19377585:ctest-vn-92975291 is found in opserver
2026-04-21 12:14:23,090 - DEBUG - Do not have enough data to verify VN in agent
2026-04-21 12:14:23,098 - DEBUG - VRF ids for VN ctest-vn-92975291: {}
2026-04-21 12:14:23,098 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-21 12:14:23,103 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1ff37e0d-8f7a-4c4e-85f1-324549c1004b
2026-04-21 12:14:23,115 - DEBUG - Requesting: http://10.0.0.38:8082/project/db6de5a7-4f46-4456-aa40-554938eea487
2026-04-21 12:14:23,183 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/43e924a7-2d2f-41d5-a137-704ab0dc456f
2026-04-21 12:14:23,196 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/43e924a7-2d2f-41d5-a137-704ab0dc456f
2026-04-21 12:14:23,207 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/291ce373-79a1-4de0-8f9f-2549fbfe7572
2026-04-21 12:14:23,215 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/291ce373-79a1-4de0-8f9f-2549fbfe7572
2026-04-21 12:14:23,222 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4684126d-cb7f-4e28-b721-f7efcb818590
2026-04-21 12:14:23,230 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-21 12:14:23,230 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/43e924a7-2d2f-41d5-a137-704ab0dc456f
2026-04-21 12:14:23,239 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/291ce373-79a1-4de0-8f9f-2549fbfe7572
2026-04-21 12:14:23,255 - INFO - Verified VN network id 12 for VN 43e924a7-2d2f-41d5-a137-704ab0dc456f
2026-04-21 12:14:23,255 - INFO - Verifications in API Server for VN ctest-vn-93804292 passed
2026-04-21 12:14:23,256 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/43e924a7-2d2f-41d5-a137-704ab0dc456f
2026-04-21 12:14:23,265 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/291ce373-79a1-4de0-8f9f-2549fbfe7572
2026-04-21 12:14:23,273 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/291ce373-79a1-4de0-8f9f-2549fbfe7572
2026-04-21 12:14:23,280 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4684126d-cb7f-4e28-b721-f7efcb818590
2026-04-21 12:14:23,292 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19377585:ctest-vn-93804292', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19377585', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4893482770550964693', 'uuid-lslong': '11616877229922600303'}, 'enable': 'true', 'created': '2026-04-21T12:14:20', 'last-modified': '2026-04-21T12:14:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.399521'}
2026-04-21 12:14:23,298 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-21 12:14:23,298 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93804292 passed
2026-04-21 12:14:23,298 - DEBUG - ====Verifying policy data for ctest-vn-93804292 in API_Server ======
2026-04-21 12:14:23,298 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-21 12:14:23,304 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1ff37e0d-8f7a-4c4e-85f1-324549c1004b
2026-04-21 12:14:23,316 - DEBUG - Requesting: http://10.0.0.38:8082/project/db6de5a7-4f46-4456-aa40-554938eea487
2026-04-21 12:14:23,402 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/43e924a7-2d2f-41d5-a137-704ab0dc456f
2026-04-21 12:14:23,412 - DEBUG - ==>Verifying data for policy with id: 444ead78-18d3-4d81-985f-d45fba3e0c09, fqn: ['default-domain', 'ctest-TestBasicPolicy-19377585', 'ctest-policy-allow-all-18829069']
2026-04-21 12:14:23,412 - INFO - VN ctest-vn-93804292 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-21 12:14:23,413 - DEBUG - Verifying the vn in opserver
2026-04-21 12:14:23,413 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19377585:ctest-vn-93804292 virtual network link through opserver 10.0.0.38
2026-04-21 12:14:23,413 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-21 12:14:23,425 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19377585:ctest-vn-93804292', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19377585:ctest-vn-93804292?flat'}
2026-04-21 12:14:23,425 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19377585:ctest-vn-93804292 is found in opserver
2026-04-21 12:14:23,435 - DEBUG - Do not have enough data to verify VN in agent
2026-04-21 12:14:23,441 - DEBUG - VRF ids for VN ctest-vn-93804292: {}
2026-04-21 12:14:23,522 - DEBUG - Services list from nova: [