2026-01-08 02:09:41,256 - INFO - Domain Default found not creating
2026-01-08 02:09:41,429 - INFO - Project ctest-TestBasicPolicy-36111217 not found, creating it
2026-01-08 02:09:41,893 - INFO - Created Project:ctest-TestBasicPolicy-36111217, ID : 2dca1231-bfc1-41ad-ad98-967db0a38d09
2026-01-08 02:09:43,359 - INFO - ================================================================================
2026-01-08 02:09:43,359 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-08 02:09:43,360 - 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-01-08 02:09:43,613 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.18': '0'}} with
2026-01-08 02:09:43,613 - INFO - Initial checks done. Running the testcase now
2026-01-08 02:09:43,614 - INFO -
2026-01-08 02:09:44,193 - DEBUG - Response for create_network : {'network': {'id': 'f0721ed7-a621-4ae6-823e-19853b150deb', 'name': 'ctest-vn-75296924', 'tenant_id': '2dca1231bfc141adad98967db0a38d09', 'project_id': '2dca1231bfc141adad98967db0a38d09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36111217', 'ctest-vn-75296924'], 'port_security_enabled': True, 'description': ''}}
2026-01-08 02:09:44,420 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9902e37-31ae-4611-9118-ae4f1543b5aa', 'name': '', 'tenant_id': '2dca1231bfc141adad98967db0a38d09', 'network_id': 'f0721ed7-a621-4ae6-823e-19853b150deb', 'ip_version': 4, 'cidr': '85.251.115.0/26', 'allocation_pools': [{'start': '85.251.115.2', 'end': '85.251.115.62'}], 'gateway_ip': '85.251.115.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.251.115.2', 'tags': [], 'project_id': '2dca1231bfc141adad98967db0a38d09'}}
2026-01-08 02:09:44,437 - INFO - Created VN ctest-vn-75296924
2026-01-08 02:09:44,488 - DEBUG - VN ctest-vn-75296924 UUID is f0721ed7-a621-4ae6-823e-19853b150deb
2026-01-08 02:09:44,765 - DEBUG - Response for create_network : {'network': {'id': '0556e7b6-5a04-4ced-8612-d6078194b8a1', 'name': 'ctest-vn-10381866', 'tenant_id': '2dca1231bfc141adad98967db0a38d09', 'project_id': '2dca1231bfc141adad98967db0a38d09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36111217', 'ctest-vn-10381866'], 'port_security_enabled': True, 'description': ''}}
2026-01-08 02:09:44,959 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a103480-0604-41f6-ad93-4cbf44ffbd45', 'name': '', 'tenant_id': '2dca1231bfc141adad98967db0a38d09', 'network_id': '0556e7b6-5a04-4ced-8612-d6078194b8a1', 'ip_version': 4, 'cidr': '108.144.217.64/26', 'allocation_pools': [{'start': '108.144.217.66', 'end': '108.144.217.126'}], 'gateway_ip': '108.144.217.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.144.217.66', 'tags': [], 'project_id': '2dca1231bfc141adad98967db0a38d09'}}
2026-01-08 02:09:44,979 - INFO - Created VN ctest-vn-10381866
2026-01-08 02:09:45,032 - DEBUG - VN ctest-vn-10381866 UUID is 0556e7b6-5a04-4ced-8612-d6078194b8a1
2026-01-08 02:09:45,188 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36111217:ctest-vn-75296924, 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-36111217:ctest-vn-10381866, 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-01-08 02:09:45,479 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f0721ed7-a621-4ae6-823e-19853b150deb', 'name': 'ctest-vn-75296924', 'tenant_id': '2dca1231bfc141adad98967db0a38d09', 'project_id': '2dca1231bfc141adad98967db0a38d09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e9902e37-31ae-4611-9118-ae4f1543b5aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36111217', 'ctest-vn-75296924'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36111217', 'ctest-policy-allow-all-49074346']], 'subnet_ipam': [{'subnet_cidr': '85.251.115.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-08 02:09:45,707 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0556e7b6-5a04-4ced-8612-d6078194b8a1', 'name': 'ctest-vn-10381866', 'tenant_id': '2dca1231bfc141adad98967db0a38d09', 'project_id': '2dca1231bfc141adad98967db0a38d09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a103480-0604-41f6-ad93-4cbf44ffbd45'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36111217', 'ctest-vn-10381866'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36111217', 'ctest-policy-allow-all-49074346']], 'subnet_ipam': [{'subnet_cidr': '108.144.217.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-08 02:09:45,868 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-08 02:09:46,172 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-08 02:09:46,201 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cd468b36-442d-49bf-b5d3-8ada6376a516
2026-01-08 02:09:46,212 - DEBUG - Requesting: http://10.0.0.22:8082/project/2dca1231-bfc1-41ad-ad98-967db0a38d09
2026-01-08 02:09:46,283 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f0721ed7-a621-4ae6-823e-19853b150deb
2026-01-08 02:09:46,292 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f0721ed7-a621-4ae6-823e-19853b150deb
2026-01-08 02:09:46,300 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/db2f7223-6150-4f2c-8b85-62d5849d2fdc
2026-01-08 02:09:46,306 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/db2f7223-6150-4f2c-8b85-62d5849d2fdc
2026-01-08 02:09:46,313 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/775e751f-47dd-4591-bbd9-5b93a5009df1
2026-01-08 02:09:46,319 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-08 02:09:46,319 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f0721ed7-a621-4ae6-823e-19853b150deb
2026-01-08 02:09:46,328 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/db2f7223-6150-4f2c-8b85-62d5849d2fdc
2026-01-08 02:09:46,340 - INFO - Verified VN network id 11 for VN f0721ed7-a621-4ae6-823e-19853b150deb
2026-01-08 02:09:46,340 - INFO - Verifications in API Server for VN ctest-vn-75296924 passed
2026-01-08 02:09:46,341 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f0721ed7-a621-4ae6-823e-19853b150deb
2026-01-08 02:09:46,355 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/db2f7223-6150-4f2c-8b85-62d5849d2fdc
2026-01-08 02:09:46,363 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/db2f7223-6150-4f2c-8b85-62d5849d2fdc
2026-01-08 02:09:46,371 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/775e751f-47dd-4591-bbd9-5b93a5009df1
2026-01-08 02:09:46,383 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36111217:ctest-vn-75296924', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36111217', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17325944628001721062', 'uuid-lslong': '9384966733499272683'}, 'enable': 'true', 'created': '2026-01-08T02:09:44', 'last-modified': '2026-01-08T02:09:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.926595'}
2026-01-08 02:09:46,389 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-08 02:09:46,389 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75296924 passed
2026-01-08 02:09:46,389 - DEBUG - ====Verifying policy data for ctest-vn-75296924 in API_Server ======
2026-01-08 02:09:46,389 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-08 02:09:46,394 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cd468b36-442d-49bf-b5d3-8ada6376a516
2026-01-08 02:09:46,406 - DEBUG - Requesting: http://10.0.0.22:8082/project/2dca1231-bfc1-41ad-ad98-967db0a38d09
2026-01-08 02:09:46,479 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f0721ed7-a621-4ae6-823e-19853b150deb
2026-01-08 02:09:46,489 - DEBUG - ==>Verifying data for policy with id: 3cd18876-c5ad-4aa0-b3e1-c9da4a744287, fqn: ['default-domain', 'ctest-TestBasicPolicy-36111217', 'ctest-policy-allow-all-49074346']
2026-01-08 02:09:46,489 - INFO - VN ctest-vn-75296924 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-08 02:09:46,489 - DEBUG - Verifying the vn in opserver
2026-01-08 02:09:46,489 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36111217:ctest-vn-75296924 virtual network link through opserver 10.0.0.22
2026-01-08 02:09:46,489 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-08 02:09:46,785 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-08 02:09:46,845 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36111217:ctest-vn-75296924', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36111217:ctest-vn-75296924?flat'}
2026-01-08 02:09:46,845 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36111217:ctest-vn-75296924 is found in opserver
2026-01-08 02:09:46,855 - DEBUG - Do not have enough data to verify VN in agent
2026-01-08 02:09:46,860 - DEBUG - VRF ids for VN ctest-vn-75296924: {}
2026-01-08 02:09:46,860 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-08 02:09:46,866 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cd468b36-442d-49bf-b5d3-8ada6376a516
2026-01-08 02:09:46,876 - DEBUG - Requesting: http://10.0.0.22:8082/project/2dca1231-bfc1-41ad-ad98-967db0a38d09
2026-01-08 02:09:46,942 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0556e7b6-5a04-4ced-8612-d6078194b8a1
2026-01-08 02:09:46,952 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0556e7b6-5a04-4ced-8612-d6078194b8a1
2026-01-08 02:09:46,960 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c5635dc1-1126-4419-b49c-b932294031ba
2026-01-08 02:09:46,979 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c5635dc1-1126-4419-b49c-b932294031ba
2026-01-08 02:09:46,986 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0ef5d7e4-7c56-4766-b2f4-c476e1303e85
2026-01-08 02:09:46,993 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-08 02:09:46,993 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0556e7b6-5a04-4ced-8612-d6078194b8a1
2026-01-08 02:09:47,002 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c5635dc1-1126-4419-b49c-b932294031ba
2026-01-08 02:09:47,018 - INFO - Verified VN network id 12 for VN 0556e7b6-5a04-4ced-8612-d6078194b8a1
2026-01-08 02:09:47,018 - INFO - Verifications in API Server for VN ctest-vn-10381866 passed
2026-01-08 02:09:47,018 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0556e7b6-5a04-4ced-8612-d6078194b8a1
2026-01-08 02:09:47,028 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c5635dc1-1126-4419-b49c-b932294031ba
2026-01-08 02:09:47,035 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c5635dc1-1126-4419-b49c-b932294031ba
2026-01-08 02:09:47,041 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0ef5d7e4-7c56-4766-b2f4-c476e1303e85
2026-01-08 02:09:47,054 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36111217:ctest-vn-10381866', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36111217', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '384749588567051501', 'uuid-lslong': '9661019478390257825'}, 'enable': 'true', 'created': '2026-01-08T02:09:44', 'last-modified': '2026-01-08T02:09:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.369593'}
2026-01-08 02:09:47,060 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-08 02:09:47,060 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10381866 passed
2026-01-08 02:09:47,061 - DEBUG - ====Verifying policy data for ctest-vn-10381866 in API_Server ======
2026-01-08 02:09:47,061 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-08 02:09:47,068 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cd468b36-442d-49bf-b5d3-8ada6376a516
2026-01-08 02:09:47,078 - DEBUG - Requesting: http://10.0.0.22:8082/project/2dca1231-bfc1-41ad-ad98-967db0a38d09
2026-01-08 02:09:47,148 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0556e7b6-5a04-4ced-8612-d6078194b8a1
2026-01-08 02:09:47,157 - DEBUG - ==>Verifying data for policy with id: 3cd18876-c5ad-4aa0-b3e1-c9da4a744287, fqn: ['default-domain', 'ctest-TestBasicPolicy-36111217', 'ctest-policy-allow-all-49074346']
2026-01-08 02:09:47,157 - INFO - VN ctest-vn-10381866 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-08 02:09:47,157 - DEBUG - Verifying the vn in opserver
2026-01-08 02:09:47,157 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36111217:ctest-vn-10381866 virtual network link through opserver 10.0.0.22
2026-01-08 02:09:47,157 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-08 02:09:47,165 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36111217:ctest-vn-10381866', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36111217:ctest-vn-10381866?flat'}
2026-01-08 02:09:47,165 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36111217:ctest-vn-10381866 is found in opserver
2026-01-08 02:09:47,173 - DEBUG - Do not have enough data to verify VN in agent
2026-01-08 02:09:47,177 - DEBUG - VRF ids for VN ctest-vn-10381866: {}
2026-01-08 02:09:47,230 - DEBUG - Services list from nova: [