2026-10-06 11:47:49,169 - INFO - Domain Default found not creating
2026-10-06 11:47:49,317 - INFO - Project ctest-TestBasicPolicy-43857245 not found, creating it
2026-10-06 11:47:49,780 - INFO - Created Project:ctest-TestBasicPolicy-43857245, ID : 7ee52b4d-942d-4f17-9c91-2cf58017b2ab
2026-10-06 11:47:51,366 - INFO - ================================================================================
2026-10-06 11:47:51,366 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-10-06 11:47:51,366 - 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-10-06 11:47:51,622 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.25': '0'}} with
2026-10-06 11:47:51,622 - INFO - Initial checks done. Running the testcase now
2026-10-06 11:47:51,622 - INFO -
2026-10-06 11:47:52,220 - DEBUG - Response for create_network : {'network': {'id': '51dcf270-8e50-456c-b3bc-6578595fcb78', 'name': 'ctest-vn-31513360', 'tenant_id': '7ee52b4d942d4f179c912cf58017b2ab', 'project_id': '7ee52b4d942d4f179c912cf58017b2ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43857245', 'ctest-vn-31513360'], 'port_security_enabled': True, 'description': ''}}
2026-10-06 11:47:52,410 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b04b7323-3513-4ca7-a4d5-f89c872e951e', 'name': '', 'tenant_id': '7ee52b4d942d4f179c912cf58017b2ab', 'network_id': '51dcf270-8e50-456c-b3bc-6578595fcb78', 'ip_version': 4, 'cidr': '52.5.191.64/26', 'allocation_pools': [{'start': '52.5.191.66', 'end': '52.5.191.126'}], 'gateway_ip': '52.5.191.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.5.191.66', 'tags': [], 'project_id': '7ee52b4d942d4f179c912cf58017b2ab'}}
2026-10-06 11:47:52,426 - INFO - Created VN ctest-vn-31513360
2026-10-06 11:47:52,477 - DEBUG - VN ctest-vn-31513360 UUID is 51dcf270-8e50-456c-b3bc-6578595fcb78
2026-10-06 11:47:52,812 - DEBUG - Response for create_network : {'network': {'id': '3936c3c6-548f-4ef3-b504-4d705a92d79c', 'name': 'ctest-vn-40608143', 'tenant_id': '7ee52b4d942d4f179c912cf58017b2ab', 'project_id': '7ee52b4d942d4f179c912cf58017b2ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43857245', 'ctest-vn-40608143'], 'port_security_enabled': True, 'description': ''}}
2026-10-06 11:47:52,965 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb5146a2-5785-4a2a-bcda-b7dad7502d61', 'name': '', 'tenant_id': '7ee52b4d942d4f179c912cf58017b2ab', 'network_id': '3936c3c6-548f-4ef3-b504-4d705a92d79c', 'ip_version': 4, 'cidr': '102.144.1.128/26', 'allocation_pools': [{'start': '102.144.1.130', 'end': '102.144.1.190'}], 'gateway_ip': '102.144.1.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.144.1.130', 'tags': [], 'project_id': '7ee52b4d942d4f179c912cf58017b2ab'}}
2026-10-06 11:47:52,979 - INFO - Created VN ctest-vn-40608143
2026-10-06 11:47:53,029 - DEBUG - VN ctest-vn-40608143 UUID is 3936c3c6-548f-4ef3-b504-4d705a92d79c
2026-10-06 11:47:53,177 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43857245:ctest-vn-31513360, 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-43857245:ctest-vn-40608143, 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-10-06 11:47:53,462 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '51dcf270-8e50-456c-b3bc-6578595fcb78', 'name': 'ctest-vn-31513360', 'tenant_id': '7ee52b4d942d4f179c912cf58017b2ab', 'project_id': '7ee52b4d942d4f179c912cf58017b2ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['b04b7323-3513-4ca7-a4d5-f89c872e951e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43857245', 'ctest-vn-31513360'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43857245', 'ctest-policy-allow-all-79454860']], 'subnet_ipam': [{'subnet_cidr': '52.5.191.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-06 11:47:53,696 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3936c3c6-548f-4ef3-b504-4d705a92d79c', 'name': 'ctest-vn-40608143', 'tenant_id': '7ee52b4d942d4f179c912cf58017b2ab', 'project_id': '7ee52b4d942d4f179c912cf58017b2ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['bb5146a2-5785-4a2a-bcda-b7dad7502d61'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43857245', 'ctest-vn-40608143'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43857245', 'ctest-policy-allow-all-79454860']], 'subnet_ipam': [{'subnet_cidr': '102.144.1.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-06 11:47:53,869 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-10-06 11:47:54,234 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-10-06 11:47:54,262 - DEBUG - Requesting: http://10.0.0.163:8082/domain/c37a85e0-04c5-49bc-901e-0717a992399e
2026-10-06 11:47:54,275 - DEBUG - Requesting: http://10.0.0.163:8082/project/7ee52b4d-942d-4f17-9c91-2cf58017b2ab
2026-10-06 11:47:54,345 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/51dcf270-8e50-456c-b3bc-6578595fcb78
2026-10-06 11:47:54,356 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/51dcf270-8e50-456c-b3bc-6578595fcb78
2026-10-06 11:47:54,364 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/8c4709c0-b012-4a73-a592-5c7a76df4e1c
2026-10-06 11:47:54,371 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/8c4709c0-b012-4a73-a592-5c7a76df4e1c
2026-10-06 11:47:54,377 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/918e9617-74ab-4d9a-ba89-e201ac65e65c
2026-10-06 11:47:54,382 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-06 11:47:54,382 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/51dcf270-8e50-456c-b3bc-6578595fcb78
2026-10-06 11:47:54,391 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/8c4709c0-b012-4a73-a592-5c7a76df4e1c
2026-10-06 11:47:54,403 - INFO - Verified VN network id 12 for VN 51dcf270-8e50-456c-b3bc-6578595fcb78
2026-10-06 11:47:54,403 - INFO - Verifications in API Server for VN ctest-vn-31513360 passed
2026-10-06 11:47:54,403 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/51dcf270-8e50-456c-b3bc-6578595fcb78
2026-10-06 11:47:54,411 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/8c4709c0-b012-4a73-a592-5c7a76df4e1c
2026-10-06 11:47:54,416 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/8c4709c0-b012-4a73-a592-5c7a76df4e1c
2026-10-06 11:47:54,422 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/918e9617-74ab-4d9a-ba89-e201ac65e65c
2026-10-06 11:47:54,433 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43857245:ctest-vn-31513360', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43857245', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5898856177186391404', 'uuid-lslong': '12951338195980635000'}, 'enable': 'true', 'created': '2026-10-06T11:47:52', 'last-modified': '2026-10-06T11:47:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.988780'}
2026-10-06 11:47:54,440 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-06 11:47:54,440 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31513360 passed
2026-10-06 11:47:54,440 - DEBUG - ====Verifying policy data for ctest-vn-31513360 in API_Server ======
2026-10-06 11:47:54,440 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-10-06 11:47:54,444 - DEBUG - Requesting: http://10.0.0.163:8082/domain/c37a85e0-04c5-49bc-901e-0717a992399e
2026-10-06 11:47:54,454 - DEBUG - Requesting: http://10.0.0.163:8082/project/7ee52b4d-942d-4f17-9c91-2cf58017b2ab
2026-10-06 11:47:54,525 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/51dcf270-8e50-456c-b3bc-6578595fcb78
2026-10-06 11:47:54,535 - DEBUG - ==>Verifying data for policy with id: 8b0f0966-6333-483e-af5b-27e366baa169, fqn: ['default-domain', 'ctest-TestBasicPolicy-43857245', 'ctest-policy-allow-all-79454860']
2026-10-06 11:47:54,536 - INFO - VN ctest-vn-31513360 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-06 11:47:54,536 - DEBUG - Verifying the vn in opserver
2026-10-06 11:47:54,536 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43857245:ctest-vn-31513360 virtual network link through opserver 10.0.0.163
2026-10-06 11:47:54,536 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-10-06 11:47:54,898 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-10-06 11:47:54,945 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43857245:ctest-vn-31513360', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43857245:ctest-vn-31513360?flat'}
2026-10-06 11:47:54,945 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43857245:ctest-vn-31513360 is found in opserver
2026-10-06 11:47:54,955 - DEBUG - Do not have enough data to verify VN in agent
2026-10-06 11:47:54,960 - DEBUG - VRF ids for VN ctest-vn-31513360: {}
2026-10-06 11:47:54,960 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-10-06 11:47:54,965 - DEBUG - Requesting: http://10.0.0.163:8082/domain/c37a85e0-04c5-49bc-901e-0717a992399e
2026-10-06 11:47:54,974 - DEBUG - Requesting: http://10.0.0.163:8082/project/7ee52b4d-942d-4f17-9c91-2cf58017b2ab
2026-10-06 11:47:55,047 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/3936c3c6-548f-4ef3-b504-4d705a92d79c
2026-10-06 11:47:55,057 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/3936c3c6-548f-4ef3-b504-4d705a92d79c
2026-10-06 11:47:55,065 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/75ea46e7-efb1-47dd-bfec-699e82979c45
2026-10-06 11:47:55,071 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/75ea46e7-efb1-47dd-bfec-699e82979c45
2026-10-06 11:47:55,077 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/9f465b4b-8eeb-4e9b-999d-b925cef856b6
2026-10-06 11:47:55,083 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-06 11:47:55,083 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/3936c3c6-548f-4ef3-b504-4d705a92d79c
2026-10-06 11:47:55,091 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/75ea46e7-efb1-47dd-bfec-699e82979c45
2026-10-06 11:47:55,103 - INFO - Verified VN network id 13 for VN 3936c3c6-548f-4ef3-b504-4d705a92d79c
2026-10-06 11:47:55,104 - INFO - Verifications in API Server for VN ctest-vn-40608143 passed
2026-10-06 11:47:55,104 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/3936c3c6-548f-4ef3-b504-4d705a92d79c
2026-10-06 11:47:55,112 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/75ea46e7-efb1-47dd-bfec-699e82979c45
2026-10-06 11:47:55,117 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/75ea46e7-efb1-47dd-bfec-699e82979c45
2026-10-06 11:47:55,122 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/9f465b4b-8eeb-4e9b-999d-b925cef856b6
2026-10-06 11:47:55,133 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43857245:ctest-vn-40608143', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43857245', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4122697765493886707', 'uuid-lslong': '13043635565723047836'}, 'enable': 'true', 'created': '2026-10-06T11:47:52', 'last-modified': '2026-10-06T11:47:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.459478'}
2026-10-06 11:47:55,139 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-06 11:47:55,139 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40608143 passed
2026-10-06 11:47:55,139 - DEBUG - ====Verifying policy data for ctest-vn-40608143 in API_Server ======
2026-10-06 11:47:55,139 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-10-06 11:47:55,144 - DEBUG - Requesting: http://10.0.0.163:8082/domain/c37a85e0-04c5-49bc-901e-0717a992399e
2026-10-06 11:47:55,153 - DEBUG - Requesting: http://10.0.0.163:8082/project/7ee52b4d-942d-4f17-9c91-2cf58017b2ab
2026-10-06 11:47:55,224 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/3936c3c6-548f-4ef3-b504-4d705a92d79c
2026-10-06 11:47:55,233 - DEBUG - ==>Verifying data for policy with id: 8b0f0966-6333-483e-af5b-27e366baa169, fqn: ['default-domain', 'ctest-TestBasicPolicy-43857245', 'ctest-policy-allow-all-79454860']
2026-10-06 11:47:55,233 - INFO - VN ctest-vn-40608143 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-06 11:47:55,233 - DEBUG - Verifying the vn in opserver
2026-10-06 11:47:55,233 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43857245:ctest-vn-40608143 virtual network link through opserver 10.0.0.163
2026-10-06 11:47:55,234 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-10-06 11:47:55,243 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43857245:ctest-vn-40608143', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43857245:ctest-vn-40608143?flat'}
2026-10-06 11:47:55,243 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43857245:ctest-vn-40608143 is found in opserver
2026-10-06 11:47:55,254 - DEBUG - Do not have enough data to verify VN in agent
2026-10-06 11:47:55,259 - DEBUG - VRF ids for VN ctest-vn-40608143: {}
2026-10-06 11:47:55,314 - DEBUG - Services list from nova: [