2025-10-24 19:42:24,233 - INFO - Domain Default found not creating
2025-10-24 19:42:24,381 - INFO - Project ctest-TestBasicPolicy-92384809 not found, creating it
2025-10-24 19:42:24,816 - INFO - Created Project:ctest-TestBasicPolicy-92384809, ID : 67c6fd37-b5c5-4a12-92e1-88f19fb51b40
2025-10-24 19:42:26,233 - INFO - ================================================================================
2025-10-24 19:42:26,233 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-24 19:42:26,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-24 19:42:26,493 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with
2025-10-24 19:42:26,493 - INFO - Initial checks done. Running the testcase now
2025-10-24 19:42:26,493 - INFO -
2025-10-24 19:42:27,015 - DEBUG - Response for create_network : {'network': {'id': 'a7fbf805-7c50-4850-b069-ac4f11d0e12e', 'name': 'ctest-vn-05694058', 'tenant_id': '67c6fd37b5c54a1292e188f19fb51b40', 'project_id': '67c6fd37b5c54a1292e188f19fb51b40', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92384809', 'ctest-vn-05694058'], 'port_security_enabled': True, 'description': ''}}
2025-10-24 19:42:27,277 - DEBUG - Response for create_subnet : {'subnet': {'id': '6ea48432-91b1-4637-909e-569814a93cb7', 'name': '', 'tenant_id': '67c6fd37b5c54a1292e188f19fb51b40', 'network_id': 'a7fbf805-7c50-4850-b069-ac4f11d0e12e', 'ip_version': 4, 'cidr': '39.88.68.0/26', 'allocation_pools': [{'start': '39.88.68.2', 'end': '39.88.68.62'}], 'gateway_ip': '39.88.68.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.88.68.2', 'tags': [], 'project_id': '67c6fd37b5c54a1292e188f19fb51b40'}}
2025-10-24 19:42:27,298 - INFO - Created VN ctest-vn-05694058
2025-10-24 19:42:27,348 - DEBUG - VN ctest-vn-05694058 UUID is a7fbf805-7c50-4850-b069-ac4f11d0e12e
2025-10-24 19:42:27,643 - DEBUG - Response for create_network : {'network': {'id': 'c2294cd4-757d-45c4-92b6-2751c5c91e2d', 'name': 'ctest-vn-62230919', 'tenant_id': '67c6fd37b5c54a1292e188f19fb51b40', 'project_id': '67c6fd37b5c54a1292e188f19fb51b40', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92384809', 'ctest-vn-62230919'], 'port_security_enabled': True, 'description': ''}}
2025-10-24 19:42:27,839 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e66fe8b1-c6f5-49e9-bec0-dfc13a7f2f4d', 'name': '', 'tenant_id': '67c6fd37b5c54a1292e188f19fb51b40', 'network_id': 'c2294cd4-757d-45c4-92b6-2751c5c91e2d', 'ip_version': 4, 'cidr': '7.190.7.0/26', 'allocation_pools': [{'start': '7.190.7.2', 'end': '7.190.7.62'}], 'gateway_ip': '7.190.7.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.190.7.2', 'tags': [], 'project_id': '67c6fd37b5c54a1292e188f19fb51b40'}}
2025-10-24 19:42:27,856 - INFO - Created VN ctest-vn-62230919
2025-10-24 19:42:27,908 - DEBUG - VN ctest-vn-62230919 UUID is c2294cd4-757d-45c4-92b6-2751c5c91e2d
2025-10-24 19:42:28,052 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92384809:ctest-vn-05694058, 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-92384809:ctest-vn-62230919, 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-24 19:42:28,332 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a7fbf805-7c50-4850-b069-ac4f11d0e12e', 'name': 'ctest-vn-05694058', 'tenant_id': '67c6fd37b5c54a1292e188f19fb51b40', 'project_id': '67c6fd37b5c54a1292e188f19fb51b40', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6ea48432-91b1-4637-909e-569814a93cb7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92384809', 'ctest-vn-05694058'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92384809', 'ctest-policy-allow-all-41733040']], 'subnet_ipam': [{'subnet_cidr': '39.88.68.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-24 19:42:28,558 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c2294cd4-757d-45c4-92b6-2751c5c91e2d', 'name': 'ctest-vn-62230919', 'tenant_id': '67c6fd37b5c54a1292e188f19fb51b40', 'project_id': '67c6fd37b5c54a1292e188f19fb51b40', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e66fe8b1-c6f5-49e9-bec0-dfc13a7f2f4d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92384809', 'ctest-vn-62230919'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92384809', 'ctest-policy-allow-all-41733040']], 'subnet_ipam': [{'subnet_cidr': '7.190.7.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-24 19:42:28,704 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-24 19:42:28,994 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-24 19:42:29,021 - DEBUG - Requesting: http://10.0.0.242:8082/domain/60935b09-8ef8-4054-80ac-d6b63ada9d5e
2025-10-24 19:42:29,032 - DEBUG - Requesting: http://10.0.0.242:8082/project/67c6fd37-b5c5-4a12-92e1-88f19fb51b40
2025-10-24 19:42:29,102 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a7fbf805-7c50-4850-b069-ac4f11d0e12e
2025-10-24 19:42:29,112 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a7fbf805-7c50-4850-b069-ac4f11d0e12e
2025-10-24 19:42:29,121 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/965ca67e-b4f3-42d6-8b73-23734a60b5cc
2025-10-24 19:42:29,128 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/965ca67e-b4f3-42d6-8b73-23734a60b5cc
2025-10-24 19:42:29,134 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/b79c8f87-d897-435f-a6bf-d3d02a6bf970
2025-10-24 19:42:29,141 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-24 19:42:29,141 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a7fbf805-7c50-4850-b069-ac4f11d0e12e
2025-10-24 19:42:29,150 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/965ca67e-b4f3-42d6-8b73-23734a60b5cc
2025-10-24 19:42:29,164 - INFO - Verified VN network id 12 for VN a7fbf805-7c50-4850-b069-ac4f11d0e12e
2025-10-24 19:42:29,164 - INFO - Verifications in API Server for VN ctest-vn-05694058 passed
2025-10-24 19:42:29,164 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a7fbf805-7c50-4850-b069-ac4f11d0e12e
2025-10-24 19:42:29,172 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/965ca67e-b4f3-42d6-8b73-23734a60b5cc
2025-10-24 19:42:29,179 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/965ca67e-b4f3-42d6-8b73-23734a60b5cc
2025-10-24 19:42:29,186 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/b79c8f87-d897-435f-a6bf-d3d02a6bf970
2025-10-24 19:42:29,200 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92384809:ctest-vn-05694058', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92384809', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12104541125932501072', 'uuid-lslong': '12711880878831231278'}, 'enable': 'true', 'created': '2025-10-24T19:42:26', 'last-modified': '2025-10-24T19:42:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.885554'}
2025-10-24 19:42:29,207 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-24 19:42:29,207 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05694058 passed
2025-10-24 19:42:29,207 - DEBUG - ====Verifying policy data for ctest-vn-05694058 in API_Server ======
2025-10-24 19:42:29,207 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-24 19:42:29,212 - DEBUG - Requesting: http://10.0.0.242:8082/domain/60935b09-8ef8-4054-80ac-d6b63ada9d5e
2025-10-24 19:42:29,222 - DEBUG - Requesting: http://10.0.0.242:8082/project/67c6fd37-b5c5-4a12-92e1-88f19fb51b40
2025-10-24 19:42:29,288 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a7fbf805-7c50-4850-b069-ac4f11d0e12e
2025-10-24 19:42:29,297 - DEBUG - ==>Verifying data for policy with id: 3f357f69-6425-4f79-9ac8-bff58bb397bf, fqn: ['default-domain', 'ctest-TestBasicPolicy-92384809', 'ctest-policy-allow-all-41733040']
2025-10-24 19:42:29,297 - INFO - VN ctest-vn-05694058 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-24 19:42:29,297 - DEBUG - Verifying the vn in opserver
2025-10-24 19:42:29,297 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92384809:ctest-vn-05694058 virtual network link through opserver 10.0.0.242
2025-10-24 19:42:29,297 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-24 19:42:29,589 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-24 19:42:29,642 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92384809:ctest-vn-05694058', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92384809:ctest-vn-05694058?flat'}
2025-10-24 19:42:29,642 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92384809:ctest-vn-05694058 is found in opserver
2025-10-24 19:42:29,653 - DEBUG - Do not have enough data to verify VN in agent
2025-10-24 19:42:29,658 - DEBUG - VRF ids for VN ctest-vn-05694058: {}
2025-10-24 19:42:29,658 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-24 19:42:29,663 - DEBUG - Requesting: http://10.0.0.242:8082/domain/60935b09-8ef8-4054-80ac-d6b63ada9d5e
2025-10-24 19:42:29,673 - DEBUG - Requesting: http://10.0.0.242:8082/project/67c6fd37-b5c5-4a12-92e1-88f19fb51b40
2025-10-24 19:42:29,744 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/c2294cd4-757d-45c4-92b6-2751c5c91e2d
2025-10-24 19:42:29,755 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/c2294cd4-757d-45c4-92b6-2751c5c91e2d
2025-10-24 19:42:29,763 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/087bb205-3630-4e12-a9a0-57d434c37949
2025-10-24 19:42:29,770 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/087bb205-3630-4e12-a9a0-57d434c37949
2025-10-24 19:42:29,776 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/67734976-36c0-4bf2-b79b-23ef6ab8253f
2025-10-24 19:42:29,783 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-24 19:42:29,783 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/c2294cd4-757d-45c4-92b6-2751c5c91e2d
2025-10-24 19:42:29,792 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/087bb205-3630-4e12-a9a0-57d434c37949
2025-10-24 19:42:29,807 - INFO - Verified VN network id 13 for VN c2294cd4-757d-45c4-92b6-2751c5c91e2d
2025-10-24 19:42:29,807 - INFO - Verifications in API Server for VN ctest-vn-62230919 passed
2025-10-24 19:42:29,807 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/c2294cd4-757d-45c4-92b6-2751c5c91e2d
2025-10-24 19:42:29,817 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/087bb205-3630-4e12-a9a0-57d434c37949
2025-10-24 19:42:29,824 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/087bb205-3630-4e12-a9a0-57d434c37949
2025-10-24 19:42:29,831 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/67734976-36c0-4bf2-b79b-23ef6ab8253f
2025-10-24 19:42:29,843 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92384809:ctest-vn-62230919', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92384809', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13990798192791078340', 'uuid-lslong': '10571680407462944301'}, 'enable': 'true', 'created': '2025-10-24T19:42:27', 'last-modified': '2025-10-24T19:42:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.307163'}
2025-10-24 19:42:29,848 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-24 19:42:29,849 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62230919 passed
2025-10-24 19:42:29,849 - DEBUG - ====Verifying policy data for ctest-vn-62230919 in API_Server ======
2025-10-24 19:42:29,849 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-24 19:42:29,855 - DEBUG - Requesting: http://10.0.0.242:8082/domain/60935b09-8ef8-4054-80ac-d6b63ada9d5e
2025-10-24 19:42:29,866 - DEBUG - Requesting: http://10.0.0.242:8082/project/67c6fd37-b5c5-4a12-92e1-88f19fb51b40
2025-10-24 19:42:29,938 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/c2294cd4-757d-45c4-92b6-2751c5c91e2d
2025-10-24 19:42:29,947 - DEBUG - ==>Verifying data for policy with id: 3f357f69-6425-4f79-9ac8-bff58bb397bf, fqn: ['default-domain', 'ctest-TestBasicPolicy-92384809', 'ctest-policy-allow-all-41733040']
2025-10-24 19:42:29,947 - INFO - VN ctest-vn-62230919 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-24 19:42:29,947 - DEBUG - Verifying the vn in opserver
2025-10-24 19:42:29,947 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92384809:ctest-vn-62230919 virtual network link through opserver 10.0.0.242
2025-10-24 19:42:29,947 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-24 19:42:29,956 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92384809:ctest-vn-62230919', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92384809:ctest-vn-62230919?flat'}
2025-10-24 19:42:29,956 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92384809:ctest-vn-62230919 is found in opserver
2025-10-24 19:42:29,967 - DEBUG - Do not have enough data to verify VN in agent
2025-10-24 19:42:29,971 - DEBUG - VRF ids for VN ctest-vn-62230919: {}
2025-10-24 19:42:30,025 - DEBUG - Services list from nova: [