2026-04-28 13:33:08,017 - INFO - Domain Default found not creating
2026-04-28 13:33:08,214 - INFO - Project ctest-TestBasicPolicy-15075459 not found, creating it
2026-04-28 13:33:08,718 - INFO - Created Project:ctest-TestBasicPolicy-15075459, ID : ee76f8cb-15fe-4c50-a4d1-4a82d574cdbb
2026-04-28 13:33:10,461 - INFO - ================================================================================
2026-04-28 13:33:10,461 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-28 13:33:10,462 - 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 13:33:10,736 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with
2026-04-28 13:33:10,736 - INFO - Initial checks done. Running the testcase now
2026-04-28 13:33:10,736 - INFO -
2026-04-28 13:33:11,374 - DEBUG - Response for create_network : {'network': {'id': '08e69cc6-33fe-4d5d-a49c-88b8402a5f17', 'name': 'ctest-vn-17793848', 'tenant_id': 'ee76f8cb15fe4c50a4d14a82d574cdbb', 'project_id': 'ee76f8cb15fe4c50a4d14a82d574cdbb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15075459', 'ctest-vn-17793848'], 'port_security_enabled': True, 'description': ''}}
2026-04-28 13:33:11,584 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9f17bfd-128c-4864-ae95-9c00ab227954', 'name': '', 'tenant_id': 'ee76f8cb15fe4c50a4d14a82d574cdbb', 'network_id': '08e69cc6-33fe-4d5d-a49c-88b8402a5f17', 'ip_version': 4, 'cidr': '66.192.5.192/26', 'allocation_pools': [{'start': '66.192.5.194', 'end': '66.192.5.254'}], 'gateway_ip': '66.192.5.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.192.5.194', 'tags': [], 'project_id': 'ee76f8cb15fe4c50a4d14a82d574cdbb'}}
2026-04-28 13:33:11,606 - INFO - Created VN ctest-vn-17793848
2026-04-28 13:33:11,659 - DEBUG - VN ctest-vn-17793848 UUID is 08e69cc6-33fe-4d5d-a49c-88b8402a5f17
2026-04-28 13:33:11,979 - DEBUG - Response for create_network : {'network': {'id': '5149a33c-8cc3-4b49-b315-ebb3f0bbd745', 'name': 'ctest-vn-95791549', 'tenant_id': 'ee76f8cb15fe4c50a4d14a82d574cdbb', 'project_id': 'ee76f8cb15fe4c50a4d14a82d574cdbb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15075459', 'ctest-vn-95791549'], 'port_security_enabled': True, 'description': ''}}
2026-04-28 13:33:12,190 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e7c8c1e-725f-49c9-a7ed-39c0656f127b', 'name': '', 'tenant_id': 'ee76f8cb15fe4c50a4d14a82d574cdbb', 'network_id': '5149a33c-8cc3-4b49-b315-ebb3f0bbd745', 'ip_version': 4, 'cidr': '203.6.159.64/26', 'allocation_pools': [{'start': '203.6.159.66', 'end': '203.6.159.126'}], 'gateway_ip': '203.6.159.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.6.159.66', 'tags': [], 'project_id': 'ee76f8cb15fe4c50a4d14a82d574cdbb'}}
2026-04-28 13:33:12,213 - INFO - Created VN ctest-vn-95791549
2026-04-28 13:33:12,267 - DEBUG - VN ctest-vn-95791549 UUID is 5149a33c-8cc3-4b49-b315-ebb3f0bbd745
2026-04-28 13:33:12,390 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15075459:ctest-vn-17793848, 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-15075459:ctest-vn-95791549, 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 13:33:12,712 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '08e69cc6-33fe-4d5d-a49c-88b8402a5f17', 'name': 'ctest-vn-17793848', 'tenant_id': 'ee76f8cb15fe4c50a4d14a82d574cdbb', 'project_id': 'ee76f8cb15fe4c50a4d14a82d574cdbb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c9f17bfd-128c-4864-ae95-9c00ab227954'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15075459', 'ctest-vn-17793848'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15075459', 'ctest-policy-allow-all-95480333']], 'subnet_ipam': [{'subnet_cidr': '66.192.5.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-28 13:33:12,958 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5149a33c-8cc3-4b49-b315-ebb3f0bbd745', 'name': 'ctest-vn-95791549', 'tenant_id': 'ee76f8cb15fe4c50a4d14a82d574cdbb', 'project_id': 'ee76f8cb15fe4c50a4d14a82d574cdbb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7e7c8c1e-725f-49c9-a7ed-39c0656f127b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15075459', 'ctest-vn-95791549'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15075459', 'ctest-policy-allow-all-95480333']], 'subnet_ipam': [{'subnet_cidr': '203.6.159.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-28 13:33:13,127 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-04-28 13:33:13,471 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-04-28 13:33:13,514 - DEBUG - Requesting: http://10.0.0.19:8082/domain/b99f2910-4147-4e84-9f15-b606a7af05dc
2026-04-28 13:33:13,527 - DEBUG - Requesting: http://10.0.0.19:8082/project/ee76f8cb-15fe-4c50-a4d1-4a82d574cdbb
2026-04-28 13:33:13,606 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/08e69cc6-33fe-4d5d-a49c-88b8402a5f17
2026-04-28 13:33:13,621 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/08e69cc6-33fe-4d5d-a49c-88b8402a5f17
2026-04-28 13:33:13,633 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ef3d2aae-5e07-4032-b85a-dda06539a6cf
2026-04-28 13:33:13,641 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ef3d2aae-5e07-4032-b85a-dda06539a6cf
2026-04-28 13:33:13,649 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/0f56c792-8bdf-42cb-bbf9-5df5b45ccc5a
2026-04-28 13:33:13,657 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-28 13:33:13,657 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/08e69cc6-33fe-4d5d-a49c-88b8402a5f17
2026-04-28 13:33:13,668 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ef3d2aae-5e07-4032-b85a-dda06539a6cf
2026-04-28 13:33:13,686 - INFO - Verified VN network id 11 for VN 08e69cc6-33fe-4d5d-a49c-88b8402a5f17
2026-04-28 13:33:13,687 - INFO - Verifications in API Server for VN ctest-vn-17793848 passed
2026-04-28 13:33:13,687 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/08e69cc6-33fe-4d5d-a49c-88b8402a5f17
2026-04-28 13:33:13,698 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ef3d2aae-5e07-4032-b85a-dda06539a6cf
2026-04-28 13:33:13,707 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ef3d2aae-5e07-4032-b85a-dda06539a6cf
2026-04-28 13:33:13,715 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/0f56c792-8bdf-42cb-bbf9-5df5b45ccc5a
2026-04-28 13:33:13,727 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15075459:ctest-vn-17793848', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15075459', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '641372372036635997', 'uuid-lslong': '11861505843518922519'}, 'enable': 'true', 'created': '2026-04-28T13:33:11', 'last-modified': '2026-04-28T13:33:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.045474'}
2026-04-28 13:33:13,734 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-28 13:33:13,734 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17793848 passed
2026-04-28 13:33:13,734 - DEBUG - ====Verifying policy data for ctest-vn-17793848 in API_Server ======
2026-04-28 13:33:13,734 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-04-28 13:33:13,740 - DEBUG - Requesting: http://10.0.0.19:8082/domain/b99f2910-4147-4e84-9f15-b606a7af05dc
2026-04-28 13:33:13,752 - DEBUG - Requesting: http://10.0.0.19:8082/project/ee76f8cb-15fe-4c50-a4d1-4a82d574cdbb
2026-04-28 13:33:13,835 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/08e69cc6-33fe-4d5d-a49c-88b8402a5f17
2026-04-28 13:33:13,846 - DEBUG - ==>Verifying data for policy with id: fee24e9a-4e11-4c9c-835e-c44a4fae8723, fqn: ['default-domain', 'ctest-TestBasicPolicy-15075459', 'ctest-policy-allow-all-95480333']
2026-04-28 13:33:13,846 - INFO - VN ctest-vn-17793848 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-28 13:33:13,847 - DEBUG - Verifying the vn in opserver
2026-04-28 13:33:13,847 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15075459:ctest-vn-17793848 virtual network link through opserver 10.0.0.19
2026-04-28 13:33:13,847 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-04-28 13:33:14,201 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-04-28 13:33:14,282 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15075459:ctest-vn-17793848', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15075459:ctest-vn-17793848?flat'}
2026-04-28 13:33:14,282 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15075459:ctest-vn-17793848 is found in opserver
2026-04-28 13:33:14,294 - DEBUG - Do not have enough data to verify VN in agent
2026-04-28 13:33:14,299 - DEBUG - VRF ids for VN ctest-vn-17793848: {}
2026-04-28 13:33:14,299 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-04-28 13:33:14,306 - DEBUG - Requesting: http://10.0.0.19:8082/domain/b99f2910-4147-4e84-9f15-b606a7af05dc
2026-04-28 13:33:14,319 - DEBUG - Requesting: http://10.0.0.19:8082/project/ee76f8cb-15fe-4c50-a4d1-4a82d574cdbb
2026-04-28 13:33:14,396 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5149a33c-8cc3-4b49-b315-ebb3f0bbd745
2026-04-28 13:33:14,411 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5149a33c-8cc3-4b49-b315-ebb3f0bbd745
2026-04-28 13:33:14,422 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/9989ebc1-b698-4243-9388-9298c2d95041
2026-04-28 13:33:14,430 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/9989ebc1-b698-4243-9388-9298c2d95041
2026-04-28 13:33:14,439 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/cce726e1-57af-46f8-bf70-a77d33d8e2bc
2026-04-28 13:33:14,446 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-28 13:33:14,446 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5149a33c-8cc3-4b49-b315-ebb3f0bbd745
2026-04-28 13:33:14,459 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/9989ebc1-b698-4243-9388-9298c2d95041
2026-04-28 13:33:14,478 - INFO - Verified VN network id 12 for VN 5149a33c-8cc3-4b49-b315-ebb3f0bbd745
2026-04-28 13:33:14,478 - INFO - Verifications in API Server for VN ctest-vn-95791549 passed
2026-04-28 13:33:14,478 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5149a33c-8cc3-4b49-b315-ebb3f0bbd745
2026-04-28 13:33:14,490 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/9989ebc1-b698-4243-9388-9298c2d95041
2026-04-28 13:33:14,499 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/9989ebc1-b698-4243-9388-9298c2d95041
2026-04-28 13:33:14,507 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/cce726e1-57af-46f8-bf70-a77d33d8e2bc
2026-04-28 13:33:14,522 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15075459:ctest-vn-95791549', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15075459', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5857392270827014985', 'uuid-lslong': '12904479465370539845'}, 'enable': 'true', 'created': '2026-04-28T13:33:11', 'last-modified': '2026-04-28T13:33:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.586949'}
2026-04-28 13:33:14,530 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-28 13:33:14,530 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95791549 passed
2026-04-28 13:33:14,530 - DEBUG - ====Verifying policy data for ctest-vn-95791549 in API_Server ======
2026-04-28 13:33:14,530 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-04-28 13:33:14,536 - DEBUG - Requesting: http://10.0.0.19:8082/domain/b99f2910-4147-4e84-9f15-b606a7af05dc
2026-04-28 13:33:14,549 - DEBUG - Requesting: http://10.0.0.19:8082/project/ee76f8cb-15fe-4c50-a4d1-4a82d574cdbb
2026-04-28 13:33:14,625 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5149a33c-8cc3-4b49-b315-ebb3f0bbd745
2026-04-28 13:33:14,638 - DEBUG - ==>Verifying data for policy with id: fee24e9a-4e11-4c9c-835e-c44a4fae8723, fqn: ['default-domain', 'ctest-TestBasicPolicy-15075459', 'ctest-policy-allow-all-95480333']
2026-04-28 13:33:14,639 - INFO - VN ctest-vn-95791549 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-28 13:33:14,639 - DEBUG - Verifying the vn in opserver
2026-04-28 13:33:14,639 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15075459:ctest-vn-95791549 virtual network link through opserver 10.0.0.19
2026-04-28 13:33:14,639 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-04-28 13:33:14,651 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15075459:ctest-vn-95791549', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15075459:ctest-vn-95791549?flat'}
2026-04-28 13:33:14,651 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15075459:ctest-vn-95791549 is found in opserver
2026-04-28 13:33:14,666 - DEBUG - Do not have enough data to verify VN in agent
2026-04-28 13:33:14,671 - DEBUG - VRF ids for VN ctest-vn-95791549: {}
2026-04-28 13:33:14,743 - DEBUG - Services list from nova: [