2026-05-05 17:17:44,590 - INFO - Domain Default found not creating
2026-05-05 17:17:44,777 - INFO - Project ctest-TestBasicPolicy-79964047 not found, creating it
2026-05-05 17:17:45,262 - INFO - Created Project:ctest-TestBasicPolicy-79964047, ID : 0b72549b-e9f0-41ab-8048-63cabed1c45b
2026-05-05 17:17:46,816 - INFO - ================================================================================
2026-05-05 17:17:46,816 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-05 17:17:46,816 - 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-05 17:17:47,077 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-05-05 17:17:47,077 - INFO - Initial checks done. Running the testcase now
2026-05-05 17:17:47,077 - INFO -
2026-05-05 17:17:47,629 - DEBUG - Response for create_network : {'network': {'id': '00d88645-de35-4084-aa0e-1c9e85747134', 'name': 'ctest-vn-93545253', 'tenant_id': '0b72549be9f041ab804863cabed1c45b', 'project_id': '0b72549be9f041ab804863cabed1c45b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79964047', 'ctest-vn-93545253'], 'port_security_enabled': True, 'description': ''}}
2026-05-05 17:17:47,818 - DEBUG - Response for create_subnet : {'subnet': {'id': '7bcabaa6-862d-4e88-8190-9ac0a3f2331d', 'name': '', 'tenant_id': '0b72549be9f041ab804863cabed1c45b', 'network_id': '00d88645-de35-4084-aa0e-1c9e85747134', 'ip_version': 4, 'cidr': '202.45.41.0/26', 'allocation_pools': [{'start': '202.45.41.2', 'end': '202.45.41.62'}], 'gateway_ip': '202.45.41.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.45.41.2', 'tags': [], 'project_id': '0b72549be9f041ab804863cabed1c45b'}}
2026-05-05 17:17:47,840 - INFO - Created VN ctest-vn-93545253
2026-05-05 17:17:47,895 - DEBUG - VN ctest-vn-93545253 UUID is 00d88645-de35-4084-aa0e-1c9e85747134
2026-05-05 17:17:48,206 - DEBUG - Response for create_network : {'network': {'id': '0c2c2d67-1265-4aa1-b418-1c62d0896584', 'name': 'ctest-vn-95320930', 'tenant_id': '0b72549be9f041ab804863cabed1c45b', 'project_id': '0b72549be9f041ab804863cabed1c45b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79964047', 'ctest-vn-95320930'], 'port_security_enabled': True, 'description': ''}}
2026-05-05 17:17:48,413 - DEBUG - Response for create_subnet : {'subnet': {'id': '4fe0a458-7170-40e3-8da5-cfe3edda4ac9', 'name': '', 'tenant_id': '0b72549be9f041ab804863cabed1c45b', 'network_id': '0c2c2d67-1265-4aa1-b418-1c62d0896584', 'ip_version': 4, 'cidr': '140.139.246.64/26', 'allocation_pools': [{'start': '140.139.246.66', 'end': '140.139.246.126'}], 'gateway_ip': '140.139.246.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.139.246.66', 'tags': [], 'project_id': '0b72549be9f041ab804863cabed1c45b'}}
2026-05-05 17:17:48,431 - INFO - Created VN ctest-vn-95320930
2026-05-05 17:17:48,483 - DEBUG - VN ctest-vn-95320930 UUID is 0c2c2d67-1265-4aa1-b418-1c62d0896584
2026-05-05 17:17:48,599 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79964047:ctest-vn-93545253, 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-79964047:ctest-vn-95320930, 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-05 17:17:48,893 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '00d88645-de35-4084-aa0e-1c9e85747134', 'name': 'ctest-vn-93545253', 'tenant_id': '0b72549be9f041ab804863cabed1c45b', 'project_id': '0b72549be9f041ab804863cabed1c45b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7bcabaa6-862d-4e88-8190-9ac0a3f2331d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79964047', 'ctest-vn-93545253'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79964047', 'ctest-policy-allow-all-09431876']], 'subnet_ipam': [{'subnet_cidr': '202.45.41.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-05 17:17:49,131 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0c2c2d67-1265-4aa1-b418-1c62d0896584', 'name': 'ctest-vn-95320930', 'tenant_id': '0b72549be9f041ab804863cabed1c45b', 'project_id': '0b72549be9f041ab804863cabed1c45b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4fe0a458-7170-40e3-8da5-cfe3edda4ac9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79964047', 'ctest-vn-95320930'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79964047', 'ctest-policy-allow-all-09431876']], 'subnet_ipam': [{'subnet_cidr': '140.139.246.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-05 17:17:49,303 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-05 17:17:49,598 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-05 17:17:49,632 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3341b8ff-0c14-42bb-a083-2736d8c74713
2026-05-05 17:17:49,644 - DEBUG - Requesting: http://10.0.0.38:8082/project/0b72549b-e9f0-41ab-8048-63cabed1c45b
2026-05-05 17:17:49,714 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/00d88645-de35-4084-aa0e-1c9e85747134
2026-05-05 17:17:49,725 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/00d88645-de35-4084-aa0e-1c9e85747134
2026-05-05 17:17:49,736 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6cb462f5-926d-410b-b3d5-a7f018ab8cbb
2026-05-05 17:17:49,746 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6cb462f5-926d-410b-b3d5-a7f018ab8cbb
2026-05-05 17:17:49,753 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/273fc56d-ff93-4a7d-aa46-b70f0fd60818
2026-05-05 17:17:49,762 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-05 17:17:49,762 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/00d88645-de35-4084-aa0e-1c9e85747134
2026-05-05 17:17:49,772 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6cb462f5-926d-410b-b3d5-a7f018ab8cbb
2026-05-05 17:17:49,787 - INFO - Verified VN network id 11 for VN 00d88645-de35-4084-aa0e-1c9e85747134
2026-05-05 17:17:49,788 - INFO - Verifications in API Server for VN ctest-vn-93545253 passed
2026-05-05 17:17:49,788 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/00d88645-de35-4084-aa0e-1c9e85747134
2026-05-05 17:17:49,797 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6cb462f5-926d-410b-b3d5-a7f018ab8cbb
2026-05-05 17:17:49,805 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6cb462f5-926d-410b-b3d5-a7f018ab8cbb
2026-05-05 17:17:49,813 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/273fc56d-ff93-4a7d-aa46-b70f0fd60818
2026-05-05 17:17:49,828 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79964047:ctest-vn-93545253', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79964047', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '60946229608398980', 'uuid-lslong': '12253763103291109684'}, 'enable': 'true', 'created': '2026-05-05T17:17:47', 'last-modified': '2026-05-05T17:17:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.961458'}
2026-05-05 17:17:49,834 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-05 17:17:49,835 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93545253 passed
2026-05-05 17:17:49,835 - DEBUG - ====Verifying policy data for ctest-vn-93545253 in API_Server ======
2026-05-05 17:17:49,835 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-05 17:17:49,842 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3341b8ff-0c14-42bb-a083-2736d8c74713
2026-05-05 17:17:49,853 - DEBUG - Requesting: http://10.0.0.38:8082/project/0b72549b-e9f0-41ab-8048-63cabed1c45b
2026-05-05 17:17:49,929 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/00d88645-de35-4084-aa0e-1c9e85747134
2026-05-05 17:17:49,939 - DEBUG - ==>Verifying data for policy with id: a3585f85-3fab-429d-8a61-5a0cb552d878, fqn: ['default-domain', 'ctest-TestBasicPolicy-79964047', 'ctest-policy-allow-all-09431876']
2026-05-05 17:17:49,939 - INFO - VN ctest-vn-93545253 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-05 17:17:49,939 - DEBUG - Verifying the vn in opserver
2026-05-05 17:17:49,939 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79964047:ctest-vn-93545253 virtual network link through opserver 10.0.0.38
2026-05-05 17:17:49,939 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-05-05 17:17:50,233 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-05-05 17:17:50,302 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79964047:ctest-vn-93545253', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79964047:ctest-vn-93545253?flat'}
2026-05-05 17:17:50,302 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79964047:ctest-vn-93545253 is found in opserver
2026-05-05 17:17:50,312 - DEBUG - Do not have enough data to verify VN in agent
2026-05-05 17:17:50,317 - DEBUG - VRF ids for VN ctest-vn-93545253: {}
2026-05-05 17:17:50,317 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-05 17:17:50,322 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3341b8ff-0c14-42bb-a083-2736d8c74713
2026-05-05 17:17:50,335 - DEBUG - Requesting: http://10.0.0.38:8082/project/0b72549b-e9f0-41ab-8048-63cabed1c45b
2026-05-05 17:17:50,408 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0c2c2d67-1265-4aa1-b418-1c62d0896584
2026-05-05 17:17:50,420 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0c2c2d67-1265-4aa1-b418-1c62d0896584
2026-05-05 17:17:50,429 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38131d92-1eba-473e-a0b2-85164fc3c23f
2026-05-05 17:17:50,436 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38131d92-1eba-473e-a0b2-85164fc3c23f
2026-05-05 17:17:50,443 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b6b40613-570e-4237-ba91-4166ccc88aa2
2026-05-05 17:17:50,451 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-05 17:17:50,451 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0c2c2d67-1265-4aa1-b418-1c62d0896584
2026-05-05 17:17:50,460 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38131d92-1eba-473e-a0b2-85164fc3c23f
2026-05-05 17:17:50,475 - INFO - Verified VN network id 12 for VN 0c2c2d67-1265-4aa1-b418-1c62d0896584
2026-05-05 17:17:50,476 - INFO - Verifications in API Server for VN ctest-vn-95320930 passed
2026-05-05 17:17:50,476 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0c2c2d67-1265-4aa1-b418-1c62d0896584
2026-05-05 17:17:50,484 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38131d92-1eba-473e-a0b2-85164fc3c23f
2026-05-05 17:17:50,492 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38131d92-1eba-473e-a0b2-85164fc3c23f
2026-05-05 17:17:50,499 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b6b40613-570e-4237-ba91-4166ccc88aa2
2026-05-05 17:17:50,514 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79964047:ctest-vn-95320930', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79964047', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '877125948143913633', 'uuid-lslong': '12977153536999122308'}, 'enable': 'true', 'created': '2026-05-05T17:17:48', 'last-modified': '2026-05-05T17:17:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.400590'}
2026-05-05 17:17:50,520 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-05 17:17:50,520 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95320930 passed
2026-05-05 17:17:50,521 - DEBUG - ====Verifying policy data for ctest-vn-95320930 in API_Server ======
2026-05-05 17:17:50,521 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-05 17:17:50,527 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3341b8ff-0c14-42bb-a083-2736d8c74713
2026-05-05 17:17:50,538 - DEBUG - Requesting: http://10.0.0.38:8082/project/0b72549b-e9f0-41ab-8048-63cabed1c45b
2026-05-05 17:17:50,607 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0c2c2d67-1265-4aa1-b418-1c62d0896584
2026-05-05 17:17:50,616 - DEBUG - ==>Verifying data for policy with id: a3585f85-3fab-429d-8a61-5a0cb552d878, fqn: ['default-domain', 'ctest-TestBasicPolicy-79964047', 'ctest-policy-allow-all-09431876']
2026-05-05 17:17:50,616 - INFO - VN ctest-vn-95320930 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-05 17:17:50,616 - DEBUG - Verifying the vn in opserver
2026-05-05 17:17:50,616 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79964047:ctest-vn-95320930 virtual network link through opserver 10.0.0.38
2026-05-05 17:17:50,616 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-05-05 17:17:50,626 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79964047:ctest-vn-95320930', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79964047:ctest-vn-95320930?flat'}
2026-05-05 17:17:50,626 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79964047:ctest-vn-95320930 is found in opserver
2026-05-05 17:17:50,635 - DEBUG - Do not have enough data to verify VN in agent
2026-05-05 17:17:50,639 - DEBUG - VRF ids for VN ctest-vn-95320930: {}
2026-05-05 17:17:50,697 - DEBUG - Services list from nova: [