2026-02-19 14:28:31,459 - INFO - Domain Default found not creating
2026-02-19 14:28:31,676 - INFO - Project ctest-TestBasicPolicy-27714315 not found, creating it
2026-02-19 14:28:32,193 - INFO - Created Project:ctest-TestBasicPolicy-27714315, ID : d3ade829-1722-453f-aca5-727e762ef850
2026-02-19 14:28:34,180 - INFO - ================================================================================
2026-02-19 14:28:34,180 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-19 14:28:34,180 - 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-02-19 14:28:34,465 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-02-19 14:28:34,465 - INFO - Initial checks done. Running the testcase now
2026-02-19 14:28:34,465 - INFO -
2026-02-19 14:28:35,186 - DEBUG - Response for create_network : {'network': {'id': '738ba8b6-e94b-41e1-85da-a9ab0285f7df', 'name': 'ctest-vn-60486054', 'tenant_id': 'd3ade8291722453faca5727e762ef850', 'project_id': 'd3ade8291722453faca5727e762ef850', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27714315', 'ctest-vn-60486054'], 'port_security_enabled': True, 'description': ''}}
2026-02-19 14:28:35,422 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f9784207-d1fc-4ef6-bf24-2e97421538e3', 'name': '', 'tenant_id': 'd3ade8291722453faca5727e762ef850', 'network_id': '738ba8b6-e94b-41e1-85da-a9ab0285f7df', 'ip_version': 4, 'cidr': '204.135.212.128/26', 'allocation_pools': [{'start': '204.135.212.130', 'end': '204.135.212.190'}], 'gateway_ip': '204.135.212.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.135.212.130', 'tags': [], 'project_id': 'd3ade8291722453faca5727e762ef850'}}
2026-02-19 14:28:35,446 - INFO - Created VN ctest-vn-60486054
2026-02-19 14:28:35,500 - DEBUG - VN ctest-vn-60486054 UUID is 738ba8b6-e94b-41e1-85da-a9ab0285f7df
2026-02-19 14:28:35,890 - DEBUG - Response for create_network : {'network': {'id': '86e18e98-cc95-49a7-b1d1-748e16909860', 'name': 'ctest-vn-25254580', 'tenant_id': 'd3ade8291722453faca5727e762ef850', 'project_id': 'd3ade8291722453faca5727e762ef850', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27714315', 'ctest-vn-25254580'], 'port_security_enabled': True, 'description': ''}}
2026-02-19 14:28:36,073 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9ad2593-c376-4b2c-9569-0e0f01ff3846', 'name': '', 'tenant_id': 'd3ade8291722453faca5727e762ef850', 'network_id': '86e18e98-cc95-49a7-b1d1-748e16909860', 'ip_version': 4, 'cidr': '19.14.171.128/26', 'allocation_pools': [{'start': '19.14.171.130', 'end': '19.14.171.190'}], 'gateway_ip': '19.14.171.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.14.171.130', 'tags': [], 'project_id': 'd3ade8291722453faca5727e762ef850'}}
2026-02-19 14:28:36,096 - INFO - Created VN ctest-vn-25254580
2026-02-19 14:28:36,151 - DEBUG - VN ctest-vn-25254580 UUID is 86e18e98-cc95-49a7-b1d1-748e16909860
2026-02-19 14:28:36,277 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27714315:ctest-vn-60486054, 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-27714315:ctest-vn-25254580, 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-02-19 14:28:36,610 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '738ba8b6-e94b-41e1-85da-a9ab0285f7df', 'name': 'ctest-vn-60486054', 'tenant_id': 'd3ade8291722453faca5727e762ef850', 'project_id': 'd3ade8291722453faca5727e762ef850', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f9784207-d1fc-4ef6-bf24-2e97421538e3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27714315', 'ctest-vn-60486054'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27714315', 'ctest-policy-allow-all-28881688']], 'subnet_ipam': [{'subnet_cidr': '204.135.212.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-19 14:28:36,954 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '86e18e98-cc95-49a7-b1d1-748e16909860', 'name': 'ctest-vn-25254580', 'tenant_id': 'd3ade8291722453faca5727e762ef850', 'project_id': 'd3ade8291722453faca5727e762ef850', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c9ad2593-c376-4b2c-9569-0e0f01ff3846'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27714315', 'ctest-vn-25254580'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27714315', 'ctest-policy-allow-all-28881688']], 'subnet_ipam': [{'subnet_cidr': '19.14.171.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-19 14:28:37,107 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-19 14:28:37,419 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-19 14:28:37,451 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7ce0b2ed-bae1-43be-b959-f3f3b1e018d4
2026-02-19 14:28:37,465 - DEBUG - Requesting: http://10.0.0.38:8082/project/d3ade829-1722-453f-aca5-727e762ef850
2026-02-19 14:28:37,551 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/738ba8b6-e94b-41e1-85da-a9ab0285f7df
2026-02-19 14:28:37,574 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/738ba8b6-e94b-41e1-85da-a9ab0285f7df
2026-02-19 14:28:37,589 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a32cc2f8-e0d9-449f-b8e5-6086bcf88170
2026-02-19 14:28:37,601 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a32cc2f8-e0d9-449f-b8e5-6086bcf88170
2026-02-19 14:28:37,614 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/061488cf-44d8-44c6-a9fd-ef10f7773468
2026-02-19 14:28:37,627 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-19 14:28:37,627 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/738ba8b6-e94b-41e1-85da-a9ab0285f7df
2026-02-19 14:28:37,644 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a32cc2f8-e0d9-449f-b8e5-6086bcf88170
2026-02-19 14:28:37,668 - INFO - Verified VN network id 11 for VN 738ba8b6-e94b-41e1-85da-a9ab0285f7df
2026-02-19 14:28:37,669 - INFO - Verifications in API Server for VN ctest-vn-60486054 passed
2026-02-19 14:28:37,669 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/738ba8b6-e94b-41e1-85da-a9ab0285f7df
2026-02-19 14:28:37,688 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a32cc2f8-e0d9-449f-b8e5-6086bcf88170
2026-02-19 14:28:37,699 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a32cc2f8-e0d9-449f-b8e5-6086bcf88170
2026-02-19 14:28:37,710 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/061488cf-44d8-44c6-a9fd-ef10f7773468
2026-02-19 14:28:37,733 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27714315:ctest-vn-60486054', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27714315', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8325933839676031457', 'uuid-lslong': '9645208103914174431'}, 'enable': 'true', 'created': '2026-02-19T14:28:35', 'last-modified': '2026-02-19T14:28:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.155735'}
2026-02-19 14:28:37,750 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-19 14:28:37,751 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60486054 passed
2026-02-19 14:28:37,751 - DEBUG - ====Verifying policy data for ctest-vn-60486054 in API_Server ======
2026-02-19 14:28:37,752 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-19 14:28:37,762 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7ce0b2ed-bae1-43be-b959-f3f3b1e018d4
2026-02-19 14:28:37,783 - DEBUG - Requesting: http://10.0.0.38:8082/project/d3ade829-1722-453f-aca5-727e762ef850
2026-02-19 14:28:37,880 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/738ba8b6-e94b-41e1-85da-a9ab0285f7df
2026-02-19 14:28:37,899 - DEBUG - ==>Verifying data for policy with id: ec4701b5-8bc5-493f-8282-91157ede1920, fqn: ['default-domain', 'ctest-TestBasicPolicy-27714315', 'ctest-policy-allow-all-28881688']
2026-02-19 14:28:37,900 - INFO - VN ctest-vn-60486054 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-19 14:28:37,900 - DEBUG - Verifying the vn in opserver
2026-02-19 14:28:37,900 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27714315:ctest-vn-60486054 virtual network link through opserver 10.0.0.38
2026-02-19 14:28:37,900 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-19 14:28:38,240 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-19 14:28:38,386 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27714315:ctest-vn-60486054', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27714315:ctest-vn-60486054?flat'}
2026-02-19 14:28:38,386 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27714315:ctest-vn-60486054 is found in opserver
2026-02-19 14:28:38,413 - DEBUG - Do not have enough data to verify VN in agent
2026-02-19 14:28:38,423 - DEBUG - VRF ids for VN ctest-vn-60486054: {}
2026-02-19 14:28:38,424 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-19 14:28:38,434 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7ce0b2ed-bae1-43be-b959-f3f3b1e018d4
2026-02-19 14:28:38,456 - DEBUG - Requesting: http://10.0.0.38:8082/project/d3ade829-1722-453f-aca5-727e762ef850
2026-02-19 14:28:38,564 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/86e18e98-cc95-49a7-b1d1-748e16909860
2026-02-19 14:28:38,590 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/86e18e98-cc95-49a7-b1d1-748e16909860
2026-02-19 14:28:38,609 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/212cdb22-7e12-417e-8e02-7a368b2f1363
2026-02-19 14:28:38,624 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/212cdb22-7e12-417e-8e02-7a368b2f1363
2026-02-19 14:28:38,638 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/25966324-b277-4f84-a605-32111377c3ec
2026-02-19 14:28:38,651 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-19 14:28:38,651 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/86e18e98-cc95-49a7-b1d1-748e16909860
2026-02-19 14:28:38,670 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/212cdb22-7e12-417e-8e02-7a368b2f1363
2026-02-19 14:28:38,701 - INFO - Verified VN network id 12 for VN 86e18e98-cc95-49a7-b1d1-748e16909860
2026-02-19 14:28:38,702 - INFO - Verifications in API Server for VN ctest-vn-25254580 passed
2026-02-19 14:28:38,702 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/86e18e98-cc95-49a7-b1d1-748e16909860
2026-02-19 14:28:38,723 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/212cdb22-7e12-417e-8e02-7a368b2f1363
2026-02-19 14:28:38,736 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/212cdb22-7e12-417e-8e02-7a368b2f1363
2026-02-19 14:28:38,748 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/25966324-b277-4f84-a605-32111377c3ec
2026-02-19 14:28:38,767 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27714315:ctest-vn-25254580', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27714315', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9719206257760749991', 'uuid-lslong': '12813150568458524768'}, 'enable': 'true', 'created': '2026-02-19T14:28:35', 'last-modified': '2026-02-19T14:28:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.919742'}
2026-02-19 14:28:38,775 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-19 14:28:38,776 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25254580 passed
2026-02-19 14:28:38,776 - DEBUG - ====Verifying policy data for ctest-vn-25254580 in API_Server ======
2026-02-19 14:28:38,776 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-19 14:28:38,785 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7ce0b2ed-bae1-43be-b959-f3f3b1e018d4
2026-02-19 14:28:38,802 - DEBUG - Requesting: http://10.0.0.38:8082/project/d3ade829-1722-453f-aca5-727e762ef850
2026-02-19 14:28:38,883 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/86e18e98-cc95-49a7-b1d1-748e16909860
2026-02-19 14:28:38,902 - DEBUG - ==>Verifying data for policy with id: ec4701b5-8bc5-493f-8282-91157ede1920, fqn: ['default-domain', 'ctest-TestBasicPolicy-27714315', 'ctest-policy-allow-all-28881688']
2026-02-19 14:28:38,902 - INFO - VN ctest-vn-25254580 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-19 14:28:38,902 - DEBUG - Verifying the vn in opserver
2026-02-19 14:28:38,902 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27714315:ctest-vn-25254580 virtual network link through opserver 10.0.0.38
2026-02-19 14:28:38,902 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-19 14:28:38,917 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27714315:ctest-vn-25254580', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27714315:ctest-vn-25254580?flat'}
2026-02-19 14:28:38,917 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27714315:ctest-vn-25254580 is found in opserver
2026-02-19 14:28:38,930 - DEBUG - Do not have enough data to verify VN in agent
2026-02-19 14:28:38,937 - DEBUG - VRF ids for VN ctest-vn-25254580: {}
2026-02-19 14:28:39,047 - DEBUG - Services list from nova: [