2026-04-28 12:38:52,279 - INFO - Domain Default found not creating
2026-04-28 12:38:52,478 - INFO - Project ctest-TestBasicPolicy-75551705 not found, creating it
2026-04-28 12:38:53,000 - INFO - Created Project:ctest-TestBasicPolicy-75551705, ID : a8d34982-2087-4922-a611-695d2b7bb992
2026-04-28 12:38:54,595 - INFO - ================================================================================
2026-04-28 12:38:54,595 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-28 12:38:54,595 - 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 12:38:54,853 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with
2026-04-28 12:38:54,853 - INFO - Initial checks done. Running the testcase now
2026-04-28 12:38:54,853 - INFO -
2026-04-28 12:38:55,440 - DEBUG - Response for create_network : {'network': {'id': '8b1d2e49-01a5-445c-a142-45e8fe28b34b', 'name': 'ctest-vn-39978338', 'tenant_id': 'a8d3498220874922a611695d2b7bb992', 'project_id': 'a8d3498220874922a611695d2b7bb992', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75551705', 'ctest-vn-39978338'], 'port_security_enabled': True, 'description': ''}}
2026-04-28 12:38:55,640 - DEBUG - Response for create_subnet : {'subnet': {'id': '4aaad3b0-08dc-479d-b792-d3fef13dad1a', 'name': '', 'tenant_id': 'a8d3498220874922a611695d2b7bb992', 'network_id': '8b1d2e49-01a5-445c-a142-45e8fe28b34b', 'ip_version': 4, 'cidr': '59.222.108.128/26', 'allocation_pools': [{'start': '59.222.108.130', 'end': '59.222.108.190'}], 'gateway_ip': '59.222.108.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.222.108.130', 'tags': [], 'project_id': 'a8d3498220874922a611695d2b7bb992'}}
2026-04-28 12:38:55,659 - INFO - Created VN ctest-vn-39978338
2026-04-28 12:38:55,711 - DEBUG - VN ctest-vn-39978338 UUID is 8b1d2e49-01a5-445c-a142-45e8fe28b34b
2026-04-28 12:38:56,006 - DEBUG - Response for create_network : {'network': {'id': '6952d7a3-ba6d-43e1-8db3-10e6ee1e73da', 'name': 'ctest-vn-92495769', 'tenant_id': 'a8d3498220874922a611695d2b7bb992', 'project_id': 'a8d3498220874922a611695d2b7bb992', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75551705', 'ctest-vn-92495769'], 'port_security_enabled': True, 'description': ''}}
2026-04-28 12:38:56,189 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b56898aa-859a-4aab-a785-b85cd6ebb93b', 'name': '', 'tenant_id': 'a8d3498220874922a611695d2b7bb992', 'network_id': '6952d7a3-ba6d-43e1-8db3-10e6ee1e73da', 'ip_version': 4, 'cidr': '185.59.45.0/26', 'allocation_pools': [{'start': '185.59.45.2', 'end': '185.59.45.62'}], 'gateway_ip': '185.59.45.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.59.45.2', 'tags': [], 'project_id': 'a8d3498220874922a611695d2b7bb992'}}
2026-04-28 12:38:56,210 - INFO - Created VN ctest-vn-92495769
2026-04-28 12:38:56,263 - DEBUG - VN ctest-vn-92495769 UUID is 6952d7a3-ba6d-43e1-8db3-10e6ee1e73da
2026-04-28 12:38:56,382 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75551705:ctest-vn-39978338, 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-75551705:ctest-vn-92495769, 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 12:38:56,683 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8b1d2e49-01a5-445c-a142-45e8fe28b34b', 'name': 'ctest-vn-39978338', 'tenant_id': 'a8d3498220874922a611695d2b7bb992', 'project_id': 'a8d3498220874922a611695d2b7bb992', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4aaad3b0-08dc-479d-b792-d3fef13dad1a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75551705', 'ctest-vn-39978338'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75551705', 'ctest-policy-allow-all-97375583']], 'subnet_ipam': [{'subnet_cidr': '59.222.108.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-28 12:38:56,929 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6952d7a3-ba6d-43e1-8db3-10e6ee1e73da', 'name': 'ctest-vn-92495769', 'tenant_id': 'a8d3498220874922a611695d2b7bb992', 'project_id': 'a8d3498220874922a611695d2b7bb992', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b56898aa-859a-4aab-a785-b85cd6ebb93b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75551705', 'ctest-vn-92495769'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75551705', 'ctest-policy-allow-all-97375583']], 'subnet_ipam': [{'subnet_cidr': '185.59.45.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-28 12:38:57,091 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-04-28 12:38:57,394 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-04-28 12:38:57,430 - DEBUG - Requesting: http://10.0.0.130:8082/domain/a5b38a94-9228-4ad4-b5e2-711d788871c0
2026-04-28 12:38:57,445 - DEBUG - Requesting: http://10.0.0.130:8082/project/a8d34982-2087-4922-a611-695d2b7bb992
2026-04-28 12:38:57,517 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/8b1d2e49-01a5-445c-a142-45e8fe28b34b
2026-04-28 12:38:57,530 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/8b1d2e49-01a5-445c-a142-45e8fe28b34b
2026-04-28 12:38:57,542 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d2296b5b-f38c-4e04-be16-e8a3a4e9f926
2026-04-28 12:38:57,550 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d2296b5b-f38c-4e04-be16-e8a3a4e9f926
2026-04-28 12:38:57,560 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/f97128af-3f5a-40e3-bc5f-1b334dda58ed
2026-04-28 12:38:57,569 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-28 12:38:57,569 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/8b1d2e49-01a5-445c-a142-45e8fe28b34b
2026-04-28 12:38:57,580 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d2296b5b-f38c-4e04-be16-e8a3a4e9f926
2026-04-28 12:38:57,598 - INFO - Verified VN network id 12 for VN 8b1d2e49-01a5-445c-a142-45e8fe28b34b
2026-04-28 12:38:57,598 - INFO - Verifications in API Server for VN ctest-vn-39978338 passed
2026-04-28 12:38:57,599 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/8b1d2e49-01a5-445c-a142-45e8fe28b34b
2026-04-28 12:38:57,611 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d2296b5b-f38c-4e04-be16-e8a3a4e9f926
2026-04-28 12:38:57,619 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d2296b5b-f38c-4e04-be16-e8a3a4e9f926
2026-04-28 12:38:57,627 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/f97128af-3f5a-40e3-bc5f-1b334dda58ed
2026-04-28 12:38:57,642 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75551705:ctest-vn-39978338', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75551705', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10024219236691690588', 'uuid-lslong': '11619926855568110411'}, 'enable': 'true', 'created': '2026-04-28T12:38:55', 'last-modified': '2026-04-28T12:38:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982149'}
2026-04-28 12:38:57,648 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-28 12:38:57,648 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39978338 passed
2026-04-28 12:38:57,649 - DEBUG - ====Verifying policy data for ctest-vn-39978338 in API_Server ======
2026-04-28 12:38:57,649 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-04-28 12:38:57,655 - DEBUG - Requesting: http://10.0.0.130:8082/domain/a5b38a94-9228-4ad4-b5e2-711d788871c0
2026-04-28 12:38:57,667 - DEBUG - Requesting: http://10.0.0.130:8082/project/a8d34982-2087-4922-a611-695d2b7bb992
2026-04-28 12:38:57,742 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/8b1d2e49-01a5-445c-a142-45e8fe28b34b
2026-04-28 12:38:57,752 - DEBUG - ==>Verifying data for policy with id: c82d723e-59a9-401a-98d1-3417ca599a65, fqn: ['default-domain', 'ctest-TestBasicPolicy-75551705', 'ctest-policy-allow-all-97375583']
2026-04-28 12:38:57,752 - INFO - VN ctest-vn-39978338 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-28 12:38:57,752 - DEBUG - Verifying the vn in opserver
2026-04-28 12:38:57,752 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75551705:ctest-vn-39978338 virtual network link through opserver 10.0.0.130
2026-04-28 12:38:57,752 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-04-28 12:38:58,058 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-04-28 12:38:58,125 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75551705:ctest-vn-39978338', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75551705:ctest-vn-39978338?flat'}
2026-04-28 12:38:58,125 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75551705:ctest-vn-39978338 is found in opserver
2026-04-28 12:38:58,135 - DEBUG - Do not have enough data to verify VN in agent
2026-04-28 12:38:58,140 - DEBUG - VRF ids for VN ctest-vn-39978338: {}
2026-04-28 12:38:58,140 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-04-28 12:38:58,146 - DEBUG - Requesting: http://10.0.0.130:8082/domain/a5b38a94-9228-4ad4-b5e2-711d788871c0
2026-04-28 12:38:58,161 - DEBUG - Requesting: http://10.0.0.130:8082/project/a8d34982-2087-4922-a611-695d2b7bb992
2026-04-28 12:38:58,250 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6952d7a3-ba6d-43e1-8db3-10e6ee1e73da
2026-04-28 12:38:58,268 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6952d7a3-ba6d-43e1-8db3-10e6ee1e73da
2026-04-28 12:38:58,277 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/002d286e-b6d0-49dd-8025-b1d884b02e77
2026-04-28 12:38:58,284 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/002d286e-b6d0-49dd-8025-b1d884b02e77
2026-04-28 12:38:58,294 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/17fa089f-de6e-4043-ad91-df2b8262f156
2026-04-28 12:38:58,302 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-28 12:38:58,302 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6952d7a3-ba6d-43e1-8db3-10e6ee1e73da
2026-04-28 12:38:58,312 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/002d286e-b6d0-49dd-8025-b1d884b02e77
2026-04-28 12:38:58,326 - INFO - Verified VN network id 13 for VN 6952d7a3-ba6d-43e1-8db3-10e6ee1e73da
2026-04-28 12:38:58,327 - INFO - Verifications in API Server for VN ctest-vn-92495769 passed
2026-04-28 12:38:58,327 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6952d7a3-ba6d-43e1-8db3-10e6ee1e73da
2026-04-28 12:38:58,336 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/002d286e-b6d0-49dd-8025-b1d884b02e77
2026-04-28 12:38:58,344 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/002d286e-b6d0-49dd-8025-b1d884b02e77
2026-04-28 12:38:58,351 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/17fa089f-de6e-4043-ad91-df2b8262f156
2026-04-28 12:38:58,363 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75551705:ctest-vn-92495769', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75551705', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7589365420280071137', 'uuid-lslong': '10210523364202542042'}, 'enable': 'true', 'created': '2026-04-28T12:38:55', 'last-modified': '2026-04-28T12:38:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.466669'}
2026-04-28 12:38:58,369 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-28 12:38:58,369 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92495769 passed
2026-04-28 12:38:58,369 - DEBUG - ====Verifying policy data for ctest-vn-92495769 in API_Server ======
2026-04-28 12:38:58,369 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-04-28 12:38:58,375 - DEBUG - Requesting: http://10.0.0.130:8082/domain/a5b38a94-9228-4ad4-b5e2-711d788871c0
2026-04-28 12:38:58,386 - DEBUG - Requesting: http://10.0.0.130:8082/project/a8d34982-2087-4922-a611-695d2b7bb992
2026-04-28 12:38:58,462 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6952d7a3-ba6d-43e1-8db3-10e6ee1e73da
2026-04-28 12:38:58,472 - DEBUG - ==>Verifying data for policy with id: c82d723e-59a9-401a-98d1-3417ca599a65, fqn: ['default-domain', 'ctest-TestBasicPolicy-75551705', 'ctest-policy-allow-all-97375583']
2026-04-28 12:38:58,472 - INFO - VN ctest-vn-92495769 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-28 12:38:58,472 - DEBUG - Verifying the vn in opserver
2026-04-28 12:38:58,472 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75551705:ctest-vn-92495769 virtual network link through opserver 10.0.0.130
2026-04-28 12:38:58,472 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-04-28 12:38:58,482 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75551705:ctest-vn-92495769', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75551705:ctest-vn-92495769?flat'}
2026-04-28 12:38:58,482 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75551705:ctest-vn-92495769 is found in opserver
2026-04-28 12:38:58,492 - DEBUG - Do not have enough data to verify VN in agent
2026-04-28 12:38:58,498 - DEBUG - VRF ids for VN ctest-vn-92495769: {}
2026-04-28 12:38:58,563 - DEBUG - Services list from nova: [