2026-06-16 09:41:02,395 - INFO - Domain Default found not creating
2026-06-16 09:41:02,522 - INFO - Project ctest-TestBasicPolicy-45306188 not found, creating it
2026-06-16 09:41:02,982 - INFO - Created Project:ctest-TestBasicPolicy-45306188, ID : 3b1afa2b-477a-4875-b5fe-7fe73b1928d8
2026-06-16 09:41:04,385 - INFO - ================================================================================
2026-06-16 09:41:04,385 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-16 09:41:04,385 - 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-06-16 09:41:04,640 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-06-16 09:41:04,640 - INFO - Initial checks done. Running the testcase now
2026-06-16 09:41:04,640 - INFO -
2026-06-16 09:41:05,164 - DEBUG - Response for create_network : {'network': {'id': 'a5d94f92-4608-458e-957a-914831a24658', 'name': 'ctest-vn-11112887', 'tenant_id': '3b1afa2b477a4875b5fe7fe73b1928d8', 'project_id': '3b1afa2b477a4875b5fe7fe73b1928d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45306188', 'ctest-vn-11112887'], 'port_security_enabled': True, 'description': ''}}
2026-06-16 09:41:05,316 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c5456439-3d06-47f2-9663-f2ae66c3b6ab', 'name': '', 'tenant_id': '3b1afa2b477a4875b5fe7fe73b1928d8', 'network_id': 'a5d94f92-4608-458e-957a-914831a24658', 'ip_version': 4, 'cidr': '177.113.201.0/26', 'allocation_pools': [{'start': '177.113.201.2', 'end': '177.113.201.62'}], 'gateway_ip': '177.113.201.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.113.201.2', 'tags': [], 'project_id': '3b1afa2b477a4875b5fe7fe73b1928d8'}}
2026-06-16 09:41:05,329 - INFO - Created VN ctest-vn-11112887
2026-06-16 09:41:05,384 - DEBUG - VN ctest-vn-11112887 UUID is a5d94f92-4608-458e-957a-914831a24658
2026-06-16 09:41:05,661 - DEBUG - Response for create_network : {'network': {'id': '3de6b975-535c-4018-ac04-7753a386b9e8', 'name': 'ctest-vn-03841879', 'tenant_id': '3b1afa2b477a4875b5fe7fe73b1928d8', 'project_id': '3b1afa2b477a4875b5fe7fe73b1928d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45306188', 'ctest-vn-03841879'], 'port_security_enabled': True, 'description': ''}}
2026-06-16 09:41:05,871 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e462a849-2b5b-405b-a628-0333644721e2', 'name': '', 'tenant_id': '3b1afa2b477a4875b5fe7fe73b1928d8', 'network_id': '3de6b975-535c-4018-ac04-7753a386b9e8', 'ip_version': 4, 'cidr': '120.180.175.192/26', 'allocation_pools': [{'start': '120.180.175.194', 'end': '120.180.175.254'}], 'gateway_ip': '120.180.175.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.180.175.194', 'tags': [], 'project_id': '3b1afa2b477a4875b5fe7fe73b1928d8'}}
2026-06-16 09:41:05,886 - INFO - Created VN ctest-vn-03841879
2026-06-16 09:41:05,936 - DEBUG - VN ctest-vn-03841879 UUID is 3de6b975-535c-4018-ac04-7753a386b9e8
2026-06-16 09:41:06,084 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45306188:ctest-vn-11112887, 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-45306188:ctest-vn-03841879, 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-06-16 09:41:06,379 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a5d94f92-4608-458e-957a-914831a24658', 'name': 'ctest-vn-11112887', 'tenant_id': '3b1afa2b477a4875b5fe7fe73b1928d8', 'project_id': '3b1afa2b477a4875b5fe7fe73b1928d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c5456439-3d06-47f2-9663-f2ae66c3b6ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45306188', 'ctest-vn-11112887'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45306188', 'ctest-policy-allow-all-60159968']], 'subnet_ipam': [{'subnet_cidr': '177.113.201.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-16 09:41:06,613 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3de6b975-535c-4018-ac04-7753a386b9e8', 'name': 'ctest-vn-03841879', 'tenant_id': '3b1afa2b477a4875b5fe7fe73b1928d8', 'project_id': '3b1afa2b477a4875b5fe7fe73b1928d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e462a849-2b5b-405b-a628-0333644721e2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45306188', 'ctest-vn-03841879'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45306188', 'ctest-policy-allow-all-60159968']], 'subnet_ipam': [{'subnet_cidr': '120.180.175.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-16 09:41:06,776 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-16 09:41:07,088 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-16 09:41:07,109 - DEBUG - Requesting: http://10.0.0.50:8082/domain/92cc2983-65e4-4c00-be14-d1699b781629
2026-06-16 09:41:07,120 - DEBUG - Requesting: http://10.0.0.50:8082/project/3b1afa2b-477a-4875-b5fe-7fe73b1928d8
2026-06-16 09:41:07,185 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a5d94f92-4608-458e-957a-914831a24658
2026-06-16 09:41:07,195 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a5d94f92-4608-458e-957a-914831a24658
2026-06-16 09:41:07,202 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/04d7928a-2fa5-41a3-b150-4980ef4d1f43
2026-06-16 09:41:07,208 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/04d7928a-2fa5-41a3-b150-4980ef4d1f43
2026-06-16 09:41:07,212 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a04f78bf-832c-48aa-9f01-bf7cd6bc4211
2026-06-16 09:41:07,217 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-16 09:41:07,217 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a5d94f92-4608-458e-957a-914831a24658
2026-06-16 09:41:07,224 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/04d7928a-2fa5-41a3-b150-4980ef4d1f43
2026-06-16 09:41:07,234 - INFO - Verified VN network id 11 for VN a5d94f92-4608-458e-957a-914831a24658
2026-06-16 09:41:07,235 - INFO - Verifications in API Server for VN ctest-vn-11112887 passed
2026-06-16 09:41:07,235 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a5d94f92-4608-458e-957a-914831a24658
2026-06-16 09:41:07,243 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/04d7928a-2fa5-41a3-b150-4980ef4d1f43
2026-06-16 09:41:07,249 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/04d7928a-2fa5-41a3-b150-4980ef4d1f43
2026-06-16 09:41:07,255 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a04f78bf-832c-48aa-9f01-bf7cd6bc4211
2026-06-16 09:41:07,265 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45306188:ctest-vn-11112887', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45306188', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11950670575863088526', 'uuid-lslong': '10771081198066353752'}, 'enable': 'true', 'created': '2026-06-16T09:41:05', 'last-modified': '2026-06-16T09:41:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.912385'}
2026-06-16 09:41:07,270 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-16 09:41:07,271 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11112887 passed
2026-06-16 09:41:07,271 - DEBUG - ====Verifying policy data for ctest-vn-11112887 in API_Server ======
2026-06-16 09:41:07,271 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-16 09:41:07,276 - DEBUG - Requesting: http://10.0.0.50:8082/domain/92cc2983-65e4-4c00-be14-d1699b781629
2026-06-16 09:41:07,285 - DEBUG - Requesting: http://10.0.0.50:8082/project/3b1afa2b-477a-4875-b5fe-7fe73b1928d8
2026-06-16 09:41:07,350 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a5d94f92-4608-458e-957a-914831a24658
2026-06-16 09:41:07,358 - DEBUG - ==>Verifying data for policy with id: cfe2f66e-2038-4373-9107-d6296fce96b6, fqn: ['default-domain', 'ctest-TestBasicPolicy-45306188', 'ctest-policy-allow-all-60159968']
2026-06-16 09:41:07,358 - INFO - VN ctest-vn-11112887 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-16 09:41:07,358 - DEBUG - Verifying the vn in opserver
2026-06-16 09:41:07,358 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45306188:ctest-vn-11112887 virtual network link through opserver 10.0.0.50
2026-06-16 09:41:07,358 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-16 09:41:07,669 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-16 09:41:07,712 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45306188:ctest-vn-11112887', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45306188:ctest-vn-11112887?flat'}
2026-06-16 09:41:07,712 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45306188:ctest-vn-11112887 is found in opserver
2026-06-16 09:41:07,720 - DEBUG - Do not have enough data to verify VN in agent
2026-06-16 09:41:07,723 - DEBUG - VRF ids for VN ctest-vn-11112887: {}
2026-06-16 09:41:07,723 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-16 09:41:07,727 - DEBUG - Requesting: http://10.0.0.50:8082/domain/92cc2983-65e4-4c00-be14-d1699b781629
2026-06-16 09:41:07,736 - DEBUG - Requesting: http://10.0.0.50:8082/project/3b1afa2b-477a-4875-b5fe-7fe73b1928d8
2026-06-16 09:41:07,802 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3de6b975-535c-4018-ac04-7753a386b9e8
2026-06-16 09:41:07,812 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3de6b975-535c-4018-ac04-7753a386b9e8
2026-06-16 09:41:07,819 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/aa20d3e0-dae2-43cf-9f32-7b530d87e613
2026-06-16 09:41:07,825 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/aa20d3e0-dae2-43cf-9f32-7b530d87e613
2026-06-16 09:41:07,829 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/213ab8cc-4ea8-49d2-b493-0af61652b7bd
2026-06-16 09:41:07,834 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-16 09:41:07,834 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3de6b975-535c-4018-ac04-7753a386b9e8
2026-06-16 09:41:07,840 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/aa20d3e0-dae2-43cf-9f32-7b530d87e613
2026-06-16 09:41:07,850 - INFO - Verified VN network id 12 for VN 3de6b975-535c-4018-ac04-7753a386b9e8
2026-06-16 09:41:07,851 - INFO - Verifications in API Server for VN ctest-vn-03841879 passed
2026-06-16 09:41:07,851 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3de6b975-535c-4018-ac04-7753a386b9e8
2026-06-16 09:41:07,858 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/aa20d3e0-dae2-43cf-9f32-7b530d87e613
2026-06-16 09:41:07,865 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/aa20d3e0-dae2-43cf-9f32-7b530d87e613
2026-06-16 09:41:07,871 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/213ab8cc-4ea8-49d2-b493-0af61652b7bd
2026-06-16 09:41:07,880 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45306188:ctest-vn-03841879', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45306188', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4460456394517921816', 'uuid-lslong': '12395163275539954152'}, 'enable': 'true', 'created': '2026-06-16T09:41:05', 'last-modified': '2026-06-16T09:41:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.295654'}
2026-06-16 09:41:07,885 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-16 09:41:07,885 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03841879 passed
2026-06-16 09:41:07,885 - DEBUG - ====Verifying policy data for ctest-vn-03841879 in API_Server ======
2026-06-16 09:41:07,885 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-16 09:41:07,890 - DEBUG - Requesting: http://10.0.0.50:8082/domain/92cc2983-65e4-4c00-be14-d1699b781629
2026-06-16 09:41:07,900 - DEBUG - Requesting: http://10.0.0.50:8082/project/3b1afa2b-477a-4875-b5fe-7fe73b1928d8
2026-06-16 09:41:07,969 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3de6b975-535c-4018-ac04-7753a386b9e8
2026-06-16 09:41:07,977 - DEBUG - ==>Verifying data for policy with id: cfe2f66e-2038-4373-9107-d6296fce96b6, fqn: ['default-domain', 'ctest-TestBasicPolicy-45306188', 'ctest-policy-allow-all-60159968']
2026-06-16 09:41:07,977 - INFO - VN ctest-vn-03841879 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-16 09:41:07,977 - DEBUG - Verifying the vn in opserver
2026-06-16 09:41:07,977 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45306188:ctest-vn-03841879 virtual network link through opserver 10.0.0.50
2026-06-16 09:41:07,977 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-16 09:41:07,985 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45306188:ctest-vn-03841879', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45306188:ctest-vn-03841879?flat'}
2026-06-16 09:41:07,985 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45306188:ctest-vn-03841879 is found in opserver
2026-06-16 09:41:07,993 - DEBUG - Do not have enough data to verify VN in agent
2026-06-16 09:41:07,998 - DEBUG - VRF ids for VN ctest-vn-03841879: {}
2026-06-16 09:41:08,058 - DEBUG - Services list from nova: [