2026-03-16 14:51:14,167 - INFO - Domain Default found not creating
2026-03-16 14:51:14,377 - INFO - Project ctest-TestBasicPolicy-53518367 not found, creating it
2026-03-16 14:51:14,856 - INFO - Created Project:ctest-TestBasicPolicy-53518367, ID : fc88d25e-55d5-4afc-b4a0-bce9efb2a96f
2026-03-16 14:51:16,440 - INFO - ================================================================================
2026-03-16 14:51:16,440 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-16 14:51:16,440 - 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-16 14:51:16,701 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2026-03-16 14:51:16,701 - INFO - Initial checks done. Running the testcase now
2026-03-16 14:51:16,701 - INFO -
2026-03-16 14:51:17,370 - DEBUG - Response for create_network : {'network': {'id': '4735f493-f19a-4f5b-a85e-60c22382f642', 'name': 'ctest-vn-70977263', 'tenant_id': 'fc88d25e55d54afcb4a0bce9efb2a96f', 'project_id': 'fc88d25e55d54afcb4a0bce9efb2a96f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53518367', 'ctest-vn-70977263'], 'port_security_enabled': True, 'description': ''}}
2026-03-16 14:51:17,562 - DEBUG - Response for create_subnet : {'subnet': {'id': '25ab65e0-a51c-4dc1-93a9-c02b770412a4', 'name': '', 'tenant_id': 'fc88d25e55d54afcb4a0bce9efb2a96f', 'network_id': '4735f493-f19a-4f5b-a85e-60c22382f642', 'ip_version': 4, 'cidr': '178.2.196.128/26', 'allocation_pools': [{'start': '178.2.196.130', 'end': '178.2.196.190'}], 'gateway_ip': '178.2.196.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.2.196.130', 'tags': [], 'project_id': 'fc88d25e55d54afcb4a0bce9efb2a96f'}}
2026-03-16 14:51:17,585 - INFO - Created VN ctest-vn-70977263
2026-03-16 14:51:17,639 - DEBUG - VN ctest-vn-70977263 UUID is 4735f493-f19a-4f5b-a85e-60c22382f642
2026-03-16 14:51:17,964 - DEBUG - Response for create_network : {'network': {'id': '9f7606ed-1473-4eed-b6b2-04cc67c29f60', 'name': 'ctest-vn-00306456', 'tenant_id': 'fc88d25e55d54afcb4a0bce9efb2a96f', 'project_id': 'fc88d25e55d54afcb4a0bce9efb2a96f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53518367', 'ctest-vn-00306456'], 'port_security_enabled': True, 'description': ''}}
2026-03-16 14:51:18,189 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a037288e-d658-42b1-9000-f7cd1cffcc00', 'name': '', 'tenant_id': 'fc88d25e55d54afcb4a0bce9efb2a96f', 'network_id': '9f7606ed-1473-4eed-b6b2-04cc67c29f60', 'ip_version': 4, 'cidr': '153.110.240.64/26', 'allocation_pools': [{'start': '153.110.240.66', 'end': '153.110.240.126'}], 'gateway_ip': '153.110.240.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.110.240.66', 'tags': [], 'project_id': 'fc88d25e55d54afcb4a0bce9efb2a96f'}}
2026-03-16 14:51:18,208 - INFO - Created VN ctest-vn-00306456
2026-03-16 14:51:18,262 - DEBUG - VN ctest-vn-00306456 UUID is 9f7606ed-1473-4eed-b6b2-04cc67c29f60
2026-03-16 14:51:18,384 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53518367:ctest-vn-70977263, 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-53518367:ctest-vn-00306456, 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-16 14:51:18,684 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4735f493-f19a-4f5b-a85e-60c22382f642', 'name': 'ctest-vn-70977263', 'tenant_id': 'fc88d25e55d54afcb4a0bce9efb2a96f', 'project_id': 'fc88d25e55d54afcb4a0bce9efb2a96f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['25ab65e0-a51c-4dc1-93a9-c02b770412a4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53518367', 'ctest-vn-70977263'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53518367', 'ctest-policy-allow-all-44256631']], 'subnet_ipam': [{'subnet_cidr': '178.2.196.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-16 14:51:18,928 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9f7606ed-1473-4eed-b6b2-04cc67c29f60', 'name': 'ctest-vn-00306456', 'tenant_id': 'fc88d25e55d54afcb4a0bce9efb2a96f', 'project_id': 'fc88d25e55d54afcb4a0bce9efb2a96f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a037288e-d658-42b1-9000-f7cd1cffcc00'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53518367', 'ctest-vn-00306456'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53518367', 'ctest-policy-allow-all-44256631']], 'subnet_ipam': [{'subnet_cidr': '153.110.240.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-16 14:51:19,099 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-16 14:51:19,404 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-16 14:51:19,446 - DEBUG - Requesting: http://10.0.0.50:8082/domain/01d2d517-3db6-4280-be25-e30fbf87d121
2026-03-16 14:51:19,458 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc88d25e-55d5-4afc-b4a0-bce9efb2a96f
2026-03-16 14:51:19,535 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4735f493-f19a-4f5b-a85e-60c22382f642
2026-03-16 14:51:19,548 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4735f493-f19a-4f5b-a85e-60c22382f642
2026-03-16 14:51:19,560 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05050973-415d-40b6-93e4-f008a94beb2d
2026-03-16 14:51:19,569 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05050973-415d-40b6-93e4-f008a94beb2d
2026-03-16 14:51:19,578 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ca4626ca-c6df-4eb4-9408-caed37e8788c
2026-03-16 14:51:19,585 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-16 14:51:19,585 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4735f493-f19a-4f5b-a85e-60c22382f642
2026-03-16 14:51:19,595 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05050973-415d-40b6-93e4-f008a94beb2d
2026-03-16 14:51:19,610 - INFO - Verified VN network id 11 for VN 4735f493-f19a-4f5b-a85e-60c22382f642
2026-03-16 14:51:19,611 - INFO - Verifications in API Server for VN ctest-vn-70977263 passed
2026-03-16 14:51:19,611 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4735f493-f19a-4f5b-a85e-60c22382f642
2026-03-16 14:51:19,623 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05050973-415d-40b6-93e4-f008a94beb2d
2026-03-16 14:51:19,632 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05050973-415d-40b6-93e4-f008a94beb2d
2026-03-16 14:51:19,640 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ca4626ca-c6df-4eb4-9408-caed37e8788c
2026-03-16 14:51:19,653 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53518367:ctest-vn-70977263', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53518367', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5131276266709339995', 'uuid-lslong': '12132240833118402114'}, 'enable': 'true', 'created': '2026-03-16T14:51:17', 'last-modified': '2026-03-16T14:51:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.986682'}
2026-03-16 14:51:19,660 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-16 14:51:19,660 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70977263 passed
2026-03-16 14:51:19,660 - DEBUG - ====Verifying policy data for ctest-vn-70977263 in API_Server ======
2026-03-16 14:51:19,660 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-16 14:51:19,666 - DEBUG - Requesting: http://10.0.0.50:8082/domain/01d2d517-3db6-4280-be25-e30fbf87d121
2026-03-16 14:51:19,679 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc88d25e-55d5-4afc-b4a0-bce9efb2a96f
2026-03-16 14:51:19,750 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4735f493-f19a-4f5b-a85e-60c22382f642
2026-03-16 14:51:19,761 - DEBUG - ==>Verifying data for policy with id: 094c8f6c-8cb8-439c-bf88-14f017468200, fqn: ['default-domain', 'ctest-TestBasicPolicy-53518367', 'ctest-policy-allow-all-44256631']
2026-03-16 14:51:19,761 - INFO - VN ctest-vn-70977263 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-16 14:51:19,761 - DEBUG - Verifying the vn in opserver
2026-03-16 14:51:19,761 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53518367:ctest-vn-70977263 virtual network link through opserver 10.0.0.50
2026-03-16 14:51:19,761 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-16 14:51:20,060 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-16 14:51:20,131 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53518367:ctest-vn-70977263', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53518367:ctest-vn-70977263?flat'}
2026-03-16 14:51:20,131 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53518367:ctest-vn-70977263 is found in opserver
2026-03-16 14:51:20,142 - DEBUG - Do not have enough data to verify VN in agent
2026-03-16 14:51:20,147 - DEBUG - VRF ids for VN ctest-vn-70977263: {}
2026-03-16 14:51:20,147 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-16 14:51:20,154 - DEBUG - Requesting: http://10.0.0.50:8082/domain/01d2d517-3db6-4280-be25-e30fbf87d121
2026-03-16 14:51:20,166 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc88d25e-55d5-4afc-b4a0-bce9efb2a96f
2026-03-16 14:51:20,238 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9f7606ed-1473-4eed-b6b2-04cc67c29f60
2026-03-16 14:51:20,250 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9f7606ed-1473-4eed-b6b2-04cc67c29f60
2026-03-16 14:51:20,260 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8daa7851-7b01-42b2-9902-74b798c5382d
2026-03-16 14:51:20,269 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8daa7851-7b01-42b2-9902-74b798c5382d
2026-03-16 14:51:20,278 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8a21508a-2572-4672-838d-dfd2498aa677
2026-03-16 14:51:20,286 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-16 14:51:20,286 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9f7606ed-1473-4eed-b6b2-04cc67c29f60
2026-03-16 14:51:20,295 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8daa7851-7b01-42b2-9902-74b798c5382d
2026-03-16 14:51:20,311 - INFO - Verified VN network id 12 for VN 9f7606ed-1473-4eed-b6b2-04cc67c29f60
2026-03-16 14:51:20,311 - INFO - Verifications in API Server for VN ctest-vn-00306456 passed
2026-03-16 14:51:20,311 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9f7606ed-1473-4eed-b6b2-04cc67c29f60
2026-03-16 14:51:20,321 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8daa7851-7b01-42b2-9902-74b798c5382d
2026-03-16 14:51:20,329 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8daa7851-7b01-42b2-9902-74b798c5382d
2026-03-16 14:51:20,338 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8a21508a-2572-4672-838d-dfd2498aa677
2026-03-16 14:51:20,351 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53518367:ctest-vn-00306456', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53518367', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11490379114602516205', 'uuid-lslong': '13164589936718028640'}, 'enable': 'true', 'created': '2026-03-16T14:51:17', 'last-modified': '2026-03-16T14:51:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.445234'}
2026-03-16 14:51:20,357 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-16 14:51:20,357 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00306456 passed
2026-03-16 14:51:20,358 - DEBUG - ====Verifying policy data for ctest-vn-00306456 in API_Server ======
2026-03-16 14:51:20,358 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-16 14:51:20,365 - DEBUG - Requesting: http://10.0.0.50:8082/domain/01d2d517-3db6-4280-be25-e30fbf87d121
2026-03-16 14:51:20,377 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc88d25e-55d5-4afc-b4a0-bce9efb2a96f
2026-03-16 14:51:20,461 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9f7606ed-1473-4eed-b6b2-04cc67c29f60
2026-03-16 14:51:20,472 - DEBUG - ==>Verifying data for policy with id: 094c8f6c-8cb8-439c-bf88-14f017468200, fqn: ['default-domain', 'ctest-TestBasicPolicy-53518367', 'ctest-policy-allow-all-44256631']
2026-03-16 14:51:20,472 - INFO - VN ctest-vn-00306456 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-16 14:51:20,472 - DEBUG - Verifying the vn in opserver
2026-03-16 14:51:20,472 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53518367:ctest-vn-00306456 virtual network link through opserver 10.0.0.50
2026-03-16 14:51:20,472 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-16 14:51:20,483 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53518367:ctest-vn-00306456', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53518367:ctest-vn-00306456?flat'}
2026-03-16 14:51:20,483 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53518367:ctest-vn-00306456 is found in opserver
2026-03-16 14:51:20,494 - DEBUG - Do not have enough data to verify VN in agent
2026-03-16 14:51:20,500 - DEBUG - VRF ids for VN ctest-vn-00306456: {}
2026-03-16 14:51:20,571 - DEBUG - Services list from nova: [