2026-04-28 18:53:34,903 - INFO - Domain Default found not creating
2026-04-28 18:53:35,112 - INFO - Project ctest-TestBasicPolicy-50266452 not found, creating it
2026-04-28 18:53:35,628 - INFO - Created Project:ctest-TestBasicPolicy-50266452, ID : 32a7ef58-8e3c-4024-89ad-bef83a3f8db1
2026-04-28 18:53:37,220 - INFO - ================================================================================
2026-04-28 18:53:37,220 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-28 18:53:37,220 - 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-28 18:53:37,477 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with
2026-04-28 18:53:37,477 - INFO - Initial checks done. Running the testcase now
2026-04-28 18:53:37,477 - INFO -
2026-04-28 18:53:38,106 - DEBUG - Response for create_network : {'network': {'id': 'eacadd1c-6e09-4ce0-a077-c51f3cf3bb2b', 'name': 'ctest-vn-20351730', 'tenant_id': '32a7ef588e3c402489adbef83a3f8db1', 'project_id': '32a7ef588e3c402489adbef83a3f8db1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50266452', 'ctest-vn-20351730'], 'port_security_enabled': True, 'description': ''}}
2026-04-28 18:53:38,360 - DEBUG - Response for create_subnet : {'subnet': {'id': '1dca0b2e-d1c4-4707-9db2-f85d66fb76ad', 'name': '', 'tenant_id': '32a7ef588e3c402489adbef83a3f8db1', 'network_id': 'eacadd1c-6e09-4ce0-a077-c51f3cf3bb2b', 'ip_version': 4, 'cidr': '122.244.129.128/26', 'allocation_pools': [{'start': '122.244.129.130', 'end': '122.244.129.190'}], 'gateway_ip': '122.244.129.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.244.129.130', 'tags': [], 'project_id': '32a7ef588e3c402489adbef83a3f8db1'}}
2026-04-28 18:53:38,383 - INFO - Created VN ctest-vn-20351730
2026-04-28 18:53:38,435 - DEBUG - VN ctest-vn-20351730 UUID is eacadd1c-6e09-4ce0-a077-c51f3cf3bb2b
2026-04-28 18:53:38,751 - DEBUG - Response for create_network : {'network': {'id': 'ec7180e1-2d19-438c-89ab-bf33d36461eb', 'name': 'ctest-vn-60216636', 'tenant_id': '32a7ef588e3c402489adbef83a3f8db1', 'project_id': '32a7ef588e3c402489adbef83a3f8db1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50266452', 'ctest-vn-60216636'], 'port_security_enabled': True, 'description': ''}}
2026-04-28 18:53:38,952 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f55cf551-0f43-4cea-b18d-5a4b2ce9e10a', 'name': '', 'tenant_id': '32a7ef588e3c402489adbef83a3f8db1', 'network_id': 'ec7180e1-2d19-438c-89ab-bf33d36461eb', 'ip_version': 4, 'cidr': '157.79.71.192/26', 'allocation_pools': [{'start': '157.79.71.194', 'end': '157.79.71.254'}], 'gateway_ip': '157.79.71.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.79.71.194', 'tags': [], 'project_id': '32a7ef588e3c402489adbef83a3f8db1'}}
2026-04-28 18:53:38,973 - INFO - Created VN ctest-vn-60216636
2026-04-28 18:53:39,027 - DEBUG - VN ctest-vn-60216636 UUID is ec7180e1-2d19-438c-89ab-bf33d36461eb
2026-04-28 18:53:39,147 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50266452:ctest-vn-20351730, 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-50266452:ctest-vn-60216636, 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-28 18:53:39,459 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eacadd1c-6e09-4ce0-a077-c51f3cf3bb2b', 'name': 'ctest-vn-20351730', 'tenant_id': '32a7ef588e3c402489adbef83a3f8db1', 'project_id': '32a7ef588e3c402489adbef83a3f8db1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1dca0b2e-d1c4-4707-9db2-f85d66fb76ad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50266452', 'ctest-vn-20351730'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50266452', 'ctest-policy-allow-all-67701498']], 'subnet_ipam': [{'subnet_cidr': '122.244.129.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-28 18:53:39,704 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec7180e1-2d19-438c-89ab-bf33d36461eb', 'name': 'ctest-vn-60216636', 'tenant_id': '32a7ef588e3c402489adbef83a3f8db1', 'project_id': '32a7ef588e3c402489adbef83a3f8db1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f55cf551-0f43-4cea-b18d-5a4b2ce9e10a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50266452', 'ctest-vn-60216636'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50266452', 'ctest-policy-allow-all-67701498']], 'subnet_ipam': [{'subnet_cidr': '157.79.71.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-28 18:53:39,883 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-28 18:53:40,188 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-28 18:53:40,227 - DEBUG - Requesting: http://10.0.0.33:8082/domain/939db5da-ee66-464e-93bc-b88c6d52bc10
2026-04-28 18:53:40,241 - DEBUG - Requesting: http://10.0.0.33:8082/project/32a7ef58-8e3c-4024-89ad-bef83a3f8db1
2026-04-28 18:53:40,316 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eacadd1c-6e09-4ce0-a077-c51f3cf3bb2b
2026-04-28 18:53:40,329 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eacadd1c-6e09-4ce0-a077-c51f3cf3bb2b
2026-04-28 18:53:40,341 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1f8c3550-96fa-4d26-84d6-3d1a39c1ab06
2026-04-28 18:53:40,350 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1f8c3550-96fa-4d26-84d6-3d1a39c1ab06
2026-04-28 18:53:40,358 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/94f1302d-db8e-4f4f-8961-345525366182
2026-04-28 18:53:40,366 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-28 18:53:40,366 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eacadd1c-6e09-4ce0-a077-c51f3cf3bb2b
2026-04-28 18:53:40,377 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1f8c3550-96fa-4d26-84d6-3d1a39c1ab06
2026-04-28 18:53:40,394 - INFO - Verified VN network id 11 for VN eacadd1c-6e09-4ce0-a077-c51f3cf3bb2b
2026-04-28 18:53:40,394 - INFO - Verifications in API Server for VN ctest-vn-20351730 passed
2026-04-28 18:53:40,394 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eacadd1c-6e09-4ce0-a077-c51f3cf3bb2b
2026-04-28 18:53:40,405 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1f8c3550-96fa-4d26-84d6-3d1a39c1ab06
2026-04-28 18:53:40,416 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1f8c3550-96fa-4d26-84d6-3d1a39c1ab06
2026-04-28 18:53:40,423 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/94f1302d-db8e-4f4f-8961-345525366182
2026-04-28 18:53:40,436 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50266452:ctest-vn-20351730', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50266452', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16918578064345615584', 'uuid-lslong': '11562927306254301995'}, 'enable': 'true', 'created': '2026-04-28T18:53:38', 'last-modified': '2026-04-28T18:53:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.005139'}
2026-04-28 18:53:40,443 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-28 18:53:40,444 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20351730 passed
2026-04-28 18:53:40,444 - DEBUG - ====Verifying policy data for ctest-vn-20351730 in API_Server ======
2026-04-28 18:53:40,444 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-28 18:53:40,450 - DEBUG - Requesting: http://10.0.0.33:8082/domain/939db5da-ee66-464e-93bc-b88c6d52bc10
2026-04-28 18:53:40,465 - DEBUG - Requesting: http://10.0.0.33:8082/project/32a7ef58-8e3c-4024-89ad-bef83a3f8db1
2026-04-28 18:53:40,544 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eacadd1c-6e09-4ce0-a077-c51f3cf3bb2b
2026-04-28 18:53:40,554 - DEBUG - ==>Verifying data for policy with id: 476ff5f5-cb92-48ec-b985-8d0f45aafb4c, fqn: ['default-domain', 'ctest-TestBasicPolicy-50266452', 'ctest-policy-allow-all-67701498']
2026-04-28 18:53:40,554 - INFO - VN ctest-vn-20351730 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-28 18:53:40,554 - DEBUG - Verifying the vn in opserver
2026-04-28 18:53:40,554 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50266452:ctest-vn-20351730 virtual network link through opserver 10.0.0.33
2026-04-28 18:53:40,555 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-28 18:53:40,856 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-28 18:53:40,930 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50266452:ctest-vn-20351730', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50266452:ctest-vn-20351730?flat'}
2026-04-28 18:53:40,930 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50266452:ctest-vn-20351730 is found in opserver
2026-04-28 18:53:40,940 - DEBUG - Do not have enough data to verify VN in agent
2026-04-28 18:53:40,945 - DEBUG - VRF ids for VN ctest-vn-20351730: {}
2026-04-28 18:53:40,945 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-28 18:53:40,952 - DEBUG - Requesting: http://10.0.0.33:8082/domain/939db5da-ee66-464e-93bc-b88c6d52bc10
2026-04-28 18:53:40,965 - DEBUG - Requesting: http://10.0.0.33:8082/project/32a7ef58-8e3c-4024-89ad-bef83a3f8db1
2026-04-28 18:53:41,036 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ec7180e1-2d19-438c-89ab-bf33d36461eb
2026-04-28 18:53:41,049 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ec7180e1-2d19-438c-89ab-bf33d36461eb
2026-04-28 18:53:41,059 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f3676156-3967-44c3-8208-ea594d7d909b
2026-04-28 18:53:41,067 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f3676156-3967-44c3-8208-ea594d7d909b
2026-04-28 18:53:41,076 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/06f8f4b1-4767-4216-b408-e123d3610466
2026-04-28 18:53:41,084 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-28 18:53:41,084 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ec7180e1-2d19-438c-89ab-bf33d36461eb
2026-04-28 18:53:41,094 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f3676156-3967-44c3-8208-ea594d7d909b
2026-04-28 18:53:41,110 - INFO - Verified VN network id 12 for VN ec7180e1-2d19-438c-89ab-bf33d36461eb
2026-04-28 18:53:41,111 - INFO - Verifications in API Server for VN ctest-vn-60216636 passed
2026-04-28 18:53:41,111 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ec7180e1-2d19-438c-89ab-bf33d36461eb
2026-04-28 18:53:41,121 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f3676156-3967-44c3-8208-ea594d7d909b
2026-04-28 18:53:41,129 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f3676156-3967-44c3-8208-ea594d7d909b
2026-04-28 18:53:41,138 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/06f8f4b1-4767-4216-b408-e123d3610466
2026-04-28 18:53:41,150 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50266452:ctest-vn-60216636', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50266452', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17037540569931924364', 'uuid-lslong': '9920232833524457963'}, 'enable': 'true', 'created': '2026-04-28T18:53:38', 'last-modified': '2026-04-28T18:53:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.477337'}
2026-04-28 18:53:41,157 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-28 18:53:41,157 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60216636 passed
2026-04-28 18:53:41,157 - DEBUG - ====Verifying policy data for ctest-vn-60216636 in API_Server ======
2026-04-28 18:53:41,157 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-28 18:53:41,164 - DEBUG - Requesting: http://10.0.0.33:8082/domain/939db5da-ee66-464e-93bc-b88c6d52bc10
2026-04-28 18:53:41,176 - DEBUG - Requesting: http://10.0.0.33:8082/project/32a7ef58-8e3c-4024-89ad-bef83a3f8db1
2026-04-28 18:53:41,252 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/ec7180e1-2d19-438c-89ab-bf33d36461eb
2026-04-28 18:53:41,264 - DEBUG - ==>Verifying data for policy with id: 476ff5f5-cb92-48ec-b985-8d0f45aafb4c, fqn: ['default-domain', 'ctest-TestBasicPolicy-50266452', 'ctest-policy-allow-all-67701498']
2026-04-28 18:53:41,265 - INFO - VN ctest-vn-60216636 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-28 18:53:41,265 - DEBUG - Verifying the vn in opserver
2026-04-28 18:53:41,265 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50266452:ctest-vn-60216636 virtual network link through opserver 10.0.0.33
2026-04-28 18:53:41,265 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-28 18:53:41,279 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50266452:ctest-vn-60216636', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50266452:ctest-vn-60216636?flat'}
2026-04-28 18:53:41,279 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50266452:ctest-vn-60216636 is found in opserver
2026-04-28 18:53:41,292 - DEBUG - Do not have enough data to verify VN in agent
2026-04-28 18:53:41,296 - DEBUG - VRF ids for VN ctest-vn-60216636: {}
2026-04-28 18:53:41,368 - DEBUG - Services list from nova: [