2026-06-22 11:31:19,447 - INFO - Domain Default found not creating
2026-06-22 11:31:19,629 - INFO - Project ctest-TestBasicPolicy-81346077 not found, creating it
2026-06-22 11:31:20,105 - INFO - Created Project:ctest-TestBasicPolicy-81346077, ID : 0bcec130-1aa9-426b-b083-65ba4d45770c
2026-06-22 11:31:21,646 - INFO - ================================================================================
2026-06-22 11:31:21,646 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-22 11:31:21,646 - 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-06-22 11:31:21,904 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2026-06-22 11:31:21,905 - INFO - Initial checks done. Running the testcase now
2026-06-22 11:31:21,905 - INFO -
2026-06-22 11:31:22,512 - DEBUG - Response for create_network : {'network': {'id': '33b5b8f8-0909-4502-9ce2-9968ccb3df45', 'name': 'ctest-vn-22421683', 'tenant_id': '0bcec1301aa9426bb08365ba4d45770c', 'project_id': '0bcec1301aa9426bb08365ba4d45770c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81346077', 'ctest-vn-22421683'], 'port_security_enabled': True, 'description': ''}}
2026-06-22 11:31:22,708 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b2d2698-f62e-466b-b70e-e5da886d13be', 'name': '', 'tenant_id': '0bcec1301aa9426bb08365ba4d45770c', 'network_id': '33b5b8f8-0909-4502-9ce2-9968ccb3df45', 'ip_version': 4, 'cidr': '213.43.215.192/26', 'allocation_pools': [{'start': '213.43.215.194', 'end': '213.43.215.254'}], 'gateway_ip': '213.43.215.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.43.215.194', 'tags': [], 'project_id': '0bcec1301aa9426bb08365ba4d45770c'}}
2026-06-22 11:31:22,728 - INFO - Created VN ctest-vn-22421683
2026-06-22 11:31:22,783 - DEBUG - VN ctest-vn-22421683 UUID is 33b5b8f8-0909-4502-9ce2-9968ccb3df45
2026-06-22 11:31:23,079 - DEBUG - Response for create_network : {'network': {'id': '996e07a6-913a-4b42-ba57-bf02734490a9', 'name': 'ctest-vn-18339627', 'tenant_id': '0bcec1301aa9426bb08365ba4d45770c', 'project_id': '0bcec1301aa9426bb08365ba4d45770c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81346077', 'ctest-vn-18339627'], 'port_security_enabled': True, 'description': ''}}
2026-06-22 11:31:23,248 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4690403-9ce0-43cf-9718-b903743a88b7', 'name': '', 'tenant_id': '0bcec1301aa9426bb08365ba4d45770c', 'network_id': '996e07a6-913a-4b42-ba57-bf02734490a9', 'ip_version': 4, 'cidr': '60.122.136.192/26', 'allocation_pools': [{'start': '60.122.136.194', 'end': '60.122.136.254'}], 'gateway_ip': '60.122.136.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.122.136.194', 'tags': [], 'project_id': '0bcec1301aa9426bb08365ba4d45770c'}}
2026-06-22 11:31:23,265 - INFO - Created VN ctest-vn-18339627
2026-06-22 11:31:23,319 - DEBUG - VN ctest-vn-18339627 UUID is 996e07a6-913a-4b42-ba57-bf02734490a9
2026-06-22 11:31:23,475 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-81346077:ctest-vn-22421683, 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-81346077:ctest-vn-18339627, 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-06-22 11:31:23,762 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '33b5b8f8-0909-4502-9ce2-9968ccb3df45', 'name': 'ctest-vn-22421683', 'tenant_id': '0bcec1301aa9426bb08365ba4d45770c', 'project_id': '0bcec1301aa9426bb08365ba4d45770c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0b2d2698-f62e-466b-b70e-e5da886d13be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81346077', 'ctest-vn-22421683'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81346077', 'ctest-policy-allow-all-94684570']], 'subnet_ipam': [{'subnet_cidr': '213.43.215.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-22 11:31:23,991 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '996e07a6-913a-4b42-ba57-bf02734490a9', 'name': 'ctest-vn-18339627', 'tenant_id': '0bcec1301aa9426bb08365ba4d45770c', 'project_id': '0bcec1301aa9426bb08365ba4d45770c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4690403-9ce0-43cf-9718-b903743a88b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81346077', 'ctest-vn-18339627'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81346077', 'ctest-policy-allow-all-94684570']], 'subnet_ipam': [{'subnet_cidr': '60.122.136.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-22 11:31:24,159 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-22 11:31:24,482 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-22 11:31:24,510 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c82e6a84-635e-4de9-8fa8-c9226476c9c0
2026-06-22 11:31:24,523 - DEBUG - Requesting: http://10.0.0.33:8082/project/0bcec130-1aa9-426b-b083-65ba4d45770c
2026-06-22 11:31:24,593 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/33b5b8f8-0909-4502-9ce2-9968ccb3df45
2026-06-22 11:31:24,605 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/33b5b8f8-0909-4502-9ce2-9968ccb3df45
2026-06-22 11:31:24,615 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/094042ad-d63a-42b4-b996-5d43a38b52e6
2026-06-22 11:31:24,624 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/094042ad-d63a-42b4-b996-5d43a38b52e6
2026-06-22 11:31:24,633 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6f2ab2a3-6a5b-4eeb-a115-542829af462f
2026-06-22 11:31:24,641 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-22 11:31:24,641 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/33b5b8f8-0909-4502-9ce2-9968ccb3df45
2026-06-22 11:31:24,652 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/094042ad-d63a-42b4-b996-5d43a38b52e6
2026-06-22 11:31:24,667 - INFO - Verified VN network id 11 for VN 33b5b8f8-0909-4502-9ce2-9968ccb3df45
2026-06-22 11:31:24,667 - INFO - Verifications in API Server for VN ctest-vn-22421683 passed
2026-06-22 11:31:24,667 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/33b5b8f8-0909-4502-9ce2-9968ccb3df45
2026-06-22 11:31:24,676 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/094042ad-d63a-42b4-b996-5d43a38b52e6
2026-06-22 11:31:24,684 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/094042ad-d63a-42b4-b996-5d43a38b52e6
2026-06-22 11:31:24,693 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6f2ab2a3-6a5b-4eeb-a115-542829af462f
2026-06-22 11:31:24,705 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81346077:ctest-vn-22421683', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81346077', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3726087642161956098', 'uuid-lslong': '11304766690043354949'}, 'enable': 'true', 'created': '2026-06-22T11:31:22', 'last-modified': '2026-06-22T11:31:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.967765'}
2026-06-22 11:31:24,711 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-22 11:31:24,712 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22421683 passed
2026-06-22 11:31:24,712 - DEBUG - ====Verifying policy data for ctest-vn-22421683 in API_Server ======
2026-06-22 11:31:24,712 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-22 11:31:24,718 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c82e6a84-635e-4de9-8fa8-c9226476c9c0
2026-06-22 11:31:24,729 - DEBUG - Requesting: http://10.0.0.33:8082/project/0bcec130-1aa9-426b-b083-65ba4d45770c
2026-06-22 11:31:24,808 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/33b5b8f8-0909-4502-9ce2-9968ccb3df45
2026-06-22 11:31:24,820 - DEBUG - ==>Verifying data for policy with id: 3e575f0f-8f21-4775-aca3-ec48b22afed9, fqn: ['default-domain', 'ctest-TestBasicPolicy-81346077', 'ctest-policy-allow-all-94684570']
2026-06-22 11:31:24,820 - INFO - VN ctest-vn-22421683 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-22 11:31:24,820 - DEBUG - Verifying the vn in opserver
2026-06-22 11:31:24,820 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81346077:ctest-vn-22421683 virtual network link through opserver 10.0.0.33
2026-06-22 11:31:24,821 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-06-22 11:31:25,145 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-06-22 11:31:25,199 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81346077:ctest-vn-22421683', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81346077:ctest-vn-22421683?flat'}
2026-06-22 11:31:25,199 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81346077:ctest-vn-22421683 is found in opserver
2026-06-22 11:31:25,208 - DEBUG - Do not have enough data to verify VN in agent
2026-06-22 11:31:25,213 - DEBUG - VRF ids for VN ctest-vn-22421683: {}
2026-06-22 11:31:25,213 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-22 11:31:25,219 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c82e6a84-635e-4de9-8fa8-c9226476c9c0
2026-06-22 11:31:25,230 - DEBUG - Requesting: http://10.0.0.33:8082/project/0bcec130-1aa9-426b-b083-65ba4d45770c
2026-06-22 11:31:25,302 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/996e07a6-913a-4b42-ba57-bf02734490a9
2026-06-22 11:31:25,314 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/996e07a6-913a-4b42-ba57-bf02734490a9
2026-06-22 11:31:25,323 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7754730f-0b22-4e9d-82df-d4ba762cdd0a
2026-06-22 11:31:25,330 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7754730f-0b22-4e9d-82df-d4ba762cdd0a
2026-06-22 11:31:25,337 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0e8f25c0-be9d-49ca-8aa9-6742888255df
2026-06-22 11:31:25,345 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-22 11:31:25,345 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/996e07a6-913a-4b42-ba57-bf02734490a9
2026-06-22 11:31:25,356 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7754730f-0b22-4e9d-82df-d4ba762cdd0a
2026-06-22 11:31:25,372 - INFO - Verified VN network id 12 for VN 996e07a6-913a-4b42-ba57-bf02734490a9
2026-06-22 11:31:25,373 - INFO - Verifications in API Server for VN ctest-vn-18339627 passed
2026-06-22 11:31:25,373 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/996e07a6-913a-4b42-ba57-bf02734490a9
2026-06-22 11:31:25,384 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7754730f-0b22-4e9d-82df-d4ba762cdd0a
2026-06-22 11:31:25,393 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7754730f-0b22-4e9d-82df-d4ba762cdd0a
2026-06-22 11:31:25,402 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0e8f25c0-be9d-49ca-8aa9-6742888255df
2026-06-22 11:31:25,417 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81346077:ctest-vn-18339627', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81346077', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11055782547223628610', 'uuid-lslong': '13427410831273136297'}, 'enable': 'true', 'created': '2026-06-22T11:31:23', 'last-modified': '2026-06-22T11:31:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.449767'}
2026-06-22 11:31:25,424 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-22 11:31:25,424 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18339627 passed
2026-06-22 11:31:25,424 - DEBUG - ====Verifying policy data for ctest-vn-18339627 in API_Server ======
2026-06-22 11:31:25,424 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-22 11:31:25,430 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c82e6a84-635e-4de9-8fa8-c9226476c9c0
2026-06-22 11:31:25,443 - DEBUG - Requesting: http://10.0.0.33:8082/project/0bcec130-1aa9-426b-b083-65ba4d45770c
2026-06-22 11:31:25,516 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/996e07a6-913a-4b42-ba57-bf02734490a9
2026-06-22 11:31:25,529 - DEBUG - ==>Verifying data for policy with id: 3e575f0f-8f21-4775-aca3-ec48b22afed9, fqn: ['default-domain', 'ctest-TestBasicPolicy-81346077', 'ctest-policy-allow-all-94684570']
2026-06-22 11:31:25,529 - INFO - VN ctest-vn-18339627 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-22 11:31:25,529 - DEBUG - Verifying the vn in opserver
2026-06-22 11:31:25,529 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81346077:ctest-vn-18339627 virtual network link through opserver 10.0.0.33
2026-06-22 11:31:25,529 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-06-22 11:31:25,542 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81346077:ctest-vn-18339627', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81346077:ctest-vn-18339627?flat'}
2026-06-22 11:31:25,542 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81346077:ctest-vn-18339627 is found in opserver
2026-06-22 11:31:25,554 - DEBUG - Do not have enough data to verify VN in agent
2026-06-22 11:31:25,560 - DEBUG - VRF ids for VN ctest-vn-18339627: {}
2026-06-22 11:31:25,623 - DEBUG - Services list from nova: [