2025-12-19 17:26:51,406 - INFO - Domain Default found not creating
2025-12-19 17:26:51,633 - INFO - Project ctest-TestBasicPolicy-14498835 not found, creating it
2025-12-19 17:26:52,113 - INFO - Created Project:ctest-TestBasicPolicy-14498835, ID : 09fc8a73-ee85-496b-9f52-c48550e30e74
2025-12-19 17:26:54,293 - INFO - ================================================================================
2025-12-19 17:26:54,293 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-19 17:26:54,293 - 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-12-19 17:26:54,566 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with
2025-12-19 17:26:54,566 - INFO - Initial checks done. Running the testcase now
2025-12-19 17:26:54,566 - INFO -
2025-12-19 17:26:55,187 - DEBUG - Response for create_network : {'network': {'id': '13542187-91e5-4d4b-8f0a-876c88b03bf6', 'name': 'ctest-vn-09881156', 'tenant_id': '09fc8a73ee85496b9f52c48550e30e74', 'project_id': '09fc8a73ee85496b9f52c48550e30e74', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14498835', 'ctest-vn-09881156'], 'port_security_enabled': True, 'description': ''}}
2025-12-19 17:26:55,348 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c1cb55f-e201-4afa-b2b7-2010ac72018b', 'name': '', 'tenant_id': '09fc8a73ee85496b9f52c48550e30e74', 'network_id': '13542187-91e5-4d4b-8f0a-876c88b03bf6', 'ip_version': 4, 'cidr': '92.211.56.192/26', 'allocation_pools': [{'start': '92.211.56.194', 'end': '92.211.56.254'}], 'gateway_ip': '92.211.56.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.211.56.194', 'tags': [], 'project_id': '09fc8a73ee85496b9f52c48550e30e74'}}
2025-12-19 17:26:55,371 - INFO - Created VN ctest-vn-09881156
2025-12-19 17:26:55,425 - DEBUG - VN ctest-vn-09881156 UUID is 13542187-91e5-4d4b-8f0a-876c88b03bf6
2025-12-19 17:26:55,749 - DEBUG - Response for create_network : {'network': {'id': '9726cb6f-7b3c-4f92-8f44-a41e33032418', 'name': 'ctest-vn-94041164', 'tenant_id': '09fc8a73ee85496b9f52c48550e30e74', 'project_id': '09fc8a73ee85496b9f52c48550e30e74', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14498835', 'ctest-vn-94041164'], 'port_security_enabled': True, 'description': ''}}
2025-12-19 17:26:55,950 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f229297b-4dd7-4297-a1fa-e67b3083aa2f', 'name': '', 'tenant_id': '09fc8a73ee85496b9f52c48550e30e74', 'network_id': '9726cb6f-7b3c-4f92-8f44-a41e33032418', 'ip_version': 4, 'cidr': '28.222.182.0/26', 'allocation_pools': [{'start': '28.222.182.2', 'end': '28.222.182.62'}], 'gateway_ip': '28.222.182.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.222.182.2', 'tags': [], 'project_id': '09fc8a73ee85496b9f52c48550e30e74'}}
2025-12-19 17:26:55,970 - INFO - Created VN ctest-vn-94041164
2025-12-19 17:26:56,024 - DEBUG - VN ctest-vn-94041164 UUID is 9726cb6f-7b3c-4f92-8f44-a41e33032418
2025-12-19 17:26:56,152 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14498835:ctest-vn-09881156, 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-14498835:ctest-vn-94041164, 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-12-19 17:26:56,507 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '13542187-91e5-4d4b-8f0a-876c88b03bf6', 'name': 'ctest-vn-09881156', 'tenant_id': '09fc8a73ee85496b9f52c48550e30e74', 'project_id': '09fc8a73ee85496b9f52c48550e30e74', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8c1cb55f-e201-4afa-b2b7-2010ac72018b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14498835', 'ctest-vn-09881156'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14498835', 'ctest-policy-allow-all-56861254']], 'subnet_ipam': [{'subnet_cidr': '92.211.56.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-19 17:26:56,754 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9726cb6f-7b3c-4f92-8f44-a41e33032418', 'name': 'ctest-vn-94041164', 'tenant_id': '09fc8a73ee85496b9f52c48550e30e74', 'project_id': '09fc8a73ee85496b9f52c48550e30e74', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f229297b-4dd7-4297-a1fa-e67b3083aa2f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14498835', 'ctest-vn-94041164'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14498835', 'ctest-policy-allow-all-56861254']], 'subnet_ipam': [{'subnet_cidr': '28.222.182.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-19 17:26:56,929 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-12-19 17:26:57,228 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-12-19 17:26:57,264 - DEBUG - Requesting: http://10.0.0.22:8082/domain/913f5c00-6bd8-4d9d-83c0-669132c3e27f
2025-12-19 17:26:57,280 - DEBUG - Requesting: http://10.0.0.22:8082/project/09fc8a73-ee85-496b-9f52-c48550e30e74
2025-12-19 17:26:57,354 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/13542187-91e5-4d4b-8f0a-876c88b03bf6
2025-12-19 17:26:57,366 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/13542187-91e5-4d4b-8f0a-876c88b03bf6
2025-12-19 17:26:57,377 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6b37ae88-cca0-4ba3-96bd-87ff14a8fc67
2025-12-19 17:26:57,385 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6b37ae88-cca0-4ba3-96bd-87ff14a8fc67
2025-12-19 17:26:57,394 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3db141e9-8453-438b-acef-bca1e2f7dea0
2025-12-19 17:26:57,402 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-19 17:26:57,402 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/13542187-91e5-4d4b-8f0a-876c88b03bf6
2025-12-19 17:26:57,412 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6b37ae88-cca0-4ba3-96bd-87ff14a8fc67
2025-12-19 17:26:57,430 - INFO - Verified VN network id 12 for VN 13542187-91e5-4d4b-8f0a-876c88b03bf6
2025-12-19 17:26:57,430 - INFO - Verifications in API Server for VN ctest-vn-09881156 passed
2025-12-19 17:26:57,430 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/13542187-91e5-4d4b-8f0a-876c88b03bf6
2025-12-19 17:26:57,441 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6b37ae88-cca0-4ba3-96bd-87ff14a8fc67
2025-12-19 17:26:57,451 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6b37ae88-cca0-4ba3-96bd-87ff14a8fc67
2025-12-19 17:26:57,459 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3db141e9-8453-438b-acef-bca1e2f7dea0
2025-12-19 17:26:57,474 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14498835:ctest-vn-09881156', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14498835', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1392775050916351307', 'uuid-lslong': '10307199597410270198'}, 'enable': 'true', 'created': '2025-12-19T17:26:55', 'last-modified': '2025-12-19T17:26:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.998788'}
2025-12-19 17:26:57,481 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-19 17:26:57,481 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09881156 passed
2025-12-19 17:26:57,481 - DEBUG - ====Verifying policy data for ctest-vn-09881156 in API_Server ======
2025-12-19 17:26:57,481 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-12-19 17:26:57,487 - DEBUG - Requesting: http://10.0.0.22:8082/domain/913f5c00-6bd8-4d9d-83c0-669132c3e27f
2025-12-19 17:26:57,505 - DEBUG - Requesting: http://10.0.0.22:8082/project/09fc8a73-ee85-496b-9f52-c48550e30e74
2025-12-19 17:26:57,589 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/13542187-91e5-4d4b-8f0a-876c88b03bf6
2025-12-19 17:26:57,599 - DEBUG - ==>Verifying data for policy with id: 36a1bbb0-87f0-4822-ad58-454695a468c3, fqn: ['default-domain', 'ctest-TestBasicPolicy-14498835', 'ctest-policy-allow-all-56861254']
2025-12-19 17:26:57,599 - INFO - VN ctest-vn-09881156 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-19 17:26:57,599 - DEBUG - Verifying the vn in opserver
2025-12-19 17:26:57,599 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14498835:ctest-vn-09881156 virtual network link through opserver 10.0.0.22
2025-12-19 17:26:57,599 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-12-19 17:26:57,910 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-12-19 17:26:57,986 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14498835:ctest-vn-09881156', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14498835:ctest-vn-09881156?flat'}
2025-12-19 17:26:57,986 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14498835:ctest-vn-09881156 is found in opserver
2025-12-19 17:26:57,996 - DEBUG - Do not have enough data to verify VN in agent
2025-12-19 17:26:58,001 - DEBUG - VRF ids for VN ctest-vn-09881156: {}
2025-12-19 17:26:58,002 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-12-19 17:26:58,009 - DEBUG - Requesting: http://10.0.0.22:8082/domain/913f5c00-6bd8-4d9d-83c0-669132c3e27f
2025-12-19 17:26:58,025 - DEBUG - Requesting: http://10.0.0.22:8082/project/09fc8a73-ee85-496b-9f52-c48550e30e74
2025-12-19 17:26:58,101 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9726cb6f-7b3c-4f92-8f44-a41e33032418
2025-12-19 17:26:58,114 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9726cb6f-7b3c-4f92-8f44-a41e33032418
2025-12-19 17:26:58,124 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2a92b0cc-c247-41aa-af2c-a502685e40fc
2025-12-19 17:26:58,133 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2a92b0cc-c247-41aa-af2c-a502685e40fc
2025-12-19 17:26:58,142 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/426f21d6-a02c-4656-ba59-998eb9e1ce9f
2025-12-19 17:26:58,151 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-19 17:26:58,151 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9726cb6f-7b3c-4f92-8f44-a41e33032418
2025-12-19 17:26:58,162 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2a92b0cc-c247-41aa-af2c-a502685e40fc
2025-12-19 17:26:58,180 - INFO - Verified VN network id 13 for VN 9726cb6f-7b3c-4f92-8f44-a41e33032418
2025-12-19 17:26:58,180 - INFO - Verifications in API Server for VN ctest-vn-94041164 passed
2025-12-19 17:26:58,180 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9726cb6f-7b3c-4f92-8f44-a41e33032418
2025-12-19 17:26:58,191 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2a92b0cc-c247-41aa-af2c-a502685e40fc
2025-12-19 17:26:58,201 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2a92b0cc-c247-41aa-af2c-a502685e40fc
2025-12-19 17:26:58,210 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/426f21d6-a02c-4656-ba59-998eb9e1ce9f
2025-12-19 17:26:58,225 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14498835:ctest-vn-94041164', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14498835', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10891616428511481746', 'uuid-lslong': '10323556695451837464'}, 'enable': 'true', 'created': '2025-12-19T17:26:55', 'last-modified': '2025-12-19T17:26:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.507696'}
2025-12-19 17:26:58,233 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-19 17:26:58,233 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94041164 passed
2025-12-19 17:26:58,233 - DEBUG - ====Verifying policy data for ctest-vn-94041164 in API_Server ======
2025-12-19 17:26:58,234 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-12-19 17:26:58,241 - DEBUG - Requesting: http://10.0.0.22:8082/domain/913f5c00-6bd8-4d9d-83c0-669132c3e27f
2025-12-19 17:26:58,255 - DEBUG - Requesting: http://10.0.0.22:8082/project/09fc8a73-ee85-496b-9f52-c48550e30e74
2025-12-19 17:26:58,332 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9726cb6f-7b3c-4f92-8f44-a41e33032418
2025-12-19 17:26:58,342 - DEBUG - ==>Verifying data for policy with id: 36a1bbb0-87f0-4822-ad58-454695a468c3, fqn: ['default-domain', 'ctest-TestBasicPolicy-14498835', 'ctest-policy-allow-all-56861254']
2025-12-19 17:26:58,342 - INFO - VN ctest-vn-94041164 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-19 17:26:58,342 - DEBUG - Verifying the vn in opserver
2025-12-19 17:26:58,342 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14498835:ctest-vn-94041164 virtual network link through opserver 10.0.0.22
2025-12-19 17:26:58,342 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-12-19 17:26:58,354 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14498835:ctest-vn-94041164', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14498835:ctest-vn-94041164?flat'}
2025-12-19 17:26:58,354 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14498835:ctest-vn-94041164 is found in opserver
2025-12-19 17:26:58,366 - DEBUG - Do not have enough data to verify VN in agent
2025-12-19 17:26:58,372 - DEBUG - VRF ids for VN ctest-vn-94041164: {}
2025-12-19 17:26:58,441 - DEBUG - Services list from nova: [