2025-11-10 21:18:57,488 - INFO - Domain Default found not creating
2025-11-10 21:18:57,636 - INFO - Project ctest-TestBasicPolicy-08735887 not found, creating it
2025-11-10 21:18:58,104 - INFO - Created Project:ctest-TestBasicPolicy-08735887, ID : 4b05ee23-efa8-4ec0-9403-8bfc386f3ca5
2025-11-10 21:18:59,560 - INFO - ================================================================================
2025-11-10 21:18:59,560 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-10 21:18:59,560 - 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
2025-11-10 21:18:59,816 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2025-11-10 21:18:59,816 - INFO - Initial checks done. Running the testcase now
2025-11-10 21:18:59,817 - INFO -
2025-11-10 21:19:00,399 - DEBUG - Response for create_network : {'network': {'id': '7db4f39e-3bb7-441c-a67f-f90052109a81', 'name': 'ctest-vn-55063369', 'tenant_id': '4b05ee23efa84ec094038bfc386f3ca5', 'project_id': '4b05ee23efa84ec094038bfc386f3ca5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08735887', 'ctest-vn-55063369'], 'port_security_enabled': True, 'description': ''}}
2025-11-10 21:19:00,588 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f993521-caac-47ee-8ae0-2c49bf80600a', 'name': '', 'tenant_id': '4b05ee23efa84ec094038bfc386f3ca5', 'network_id': '7db4f39e-3bb7-441c-a67f-f90052109a81', 'ip_version': 4, 'cidr': '25.183.4.0/26', 'allocation_pools': [{'start': '25.183.4.2', 'end': '25.183.4.62'}], 'gateway_ip': '25.183.4.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.183.4.2', 'tags': [], 'project_id': '4b05ee23efa84ec094038bfc386f3ca5'}}
2025-11-10 21:19:00,607 - INFO - Created VN ctest-vn-55063369
2025-11-10 21:19:00,659 - DEBUG - VN ctest-vn-55063369 UUID is 7db4f39e-3bb7-441c-a67f-f90052109a81
2025-11-10 21:19:00,949 - DEBUG - Response for create_network : {'network': {'id': 'dd2a44a0-7698-4cf1-b182-0e125351b100', 'name': 'ctest-vn-90842350', 'tenant_id': '4b05ee23efa84ec094038bfc386f3ca5', 'project_id': '4b05ee23efa84ec094038bfc386f3ca5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08735887', 'ctest-vn-90842350'], 'port_security_enabled': True, 'description': ''}}
2025-11-10 21:19:01,146 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf2ce378-e55c-449c-a22c-cce4b296a199', 'name': '', 'tenant_id': '4b05ee23efa84ec094038bfc386f3ca5', 'network_id': 'dd2a44a0-7698-4cf1-b182-0e125351b100', 'ip_version': 4, 'cidr': '201.57.124.64/26', 'allocation_pools': [{'start': '201.57.124.66', 'end': '201.57.124.126'}], 'gateway_ip': '201.57.124.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.57.124.66', 'tags': [], 'project_id': '4b05ee23efa84ec094038bfc386f3ca5'}}
2025-11-10 21:19:01,167 - INFO - Created VN ctest-vn-90842350
2025-11-10 21:19:01,219 - DEBUG - VN ctest-vn-90842350 UUID is dd2a44a0-7698-4cf1-b182-0e125351b100
2025-11-10 21:19:01,336 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08735887:ctest-vn-55063369, 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-08735887:ctest-vn-90842350, 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]
2025-11-10 21:19:01,639 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7db4f39e-3bb7-441c-a67f-f90052109a81', 'name': 'ctest-vn-55063369', 'tenant_id': '4b05ee23efa84ec094038bfc386f3ca5', 'project_id': '4b05ee23efa84ec094038bfc386f3ca5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8f993521-caac-47ee-8ae0-2c49bf80600a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08735887', 'ctest-vn-55063369'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08735887', 'ctest-policy-allow-all-07486006']], 'subnet_ipam': [{'subnet_cidr': '25.183.4.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-10 21:19:01,914 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dd2a44a0-7698-4cf1-b182-0e125351b100', 'name': 'ctest-vn-90842350', 'tenant_id': '4b05ee23efa84ec094038bfc386f3ca5', 'project_id': '4b05ee23efa84ec094038bfc386f3ca5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cf2ce378-e55c-449c-a22c-cce4b296a199'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08735887', 'ctest-vn-90842350'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08735887', 'ctest-policy-allow-all-07486006']], 'subnet_ipam': [{'subnet_cidr': '201.57.124.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-10 21:19:02,063 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-10 21:19:02,360 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-10 21:19:02,390 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4baaae83-4e16-48cc-88ed-1396e487d748
2025-11-10 21:19:02,403 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b05ee23-efa8-4ec0-9403-8bfc386f3ca5
2025-11-10 21:19:02,478 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7db4f39e-3bb7-441c-a67f-f90052109a81
2025-11-10 21:19:02,489 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7db4f39e-3bb7-441c-a67f-f90052109a81
2025-11-10 21:19:02,501 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cdb5a05b-8bdc-42b4-bf58-5114656ec892
2025-11-10 21:19:02,508 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cdb5a05b-8bdc-42b4-bf58-5114656ec892
2025-11-10 21:19:02,515 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8c8cf7f3-ab86-455c-8d10-a1252e1ecdf7
2025-11-10 21:19:02,521 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-10 21:19:02,521 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7db4f39e-3bb7-441c-a67f-f90052109a81
2025-11-10 21:19:02,529 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cdb5a05b-8bdc-42b4-bf58-5114656ec892
2025-11-10 21:19:02,543 - INFO - Verified VN network id 11 for VN 7db4f39e-3bb7-441c-a67f-f90052109a81
2025-11-10 21:19:02,543 - INFO - Verifications in API Server for VN ctest-vn-55063369 passed
2025-11-10 21:19:02,543 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7db4f39e-3bb7-441c-a67f-f90052109a81
2025-11-10 21:19:02,553 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cdb5a05b-8bdc-42b4-bf58-5114656ec892
2025-11-10 21:19:02,561 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cdb5a05b-8bdc-42b4-bf58-5114656ec892
2025-11-10 21:19:02,567 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8c8cf7f3-ab86-455c-8d10-a1252e1ecdf7
2025-11-10 21:19:02,580 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08735887:ctest-vn-55063369', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08735887', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9058132611481158684', 'uuid-lslong': '11997581712110426753'}, 'enable': 'true', 'created': '2025-11-10T21:19:00', 'last-modified': '2025-11-10T21:19:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.966815'}
2025-11-10 21:19:02,586 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-10 21:19:02,586 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55063369 passed
2025-11-10 21:19:02,586 - DEBUG - ====Verifying policy data for ctest-vn-55063369 in API_Server ======
2025-11-10 21:19:02,586 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-10 21:19:02,591 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4baaae83-4e16-48cc-88ed-1396e487d748
2025-11-10 21:19:02,602 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b05ee23-efa8-4ec0-9403-8bfc386f3ca5
2025-11-10 21:19:02,674 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7db4f39e-3bb7-441c-a67f-f90052109a81
2025-11-10 21:19:02,682 - DEBUG - ==>Verifying data for policy with id: fd86b828-62e5-4c8b-b9c7-75781c40d55b, fqn: ['default-domain', 'ctest-TestBasicPolicy-08735887', 'ctest-policy-allow-all-07486006']
2025-11-10 21:19:02,683 - INFO - VN ctest-vn-55063369 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-10 21:19:02,683 - DEBUG - Verifying the vn in opserver
2025-11-10 21:19:02,683 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08735887:ctest-vn-55063369 virtual network link through opserver 10.0.0.38
2025-11-10 21:19:02,683 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-10 21:19:02,985 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-10 21:19:03,045 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08735887:ctest-vn-55063369', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08735887:ctest-vn-55063369?flat'}
2025-11-10 21:19:03,045 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08735887:ctest-vn-55063369 is found in opserver
2025-11-10 21:19:03,055 - DEBUG - Do not have enough data to verify VN in agent
2025-11-10 21:19:03,059 - DEBUG - VRF ids for VN ctest-vn-55063369: {}
2025-11-10 21:19:03,059 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-10 21:19:03,064 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4baaae83-4e16-48cc-88ed-1396e487d748
2025-11-10 21:19:03,076 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b05ee23-efa8-4ec0-9403-8bfc386f3ca5
2025-11-10 21:19:03,145 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dd2a44a0-7698-4cf1-b182-0e125351b100
2025-11-10 21:19:03,156 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dd2a44a0-7698-4cf1-b182-0e125351b100
2025-11-10 21:19:03,165 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fd1e05ba-0e12-4933-81a3-f9ff1fc35b05
2025-11-10 21:19:03,172 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fd1e05ba-0e12-4933-81a3-f9ff1fc35b05
2025-11-10 21:19:03,178 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e1cc2e6d-641c-42e5-94c9-968b48106a22
2025-11-10 21:19:03,184 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-10 21:19:03,184 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dd2a44a0-7698-4cf1-b182-0e125351b100
2025-11-10 21:19:03,192 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fd1e05ba-0e12-4933-81a3-f9ff1fc35b05
2025-11-10 21:19:03,205 - INFO - Verified VN network id 12 for VN dd2a44a0-7698-4cf1-b182-0e125351b100
2025-11-10 21:19:03,205 - INFO - Verifications in API Server for VN ctest-vn-90842350 passed
2025-11-10 21:19:03,205 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dd2a44a0-7698-4cf1-b182-0e125351b100
2025-11-10 21:19:03,213 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fd1e05ba-0e12-4933-81a3-f9ff1fc35b05
2025-11-10 21:19:03,220 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fd1e05ba-0e12-4933-81a3-f9ff1fc35b05
2025-11-10 21:19:03,225 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e1cc2e6d-641c-42e5-94c9-968b48106a22
2025-11-10 21:19:03,235 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08735887:ctest-vn-90842350', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08735887', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15936625687379070193', 'uuid-lslong': '12790801363555692800'}, 'enable': 'true', 'created': '2025-11-10T21:19:00', 'last-modified': '2025-11-10T21:19:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.393068'}
2025-11-10 21:19:03,240 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-10 21:19:03,241 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90842350 passed
2025-11-10 21:19:03,241 - DEBUG - ====Verifying policy data for ctest-vn-90842350 in API_Server ======
2025-11-10 21:19:03,241 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-10 21:19:03,246 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4baaae83-4e16-48cc-88ed-1396e487d748
2025-11-10 21:19:03,255 - DEBUG - Requesting: http://10.0.0.38:8082/project/4b05ee23-efa8-4ec0-9403-8bfc386f3ca5
2025-11-10 21:19:03,324 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dd2a44a0-7698-4cf1-b182-0e125351b100
2025-11-10 21:19:03,332 - DEBUG - ==>Verifying data for policy with id: fd86b828-62e5-4c8b-b9c7-75781c40d55b, fqn: ['default-domain', 'ctest-TestBasicPolicy-08735887', 'ctest-policy-allow-all-07486006']
2025-11-10 21:19:03,332 - INFO - VN ctest-vn-90842350 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-10 21:19:03,332 - DEBUG - Verifying the vn in opserver
2025-11-10 21:19:03,332 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08735887:ctest-vn-90842350 virtual network link through opserver 10.0.0.38
2025-11-10 21:19:03,332 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-10 21:19:03,341 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08735887:ctest-vn-90842350', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08735887:ctest-vn-90842350?flat'}
2025-11-10 21:19:03,341 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08735887:ctest-vn-90842350 is found in opserver
2025-11-10 21:19:03,350 - DEBUG - Do not have enough data to verify VN in agent
2025-11-10 21:19:03,354 - DEBUG - VRF ids for VN ctest-vn-90842350: {}
2025-11-10 21:19:03,409 - DEBUG - Services list from nova: [