2025-10-21 16:28:43,352 - INFO - Domain Default found not creating
2025-10-21 16:28:43,679 - INFO - Project ctest-TestBasicPolicy-40301034 not found, creating it
2025-10-21 16:28:44,311 - INFO - Created Project:ctest-TestBasicPolicy-40301034, ID : 8ecdde03-50a6-40fa-9691-d0a50095f62f
2025-10-21 16:28:46,233 - INFO - ================================================================================
2025-10-21 16:28:46,233 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-21 16:28:46,233 - 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-21 16:28:46,559 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-21 16:28:46,560 - INFO - Initial checks done. Running the testcase now
2025-10-21 16:28:46,560 - INFO -
2025-10-21 16:28:47,308 - DEBUG - Response for create_network : {'network': {'id': '85aeb4e6-b10f-4b5e-a906-1cc9dc5ef1ee', 'name': 'ctest-vn-73191200', 'tenant_id': '8ecdde0350a640fa9691d0a50095f62f', 'project_id': '8ecdde0350a640fa9691d0a50095f62f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40301034', 'ctest-vn-73191200'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 16:28:47,571 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0d25ae2-f437-4c19-8559-3809d0a20ed0', 'name': '', 'tenant_id': '8ecdde0350a640fa9691d0a50095f62f', 'network_id': '85aeb4e6-b10f-4b5e-a906-1cc9dc5ef1ee', 'ip_version': 4, 'cidr': '104.43.177.0/26', 'allocation_pools': [{'start': '104.43.177.2', 'end': '104.43.177.62'}], 'gateway_ip': '104.43.177.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.43.177.2', 'tags': [], 'project_id': '8ecdde0350a640fa9691d0a50095f62f'}}
2025-10-21 16:28:47,592 - INFO - Created VN ctest-vn-73191200
2025-10-21 16:28:47,647 - DEBUG - VN ctest-vn-73191200 UUID is 85aeb4e6-b10f-4b5e-a906-1cc9dc5ef1ee
2025-10-21 16:28:48,095 - DEBUG - Response for create_network : {'network': {'id': 'bc6b264c-1eaf-4913-929e-b2a8245bca87', 'name': 'ctest-vn-57117078', 'tenant_id': '8ecdde0350a640fa9691d0a50095f62f', 'project_id': '8ecdde0350a640fa9691d0a50095f62f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40301034', 'ctest-vn-57117078'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 16:28:48,273 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d2bce7c-9919-4a70-a4ce-856362a527e0', 'name': '', 'tenant_id': '8ecdde0350a640fa9691d0a50095f62f', 'network_id': 'bc6b264c-1eaf-4913-929e-b2a8245bca87', 'ip_version': 4, 'cidr': '221.21.53.0/26', 'allocation_pools': [{'start': '221.21.53.2', 'end': '221.21.53.62'}], 'gateway_ip': '221.21.53.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.21.53.2', 'tags': [], 'project_id': '8ecdde0350a640fa9691d0a50095f62f'}}
2025-10-21 16:28:48,294 - INFO - Created VN ctest-vn-57117078
2025-10-21 16:28:48,347 - DEBUG - VN ctest-vn-57117078 UUID is bc6b264c-1eaf-4913-929e-b2a8245bca87
2025-10-21 16:28:48,484 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40301034:ctest-vn-73191200, 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-40301034:ctest-vn-57117078, 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-21 16:28:48,881 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '85aeb4e6-b10f-4b5e-a906-1cc9dc5ef1ee', 'name': 'ctest-vn-73191200', 'tenant_id': '8ecdde0350a640fa9691d0a50095f62f', 'project_id': '8ecdde0350a640fa9691d0a50095f62f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0d25ae2-f437-4c19-8559-3809d0a20ed0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40301034', 'ctest-vn-73191200'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40301034', 'ctest-policy-allow-all-72554328']], 'subnet_ipam': [{'subnet_cidr': '104.43.177.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 16:28:49,155 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bc6b264c-1eaf-4913-929e-b2a8245bca87', 'name': 'ctest-vn-57117078', 'tenant_id': '8ecdde0350a640fa9691d0a50095f62f', 'project_id': '8ecdde0350a640fa9691d0a50095f62f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2d2bce7c-9919-4a70-a4ce-856362a527e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40301034', 'ctest-vn-57117078'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40301034', 'ctest-policy-allow-all-72554328']], 'subnet_ipam': [{'subnet_cidr': '221.21.53.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 16:28:49,307 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 16:28:49,611 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 16:28:49,650 - DEBUG - Requesting: http://10.0.0.254:8082/domain/572e6c3c-b47f-408f-a718-2d4ad77686ae
2025-10-21 16:28:49,678 - DEBUG - Requesting: http://10.0.0.254:8082/project/8ecdde03-50a6-40fa-9691-d0a50095f62f
2025-10-21 16:28:49,764 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/85aeb4e6-b10f-4b5e-a906-1cc9dc5ef1ee
2025-10-21 16:28:49,780 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/85aeb4e6-b10f-4b5e-a906-1cc9dc5ef1ee
2025-10-21 16:28:49,793 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/18a54402-e59d-4691-93da-c5e6ff32f4a7
2025-10-21 16:28:49,805 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/18a54402-e59d-4691-93da-c5e6ff32f4a7
2025-10-21 16:28:49,818 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8cb7b7c6-354a-4e13-a9eb-46739c1899ac
2025-10-21 16:28:49,830 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 16:28:49,830 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/85aeb4e6-b10f-4b5e-a906-1cc9dc5ef1ee
2025-10-21 16:28:49,846 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/18a54402-e59d-4691-93da-c5e6ff32f4a7
2025-10-21 16:28:49,869 - INFO - Verified VN network id 11 for VN 85aeb4e6-b10f-4b5e-a906-1cc9dc5ef1ee
2025-10-21 16:28:49,869 - INFO - Verifications in API Server for VN ctest-vn-73191200 passed
2025-10-21 16:28:49,869 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/85aeb4e6-b10f-4b5e-a906-1cc9dc5ef1ee
2025-10-21 16:28:49,885 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/18a54402-e59d-4691-93da-c5e6ff32f4a7
2025-10-21 16:28:49,897 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/18a54402-e59d-4691-93da-c5e6ff32f4a7
2025-10-21 16:28:49,909 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8cb7b7c6-354a-4e13-a9eb-46739c1899ac
2025-10-21 16:28:49,927 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40301034:ctest-vn-73191200', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40301034', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9632835555898116958', 'uuid-lslong': '12179453895581299182'}, 'enable': 'true', 'created': '2025-10-21T16:28:47', 'last-modified': '2025-10-21T16:28:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.082620'}
2025-10-21 16:28:49,933 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 16:28:49,934 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73191200 passed
2025-10-21 16:28:49,934 - DEBUG - ====Verifying policy data for ctest-vn-73191200 in API_Server ======
2025-10-21 16:28:49,934 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 16:28:49,940 - DEBUG - Requesting: http://10.0.0.254:8082/domain/572e6c3c-b47f-408f-a718-2d4ad77686ae
2025-10-21 16:28:49,952 - DEBUG - Requesting: http://10.0.0.254:8082/project/8ecdde03-50a6-40fa-9691-d0a50095f62f
2025-10-21 16:28:50,032 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/85aeb4e6-b10f-4b5e-a906-1cc9dc5ef1ee
2025-10-21 16:28:50,044 - DEBUG - ==>Verifying data for policy with id: d8d9afd8-0809-47da-beaa-4b930b3b83ab, fqn: ['default-domain', 'ctest-TestBasicPolicy-40301034', 'ctest-policy-allow-all-72554328']
2025-10-21 16:28:50,044 - INFO - VN ctest-vn-73191200 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 16:28:50,044 - DEBUG - Verifying the vn in opserver
2025-10-21 16:28:50,044 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40301034:ctest-vn-73191200 virtual network link through opserver 10.0.0.254
2025-10-21 16:28:50,044 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-21 16:28:50,351 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-21 16:28:50,464 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40301034:ctest-vn-73191200', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40301034:ctest-vn-73191200?flat'}
2025-10-21 16:28:50,464 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40301034:ctest-vn-73191200 is found in opserver
2025-10-21 16:28:50,487 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 16:28:50,496 - DEBUG - VRF ids for VN ctest-vn-73191200: {}
2025-10-21 16:28:50,496 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 16:28:50,505 - DEBUG - Requesting: http://10.0.0.254:8082/domain/572e6c3c-b47f-408f-a718-2d4ad77686ae
2025-10-21 16:28:50,520 - DEBUG - Requesting: http://10.0.0.254:8082/project/8ecdde03-50a6-40fa-9691-d0a50095f62f
2025-10-21 16:28:50,609 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bc6b264c-1eaf-4913-929e-b2a8245bca87
2025-10-21 16:28:50,625 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bc6b264c-1eaf-4913-929e-b2a8245bca87
2025-10-21 16:28:50,639 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c81fc421-ac38-48ee-ac00-b7ab0641644c
2025-10-21 16:28:50,649 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c81fc421-ac38-48ee-ac00-b7ab0641644c
2025-10-21 16:28:50,658 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/eea93033-7a0e-4705-92aa-35cecd48e242
2025-10-21 16:28:50,667 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 16:28:50,667 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bc6b264c-1eaf-4913-929e-b2a8245bca87
2025-10-21 16:28:50,679 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c81fc421-ac38-48ee-ac00-b7ab0641644c
2025-10-21 16:28:50,697 - INFO - Verified VN network id 12 for VN bc6b264c-1eaf-4913-929e-b2a8245bca87
2025-10-21 16:28:50,697 - INFO - Verifications in API Server for VN ctest-vn-57117078 passed
2025-10-21 16:28:50,697 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bc6b264c-1eaf-4913-929e-b2a8245bca87
2025-10-21 16:28:50,708 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c81fc421-ac38-48ee-ac00-b7ab0641644c
2025-10-21 16:28:50,715 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c81fc421-ac38-48ee-ac00-b7ab0641644c
2025-10-21 16:28:50,725 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/eea93033-7a0e-4705-92aa-35cecd48e242
2025-10-21 16:28:50,744 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40301034:ctest-vn-57117078', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40301034', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13576987610012666131', 'uuid-lslong': '10565078211092007559'}, 'enable': 'true', 'created': '2025-10-21T16:28:48', 'last-modified': '2025-10-21T16:28:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.635433'}
2025-10-21 16:28:50,750 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 16:28:50,750 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57117078 passed
2025-10-21 16:28:50,751 - DEBUG - ====Verifying policy data for ctest-vn-57117078 in API_Server ======
2025-10-21 16:28:50,751 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 16:28:50,757 - DEBUG - Requesting: http://10.0.0.254:8082/domain/572e6c3c-b47f-408f-a718-2d4ad77686ae
2025-10-21 16:28:50,771 - DEBUG - Requesting: http://10.0.0.254:8082/project/8ecdde03-50a6-40fa-9691-d0a50095f62f
2025-10-21 16:28:50,854 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bc6b264c-1eaf-4913-929e-b2a8245bca87
2025-10-21 16:28:50,867 - DEBUG - ==>Verifying data for policy with id: d8d9afd8-0809-47da-beaa-4b930b3b83ab, fqn: ['default-domain', 'ctest-TestBasicPolicy-40301034', 'ctest-policy-allow-all-72554328']
2025-10-21 16:28:50,867 - INFO - VN ctest-vn-57117078 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 16:28:50,867 - DEBUG - Verifying the vn in opserver
2025-10-21 16:28:50,867 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40301034:ctest-vn-57117078 virtual network link through opserver 10.0.0.254
2025-10-21 16:28:50,867 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-21 16:28:50,880 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40301034:ctest-vn-57117078', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40301034:ctest-vn-57117078?flat'}
2025-10-21 16:28:50,880 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40301034:ctest-vn-57117078 is found in opserver
2025-10-21 16:28:50,892 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 16:28:50,899 - DEBUG - VRF ids for VN ctest-vn-57117078: {}
2025-10-21 16:28:50,978 - DEBUG - Services list from nova: [