2025-11-07 09:33:28,342 - INFO - Domain Default found not creating
2025-11-07 09:33:28,478 - INFO - Project ctest-TestBasicPolicy-61985890 not found, creating it
2025-11-07 09:33:28,911 - INFO - Created Project:ctest-TestBasicPolicy-61985890, ID : bc978cd4-a3f1-4549-b547-1cb61a3de17f
2025-11-07 09:33:30,306 - INFO - ================================================================================
2025-11-07 09:33:30,306 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-07 09:33:30,306 - 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-07 09:33:30,566 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with
2025-11-07 09:33:30,566 - INFO - Initial checks done. Running the testcase now
2025-11-07 09:33:30,566 - INFO -
2025-11-07 09:33:31,119 - DEBUG - Response for create_network : {'network': {'id': '5866ee9f-8140-484a-a182-ad7e9183ddf0', 'name': 'ctest-vn-00962531', 'tenant_id': 'bc978cd4a3f14549b5471cb61a3de17f', 'project_id': 'bc978cd4a3f14549b5471cb61a3de17f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61985890', 'ctest-vn-00962531'], 'port_security_enabled': True, 'description': ''}}
2025-11-07 09:33:31,333 - DEBUG - Response for create_subnet : {'subnet': {'id': '4abcd5fe-6d04-4598-8f62-8960c2ebe8d0', 'name': '', 'tenant_id': 'bc978cd4a3f14549b5471cb61a3de17f', 'network_id': '5866ee9f-8140-484a-a182-ad7e9183ddf0', 'ip_version': 4, 'cidr': '99.224.76.192/26', 'allocation_pools': [{'start': '99.224.76.194', 'end': '99.224.76.254'}], 'gateway_ip': '99.224.76.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.224.76.194', 'tags': [], 'project_id': 'bc978cd4a3f14549b5471cb61a3de17f'}}
2025-11-07 09:33:31,351 - INFO - Created VN ctest-vn-00962531
2025-11-07 09:33:31,404 - DEBUG - VN ctest-vn-00962531 UUID is 5866ee9f-8140-484a-a182-ad7e9183ddf0
2025-11-07 09:33:31,673 - DEBUG - Response for create_network : {'network': {'id': '09686713-4651-4b31-90dc-aa2ba9865747', 'name': 'ctest-vn-97037734', 'tenant_id': 'bc978cd4a3f14549b5471cb61a3de17f', 'project_id': 'bc978cd4a3f14549b5471cb61a3de17f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61985890', 'ctest-vn-97037734'], 'port_security_enabled': True, 'description': ''}}
2025-11-07 09:33:31,855 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b813a1ef-b6e9-47d6-acd2-dc8944f594f8', 'name': '', 'tenant_id': 'bc978cd4a3f14549b5471cb61a3de17f', 'network_id': '09686713-4651-4b31-90dc-aa2ba9865747', 'ip_version': 4, 'cidr': '126.255.237.128/26', 'allocation_pools': [{'start': '126.255.237.130', 'end': '126.255.237.190'}], 'gateway_ip': '126.255.237.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.255.237.130', 'tags': [], 'project_id': 'bc978cd4a3f14549b5471cb61a3de17f'}}
2025-11-07 09:33:31,872 - INFO - Created VN ctest-vn-97037734
2025-11-07 09:33:31,925 - DEBUG - VN ctest-vn-97037734 UUID is 09686713-4651-4b31-90dc-aa2ba9865747
2025-11-07 09:33:32,038 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61985890:ctest-vn-00962531, 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-61985890:ctest-vn-97037734, 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-07 09:33:32,338 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5866ee9f-8140-484a-a182-ad7e9183ddf0', 'name': 'ctest-vn-00962531', 'tenant_id': 'bc978cd4a3f14549b5471cb61a3de17f', 'project_id': 'bc978cd4a3f14549b5471cb61a3de17f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4abcd5fe-6d04-4598-8f62-8960c2ebe8d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61985890', 'ctest-vn-00962531'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61985890', 'ctest-policy-allow-all-55178349']], 'subnet_ipam': [{'subnet_cidr': '99.224.76.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-07 09:33:32,575 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '09686713-4651-4b31-90dc-aa2ba9865747', 'name': 'ctest-vn-97037734', 'tenant_id': 'bc978cd4a3f14549b5471cb61a3de17f', 'project_id': 'bc978cd4a3f14549b5471cb61a3de17f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b813a1ef-b6e9-47d6-acd2-dc8944f594f8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61985890', 'ctest-vn-97037734'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61985890', 'ctest-policy-allow-all-55178349']], 'subnet_ipam': [{'subnet_cidr': '126.255.237.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-07 09:33:32,740 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-07 09:33:33,237 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-07 09:33:33,273 - DEBUG - Requesting: http://10.0.0.249:8082/domain/e75be550-1cc2-4097-be55-e97adebf17f3
2025-11-07 09:33:33,288 - DEBUG - Requesting: http://10.0.0.249:8082/project/bc978cd4-a3f1-4549-b547-1cb61a3de17f
2025-11-07 09:33:33,363 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5866ee9f-8140-484a-a182-ad7e9183ddf0
2025-11-07 09:33:33,375 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5866ee9f-8140-484a-a182-ad7e9183ddf0
2025-11-07 09:33:33,386 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/441533bc-c38c-4d9c-8449-b4a1172b891a
2025-11-07 09:33:33,394 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/441533bc-c38c-4d9c-8449-b4a1172b891a
2025-11-07 09:33:33,402 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/a93ea769-c4f7-4841-b17f-5315ae674c96
2025-11-07 09:33:33,410 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-07 09:33:33,410 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5866ee9f-8140-484a-a182-ad7e9183ddf0
2025-11-07 09:33:33,420 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/441533bc-c38c-4d9c-8449-b4a1172b891a
2025-11-07 09:33:33,434 - INFO - Verified VN network id 12 for VN 5866ee9f-8140-484a-a182-ad7e9183ddf0
2025-11-07 09:33:33,434 - INFO - Verifications in API Server for VN ctest-vn-00962531 passed
2025-11-07 09:33:33,434 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5866ee9f-8140-484a-a182-ad7e9183ddf0
2025-11-07 09:33:33,443 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/441533bc-c38c-4d9c-8449-b4a1172b891a
2025-11-07 09:33:33,450 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/441533bc-c38c-4d9c-8449-b4a1172b891a
2025-11-07 09:33:33,456 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/a93ea769-c4f7-4841-b17f-5315ae674c96
2025-11-07 09:33:33,467 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61985890:ctest-vn-00962531', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61985890', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6370041091797829706', 'uuid-lslong': '11638055146197605872'}, 'enable': 'true', 'created': '2025-11-07T09:33:31', 'last-modified': '2025-11-07T09:33:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.157397'}
2025-11-07 09:33:33,474 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-07 09:33:33,474 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00962531 passed
2025-11-07 09:33:33,474 - DEBUG - ====Verifying policy data for ctest-vn-00962531 in API_Server ======
2025-11-07 09:33:33,474 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-07 09:33:33,479 - DEBUG - Requesting: http://10.0.0.249:8082/domain/e75be550-1cc2-4097-be55-e97adebf17f3
2025-11-07 09:33:33,491 - DEBUG - Requesting: http://10.0.0.249:8082/project/bc978cd4-a3f1-4549-b547-1cb61a3de17f
2025-11-07 09:33:33,560 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5866ee9f-8140-484a-a182-ad7e9183ddf0
2025-11-07 09:33:33,569 - DEBUG - ==>Verifying data for policy with id: 74b00a9c-c42e-44ec-b74b-36561bc698f3, fqn: ['default-domain', 'ctest-TestBasicPolicy-61985890', 'ctest-policy-allow-all-55178349']
2025-11-07 09:33:33,569 - INFO - VN ctest-vn-00962531 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-07 09:33:33,569 - DEBUG - Verifying the vn in opserver
2025-11-07 09:33:33,569 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61985890:ctest-vn-00962531 virtual network link through opserver 10.0.0.249
2025-11-07 09:33:33,569 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-11-07 09:33:33,874 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-11-07 09:33:33,942 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61985890:ctest-vn-00962531', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61985890:ctest-vn-00962531?flat'}
2025-11-07 09:33:33,942 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61985890:ctest-vn-00962531 is found in opserver
2025-11-07 09:33:33,951 - DEBUG - Do not have enough data to verify VN in agent
2025-11-07 09:33:33,956 - DEBUG - VRF ids for VN ctest-vn-00962531: {}
2025-11-07 09:33:33,956 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-07 09:33:33,960 - DEBUG - Requesting: http://10.0.0.249:8082/domain/e75be550-1cc2-4097-be55-e97adebf17f3
2025-11-07 09:33:33,970 - DEBUG - Requesting: http://10.0.0.249:8082/project/bc978cd4-a3f1-4549-b547-1cb61a3de17f
2025-11-07 09:33:34,039 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/09686713-4651-4b31-90dc-aa2ba9865747
2025-11-07 09:33:34,050 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/09686713-4651-4b31-90dc-aa2ba9865747
2025-11-07 09:33:34,058 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f2983f4f-aa35-4a44-9b02-5ddbd308040e
2025-11-07 09:33:34,064 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f2983f4f-aa35-4a44-9b02-5ddbd308040e
2025-11-07 09:33:34,070 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/9761a2c4-4de7-4305-83c8-97de1b741a4e
2025-11-07 09:33:34,075 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-07 09:33:34,075 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/09686713-4651-4b31-90dc-aa2ba9865747
2025-11-07 09:33:34,083 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f2983f4f-aa35-4a44-9b02-5ddbd308040e
2025-11-07 09:33:34,095 - INFO - Verified VN network id 13 for VN 09686713-4651-4b31-90dc-aa2ba9865747
2025-11-07 09:33:34,095 - INFO - Verifications in API Server for VN ctest-vn-97037734 passed
2025-11-07 09:33:34,095 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/09686713-4651-4b31-90dc-aa2ba9865747
2025-11-07 09:33:34,103 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f2983f4f-aa35-4a44-9b02-5ddbd308040e
2025-11-07 09:33:34,109 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f2983f4f-aa35-4a44-9b02-5ddbd308040e
2025-11-07 09:33:34,114 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/9761a2c4-4de7-4305-83c8-97de1b741a4e
2025-11-07 09:33:34,123 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61985890:ctest-vn-97037734', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61985890', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '677905076401031985', 'uuid-lslong': '10438405140842436423'}, 'enable': 'true', 'created': '2025-11-07T09:33:31', 'last-modified': '2025-11-07T09:33:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.575565'}
2025-11-07 09:33:34,129 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-07 09:33:34,129 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97037734 passed
2025-11-07 09:33:34,129 - DEBUG - ====Verifying policy data for ctest-vn-97037734 in API_Server ======
2025-11-07 09:33:34,129 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-07 09:33:34,135 - DEBUG - Requesting: http://10.0.0.249:8082/domain/e75be550-1cc2-4097-be55-e97adebf17f3
2025-11-07 09:33:34,146 - DEBUG - Requesting: http://10.0.0.249:8082/project/bc978cd4-a3f1-4549-b547-1cb61a3de17f
2025-11-07 09:33:34,212 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/09686713-4651-4b31-90dc-aa2ba9865747
2025-11-07 09:33:34,220 - DEBUG - ==>Verifying data for policy with id: 74b00a9c-c42e-44ec-b74b-36561bc698f3, fqn: ['default-domain', 'ctest-TestBasicPolicy-61985890', 'ctest-policy-allow-all-55178349']
2025-11-07 09:33:34,220 - INFO - VN ctest-vn-97037734 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-07 09:33:34,220 - DEBUG - Verifying the vn in opserver
2025-11-07 09:33:34,220 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61985890:ctest-vn-97037734 virtual network link through opserver 10.0.0.249
2025-11-07 09:33:34,220 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-11-07 09:33:34,228 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61985890:ctest-vn-97037734', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61985890:ctest-vn-97037734?flat'}
2025-11-07 09:33:34,229 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61985890:ctest-vn-97037734 is found in opserver
2025-11-07 09:33:34,237 - DEBUG - Do not have enough data to verify VN in agent
2025-11-07 09:33:34,241 - DEBUG - VRF ids for VN ctest-vn-97037734: {}
2025-11-07 09:33:34,297 - DEBUG - Services list from nova: [