2025-10-08 19:22:37,148 - INFO - Domain Default found not creating
2025-10-08 19:22:37,296 - INFO - Project ctest-TestBasicPolicy-09858688 not found, creating it
2025-10-08 19:22:37,744 - INFO - Created Project:ctest-TestBasicPolicy-09858688, ID : 4da0be8c-72d7-4964-8e53-80c0057c10eb
2025-10-08 19:22:39,184 - INFO - ================================================================================
2025-10-08 19:22:39,184 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-08 19:22:39,185 - 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-08 19:22:39,440 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.193': '0'}} with
2025-10-08 19:22:39,440 - INFO - Initial checks done. Running the testcase now
2025-10-08 19:22:39,440 - INFO -
2025-10-08 19:22:39,979 - DEBUG - Response for create_network : {'network': {'id': 'd8ad1e25-96ff-42de-9ce8-1088448dd49b', 'name': 'ctest-vn-71303623', 'tenant_id': '4da0be8c72d749648e5380c0057c10eb', 'project_id': '4da0be8c72d749648e5380c0057c10eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09858688', 'ctest-vn-71303623'], 'port_security_enabled': True, 'description': ''}}
2025-10-08 19:22:40,198 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de4def55-d165-46ae-9136-b91e6a5f5d55', 'name': '', 'tenant_id': '4da0be8c72d749648e5380c0057c10eb', 'network_id': 'd8ad1e25-96ff-42de-9ce8-1088448dd49b', 'ip_version': 4, 'cidr': '20.134.138.192/26', 'allocation_pools': [{'start': '20.134.138.194', 'end': '20.134.138.254'}], 'gateway_ip': '20.134.138.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.134.138.194', 'tags': [], 'project_id': '4da0be8c72d749648e5380c0057c10eb'}}
2025-10-08 19:22:40,217 - INFO - Created VN ctest-vn-71303623
2025-10-08 19:22:40,270 - DEBUG - VN ctest-vn-71303623 UUID is d8ad1e25-96ff-42de-9ce8-1088448dd49b
2025-10-08 19:22:40,586 - DEBUG - Response for create_network : {'network': {'id': 'f043cfa7-a27a-43d8-b747-cd05e006dde9', 'name': 'ctest-vn-60871630', 'tenant_id': '4da0be8c72d749648e5380c0057c10eb', 'project_id': '4da0be8c72d749648e5380c0057c10eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09858688', 'ctest-vn-60871630'], 'port_security_enabled': True, 'description': ''}}
2025-10-08 19:22:40,769 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce629621-f12e-4228-9cbb-4c139213c152', 'name': '', 'tenant_id': '4da0be8c72d749648e5380c0057c10eb', 'network_id': 'f043cfa7-a27a-43d8-b747-cd05e006dde9', 'ip_version': 4, 'cidr': '101.208.40.64/26', 'allocation_pools': [{'start': '101.208.40.66', 'end': '101.208.40.126'}], 'gateway_ip': '101.208.40.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.208.40.66', 'tags': [], 'project_id': '4da0be8c72d749648e5380c0057c10eb'}}
2025-10-08 19:22:40,786 - INFO - Created VN ctest-vn-60871630
2025-10-08 19:22:40,838 - DEBUG - VN ctest-vn-60871630 UUID is f043cfa7-a27a-43d8-b747-cd05e006dde9
2025-10-08 19:22:40,950 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09858688:ctest-vn-71303623, 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-09858688:ctest-vn-60871630, 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-08 19:22:41,255 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd8ad1e25-96ff-42de-9ce8-1088448dd49b', 'name': 'ctest-vn-71303623', 'tenant_id': '4da0be8c72d749648e5380c0057c10eb', 'project_id': '4da0be8c72d749648e5380c0057c10eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['de4def55-d165-46ae-9136-b91e6a5f5d55'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09858688', 'ctest-vn-71303623'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09858688', 'ctest-policy-allow-all-78356207']], 'subnet_ipam': [{'subnet_cidr': '20.134.138.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-08 19:22:41,488 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f043cfa7-a27a-43d8-b747-cd05e006dde9', 'name': 'ctest-vn-60871630', 'tenant_id': '4da0be8c72d749648e5380c0057c10eb', 'project_id': '4da0be8c72d749648e5380c0057c10eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ce629621-f12e-4228-9cbb-4c139213c152'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09858688', 'ctest-vn-60871630'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09858688', 'ctest-policy-allow-all-78356207']], 'subnet_ipam': [{'subnet_cidr': '101.208.40.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-08 19:22:41,642 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-10-08 19:22:41,954 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-10-08 19:22:41,983 - DEBUG - Requesting: http://10.0.0.57:8082/domain/3392e6ba-8989-4338-b9df-3ece56ec07b3
2025-10-08 19:22:41,995 - DEBUG - Requesting: http://10.0.0.57:8082/project/4da0be8c-72d7-4964-8e53-80c0057c10eb
2025-10-08 19:22:42,071 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d8ad1e25-96ff-42de-9ce8-1088448dd49b
2025-10-08 19:22:42,084 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d8ad1e25-96ff-42de-9ce8-1088448dd49b
2025-10-08 19:22:42,093 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d9ae8da8-9ac5-48ce-8f19-8d8df9eaf4b0
2025-10-08 19:22:42,101 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d9ae8da8-9ac5-48ce-8f19-8d8df9eaf4b0
2025-10-08 19:22:42,109 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/7650c365-4bb9-4ba5-b925-36da92e8a6f1
2025-10-08 19:22:42,116 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-08 19:22:42,116 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d8ad1e25-96ff-42de-9ce8-1088448dd49b
2025-10-08 19:22:42,125 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d9ae8da8-9ac5-48ce-8f19-8d8df9eaf4b0
2025-10-08 19:22:42,140 - INFO - Verified VN network id 11 for VN d8ad1e25-96ff-42de-9ce8-1088448dd49b
2025-10-08 19:22:42,140 - INFO - Verifications in API Server for VN ctest-vn-71303623 passed
2025-10-08 19:22:42,140 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d8ad1e25-96ff-42de-9ce8-1088448dd49b
2025-10-08 19:22:42,149 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d9ae8da8-9ac5-48ce-8f19-8d8df9eaf4b0
2025-10-08 19:22:42,157 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d9ae8da8-9ac5-48ce-8f19-8d8df9eaf4b0
2025-10-08 19:22:42,165 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/7650c365-4bb9-4ba5-b925-36da92e8a6f1
2025-10-08 19:22:42,178 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09858688:ctest-vn-71303623', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09858688', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15613168629959312094', 'uuid-lslong': '11306305041965372571'}, 'enable': 'true', 'created': '2025-10-08T19:22:39', 'last-modified': '2025-10-08T19:22:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.953024'}
2025-10-08 19:22:42,184 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-08 19:22:42,184 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71303623 passed
2025-10-08 19:22:42,184 - DEBUG - ====Verifying policy data for ctest-vn-71303623 in API_Server ======
2025-10-08 19:22:42,184 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-10-08 19:22:42,190 - DEBUG - Requesting: http://10.0.0.57:8082/domain/3392e6ba-8989-4338-b9df-3ece56ec07b3
2025-10-08 19:22:42,204 - DEBUG - Requesting: http://10.0.0.57:8082/project/4da0be8c-72d7-4964-8e53-80c0057c10eb
2025-10-08 19:22:42,279 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d8ad1e25-96ff-42de-9ce8-1088448dd49b
2025-10-08 19:22:42,295 - DEBUG - ==>Verifying data for policy with id: ee1e5ffa-2a38-45bc-b715-e87df136baa0, fqn: ['default-domain', 'ctest-TestBasicPolicy-09858688', 'ctest-policy-allow-all-78356207']
2025-10-08 19:22:42,295 - INFO - VN ctest-vn-71303623 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-08 19:22:42,295 - DEBUG - Verifying the vn in opserver
2025-10-08 19:22:42,295 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09858688:ctest-vn-71303623 virtual network link through opserver 10.0.0.57
2025-10-08 19:22:42,296 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-10-08 19:22:42,590 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-10-08 19:22:42,659 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09858688:ctest-vn-71303623', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09858688:ctest-vn-71303623?flat'}
2025-10-08 19:22:42,659 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09858688:ctest-vn-71303623 is found in opserver
2025-10-08 19:22:42,670 - DEBUG - Do not have enough data to verify VN in agent
2025-10-08 19:22:42,676 - DEBUG - VRF ids for VN ctest-vn-71303623: {}
2025-10-08 19:22:42,676 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-10-08 19:22:42,681 - DEBUG - Requesting: http://10.0.0.57:8082/domain/3392e6ba-8989-4338-b9df-3ece56ec07b3
2025-10-08 19:22:42,692 - DEBUG - Requesting: http://10.0.0.57:8082/project/4da0be8c-72d7-4964-8e53-80c0057c10eb
2025-10-08 19:22:42,766 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/f043cfa7-a27a-43d8-b747-cd05e006dde9
2025-10-08 19:22:42,777 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/f043cfa7-a27a-43d8-b747-cd05e006dde9
2025-10-08 19:22:42,786 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f0b9fe34-f9d9-4f42-80dd-481042fe1983
2025-10-08 19:22:42,793 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f0b9fe34-f9d9-4f42-80dd-481042fe1983
2025-10-08 19:22:42,801 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/95451c66-7e13-4c00-a75d-08526de7382a
2025-10-08 19:22:42,808 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-08 19:22:42,808 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/f043cfa7-a27a-43d8-b747-cd05e006dde9
2025-10-08 19:22:42,817 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f0b9fe34-f9d9-4f42-80dd-481042fe1983
2025-10-08 19:22:42,833 - INFO - Verified VN network id 12 for VN f043cfa7-a27a-43d8-b747-cd05e006dde9
2025-10-08 19:22:42,833 - INFO - Verifications in API Server for VN ctest-vn-60871630 passed
2025-10-08 19:22:42,834 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/f043cfa7-a27a-43d8-b747-cd05e006dde9
2025-10-08 19:22:42,843 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f0b9fe34-f9d9-4f42-80dd-481042fe1983
2025-10-08 19:22:42,850 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f0b9fe34-f9d9-4f42-80dd-481042fe1983
2025-10-08 19:22:42,857 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/95451c66-7e13-4c00-a75d-08526de7382a
2025-10-08 19:22:42,869 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09858688:ctest-vn-60871630', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09858688', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17312909711434728408', 'uuid-lslong': '13206749857404345833'}, 'enable': 'true', 'created': '2025-10-08T19:22:40', 'last-modified': '2025-10-08T19:22:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.407343'}
2025-10-08 19:22:42,877 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-08 19:22:42,877 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60871630 passed
2025-10-08 19:22:42,877 - DEBUG - ====Verifying policy data for ctest-vn-60871630 in API_Server ======
2025-10-08 19:22:42,877 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-10-08 19:22:42,883 - DEBUG - Requesting: http://10.0.0.57:8082/domain/3392e6ba-8989-4338-b9df-3ece56ec07b3
2025-10-08 19:22:42,896 - DEBUG - Requesting: http://10.0.0.57:8082/project/4da0be8c-72d7-4964-8e53-80c0057c10eb
2025-10-08 19:22:42,971 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/f043cfa7-a27a-43d8-b747-cd05e006dde9
2025-10-08 19:22:42,990 - DEBUG - ==>Verifying data for policy with id: ee1e5ffa-2a38-45bc-b715-e87df136baa0, fqn: ['default-domain', 'ctest-TestBasicPolicy-09858688', 'ctest-policy-allow-all-78356207']
2025-10-08 19:22:42,990 - INFO - VN ctest-vn-60871630 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-08 19:22:42,990 - DEBUG - Verifying the vn in opserver
2025-10-08 19:22:42,990 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09858688:ctest-vn-60871630 virtual network link through opserver 10.0.0.57
2025-10-08 19:22:42,990 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-10-08 19:22:43,001 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09858688:ctest-vn-60871630', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09858688:ctest-vn-60871630?flat'}
2025-10-08 19:22:43,001 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09858688:ctest-vn-60871630 is found in opserver
2025-10-08 19:22:43,013 - DEBUG - Do not have enough data to verify VN in agent
2025-10-08 19:22:43,018 - DEBUG - VRF ids for VN ctest-vn-60871630: {}
2025-10-08 19:22:43,079 - DEBUG - Services list from nova: [