2026-03-05 19:44:08,806 - INFO - Domain Default found not creating
2026-03-05 19:44:08,974 - INFO - Project ctest-TestBasicPolicy-40917730 not found, creating it
2026-03-05 19:44:09,424 - INFO - Created Project:ctest-TestBasicPolicy-40917730, ID : 2a3c0939-391e-446d-9427-816577514498
2026-03-05 19:44:11,036 - INFO - ================================================================================
2026-03-05 19:44:11,036 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-05 19:44:11,036 - 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-03-05 19:44:11,289 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with
2026-03-05 19:44:11,289 - INFO - Initial checks done. Running the testcase now
2026-03-05 19:44:11,289 - INFO -
2026-03-05 19:44:11,859 - DEBUG - Response for create_network : {'network': {'id': '035885ea-7d29-49ce-ae9d-73a1407b30a4', 'name': 'ctest-vn-40929556', 'tenant_id': '2a3c0939391e446d9427816577514498', 'project_id': '2a3c0939391e446d9427816577514498', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40917730', 'ctest-vn-40929556'], 'port_security_enabled': True, 'description': ''}}
2026-03-05 19:44:12,058 - DEBUG - Response for create_subnet : {'subnet': {'id': '1948f806-0f9b-40cc-99a7-68135d1fab71', 'name': '', 'tenant_id': '2a3c0939391e446d9427816577514498', 'network_id': '035885ea-7d29-49ce-ae9d-73a1407b30a4', 'ip_version': 4, 'cidr': '148.28.239.192/26', 'allocation_pools': [{'start': '148.28.239.194', 'end': '148.28.239.254'}], 'gateway_ip': '148.28.239.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.28.239.194', 'tags': [], 'project_id': '2a3c0939391e446d9427816577514498'}}
2026-03-05 19:44:12,076 - INFO - Created VN ctest-vn-40929556
2026-03-05 19:44:12,127 - DEBUG - VN ctest-vn-40929556 UUID is 035885ea-7d29-49ce-ae9d-73a1407b30a4
2026-03-05 19:44:12,444 - DEBUG - Response for create_network : {'network': {'id': 'd5f103e4-7084-4b80-97ab-8403d8aafac5', 'name': 'ctest-vn-85879052', 'tenant_id': '2a3c0939391e446d9427816577514498', 'project_id': '2a3c0939391e446d9427816577514498', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40917730', 'ctest-vn-85879052'], 'port_security_enabled': True, 'description': ''}}
2026-03-05 19:44:12,640 - DEBUG - Response for create_subnet : {'subnet': {'id': '527b0b0b-946a-47e6-a24b-d64c8cd340e1', 'name': '', 'tenant_id': '2a3c0939391e446d9427816577514498', 'network_id': 'd5f103e4-7084-4b80-97ab-8403d8aafac5', 'ip_version': 4, 'cidr': '46.138.119.192/26', 'allocation_pools': [{'start': '46.138.119.194', 'end': '46.138.119.254'}], 'gateway_ip': '46.138.119.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.138.119.194', 'tags': [], 'project_id': '2a3c0939391e446d9427816577514498'}}
2026-03-05 19:44:12,657 - INFO - Created VN ctest-vn-85879052
2026-03-05 19:44:12,711 - DEBUG - VN ctest-vn-85879052 UUID is d5f103e4-7084-4b80-97ab-8403d8aafac5
2026-03-05 19:44:12,827 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40917730:ctest-vn-40929556, 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-40917730:ctest-vn-85879052, 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-03-05 19:44:13,112 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '035885ea-7d29-49ce-ae9d-73a1407b30a4', 'name': 'ctest-vn-40929556', 'tenant_id': '2a3c0939391e446d9427816577514498', 'project_id': '2a3c0939391e446d9427816577514498', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1948f806-0f9b-40cc-99a7-68135d1fab71'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40917730', 'ctest-vn-40929556'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40917730', 'ctest-policy-allow-all-33704444']], 'subnet_ipam': [{'subnet_cidr': '148.28.239.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-05 19:44:13,338 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd5f103e4-7084-4b80-97ab-8403d8aafac5', 'name': 'ctest-vn-85879052', 'tenant_id': '2a3c0939391e446d9427816577514498', 'project_id': '2a3c0939391e446d9427816577514498', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['527b0b0b-946a-47e6-a24b-d64c8cd340e1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40917730', 'ctest-vn-85879052'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40917730', 'ctest-policy-allow-all-33704444']], 'subnet_ipam': [{'subnet_cidr': '46.138.119.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-05 19:44:13,483 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-03-05 19:44:13,804 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-03-05 19:44:13,836 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c0a9362f-d5c3-44ab-b0d0-a4a177b3e40d
2026-03-05 19:44:13,849 - DEBUG - Requesting: http://10.0.0.27:8082/project/2a3c0939-391e-446d-9427-816577514498
2026-03-05 19:44:13,926 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/035885ea-7d29-49ce-ae9d-73a1407b30a4
2026-03-05 19:44:13,947 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/035885ea-7d29-49ce-ae9d-73a1407b30a4
2026-03-05 19:44:13,956 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c1833a3a-f6cc-4c05-a2e6-a2e7d6036048
2026-03-05 19:44:13,963 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c1833a3a-f6cc-4c05-a2e6-a2e7d6036048
2026-03-05 19:44:13,970 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/af6f518d-2e7e-4703-801c-9185536ddc0b
2026-03-05 19:44:13,977 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-05 19:44:13,977 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/035885ea-7d29-49ce-ae9d-73a1407b30a4
2026-03-05 19:44:13,985 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c1833a3a-f6cc-4c05-a2e6-a2e7d6036048
2026-03-05 19:44:13,999 - INFO - Verified VN network id 10 for VN 035885ea-7d29-49ce-ae9d-73a1407b30a4
2026-03-05 19:44:14,000 - INFO - Verifications in API Server for VN ctest-vn-40929556 passed
2026-03-05 19:44:14,000 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/035885ea-7d29-49ce-ae9d-73a1407b30a4
2026-03-05 19:44:14,009 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c1833a3a-f6cc-4c05-a2e6-a2e7d6036048
2026-03-05 19:44:14,017 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c1833a3a-f6cc-4c05-a2e6-a2e7d6036048
2026-03-05 19:44:14,023 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/af6f518d-2e7e-4703-801c-9185536ddc0b
2026-03-05 19:44:14,036 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40917730:ctest-vn-40929556', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40917730', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '241089822233020878', 'uuid-lslong': '12582340070351777956'}, 'enable': 'true', 'created': '2026-03-05T19:44:11', 'last-modified': '2026-03-05T19:44:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.944980'}
2026-03-05 19:44:14,042 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-05 19:44:14,042 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40929556 passed
2026-03-05 19:44:14,042 - DEBUG - ====Verifying policy data for ctest-vn-40929556 in API_Server ======
2026-03-05 19:44:14,042 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-03-05 19:44:14,048 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c0a9362f-d5c3-44ab-b0d0-a4a177b3e40d
2026-03-05 19:44:14,059 - DEBUG - Requesting: http://10.0.0.27:8082/project/2a3c0939-391e-446d-9427-816577514498
2026-03-05 19:44:14,131 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/035885ea-7d29-49ce-ae9d-73a1407b30a4
2026-03-05 19:44:14,141 - DEBUG - ==>Verifying data for policy with id: be6e5b4c-bf84-4ef9-b687-3006b20c9c08, fqn: ['default-domain', 'ctest-TestBasicPolicy-40917730', 'ctest-policy-allow-all-33704444']
2026-03-05 19:44:14,141 - INFO - VN ctest-vn-40929556 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-05 19:44:14,141 - DEBUG - Verifying the vn in opserver
2026-03-05 19:44:14,141 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40917730:ctest-vn-40929556 virtual network link through opserver 10.0.0.27
2026-03-05 19:44:14,141 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2026-03-05 19:44:14,438 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2026-03-05 19:44:14,504 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40917730:ctest-vn-40929556', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40917730:ctest-vn-40929556?flat'}
2026-03-05 19:44:14,504 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40917730:ctest-vn-40929556 is found in opserver
2026-03-05 19:44:14,515 - DEBUG - Do not have enough data to verify VN in agent
2026-03-05 19:44:14,519 - DEBUG - VRF ids for VN ctest-vn-40929556: {}
2026-03-05 19:44:14,519 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-03-05 19:44:14,525 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c0a9362f-d5c3-44ab-b0d0-a4a177b3e40d
2026-03-05 19:44:14,535 - DEBUG - Requesting: http://10.0.0.27:8082/project/2a3c0939-391e-446d-9427-816577514498
2026-03-05 19:44:14,607 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d5f103e4-7084-4b80-97ab-8403d8aafac5
2026-03-05 19:44:14,624 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d5f103e4-7084-4b80-97ab-8403d8aafac5
2026-03-05 19:44:14,633 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1e3496a9-484d-4e82-8c42-3a48ab38ada6
2026-03-05 19:44:14,641 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1e3496a9-484d-4e82-8c42-3a48ab38ada6
2026-03-05 19:44:14,648 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/23c89b71-e236-44ca-ade9-5c944f627a5c
2026-03-05 19:44:14,655 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-05 19:44:14,655 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d5f103e4-7084-4b80-97ab-8403d8aafac5
2026-03-05 19:44:14,664 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1e3496a9-484d-4e82-8c42-3a48ab38ada6
2026-03-05 19:44:14,678 - INFO - Verified VN network id 11 for VN d5f103e4-7084-4b80-97ab-8403d8aafac5
2026-03-05 19:44:14,679 - INFO - Verifications in API Server for VN ctest-vn-85879052 passed
2026-03-05 19:44:14,679 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d5f103e4-7084-4b80-97ab-8403d8aafac5
2026-03-05 19:44:14,688 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1e3496a9-484d-4e82-8c42-3a48ab38ada6
2026-03-05 19:44:14,695 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1e3496a9-484d-4e82-8c42-3a48ab38ada6
2026-03-05 19:44:14,701 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/23c89b71-e236-44ca-ade9-5c944f627a5c
2026-03-05 19:44:14,712 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40917730:ctest-vn-85879052', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40917730', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15416107279141063552', 'uuid-lslong': '10928974072799492805'}, 'enable': 'true', 'created': '2026-03-05T19:44:12', 'last-modified': '2026-03-05T19:44:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.393128'}
2026-03-05 19:44:14,717 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-05 19:44:14,717 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85879052 passed
2026-03-05 19:44:14,717 - DEBUG - ====Verifying policy data for ctest-vn-85879052 in API_Server ======
2026-03-05 19:44:14,717 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-03-05 19:44:14,724 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c0a9362f-d5c3-44ab-b0d0-a4a177b3e40d
2026-03-05 19:44:14,735 - DEBUG - Requesting: http://10.0.0.27:8082/project/2a3c0939-391e-446d-9427-816577514498
2026-03-05 19:44:14,809 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d5f103e4-7084-4b80-97ab-8403d8aafac5
2026-03-05 19:44:14,819 - DEBUG - ==>Verifying data for policy with id: be6e5b4c-bf84-4ef9-b687-3006b20c9c08, fqn: ['default-domain', 'ctest-TestBasicPolicy-40917730', 'ctest-policy-allow-all-33704444']
2026-03-05 19:44:14,819 - INFO - VN ctest-vn-85879052 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-05 19:44:14,819 - DEBUG - Verifying the vn in opserver
2026-03-05 19:44:14,819 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40917730:ctest-vn-85879052 virtual network link through opserver 10.0.0.27
2026-03-05 19:44:14,819 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2026-03-05 19:44:14,831 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40917730:ctest-vn-85879052', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40917730:ctest-vn-85879052?flat'}
2026-03-05 19:44:14,831 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40917730:ctest-vn-85879052 is found in opserver
2026-03-05 19:44:14,841 - DEBUG - Do not have enough data to verify VN in agent
2026-03-05 19:44:14,845 - DEBUG - VRF ids for VN ctest-vn-85879052: {}
2026-03-05 19:44:14,908 - DEBUG - Services list from nova: [