2026-01-23 10:38:13,672 - INFO - Domain Default found not creating
2026-01-23 10:38:14,434 - INFO - Project ctest-TestBasicPolicy-91391850 not found, creating it
2026-01-23 10:38:14,894 - INFO - Created Project:ctest-TestBasicPolicy-91391850, ID : 3d5ccd4e-a97b-409f-9bdb-e4d12d8e1e59
2026-01-23 10:38:16,331 - INFO - ================================================================================
2026-01-23 10:38:16,331 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-23 10:38:16,331 - 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
2026-01-23 10:38:16,587 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.192': '0'}} with
2026-01-23 10:38:16,587 - INFO - Initial checks done. Running the testcase now
2026-01-23 10:38:16,587 - INFO -
2026-01-23 10:38:17,133 - DEBUG - Response for create_network : {'network': {'id': 'a63e40ba-1aa0-4c99-99cf-b8452202ab5d', 'name': 'ctest-vn-46836123', 'tenant_id': '3d5ccd4ea97b409f9bdbe4d12d8e1e59', 'project_id': '3d5ccd4ea97b409f9bdbe4d12d8e1e59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91391850', 'ctest-vn-46836123'], 'port_security_enabled': True, 'description': ''}}
2026-01-23 10:38:17,294 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c52e200-c0c5-4714-abd4-bef7eaeadd0b', 'name': '', 'tenant_id': '3d5ccd4ea97b409f9bdbe4d12d8e1e59', 'network_id': 'a63e40ba-1aa0-4c99-99cf-b8452202ab5d', 'ip_version': 4, 'cidr': '156.52.101.192/26', 'allocation_pools': [{'start': '156.52.101.194', 'end': '156.52.101.254'}], 'gateway_ip': '156.52.101.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.52.101.194', 'tags': [], 'project_id': '3d5ccd4ea97b409f9bdbe4d12d8e1e59'}}
2026-01-23 10:38:17,311 - INFO - Created VN ctest-vn-46836123
2026-01-23 10:38:17,366 - DEBUG - VN ctest-vn-46836123 UUID is a63e40ba-1aa0-4c99-99cf-b8452202ab5d
2026-01-23 10:38:17,671 - DEBUG - Response for create_network : {'network': {'id': 'f3f66a92-cf2d-48e8-8416-55eae224fb63', 'name': 'ctest-vn-14899791', 'tenant_id': '3d5ccd4ea97b409f9bdbe4d12d8e1e59', 'project_id': '3d5ccd4ea97b409f9bdbe4d12d8e1e59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91391850', 'ctest-vn-14899791'], 'port_security_enabled': True, 'description': ''}}
2026-01-23 10:38:17,849 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0b47cc3-bde0-4e64-a542-0a33dbef5d7e', 'name': '', 'tenant_id': '3d5ccd4ea97b409f9bdbe4d12d8e1e59', 'network_id': 'f3f66a92-cf2d-48e8-8416-55eae224fb63', 'ip_version': 4, 'cidr': '170.55.90.64/26', 'allocation_pools': [{'start': '170.55.90.66', 'end': '170.55.90.126'}], 'gateway_ip': '170.55.90.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.55.90.66', 'tags': [], 'project_id': '3d5ccd4ea97b409f9bdbe4d12d8e1e59'}}
2026-01-23 10:38:17,867 - INFO - Created VN ctest-vn-14899791
2026-01-23 10:38:17,918 - DEBUG - VN ctest-vn-14899791 UUID is f3f66a92-cf2d-48e8-8416-55eae224fb63
2026-01-23 10:38:18,066 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91391850:ctest-vn-46836123, 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-91391850:ctest-vn-14899791, 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]
2026-01-23 10:38:18,357 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a63e40ba-1aa0-4c99-99cf-b8452202ab5d', 'name': 'ctest-vn-46836123', 'tenant_id': '3d5ccd4ea97b409f9bdbe4d12d8e1e59', 'project_id': '3d5ccd4ea97b409f9bdbe4d12d8e1e59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9c52e200-c0c5-4714-abd4-bef7eaeadd0b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91391850', 'ctest-vn-46836123'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91391850', 'ctest-policy-allow-all-11057596']], 'subnet_ipam': [{'subnet_cidr': '156.52.101.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-23 10:38:18,593 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f3f66a92-cf2d-48e8-8416-55eae224fb63', 'name': 'ctest-vn-14899791', 'tenant_id': '3d5ccd4ea97b409f9bdbe4d12d8e1e59', 'project_id': '3d5ccd4ea97b409f9bdbe4d12d8e1e59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0b47cc3-bde0-4e64-a542-0a33dbef5d7e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91391850', 'ctest-vn-14899791'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91391850', 'ctest-policy-allow-all-11057596']], 'subnet_ipam': [{'subnet_cidr': '170.55.90.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-23 10:38:18,762 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-23 10:38:19,056 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-23 10:38:19,085 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2281bc87-c97e-4502-8399-851b8df86e5d
2026-01-23 10:38:19,097 - DEBUG - Requesting: http://10.0.0.22:8082/project/3d5ccd4e-a97b-409f-9bdb-e4d12d8e1e59
2026-01-23 10:38:19,169 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a63e40ba-1aa0-4c99-99cf-b8452202ab5d
2026-01-23 10:38:19,179 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a63e40ba-1aa0-4c99-99cf-b8452202ab5d
2026-01-23 10:38:19,187 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5b44f14e-43a2-4910-870e-fc02f4af4237
2026-01-23 10:38:19,194 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5b44f14e-43a2-4910-870e-fc02f4af4237
2026-01-23 10:38:19,202 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c67d8e7c-22f5-486d-82d5-a84af438e770
2026-01-23 10:38:19,207 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-23 10:38:19,207 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a63e40ba-1aa0-4c99-99cf-b8452202ab5d
2026-01-23 10:38:19,216 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5b44f14e-43a2-4910-870e-fc02f4af4237
2026-01-23 10:38:19,229 - INFO - Verified VN network id 11 for VN a63e40ba-1aa0-4c99-99cf-b8452202ab5d
2026-01-23 10:38:19,229 - INFO - Verifications in API Server for VN ctest-vn-46836123 passed
2026-01-23 10:38:19,229 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a63e40ba-1aa0-4c99-99cf-b8452202ab5d
2026-01-23 10:38:19,237 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5b44f14e-43a2-4910-870e-fc02f4af4237
2026-01-23 10:38:19,242 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5b44f14e-43a2-4910-870e-fc02f4af4237
2026-01-23 10:38:19,248 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c67d8e7c-22f5-486d-82d5-a84af438e770
2026-01-23 10:38:19,258 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91391850:ctest-vn-46836123', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91391850', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11979083226906905753', 'uuid-lslong': '11083279815044934493'}, 'enable': 'true', 'created': '2026-01-23T10:38:17', 'last-modified': '2026-01-23T10:38:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.922707'}
2026-01-23 10:38:19,264 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-23 10:38:19,264 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46836123 passed
2026-01-23 10:38:19,264 - DEBUG - ====Verifying policy data for ctest-vn-46836123 in API_Server ======
2026-01-23 10:38:19,264 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-23 10:38:19,270 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2281bc87-c97e-4502-8399-851b8df86e5d
2026-01-23 10:38:19,281 - DEBUG - Requesting: http://10.0.0.22:8082/project/3d5ccd4e-a97b-409f-9bdb-e4d12d8e1e59
2026-01-23 10:38:19,354 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a63e40ba-1aa0-4c99-99cf-b8452202ab5d
2026-01-23 10:38:19,362 - DEBUG - ==>Verifying data for policy with id: dbd6decb-d78a-40d0-b5cd-8af46e32a883, fqn: ['default-domain', 'ctest-TestBasicPolicy-91391850', 'ctest-policy-allow-all-11057596']
2026-01-23 10:38:19,362 - INFO - VN ctest-vn-46836123 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-23 10:38:19,362 - DEBUG - Verifying the vn in opserver
2026-01-23 10:38:19,362 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91391850:ctest-vn-46836123 virtual network link through opserver 10.0.0.22
2026-01-23 10:38:19,363 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-23 10:38:19,654 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-23 10:38:19,711 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91391850:ctest-vn-46836123', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91391850:ctest-vn-46836123?flat'}
2026-01-23 10:38:19,711 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91391850:ctest-vn-46836123 is found in opserver
2026-01-23 10:38:19,720 - DEBUG - Do not have enough data to verify VN in agent
2026-01-23 10:38:19,724 - DEBUG - VRF ids for VN ctest-vn-46836123: {}
2026-01-23 10:38:19,724 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-23 10:38:19,729 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2281bc87-c97e-4502-8399-851b8df86e5d
2026-01-23 10:38:19,737 - DEBUG - Requesting: http://10.0.0.22:8082/project/3d5ccd4e-a97b-409f-9bdb-e4d12d8e1e59
2026-01-23 10:38:19,808 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f3f66a92-cf2d-48e8-8416-55eae224fb63
2026-01-23 10:38:19,819 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f3f66a92-cf2d-48e8-8416-55eae224fb63
2026-01-23 10:38:19,829 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/55a7196b-78ee-482b-a724-80b072fa919e
2026-01-23 10:38:19,836 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/55a7196b-78ee-482b-a724-80b072fa919e
2026-01-23 10:38:19,843 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e160860f-1704-481e-87e7-e50755176907
2026-01-23 10:38:19,848 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-23 10:38:19,848 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f3f66a92-cf2d-48e8-8416-55eae224fb63
2026-01-23 10:38:19,855 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/55a7196b-78ee-482b-a724-80b072fa919e
2026-01-23 10:38:19,871 - INFO - Verified VN network id 12 for VN f3f66a92-cf2d-48e8-8416-55eae224fb63
2026-01-23 10:38:19,871 - INFO - Verifications in API Server for VN ctest-vn-14899791 passed
2026-01-23 10:38:19,871 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f3f66a92-cf2d-48e8-8416-55eae224fb63
2026-01-23 10:38:19,878 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/55a7196b-78ee-482b-a724-80b072fa919e
2026-01-23 10:38:19,884 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/55a7196b-78ee-482b-a724-80b072fa919e
2026-01-23 10:38:19,889 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e160860f-1704-481e-87e7-e50755176907
2026-01-23 10:38:19,899 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91391850:ctest-vn-14899791', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91391850', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17579355374260930792', 'uuid-lslong': '9517889329798904675'}, 'enable': 'true', 'created': '2026-01-23T10:38:17', 'last-modified': '2026-01-23T10:38:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.326369'}
2026-01-23 10:38:19,907 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-23 10:38:19,907 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14899791 passed
2026-01-23 10:38:19,907 - DEBUG - ====Verifying policy data for ctest-vn-14899791 in API_Server ======
2026-01-23 10:38:19,907 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-23 10:38:19,912 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2281bc87-c97e-4502-8399-851b8df86e5d
2026-01-23 10:38:19,921 - DEBUG - Requesting: http://10.0.0.22:8082/project/3d5ccd4e-a97b-409f-9bdb-e4d12d8e1e59
2026-01-23 10:38:19,984 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f3f66a92-cf2d-48e8-8416-55eae224fb63
2026-01-23 10:38:19,993 - DEBUG - ==>Verifying data for policy with id: dbd6decb-d78a-40d0-b5cd-8af46e32a883, fqn: ['default-domain', 'ctest-TestBasicPolicy-91391850', 'ctest-policy-allow-all-11057596']
2026-01-23 10:38:19,994 - INFO - VN ctest-vn-14899791 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-23 10:38:19,994 - DEBUG - Verifying the vn in opserver
2026-01-23 10:38:19,994 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91391850:ctest-vn-14899791 virtual network link through opserver 10.0.0.22
2026-01-23 10:38:19,994 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-23 10:38:20,003 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91391850:ctest-vn-14899791', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91391850:ctest-vn-14899791?flat'}
2026-01-23 10:38:20,003 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91391850:ctest-vn-14899791 is found in opserver
2026-01-23 10:38:20,011 - DEBUG - Do not have enough data to verify VN in agent
2026-01-23 10:38:20,016 - DEBUG - VRF ids for VN ctest-vn-14899791: {}
2026-01-23 10:38:20,079 - DEBUG - Services list from nova: [