2026-05-26 16:07:47,050 - INFO - Domain Default found not creating
2026-05-26 16:07:47,203 - INFO - Project ctest-TestBasicPolicy-17996449 not found, creating it
2026-05-26 16:07:47,637 - INFO - Created Project:ctest-TestBasicPolicy-17996449, ID : 7d1a35e2-2076-4f48-b08d-e62e25e581ed
2026-05-26 16:07:49,711 - INFO - ================================================================================
2026-05-26 16:07:49,712 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-26 16:07:49,712 - 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-05-26 16:07:49,969 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with
2026-05-26 16:07:49,969 - INFO - Initial checks done. Running the testcase now
2026-05-26 16:07:49,969 - INFO -
2026-05-26 16:07:50,514 - DEBUG - Response for create_network : {'network': {'id': '20398efd-11d9-4df1-9823-fb7ca9de1e39', 'name': 'ctest-vn-17626251', 'tenant_id': '7d1a35e220764f48b08de62e25e581ed', 'project_id': '7d1a35e220764f48b08de62e25e581ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17996449', 'ctest-vn-17626251'], 'port_security_enabled': True, 'description': ''}}
2026-05-26 16:07:50,663 - DEBUG - Response for create_subnet : {'subnet': {'id': '357aeec5-9dfd-4528-a452-28d5c33e2c0c', 'name': '', 'tenant_id': '7d1a35e220764f48b08de62e25e581ed', 'network_id': '20398efd-11d9-4df1-9823-fb7ca9de1e39', 'ip_version': 4, 'cidr': '11.141.123.64/26', 'allocation_pools': [{'start': '11.141.123.66', 'end': '11.141.123.126'}], 'gateway_ip': '11.141.123.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.141.123.66', 'tags': [], 'project_id': '7d1a35e220764f48b08de62e25e581ed'}}
2026-05-26 16:07:50,680 - INFO - Created VN ctest-vn-17626251
2026-05-26 16:07:50,733 - DEBUG - VN ctest-vn-17626251 UUID is 20398efd-11d9-4df1-9823-fb7ca9de1e39
2026-05-26 16:07:51,066 - DEBUG - Response for create_network : {'network': {'id': '17655209-3097-442d-83a1-9a3b32214f2c', 'name': 'ctest-vn-88313894', 'tenant_id': '7d1a35e220764f48b08de62e25e581ed', 'project_id': '7d1a35e220764f48b08de62e25e581ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17996449', 'ctest-vn-88313894'], 'port_security_enabled': True, 'description': ''}}
2026-05-26 16:07:51,250 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d140418-398c-46ad-af3c-83b76833af37', 'name': '', 'tenant_id': '7d1a35e220764f48b08de62e25e581ed', 'network_id': '17655209-3097-442d-83a1-9a3b32214f2c', 'ip_version': 4, 'cidr': '213.127.181.128/26', 'allocation_pools': [{'start': '213.127.181.130', 'end': '213.127.181.190'}], 'gateway_ip': '213.127.181.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.127.181.130', 'tags': [], 'project_id': '7d1a35e220764f48b08de62e25e581ed'}}
2026-05-26 16:07:51,266 - INFO - Created VN ctest-vn-88313894
2026-05-26 16:07:51,317 - DEBUG - VN ctest-vn-88313894 UUID is 17655209-3097-442d-83a1-9a3b32214f2c
2026-05-26 16:07:51,461 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17996449:ctest-vn-17626251, 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-17996449:ctest-vn-88313894, 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-05-26 16:07:51,743 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '20398efd-11d9-4df1-9823-fb7ca9de1e39', 'name': 'ctest-vn-17626251', 'tenant_id': '7d1a35e220764f48b08de62e25e581ed', 'project_id': '7d1a35e220764f48b08de62e25e581ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['357aeec5-9dfd-4528-a452-28d5c33e2c0c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17996449', 'ctest-vn-17626251'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17996449', 'ctest-policy-allow-all-66856310']], 'subnet_ipam': [{'subnet_cidr': '11.141.123.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-26 16:07:51,961 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '17655209-3097-442d-83a1-9a3b32214f2c', 'name': 'ctest-vn-88313894', 'tenant_id': '7d1a35e220764f48b08de62e25e581ed', 'project_id': '7d1a35e220764f48b08de62e25e581ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4d140418-398c-46ad-af3c-83b76833af37'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17996449', 'ctest-vn-88313894'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17996449', 'ctest-policy-allow-all-66856310']], 'subnet_ipam': [{'subnet_cidr': '213.127.181.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-26 16:07:52,116 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-26 16:07:52,408 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-26 16:07:52,436 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aff26475-242c-466d-b46d-129e4259877d
2026-05-26 16:07:52,448 - DEBUG - Requesting: http://10.0.0.38:8082/project/7d1a35e2-2076-4f48-b08d-e62e25e581ed
2026-05-26 16:07:52,518 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/20398efd-11d9-4df1-9823-fb7ca9de1e39
2026-05-26 16:07:52,530 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/20398efd-11d9-4df1-9823-fb7ca9de1e39
2026-05-26 16:07:52,539 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/78468325-c54c-4b69-b1f9-d19142d61cd4
2026-05-26 16:07:52,546 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/78468325-c54c-4b69-b1f9-d19142d61cd4
2026-05-26 16:07:52,552 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/488f6df4-83e5-46f2-a43b-eb457780bcdf
2026-05-26 16:07:52,558 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-26 16:07:52,558 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/20398efd-11d9-4df1-9823-fb7ca9de1e39
2026-05-26 16:07:52,566 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/78468325-c54c-4b69-b1f9-d19142d61cd4
2026-05-26 16:07:52,579 - INFO - Verified VN network id 10 for VN 20398efd-11d9-4df1-9823-fb7ca9de1e39
2026-05-26 16:07:52,580 - INFO - Verifications in API Server for VN ctest-vn-17626251 passed
2026-05-26 16:07:52,580 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/20398efd-11d9-4df1-9823-fb7ca9de1e39
2026-05-26 16:07:52,589 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/78468325-c54c-4b69-b1f9-d19142d61cd4
2026-05-26 16:07:52,596 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/78468325-c54c-4b69-b1f9-d19142d61cd4
2026-05-26 16:07:52,602 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/488f6df4-83e5-46f2-a43b-eb457780bcdf
2026-05-26 16:07:52,611 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17996449:ctest-vn-17626251', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17996449', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2322044300463525361', 'uuid-lslong': '10962882430794341945'}, 'enable': 'true', 'created': '2026-05-26T16:07:50', 'last-modified': '2026-05-26T16:07:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.885317'}
2026-05-26 16:07:52,617 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-26 16:07:52,617 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17626251 passed
2026-05-26 16:07:52,617 - DEBUG - ====Verifying policy data for ctest-vn-17626251 in API_Server ======
2026-05-26 16:07:52,617 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-26 16:07:52,622 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aff26475-242c-466d-b46d-129e4259877d
2026-05-26 16:07:52,632 - DEBUG - Requesting: http://10.0.0.38:8082/project/7d1a35e2-2076-4f48-b08d-e62e25e581ed
2026-05-26 16:07:52,705 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/20398efd-11d9-4df1-9823-fb7ca9de1e39
2026-05-26 16:07:52,713 - DEBUG - ==>Verifying data for policy with id: d87a8495-6bc8-4d92-a875-7271ee3f7b26, fqn: ['default-domain', 'ctest-TestBasicPolicy-17996449', 'ctest-policy-allow-all-66856310']
2026-05-26 16:07:52,713 - INFO - VN ctest-vn-17626251 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-26 16:07:52,713 - DEBUG - Verifying the vn in opserver
2026-05-26 16:07:52,713 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17996449:ctest-vn-17626251 virtual network link through opserver 10.0.0.38
2026-05-26 16:07:52,713 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-05-26 16:07:53,010 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-05-26 16:07:53,076 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17996449:ctest-vn-17626251', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17996449:ctest-vn-17626251?flat'}
2026-05-26 16:07:53,076 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17996449:ctest-vn-17626251 is found in opserver
2026-05-26 16:07:53,087 - DEBUG - Do not have enough data to verify VN in agent
2026-05-26 16:07:53,093 - DEBUG - VRF ids for VN ctest-vn-17626251: {}
2026-05-26 16:07:53,093 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-26 16:07:53,098 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aff26475-242c-466d-b46d-129e4259877d
2026-05-26 16:07:53,109 - DEBUG - Requesting: http://10.0.0.38:8082/project/7d1a35e2-2076-4f48-b08d-e62e25e581ed
2026-05-26 16:07:53,179 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/17655209-3097-442d-83a1-9a3b32214f2c
2026-05-26 16:07:53,191 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/17655209-3097-442d-83a1-9a3b32214f2c
2026-05-26 16:07:53,199 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e71d1750-05a0-4842-99b7-e5fb5741c13c
2026-05-26 16:07:53,206 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e71d1750-05a0-4842-99b7-e5fb5741c13c
2026-05-26 16:07:53,212 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d5678e1f-a14e-4f96-9398-a2b5a0c22606
2026-05-26 16:07:53,219 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-26 16:07:53,219 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/17655209-3097-442d-83a1-9a3b32214f2c
2026-05-26 16:07:53,228 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e71d1750-05a0-4842-99b7-e5fb5741c13c
2026-05-26 16:07:53,242 - INFO - Verified VN network id 11 for VN 17655209-3097-442d-83a1-9a3b32214f2c
2026-05-26 16:07:53,242 - INFO - Verifications in API Server for VN ctest-vn-88313894 passed
2026-05-26 16:07:53,242 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/17655209-3097-442d-83a1-9a3b32214f2c
2026-05-26 16:07:53,254 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e71d1750-05a0-4842-99b7-e5fb5741c13c
2026-05-26 16:07:53,261 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e71d1750-05a0-4842-99b7-e5fb5741c13c
2026-05-26 16:07:53,267 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d5678e1f-a14e-4f96-9398-a2b5a0c22606
2026-05-26 16:07:53,277 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17996449:ctest-vn-88313894', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17996449', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1685843834943521837', 'uuid-lslong': '9485031869253766956'}, 'enable': 'true', 'created': '2026-05-26T16:07:51', 'last-modified': '2026-05-26T16:07:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.331633'}
2026-05-26 16:07:53,282 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-26 16:07:53,282 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88313894 passed
2026-05-26 16:07:53,282 - DEBUG - ====Verifying policy data for ctest-vn-88313894 in API_Server ======
2026-05-26 16:07:53,282 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-26 16:07:53,287 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aff26475-242c-466d-b46d-129e4259877d
2026-05-26 16:07:53,298 - DEBUG - Requesting: http://10.0.0.38:8082/project/7d1a35e2-2076-4f48-b08d-e62e25e581ed
2026-05-26 16:07:53,364 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/17655209-3097-442d-83a1-9a3b32214f2c
2026-05-26 16:07:53,374 - DEBUG - ==>Verifying data for policy with id: d87a8495-6bc8-4d92-a875-7271ee3f7b26, fqn: ['default-domain', 'ctest-TestBasicPolicy-17996449', 'ctest-policy-allow-all-66856310']
2026-05-26 16:07:53,374 - INFO - VN ctest-vn-88313894 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-26 16:07:53,374 - DEBUG - Verifying the vn in opserver
2026-05-26 16:07:53,374 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17996449:ctest-vn-88313894 virtual network link through opserver 10.0.0.38
2026-05-26 16:07:53,374 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-05-26 16:07:53,382 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17996449:ctest-vn-88313894', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17996449:ctest-vn-88313894?flat'}
2026-05-26 16:07:53,383 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17996449:ctest-vn-88313894 is found in opserver
2026-05-26 16:07:53,392 - DEBUG - Do not have enough data to verify VN in agent
2026-05-26 16:07:53,396 - DEBUG - VRF ids for VN ctest-vn-88313894: {}
2026-05-26 16:07:53,453 - DEBUG - Services list from nova: [