2025-11-17 20:38:20,242 - INFO - Domain Default found not creating
2025-11-17 20:38:20,410 - INFO - Project ctest-TestBasicPolicy-79083002 not found, creating it
2025-11-17 20:38:20,869 - INFO - Created Project:ctest-TestBasicPolicy-79083002, ID : 96fd3cd0-49ad-47b9-9ddd-6ce54ff9ad31
2025-11-17 20:38:22,466 - INFO - ================================================================================
2025-11-17 20:38:22,466 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-17 20:38:22,466 - 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-17 20:38:22,725 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-11-17 20:38:22,725 - INFO - Initial checks done. Running the testcase now
2025-11-17 20:38:22,725 - INFO -
2025-11-17 20:38:23,317 - DEBUG - Response for create_network : {'network': {'id': 'e017f1fa-5cc9-4b58-9261-03932fe26835', 'name': 'ctest-vn-88393723', 'tenant_id': '96fd3cd049ad47b99ddd6ce54ff9ad31', 'project_id': '96fd3cd049ad47b99ddd6ce54ff9ad31', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79083002', 'ctest-vn-88393723'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 20:38:23,513 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f793fcf8-5aa1-470f-ab33-5249ebc46ef2', 'name': '', 'tenant_id': '96fd3cd049ad47b99ddd6ce54ff9ad31', 'network_id': 'e017f1fa-5cc9-4b58-9261-03932fe26835', 'ip_version': 4, 'cidr': '156.29.178.64/26', 'allocation_pools': [{'start': '156.29.178.66', 'end': '156.29.178.126'}], 'gateway_ip': '156.29.178.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.29.178.66', 'tags': [], 'project_id': '96fd3cd049ad47b99ddd6ce54ff9ad31'}}
2025-11-17 20:38:23,531 - INFO - Created VN ctest-vn-88393723
2025-11-17 20:38:23,584 - DEBUG - VN ctest-vn-88393723 UUID is e017f1fa-5cc9-4b58-9261-03932fe26835
2025-11-17 20:38:23,908 - DEBUG - Response for create_network : {'network': {'id': 'b84b5620-4ac3-43f9-9289-1b99951d0a8e', 'name': 'ctest-vn-69399318', 'tenant_id': '96fd3cd049ad47b99ddd6ce54ff9ad31', 'project_id': '96fd3cd049ad47b99ddd6ce54ff9ad31', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79083002', 'ctest-vn-69399318'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 20:38:24,075 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc08275d-8625-4679-8b1d-34259a798341', 'name': '', 'tenant_id': '96fd3cd049ad47b99ddd6ce54ff9ad31', 'network_id': 'b84b5620-4ac3-43f9-9289-1b99951d0a8e', 'ip_version': 4, 'cidr': '199.253.202.0/26', 'allocation_pools': [{'start': '199.253.202.2', 'end': '199.253.202.62'}], 'gateway_ip': '199.253.202.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.253.202.2', 'tags': [], 'project_id': '96fd3cd049ad47b99ddd6ce54ff9ad31'}}
2025-11-17 20:38:24,094 - INFO - Created VN ctest-vn-69399318
2025-11-17 20:38:24,148 - DEBUG - VN ctest-vn-69399318 UUID is b84b5620-4ac3-43f9-9289-1b99951d0a8e
2025-11-17 20:38:24,303 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79083002:ctest-vn-88393723, 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-79083002:ctest-vn-69399318, 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-17 20:38:24,597 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e017f1fa-5cc9-4b58-9261-03932fe26835', 'name': 'ctest-vn-88393723', 'tenant_id': '96fd3cd049ad47b99ddd6ce54ff9ad31', 'project_id': '96fd3cd049ad47b99ddd6ce54ff9ad31', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f793fcf8-5aa1-470f-ab33-5249ebc46ef2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79083002', 'ctest-vn-88393723'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79083002', 'ctest-policy-allow-all-03686477']], 'subnet_ipam': [{'subnet_cidr': '156.29.178.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 20:38:24,828 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b84b5620-4ac3-43f9-9289-1b99951d0a8e', 'name': 'ctest-vn-69399318', 'tenant_id': '96fd3cd049ad47b99ddd6ce54ff9ad31', 'project_id': '96fd3cd049ad47b99ddd6ce54ff9ad31', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cc08275d-8625-4679-8b1d-34259a798341'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79083002', 'ctest-vn-69399318'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79083002', 'ctest-policy-allow-all-03686477']], 'subnet_ipam': [{'subnet_cidr': '199.253.202.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 20:38:24,995 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-17 20:38:25,337 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-17 20:38:25,392 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7df7e7c0-d394-4684-84be-be8cfbd1e283
2025-11-17 20:38:25,406 - DEBUG - Requesting: http://10.0.0.50:8082/project/96fd3cd0-49ad-47b9-9ddd-6ce54ff9ad31
2025-11-17 20:38:25,486 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e017f1fa-5cc9-4b58-9261-03932fe26835
2025-11-17 20:38:25,499 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e017f1fa-5cc9-4b58-9261-03932fe26835
2025-11-17 20:38:25,509 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/090fbfde-152c-4eda-b8d0-befce5d4924e
2025-11-17 20:38:25,515 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/090fbfde-152c-4eda-b8d0-befce5d4924e
2025-11-17 20:38:25,521 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b87e73f1-75a7-45d8-b4de-fc204f05ca48
2025-11-17 20:38:25,527 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 20:38:25,527 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e017f1fa-5cc9-4b58-9261-03932fe26835
2025-11-17 20:38:25,534 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/090fbfde-152c-4eda-b8d0-befce5d4924e
2025-11-17 20:38:25,548 - INFO - Verified VN network id 11 for VN e017f1fa-5cc9-4b58-9261-03932fe26835
2025-11-17 20:38:25,548 - INFO - Verifications in API Server for VN ctest-vn-88393723 passed
2025-11-17 20:38:25,548 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e017f1fa-5cc9-4b58-9261-03932fe26835
2025-11-17 20:38:25,556 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/090fbfde-152c-4eda-b8d0-befce5d4924e
2025-11-17 20:38:25,562 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/090fbfde-152c-4eda-b8d0-befce5d4924e
2025-11-17 20:38:25,569 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b87e73f1-75a7-45d8-b4de-fc204f05ca48
2025-11-17 20:38:25,580 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79083002:ctest-vn-88393723', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79083002', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16147641046561016664', 'uuid-lslong': '10547715732976855093'}, 'enable': 'true', 'created': '2025-11-17T20:38:23', 'last-modified': '2025-11-17T20:38:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.001682'}
2025-11-17 20:38:25,585 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 20:38:25,585 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88393723 passed
2025-11-17 20:38:25,585 - DEBUG - ====Verifying policy data for ctest-vn-88393723 in API_Server ======
2025-11-17 20:38:25,586 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-17 20:38:25,590 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7df7e7c0-d394-4684-84be-be8cfbd1e283
2025-11-17 20:38:25,601 - DEBUG - Requesting: http://10.0.0.50:8082/project/96fd3cd0-49ad-47b9-9ddd-6ce54ff9ad31
2025-11-17 20:38:25,671 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e017f1fa-5cc9-4b58-9261-03932fe26835
2025-11-17 20:38:25,681 - DEBUG - ==>Verifying data for policy with id: 1f61ba77-1b2e-4cf8-a7c4-9291237b33f7, fqn: ['default-domain', 'ctest-TestBasicPolicy-79083002', 'ctest-policy-allow-all-03686477']
2025-11-17 20:38:25,681 - INFO - VN ctest-vn-88393723 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 20:38:25,681 - DEBUG - Verifying the vn in opserver
2025-11-17 20:38:25,681 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79083002:ctest-vn-88393723 virtual network link through opserver 10.0.0.50
2025-11-17 20:38:25,681 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-17 20:38:26,017 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-17 20:38:26,081 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79083002:ctest-vn-88393723', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79083002:ctest-vn-88393723?flat'}
2025-11-17 20:38:26,081 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79083002:ctest-vn-88393723 is found in opserver
2025-11-17 20:38:26,092 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 20:38:26,098 - DEBUG - VRF ids for VN ctest-vn-88393723: {}
2025-11-17 20:38:26,098 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-17 20:38:26,103 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7df7e7c0-d394-4684-84be-be8cfbd1e283
2025-11-17 20:38:26,114 - DEBUG - Requesting: http://10.0.0.50:8082/project/96fd3cd0-49ad-47b9-9ddd-6ce54ff9ad31
2025-11-17 20:38:26,188 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b84b5620-4ac3-43f9-9289-1b99951d0a8e
2025-11-17 20:38:26,201 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b84b5620-4ac3-43f9-9289-1b99951d0a8e
2025-11-17 20:38:26,210 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e855c99b-308f-4487-8f1b-124667095a2e
2025-11-17 20:38:26,216 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e855c99b-308f-4487-8f1b-124667095a2e
2025-11-17 20:38:26,222 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1a3f38cf-84fa-48b0-8308-801a25113246
2025-11-17 20:38:26,228 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 20:38:26,228 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b84b5620-4ac3-43f9-9289-1b99951d0a8e
2025-11-17 20:38:26,237 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e855c99b-308f-4487-8f1b-124667095a2e
2025-11-17 20:38:26,250 - INFO - Verified VN network id 12 for VN b84b5620-4ac3-43f9-9289-1b99951d0a8e
2025-11-17 20:38:26,250 - INFO - Verifications in API Server for VN ctest-vn-69399318 passed
2025-11-17 20:38:26,250 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b84b5620-4ac3-43f9-9289-1b99951d0a8e
2025-11-17 20:38:26,258 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e855c99b-308f-4487-8f1b-124667095a2e
2025-11-17 20:38:26,264 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e855c99b-308f-4487-8f1b-124667095a2e
2025-11-17 20:38:26,270 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1a3f38cf-84fa-48b0-8308-801a25113246
2025-11-17 20:38:26,282 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79083002:ctest-vn-69399318', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79083002', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13279802622925292537', 'uuid-lslong': '10559001147792493198'}, 'enable': 'true', 'created': '2025-11-17T20:38:23', 'last-modified': '2025-11-17T20:38:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.472580'}
2025-11-17 20:38:26,288 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 20:38:26,288 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69399318 passed
2025-11-17 20:38:26,289 - DEBUG - ====Verifying policy data for ctest-vn-69399318 in API_Server ======
2025-11-17 20:38:26,289 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-17 20:38:26,295 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7df7e7c0-d394-4684-84be-be8cfbd1e283
2025-11-17 20:38:26,307 - DEBUG - Requesting: http://10.0.0.50:8082/project/96fd3cd0-49ad-47b9-9ddd-6ce54ff9ad31
2025-11-17 20:38:26,375 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b84b5620-4ac3-43f9-9289-1b99951d0a8e
2025-11-17 20:38:26,384 - DEBUG - ==>Verifying data for policy with id: 1f61ba77-1b2e-4cf8-a7c4-9291237b33f7, fqn: ['default-domain', 'ctest-TestBasicPolicy-79083002', 'ctest-policy-allow-all-03686477']
2025-11-17 20:38:26,384 - INFO - VN ctest-vn-69399318 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 20:38:26,384 - DEBUG - Verifying the vn in opserver
2025-11-17 20:38:26,384 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79083002:ctest-vn-69399318 virtual network link through opserver 10.0.0.50
2025-11-17 20:38:26,384 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-17 20:38:26,393 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79083002:ctest-vn-69399318', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79083002:ctest-vn-69399318?flat'}
2025-11-17 20:38:26,393 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79083002:ctest-vn-69399318 is found in opserver
2025-11-17 20:38:26,402 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 20:38:26,406 - DEBUG - VRF ids for VN ctest-vn-69399318: {}
2025-11-17 20:38:26,465 - DEBUG - Services list from nova: [