2026-10-28 12:48:03,462 - INFO - Domain Default found not creating
2026-10-28 12:48:03,675 - INFO - Project ctest-TestBasicPolicy-85139134 not found, creating it
2026-10-28 12:48:04,143 - INFO - Created Project:ctest-TestBasicPolicy-85139134, ID : 1ba6f6ec-bcf7-49ab-babd-8886d518d9f0
2026-10-28 12:48:06,002 - INFO - ================================================================================
2026-10-28 12:48:06,002 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-10-28 12:48:06,003 - 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-10-28 12:48:06,274 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.31': '0'}} with
2026-10-28 12:48:06,275 - INFO - Initial checks done. Running the testcase now
2026-10-28 12:48:06,275 - INFO -
2026-10-28 12:48:06,930 - DEBUG - Response for create_network : {'network': {'id': 'eb7f104d-7caa-4877-9df0-539ac7fb32c6', 'name': 'ctest-vn-64820698', 'tenant_id': '1ba6f6ecbcf749abbabd8886d518d9f0', 'project_id': '1ba6f6ecbcf749abbabd8886d518d9f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85139134', 'ctest-vn-64820698'], 'port_security_enabled': True, 'description': ''}}
2026-10-28 12:48:07,149 - DEBUG - Response for create_subnet : {'subnet': {'id': '50c8fb18-4006-43a7-a2e6-0b595ae30980', 'name': '', 'tenant_id': '1ba6f6ecbcf749abbabd8886d518d9f0', 'network_id': 'eb7f104d-7caa-4877-9df0-539ac7fb32c6', 'ip_version': 4, 'cidr': '101.56.248.0/26', 'allocation_pools': [{'start': '101.56.248.2', 'end': '101.56.248.62'}], 'gateway_ip': '101.56.248.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.56.248.2', 'tags': [], 'project_id': '1ba6f6ecbcf749abbabd8886d518d9f0'}}
2026-10-28 12:48:07,168 - INFO - Created VN ctest-vn-64820698
2026-10-28 12:48:07,223 - DEBUG - VN ctest-vn-64820698 UUID is eb7f104d-7caa-4877-9df0-539ac7fb32c6
2026-10-28 12:48:07,541 - DEBUG - Response for create_network : {'network': {'id': 'fee75705-e38b-4610-93e7-f9e56f1b1e86', 'name': 'ctest-vn-28435865', 'tenant_id': '1ba6f6ecbcf749abbabd8886d518d9f0', 'project_id': '1ba6f6ecbcf749abbabd8886d518d9f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85139134', 'ctest-vn-28435865'], 'port_security_enabled': True, 'description': ''}}
2026-10-28 12:48:07,755 - DEBUG - Response for create_subnet : {'subnet': {'id': '2cdad0f2-6528-4d57-a507-db5aeaca99cb', 'name': '', 'tenant_id': '1ba6f6ecbcf749abbabd8886d518d9f0', 'network_id': 'fee75705-e38b-4610-93e7-f9e56f1b1e86', 'ip_version': 4, 'cidr': '2.47.106.64/26', 'allocation_pools': [{'start': '2.47.106.66', 'end': '2.47.106.126'}], 'gateway_ip': '2.47.106.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.47.106.66', 'tags': [], 'project_id': '1ba6f6ecbcf749abbabd8886d518d9f0'}}
2026-10-28 12:48:07,773 - INFO - Created VN ctest-vn-28435865
2026-10-28 12:48:07,831 - DEBUG - VN ctest-vn-28435865 UUID is fee75705-e38b-4610-93e7-f9e56f1b1e86
2026-10-28 12:48:07,983 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85139134:ctest-vn-64820698, 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-85139134:ctest-vn-28435865, 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-10-28 12:48:08,298 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb7f104d-7caa-4877-9df0-539ac7fb32c6', 'name': 'ctest-vn-64820698', 'tenant_id': '1ba6f6ecbcf749abbabd8886d518d9f0', 'project_id': '1ba6f6ecbcf749abbabd8886d518d9f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['50c8fb18-4006-43a7-a2e6-0b595ae30980'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85139134', 'ctest-vn-64820698'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85139134', 'ctest-policy-allow-all-72988090']], 'subnet_ipam': [{'subnet_cidr': '101.56.248.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-28 12:48:08,533 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fee75705-e38b-4610-93e7-f9e56f1b1e86', 'name': 'ctest-vn-28435865', 'tenant_id': '1ba6f6ecbcf749abbabd8886d518d9f0', 'project_id': '1ba6f6ecbcf749abbabd8886d518d9f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['2cdad0f2-6528-4d57-a507-db5aeaca99cb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85139134', 'ctest-vn-28435865'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85139134', 'ctest-policy-allow-all-72988090']], 'subnet_ipam': [{'subnet_cidr': '2.47.106.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-28 12:48:08,715 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-10-28 12:48:09,083 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-10-28 12:48:09,112 - DEBUG - Requesting: http://10.0.0.249:8082/domain/55bd3a3f-fa96-4168-a8f7-915db1d9aef0
2026-10-28 12:48:09,126 - DEBUG - Requesting: http://10.0.0.249:8082/project/1ba6f6ec-bcf7-49ab-babd-8886d518d9f0
2026-10-28 12:48:09,204 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/eb7f104d-7caa-4877-9df0-539ac7fb32c6
2026-10-28 12:48:09,216 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/eb7f104d-7caa-4877-9df0-539ac7fb32c6
2026-10-28 12:48:09,227 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3cd27e82-e081-4fa1-9ac8-be3153eabadb
2026-10-28 12:48:09,236 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3cd27e82-e081-4fa1-9ac8-be3153eabadb
2026-10-28 12:48:09,244 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/3695be3c-5ef7-4dee-ac01-338833c3edb6
2026-10-28 12:48:09,252 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-28 12:48:09,252 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/eb7f104d-7caa-4877-9df0-539ac7fb32c6
2026-10-28 12:48:09,264 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3cd27e82-e081-4fa1-9ac8-be3153eabadb
2026-10-28 12:48:09,279 - INFO - Verified VN network id 12 for VN eb7f104d-7caa-4877-9df0-539ac7fb32c6
2026-10-28 12:48:09,279 - INFO - Verifications in API Server for VN ctest-vn-64820698 passed
2026-10-28 12:48:09,279 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/eb7f104d-7caa-4877-9df0-539ac7fb32c6
2026-10-28 12:48:09,290 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3cd27e82-e081-4fa1-9ac8-be3153eabadb
2026-10-28 12:48:09,298 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3cd27e82-e081-4fa1-9ac8-be3153eabadb
2026-10-28 12:48:09,308 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/3695be3c-5ef7-4dee-ac01-338833c3edb6
2026-10-28 12:48:09,323 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85139134:ctest-vn-64820698', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85139134', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16969299845945378935', 'uuid-lslong': '11380688182610440902'}, 'enable': 'true', 'created': '2026-10-28T12:48:06', 'last-modified': '2026-10-28T12:48:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.052974'}
2026-10-28 12:48:09,332 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-28 12:48:09,332 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64820698 passed
2026-10-28 12:48:09,332 - DEBUG - ====Verifying policy data for ctest-vn-64820698 in API_Server ======
2026-10-28 12:48:09,332 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-10-28 12:48:09,338 - DEBUG - Requesting: http://10.0.0.249:8082/domain/55bd3a3f-fa96-4168-a8f7-915db1d9aef0
2026-10-28 12:48:09,350 - DEBUG - Requesting: http://10.0.0.249:8082/project/1ba6f6ec-bcf7-49ab-babd-8886d518d9f0
2026-10-28 12:48:09,430 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/eb7f104d-7caa-4877-9df0-539ac7fb32c6
2026-10-28 12:48:09,440 - DEBUG - ==>Verifying data for policy with id: ee1d0cdd-392d-48d7-8856-a782899f28cf, fqn: ['default-domain', 'ctest-TestBasicPolicy-85139134', 'ctest-policy-allow-all-72988090']
2026-10-28 12:48:09,440 - INFO - VN ctest-vn-64820698 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-28 12:48:09,441 - DEBUG - Verifying the vn in opserver
2026-10-28 12:48:09,441 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85139134:ctest-vn-64820698 virtual network link through opserver 10.0.0.249
2026-10-28 12:48:09,441 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-10-28 12:48:09,805 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-10-28 12:48:09,866 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85139134:ctest-vn-64820698', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85139134:ctest-vn-64820698?flat'}
2026-10-28 12:48:09,866 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85139134:ctest-vn-64820698 is found in opserver
2026-10-28 12:48:09,877 - DEBUG - Do not have enough data to verify VN in agent
2026-10-28 12:48:09,883 - DEBUG - VRF ids for VN ctest-vn-64820698: {}
2026-10-28 12:48:09,883 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-10-28 12:48:09,889 - DEBUG - Requesting: http://10.0.0.249:8082/domain/55bd3a3f-fa96-4168-a8f7-915db1d9aef0
2026-10-28 12:48:09,901 - DEBUG - Requesting: http://10.0.0.249:8082/project/1ba6f6ec-bcf7-49ab-babd-8886d518d9f0
2026-10-28 12:48:09,976 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/fee75705-e38b-4610-93e7-f9e56f1b1e86
2026-10-28 12:48:09,989 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/fee75705-e38b-4610-93e7-f9e56f1b1e86
2026-10-28 12:48:09,999 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/718a1994-0de1-4539-8c11-9b14b8dd875a
2026-10-28 12:48:10,007 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/718a1994-0de1-4539-8c11-9b14b8dd875a
2026-10-28 12:48:10,014 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/b1af695d-0c33-4430-8d4c-677f20a5ac2a
2026-10-28 12:48:10,021 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-28 12:48:10,021 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/fee75705-e38b-4610-93e7-f9e56f1b1e86
2026-10-28 12:48:10,030 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/718a1994-0de1-4539-8c11-9b14b8dd875a
2026-10-28 12:48:10,043 - INFO - Verified VN network id 13 for VN fee75705-e38b-4610-93e7-f9e56f1b1e86
2026-10-28 12:48:10,044 - INFO - Verifications in API Server for VN ctest-vn-28435865 passed
2026-10-28 12:48:10,044 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/fee75705-e38b-4610-93e7-f9e56f1b1e86
2026-10-28 12:48:10,053 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/718a1994-0de1-4539-8c11-9b14b8dd875a
2026-10-28 12:48:10,060 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/718a1994-0de1-4539-8c11-9b14b8dd875a
2026-10-28 12:48:10,067 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/b1af695d-0c33-4430-8d4c-677f20a5ac2a
2026-10-28 12:48:10,082 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85139134:ctest-vn-28435865', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85139134', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18367745288057865744', 'uuid-lslong': '10657761807002443398'}, 'enable': 'true', 'created': '2026-10-28T12:48:07', 'last-modified': '2026-10-28T12:48:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.570691'}
2026-10-28 12:48:10,089 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-28 12:48:10,090 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28435865 passed
2026-10-28 12:48:10,090 - DEBUG - ====Verifying policy data for ctest-vn-28435865 in API_Server ======
2026-10-28 12:48:10,090 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-10-28 12:48:10,096 - DEBUG - Requesting: http://10.0.0.249:8082/domain/55bd3a3f-fa96-4168-a8f7-915db1d9aef0
2026-10-28 12:48:10,108 - DEBUG - Requesting: http://10.0.0.249:8082/project/1ba6f6ec-bcf7-49ab-babd-8886d518d9f0
2026-10-28 12:48:10,184 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/fee75705-e38b-4610-93e7-f9e56f1b1e86
2026-10-28 12:48:10,194 - DEBUG - ==>Verifying data for policy with id: ee1d0cdd-392d-48d7-8856-a782899f28cf, fqn: ['default-domain', 'ctest-TestBasicPolicy-85139134', 'ctest-policy-allow-all-72988090']
2026-10-28 12:48:10,194 - INFO - VN ctest-vn-28435865 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-28 12:48:10,195 - DEBUG - Verifying the vn in opserver
2026-10-28 12:48:10,195 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85139134:ctest-vn-28435865 virtual network link through opserver 10.0.0.249
2026-10-28 12:48:10,195 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-10-28 12:48:10,206 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85139134:ctest-vn-28435865', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85139134:ctest-vn-28435865?flat'}
2026-10-28 12:48:10,206 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85139134:ctest-vn-28435865 is found in opserver
2026-10-28 12:48:10,219 - DEBUG - Do not have enough data to verify VN in agent
2026-10-28 12:48:10,225 - DEBUG - VRF ids for VN ctest-vn-28435865: {}
2026-10-28 12:48:10,284 - DEBUG - Services list from nova: [