2026-11-06 15:18:14,619 - INFO - Domain Default found not creating
2026-11-06 15:18:14,807 - INFO - Project ctest-TestBasicPolicy-49225484 not found, creating it
2026-11-06 15:18:15,316 - INFO - Created Project:ctest-TestBasicPolicy-49225484, ID : 6f00cbf8-abfd-4d4e-b956-a7de723a8022
2026-11-06 15:18:17,125 - INFO - ================================================================================
2026-11-06 15:18:17,125 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-11-06 15:18:17,125 - 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-11-06 15:18:17,392 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2026-11-06 15:18:17,392 - INFO - Initial checks done. Running the testcase now
2026-11-06 15:18:17,392 - INFO -
2026-11-06 15:18:18,032 - DEBUG - Response for create_network : {'network': {'id': '0bc7d372-9d09-467a-b27d-68e10d1c65c9', 'name': 'ctest-vn-05680595', 'tenant_id': '6f00cbf8abfd4d4eb956a7de723a8022', 'project_id': '6f00cbf8abfd4d4eb956a7de723a8022', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49225484', 'ctest-vn-05680595'], 'port_security_enabled': True, 'description': ''}}
2026-11-06 15:18:18,214 - DEBUG - Response for create_subnet : {'subnet': {'id': '3f7e78f7-3766-4b1d-abf8-31a78cedee5f', 'name': '', 'tenant_id': '6f00cbf8abfd4d4eb956a7de723a8022', 'network_id': '0bc7d372-9d09-467a-b27d-68e10d1c65c9', 'ip_version': 4, 'cidr': '34.98.12.0/26', 'allocation_pools': [{'start': '34.98.12.2', 'end': '34.98.12.62'}], 'gateway_ip': '34.98.12.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.98.12.2', 'tags': [], 'project_id': '6f00cbf8abfd4d4eb956a7de723a8022'}}
2026-11-06 15:18:18,233 - INFO - Created VN ctest-vn-05680595
2026-11-06 15:18:18,289 - DEBUG - VN ctest-vn-05680595 UUID is 0bc7d372-9d09-467a-b27d-68e10d1c65c9
2026-11-06 15:18:18,609 - DEBUG - Response for create_network : {'network': {'id': '457af33f-e67d-466b-b543-f38773174cce', 'name': 'ctest-vn-38529439', 'tenant_id': '6f00cbf8abfd4d4eb956a7de723a8022', 'project_id': '6f00cbf8abfd4d4eb956a7de723a8022', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49225484', 'ctest-vn-38529439'], 'port_security_enabled': True, 'description': ''}}
2026-11-06 15:18:18,797 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d2199f0-5f3d-44f0-9213-ef437607cb8a', 'name': '', 'tenant_id': '6f00cbf8abfd4d4eb956a7de723a8022', 'network_id': '457af33f-e67d-466b-b543-f38773174cce', 'ip_version': 4, 'cidr': '185.33.85.64/26', 'allocation_pools': [{'start': '185.33.85.66', 'end': '185.33.85.126'}], 'gateway_ip': '185.33.85.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.33.85.66', 'tags': [], 'project_id': '6f00cbf8abfd4d4eb956a7de723a8022'}}
2026-11-06 15:18:18,816 - INFO - Created VN ctest-vn-38529439
2026-11-06 15:18:18,869 - DEBUG - VN ctest-vn-38529439 UUID is 457af33f-e67d-466b-b543-f38773174cce
2026-11-06 15:18:18,988 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49225484:ctest-vn-05680595, 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-49225484:ctest-vn-38529439, 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-11-06 15:18:19,311 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0bc7d372-9d09-467a-b27d-68e10d1c65c9', 'name': 'ctest-vn-05680595', 'tenant_id': '6f00cbf8abfd4d4eb956a7de723a8022', 'project_id': '6f00cbf8abfd4d4eb956a7de723a8022', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['3f7e78f7-3766-4b1d-abf8-31a78cedee5f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49225484', 'ctest-vn-05680595'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49225484', 'ctest-policy-allow-all-58321231']], 'subnet_ipam': [{'subnet_cidr': '34.98.12.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-06 15:18:19,551 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '457af33f-e67d-466b-b543-f38773174cce', 'name': 'ctest-vn-38529439', 'tenant_id': '6f00cbf8abfd4d4eb956a7de723a8022', 'project_id': '6f00cbf8abfd4d4eb956a7de723a8022', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['5d2199f0-5f3d-44f0-9213-ef437607cb8a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49225484', 'ctest-vn-38529439'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49225484', 'ctest-policy-allow-all-58321231']], 'subnet_ipam': [{'subnet_cidr': '185.33.85.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-06 15:18:19,725 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-11-06 15:18:20,097 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-11-06 15:18:20,126 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ff4b00ed-fecb-4191-a666-24c963102159
2026-11-06 15:18:20,139 - DEBUG - Requesting: http://10.0.0.50:8082/project/6f00cbf8-abfd-4d4e-b956-a7de723a8022
2026-11-06 15:18:20,218 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0bc7d372-9d09-467a-b27d-68e10d1c65c9
2026-11-06 15:18:20,231 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0bc7d372-9d09-467a-b27d-68e10d1c65c9
2026-11-06 15:18:20,242 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/235acd06-65b4-4873-aea1-80916bb4dade
2026-11-06 15:18:20,252 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/235acd06-65b4-4873-aea1-80916bb4dade
2026-11-06 15:18:20,261 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d17bc76f-5f04-40be-a5a1-0ccb726a3f74
2026-11-06 15:18:20,268 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-06 15:18:20,268 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0bc7d372-9d09-467a-b27d-68e10d1c65c9
2026-11-06 15:18:20,278 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/235acd06-65b4-4873-aea1-80916bb4dade
2026-11-06 15:18:20,296 - INFO - Verified VN network id 12 for VN 0bc7d372-9d09-467a-b27d-68e10d1c65c9
2026-11-06 15:18:20,296 - INFO - Verifications in API Server for VN ctest-vn-05680595 passed
2026-11-06 15:18:20,296 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0bc7d372-9d09-467a-b27d-68e10d1c65c9
2026-11-06 15:18:20,307 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/235acd06-65b4-4873-aea1-80916bb4dade
2026-11-06 15:18:20,316 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/235acd06-65b4-4873-aea1-80916bb4dade
2026-11-06 15:18:20,324 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d17bc76f-5f04-40be-a5a1-0ccb726a3f74
2026-11-06 15:18:20,340 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49225484:ctest-vn-05680595', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49225484', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '848879543996991098', 'uuid-lslong': '12861551426636899785'}, 'enable': 'true', 'created': '2026-11-06T15:18:17', 'last-modified': '2026-11-06T15:18:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.054167'}
2026-11-06 15:18:20,349 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-06 15:18:20,349 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05680595 passed
2026-11-06 15:18:20,349 - DEBUG - ====Verifying policy data for ctest-vn-05680595 in API_Server ======
2026-11-06 15:18:20,349 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-11-06 15:18:20,355 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ff4b00ed-fecb-4191-a666-24c963102159
2026-11-06 15:18:20,369 - DEBUG - Requesting: http://10.0.0.50:8082/project/6f00cbf8-abfd-4d4e-b956-a7de723a8022
2026-11-06 15:18:20,450 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0bc7d372-9d09-467a-b27d-68e10d1c65c9
2026-11-06 15:18:20,460 - DEBUG - ==>Verifying data for policy with id: 7b7a9569-f5c6-49a1-8240-ec95b712aa68, fqn: ['default-domain', 'ctest-TestBasicPolicy-49225484', 'ctest-policy-allow-all-58321231']
2026-11-06 15:18:20,460 - INFO - VN ctest-vn-05680595 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-06 15:18:20,460 - DEBUG - Verifying the vn in opserver
2026-11-06 15:18:20,461 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49225484:ctest-vn-05680595 virtual network link through opserver 10.0.0.50
2026-11-06 15:18:20,461 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-11-06 15:18:20,831 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-11-06 15:18:20,890 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49225484:ctest-vn-05680595', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49225484:ctest-vn-05680595?flat'}
2026-11-06 15:18:20,890 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49225484:ctest-vn-05680595 is found in opserver
2026-11-06 15:18:20,906 - DEBUG - Do not have enough data to verify VN in agent
2026-11-06 15:18:20,912 - DEBUG - VRF ids for VN ctest-vn-05680595: {}
2026-11-06 15:18:20,912 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-11-06 15:18:20,918 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ff4b00ed-fecb-4191-a666-24c963102159
2026-11-06 15:18:20,930 - DEBUG - Requesting: http://10.0.0.50:8082/project/6f00cbf8-abfd-4d4e-b956-a7de723a8022
2026-11-06 15:18:21,001 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/457af33f-e67d-466b-b543-f38773174cce
2026-11-06 15:18:21,017 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/457af33f-e67d-466b-b543-f38773174cce
2026-11-06 15:18:21,027 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7fc9ea37-b06e-40b4-a077-39da6a31c932
2026-11-06 15:18:21,036 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7fc9ea37-b06e-40b4-a077-39da6a31c932
2026-11-06 15:18:21,043 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1908c8cb-b2af-47e4-8a2e-f2e7a176772a
2026-11-06 15:18:21,051 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-06 15:18:21,051 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/457af33f-e67d-466b-b543-f38773174cce
2026-11-06 15:18:21,061 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7fc9ea37-b06e-40b4-a077-39da6a31c932
2026-11-06 15:18:21,082 - INFO - Verified VN network id 13 for VN 457af33f-e67d-466b-b543-f38773174cce
2026-11-06 15:18:21,082 - INFO - Verifications in API Server for VN ctest-vn-38529439 passed
2026-11-06 15:18:21,082 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/457af33f-e67d-466b-b543-f38773174cce
2026-11-06 15:18:21,097 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7fc9ea37-b06e-40b4-a077-39da6a31c932
2026-11-06 15:18:21,108 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7fc9ea37-b06e-40b4-a077-39da6a31c932
2026-11-06 15:18:21,117 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1908c8cb-b2af-47e4-8a2e-f2e7a176772a
2026-11-06 15:18:21,132 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49225484:ctest-vn-38529439', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49225484', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5006581391551186539', 'uuid-lslong': '13061551107381611726'}, 'enable': 'true', 'created': '2026-11-06T15:18:18', 'last-modified': '2026-11-06T15:18:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.610544'}
2026-11-06 15:18:21,141 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-06 15:18:21,141 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38529439 passed
2026-11-06 15:18:21,142 - DEBUG - ====Verifying policy data for ctest-vn-38529439 in API_Server ======
2026-11-06 15:18:21,142 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-11-06 15:18:21,150 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ff4b00ed-fecb-4191-a666-24c963102159
2026-11-06 15:18:21,166 - DEBUG - Requesting: http://10.0.0.50:8082/project/6f00cbf8-abfd-4d4e-b956-a7de723a8022
2026-11-06 15:18:21,250 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/457af33f-e67d-466b-b543-f38773174cce
2026-11-06 15:18:21,261 - DEBUG - ==>Verifying data for policy with id: 7b7a9569-f5c6-49a1-8240-ec95b712aa68, fqn: ['default-domain', 'ctest-TestBasicPolicy-49225484', 'ctest-policy-allow-all-58321231']
2026-11-06 15:18:21,261 - INFO - VN ctest-vn-38529439 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-06 15:18:21,261 - DEBUG - Verifying the vn in opserver
2026-11-06 15:18:21,261 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49225484:ctest-vn-38529439 virtual network link through opserver 10.0.0.50
2026-11-06 15:18:21,261 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-11-06 15:18:21,276 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49225484:ctest-vn-38529439', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49225484:ctest-vn-38529439?flat'}
2026-11-06 15:18:21,276 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49225484:ctest-vn-38529439 is found in opserver
2026-11-06 15:18:21,290 - DEBUG - Do not have enough data to verify VN in agent
2026-11-06 15:18:21,297 - DEBUG - VRF ids for VN ctest-vn-38529439: {}
2026-11-06 15:18:21,361 - DEBUG - Services list from nova: [