2025-10-22 18:16:32,568 - INFO - Reading existing Domain with UUID 76186d71-3699-4707-98f1-3afabb9db250
2025-10-22 18:16:32,585 - INFO - Using existing domain ['admin_domain'](76186d71-3699-4707-98f1-3afabb9db250)
2025-10-22 18:16:32,838 - INFO - Project ctest-TestBasicPolicy-10446514 not found, creating it
2025-10-22 18:16:33,411 - INFO - Created Project:ctest-TestBasicPolicy-10446514, ID : a5577614-b55d-4bcd-be07-f2f03a97c801
2025-10-22 18:16:35,516 - INFO - ================================================================================
2025-10-22 18:16:35,516 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-22 18:16:35,516 - 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-10-22 18:16:35,924 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.0.0.240': '0'}} with
2025-10-22 18:16:35,924 - INFO - Initial checks done. Running the testcase now
2025-10-22 18:16:35,924 - INFO -
2025-10-22 18:16:36,909 - DEBUG - Response for create_network : {'network': {'id': 'b19db30b-d40d-408e-b9b1-946fa8e8b816', 'name': 'ctest-vn-19435663', 'tenant_id': 'a5577614b55d4bcdbe07f2f03a97c801', 'project_id': 'a5577614b55d4bcdbe07f2f03a97c801', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-10446514', 'ctest-vn-19435663'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-22 18:16:37,156 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e33312c-ae90-4ecd-a0b9-4f26fb29beca', 'name': '', 'tenant_id': 'a5577614b55d4bcdbe07f2f03a97c801', 'network_id': 'b19db30b-d40d-408e-b9b1-946fa8e8b816', 'ip_version': 4, 'cidr': '51.67.252.128/26', 'allocation_pools': [{'start': '51.67.252.130', 'end': '51.67.252.190'}], 'gateway_ip': '51.67.252.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T18:16:37.038060', 'updated_at': '2025-10-22T18:16:37.038060', 'dns_server_address': '51.67.252.130', 'tags': [], 'project_id': 'a5577614b55d4bcdbe07f2f03a97c801'}}
2025-10-22 18:16:37,225 - INFO - Created VN ctest-vn-19435663
2025-10-22 18:16:37,287 - DEBUG - VN ctest-vn-19435663 UUID is b19db30b-d40d-408e-b9b1-946fa8e8b816
2025-10-22 18:16:37,992 - DEBUG - Response for create_network : {'network': {'id': '304e99be-2b1e-4023-ac45-a2188a247e7f', 'name': 'ctest-vn-24572386', 'tenant_id': 'a5577614b55d4bcdbe07f2f03a97c801', 'project_id': 'a5577614b55d4bcdbe07f2f03a97c801', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-10446514', 'ctest-vn-24572386'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-22 18:16:38,227 - DEBUG - Response for create_subnet : {'subnet': {'id': '8e2f6767-e929-4228-b4bb-6edbb2d9f52e', 'name': '', 'tenant_id': 'a5577614b55d4bcdbe07f2f03a97c801', 'network_id': '304e99be-2b1e-4023-ac45-a2188a247e7f', 'ip_version': 4, 'cidr': '79.207.125.64/26', 'allocation_pools': [{'start': '79.207.125.66', 'end': '79.207.125.126'}], 'gateway_ip': '79.207.125.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T18:16:38.122865', 'updated_at': '2025-10-22T18:16:38.122865', 'dns_server_address': '79.207.125.66', 'tags': [], 'project_id': 'a5577614b55d4bcdbe07f2f03a97c801'}}
2025-10-22 18:16:38,297 - INFO - Created VN ctest-vn-24572386
2025-10-22 18:16:38,354 - DEBUG - VN ctest-vn-24572386 UUID is 304e99be-2b1e-4023-ac45-a2188a247e7f
2025-10-22 18:16:38,651 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-10446514:ctest-vn-19435663, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-10446514:ctest-vn-24572386, 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-10-22 18:16:39,130 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b19db30b-d40d-408e-b9b1-946fa8e8b816', 'name': 'ctest-vn-19435663', 'tenant_id': 'a5577614b55d4bcdbe07f2f03a97c801', 'project_id': 'a5577614b55d4bcdbe07f2f03a97c801', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e33312c-ae90-4ecd-a0b9-4f26fb29beca'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-10446514', 'ctest-vn-19435663'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-10446514', 'ctest-policy-allow-all-67721592']], 'subnet_ipam': [{'subnet_cidr': '51.67.252.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-22T18:16:36.810403', 'updated_at': '2025-10-22T18:16:37.056106'}}
2025-10-22 18:16:39,502 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '304e99be-2b1e-4023-ac45-a2188a247e7f', 'name': 'ctest-vn-24572386', 'tenant_id': 'a5577614b55d4bcdbe07f2f03a97c801', 'project_id': 'a5577614b55d4bcdbe07f2f03a97c801', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8e2f6767-e929-4228-b4bb-6edbb2d9f52e'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-10446514', 'ctest-vn-24572386'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-10446514', 'ctest-policy-allow-all-67721592']], 'subnet_ipam': [{'subnet_cidr': '79.207.125.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-22T18:16:37.902252', 'updated_at': '2025-10-22T18:16:38.137386'}}
2025-10-22 18:16:39,682 - DEBUG - Requesting: https://10.0.0.240:8082/domains
2025-10-22 18:16:40,038 - DEBUG - Requesting: https://10.0.0.240:8082/domains
2025-10-22 18:16:40,139 - DEBUG - Requesting: https://10.0.0.240:8082/domain/76186d71-3699-4707-98f1-3afabb9db250
2025-10-22 18:16:40,200 - DEBUG - Requesting: https://10.0.0.240:8082/project/a5577614-b55d-4bcd-be07-f2f03a97c801
2025-10-22 18:16:40,303 - DEBUG - Requesting: https://10.0.0.240:8082/virtual-network/b19db30b-d40d-408e-b9b1-946fa8e8b816
2025-10-22 18:16:40,364 - DEBUG - Requesting: https://10.0.0.240:8082/virtual-network/b19db30b-d40d-408e-b9b1-946fa8e8b816
2025-10-22 18:16:40,427 - DEBUG - Requesting: https://10.0.0.240:8082/routing-instance/9f9b24cd-94f1-4ce6-97cd-b54aa5a2f4c6
2025-10-22 18:16:40,489 - DEBUG - Requesting: https://10.0.0.240:8082/routing-instance/9f9b24cd-94f1-4ce6-97cd-b54aa5a2f4c6
2025-10-22 18:16:40,551 - DEBUG - Requesting: https://10.0.0.240:8082/route-target/783fafd2-fe4e-4215-9532-849d2f8151fc
2025-10-22 18:16:40,611 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 18:16:40,611 - DEBUG - Requesting: https://10.0.0.240:8082/virtual-network/b19db30b-d40d-408e-b9b1-946fa8e8b816
2025-10-22 18:16:40,698 - DEBUG - Requesting: https://10.0.0.240:8082/routing-instance/9f9b24cd-94f1-4ce6-97cd-b54aa5a2f4c6
2025-10-22 18:16:40,768 - INFO - Verified VN network id 11 for VN b19db30b-d40d-408e-b9b1-946fa8e8b816
2025-10-22 18:16:40,768 - INFO - Verifications in API Server for VN ctest-vn-19435663 passed
2025-10-22 18:16:40,768 - DEBUG - Requesting: https://10.0.0.240:8082/virtual-network/b19db30b-d40d-408e-b9b1-946fa8e8b816
2025-10-22 18:16:40,825 - DEBUG - Requesting: https://10.0.0.240:8082/routing-instance/9f9b24cd-94f1-4ce6-97cd-b54aa5a2f4c6
2025-10-22 18:16:40,891 - DEBUG - Requesting: https://10.0.0.240:8082/routing-instance/9f9b24cd-94f1-4ce6-97cd-b54aa5a2f4c6
2025-10-22 18:16:40,953 - DEBUG - Requesting: https://10.0.0.240:8082/route-target/783fafd2-fe4e-4215-9532-849d2f8151fc
2025-10-22 18:16:41,079 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-10446514:ctest-vn-19435663', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10446514', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12798582579440468110', 'uuid-lslong': '13380639175190558742'}, 'enable': 'true', 'created': '2025-10-22T18:16:36', 'last-modified': '2025-10-22T18:16:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.977161'}
2025-10-22 18:16:41,134 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 18:16:41,134 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19435663 passed
2025-10-22 18:16:41,134 - DEBUG - ====Verifying policy data for ctest-vn-19435663 in API_Server ======
2025-10-22 18:16:41,134 - DEBUG - Requesting: https://10.0.0.240:8082/domains
2025-10-22 18:16:41,199 - DEBUG - Requesting: https://10.0.0.240:8082/domain/76186d71-3699-4707-98f1-3afabb9db250
2025-10-22 18:16:41,260 - DEBUG - Requesting: https://10.0.0.240:8082/project/a5577614-b55d-4bcd-be07-f2f03a97c801
2025-10-22 18:16:41,360 - DEBUG - Requesting: https://10.0.0.240:8082/virtual-network/b19db30b-d40d-408e-b9b1-946fa8e8b816
2025-10-22 18:16:41,421 - DEBUG - ==>Verifying data for policy with id: 840df933-cb21-4dcd-a07c-445c0dc2d5dd, fqn: ['admin_domain', 'ctest-TestBasicPolicy-10446514', 'ctest-policy-allow-all-67721592']
2025-10-22 18:16:41,421 - INFO - VN ctest-vn-19435663 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 18:16:41,422 - DEBUG - Verifying the vn in opserver
2025-10-22 18:16:41,422 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-10446514:ctest-vn-19435663 virtual network link through opserver 10.0.0.240
2025-10-22 18:16:41,422 - DEBUG - Requesting: https://10.0.0.240:8081/analytics/uves/virtual-networks
2025-10-22 18:16:41,822 - DEBUG - Requesting: https://10.0.0.240:8081/analytics/uves/virtual-networks
2025-10-22 18:16:42,015 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-10446514:ctest-vn-19435663', 'href': 'https://10.0.0.240:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-10446514:ctest-vn-19435663?flat'}
2025-10-22 18:16:42,016 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-10446514:ctest-vn-19435663 is found in opserver
2025-10-22 18:16:42,124 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 18:16:42,179 - DEBUG - VRF ids for VN ctest-vn-19435663: {}
2025-10-22 18:16:42,180 - DEBUG - Requesting: https://10.0.0.240:8082/domains
2025-10-22 18:16:42,245 - DEBUG - Requesting: https://10.0.0.240:8082/domain/76186d71-3699-4707-98f1-3afabb9db250
2025-10-22 18:16:42,321 - DEBUG - Requesting: https://10.0.0.240:8082/project/a5577614-b55d-4bcd-be07-f2f03a97c801
2025-10-22 18:16:42,437 - DEBUG - Requesting: https://10.0.0.240:8082/virtual-network/304e99be-2b1e-4023-ac45-a2188a247e7f
2025-10-22 18:16:42,508 - DEBUG - Requesting: https://10.0.0.240:8082/virtual-network/304e99be-2b1e-4023-ac45-a2188a247e7f
2025-10-22 18:16:42,576 - DEBUG - Requesting: https://10.0.0.240:8082/routing-instance/f941c373-4c66-4cc0-8975-5d1c6919968f
2025-10-22 18:16:42,635 - DEBUG - Requesting: https://10.0.0.240:8082/routing-instance/f941c373-4c66-4cc0-8975-5d1c6919968f
2025-10-22 18:16:42,688 - DEBUG - Requesting: https://10.0.0.240:8082/route-target/08eadb49-4c2f-4539-9bb7-145e5406c3ae
2025-10-22 18:16:42,747 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 18:16:42,747 - DEBUG - Requesting: https://10.0.0.240:8082/virtual-network/304e99be-2b1e-4023-ac45-a2188a247e7f
2025-10-22 18:16:42,819 - DEBUG - Requesting: https://10.0.0.240:8082/routing-instance/f941c373-4c66-4cc0-8975-5d1c6919968f
2025-10-22 18:16:42,905 - INFO - Verified VN network id 12 for VN 304e99be-2b1e-4023-ac45-a2188a247e7f
2025-10-22 18:16:42,906 - INFO - Verifications in API Server for VN ctest-vn-24572386 passed
2025-10-22 18:16:42,906 - DEBUG - Requesting: https://10.0.0.240:8082/virtual-network/304e99be-2b1e-4023-ac45-a2188a247e7f
2025-10-22 18:16:42,986 - DEBUG - Requesting: https://10.0.0.240:8082/routing-instance/f941c373-4c66-4cc0-8975-5d1c6919968f
2025-10-22 18:16:43,055 - DEBUG - Requesting: https://10.0.0.240:8082/routing-instance/f941c373-4c66-4cc0-8975-5d1c6919968f
2025-10-22 18:16:43,121 - DEBUG - Requesting: https://10.0.0.240:8082/route-target/08eadb49-4c2f-4539-9bb7-145e5406c3ae
2025-10-22 18:16:43,252 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-10446514:ctest-vn-24572386', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10446514', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3480888604050210851', 'uuid-lslong': '12413506174197202559'}, 'enable': 'true', 'created': '2025-10-22T18:16:37', 'last-modified': '2025-10-22T18:16:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.774732'}
2025-10-22 18:16:43,316 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 18:16:43,316 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24572386 passed
2025-10-22 18:16:43,317 - DEBUG - ====Verifying policy data for ctest-vn-24572386 in API_Server ======
2025-10-22 18:16:43,317 - DEBUG - Requesting: https://10.0.0.240:8082/domains
2025-10-22 18:16:43,387 - DEBUG - Requesting: https://10.0.0.240:8082/domain/76186d71-3699-4707-98f1-3afabb9db250
2025-10-22 18:16:43,464 - DEBUG - Requesting: https://10.0.0.240:8082/project/a5577614-b55d-4bcd-be07-f2f03a97c801
2025-10-22 18:16:43,564 - DEBUG - Requesting: https://10.0.0.240:8082/virtual-network/304e99be-2b1e-4023-ac45-a2188a247e7f
2025-10-22 18:16:43,629 - DEBUG - ==>Verifying data for policy with id: 840df933-cb21-4dcd-a07c-445c0dc2d5dd, fqn: ['admin_domain', 'ctest-TestBasicPolicy-10446514', 'ctest-policy-allow-all-67721592']
2025-10-22 18:16:43,629 - INFO - VN ctest-vn-24572386 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 18:16:43,629 - DEBUG - Verifying the vn in opserver
2025-10-22 18:16:43,629 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-10446514:ctest-vn-24572386 virtual network link through opserver 10.0.0.240
2025-10-22 18:16:43,629 - DEBUG - Requesting: https://10.0.0.240:8081/analytics/uves/virtual-networks
2025-10-22 18:16:43,691 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-10446514:ctest-vn-24572386', 'href': 'https://10.0.0.240:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-10446514:ctest-vn-24572386?flat'}
2025-10-22 18:16:43,691 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-10446514:ctest-vn-24572386 is found in opserver
2025-10-22 18:16:43,805 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 18:16:43,864 - DEBUG - VRF ids for VN ctest-vn-24572386: {}
2025-10-22 18:16:43,958 - DEBUG - Services list from nova: [