2026-08-14 08:35:53,329 - INFO - Domain Default found not creating
2026-08-14 08:35:53,524 - INFO - Project ctest-TestBasicPolicy-20551376 not found, creating it
2026-08-14 08:35:54,040 - INFO - Created Project:ctest-TestBasicPolicy-20551376, ID : 31a85335-a9dc-43c2-b9e6-369bc428ff02
2026-08-14 08:35:55,703 - INFO - ================================================================================
2026-08-14 08:35:55,704 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-14 08:35:55,704 - 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-08-14 08:35:55,973 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2026-08-14 08:35:55,973 - INFO - Initial checks done. Running the testcase now
2026-08-14 08:35:55,974 - INFO -
2026-08-14 08:35:56,598 - DEBUG - Response for create_network : {'network': {'id': '55ca738a-ca43-4244-a40d-93be8f046bc2', 'name': 'ctest-vn-73564029', 'tenant_id': '31a85335a9dc43c2b9e6369bc428ff02', 'project_id': '31a85335a9dc43c2b9e6369bc428ff02', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20551376', 'ctest-vn-73564029'], 'port_security_enabled': True, 'description': ''}}
2026-08-14 08:35:56,813 - DEBUG - Response for create_subnet : {'subnet': {'id': '303e42cc-6eb8-42f2-9858-7bdf1a60ee88', 'name': '', 'tenant_id': '31a85335a9dc43c2b9e6369bc428ff02', 'network_id': '55ca738a-ca43-4244-a40d-93be8f046bc2', 'ip_version': 4, 'cidr': '33.61.174.192/26', 'allocation_pools': [{'start': '33.61.174.194', 'end': '33.61.174.254'}], 'gateway_ip': '33.61.174.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.61.174.194', 'tags': [], 'project_id': '31a85335a9dc43c2b9e6369bc428ff02'}}
2026-08-14 08:35:56,830 - INFO - Created VN ctest-vn-73564029
2026-08-14 08:35:56,885 - DEBUG - VN ctest-vn-73564029 UUID is 55ca738a-ca43-4244-a40d-93be8f046bc2
2026-08-14 08:35:57,222 - DEBUG - Response for create_network : {'network': {'id': '69664e9d-9b77-48b7-b8e8-240f0c26eca5', 'name': 'ctest-vn-55539711', 'tenant_id': '31a85335a9dc43c2b9e6369bc428ff02', 'project_id': '31a85335a9dc43c2b9e6369bc428ff02', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20551376', 'ctest-vn-55539711'], 'port_security_enabled': True, 'description': ''}}
2026-08-14 08:35:57,400 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd6fd527d-f4d6-419c-b17f-cad7cc0e5076', 'name': '', 'tenant_id': '31a85335a9dc43c2b9e6369bc428ff02', 'network_id': '69664e9d-9b77-48b7-b8e8-240f0c26eca5', 'ip_version': 4, 'cidr': '51.63.55.64/26', 'allocation_pools': [{'start': '51.63.55.66', 'end': '51.63.55.126'}], 'gateway_ip': '51.63.55.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.63.55.66', 'tags': [], 'project_id': '31a85335a9dc43c2b9e6369bc428ff02'}}
2026-08-14 08:35:57,416 - INFO - Created VN ctest-vn-55539711
2026-08-14 08:35:57,469 - DEBUG - VN ctest-vn-55539711 UUID is 69664e9d-9b77-48b7-b8e8-240f0c26eca5
2026-08-14 08:35:57,621 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20551376:ctest-vn-73564029, 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-20551376:ctest-vn-55539711, 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-08-14 08:35:57,936 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '55ca738a-ca43-4244-a40d-93be8f046bc2', 'name': 'ctest-vn-73564029', 'tenant_id': '31a85335a9dc43c2b9e6369bc428ff02', 'project_id': '31a85335a9dc43c2b9e6369bc428ff02', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['303e42cc-6eb8-42f2-9858-7bdf1a60ee88'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20551376', 'ctest-vn-73564029'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20551376', 'ctest-policy-allow-all-99793076']], 'subnet_ipam': [{'subnet_cidr': '33.61.174.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-14 08:35:58,177 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '69664e9d-9b77-48b7-b8e8-240f0c26eca5', 'name': 'ctest-vn-55539711', 'tenant_id': '31a85335a9dc43c2b9e6369bc428ff02', 'project_id': '31a85335a9dc43c2b9e6369bc428ff02', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d6fd527d-f4d6-419c-b17f-cad7cc0e5076'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20551376', 'ctest-vn-55539711'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20551376', 'ctest-policy-allow-all-99793076']], 'subnet_ipam': [{'subnet_cidr': '51.63.55.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-14 08:35:58,345 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-08-14 08:35:58,664 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-08-14 08:35:58,691 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5accba49-7983-4b8b-bc38-d78e2aa25efc
2026-08-14 08:35:58,703 - DEBUG - Requesting: http://10.0.0.22:8082/project/31a85335-a9dc-43c2-b9e6-369bc428ff02
2026-08-14 08:35:58,779 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/55ca738a-ca43-4244-a40d-93be8f046bc2
2026-08-14 08:35:58,794 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/55ca738a-ca43-4244-a40d-93be8f046bc2
2026-08-14 08:35:58,803 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/70b1ccd6-743a-4cb1-abdd-133c84d67ca3
2026-08-14 08:35:58,812 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/70b1ccd6-743a-4cb1-abdd-133c84d67ca3
2026-08-14 08:35:58,820 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7798c084-89e0-4527-847a-07d5d04bc97f
2026-08-14 08:35:58,827 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-14 08:35:58,827 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/55ca738a-ca43-4244-a40d-93be8f046bc2
2026-08-14 08:35:58,836 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/70b1ccd6-743a-4cb1-abdd-133c84d67ca3
2026-08-14 08:35:58,851 - INFO - Verified VN network id 12 for VN 55ca738a-ca43-4244-a40d-93be8f046bc2
2026-08-14 08:35:58,852 - INFO - Verifications in API Server for VN ctest-vn-73564029 passed
2026-08-14 08:35:58,852 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/55ca738a-ca43-4244-a40d-93be8f046bc2
2026-08-14 08:35:58,864 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/70b1ccd6-743a-4cb1-abdd-133c84d67ca3
2026-08-14 08:35:58,872 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/70b1ccd6-743a-4cb1-abdd-133c84d67ca3
2026-08-14 08:35:58,880 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7798c084-89e0-4527-847a-07d5d04bc97f
2026-08-14 08:35:58,892 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20551376:ctest-vn-73564029', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20551376', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6181880478455513668', 'uuid-lslong': '11821267043569920962'}, 'enable': 'true', 'created': '2026-08-14T08:35:56', 'last-modified': '2026-08-14T08:35:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978611'}
2026-08-14 08:35:58,898 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-14 08:35:58,899 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73564029 passed
2026-08-14 08:35:58,899 - DEBUG - ====Verifying policy data for ctest-vn-73564029 in API_Server ======
2026-08-14 08:35:58,899 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-08-14 08:35:58,905 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5accba49-7983-4b8b-bc38-d78e2aa25efc
2026-08-14 08:35:58,917 - DEBUG - Requesting: http://10.0.0.22:8082/project/31a85335-a9dc-43c2-b9e6-369bc428ff02
2026-08-14 08:35:58,995 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/55ca738a-ca43-4244-a40d-93be8f046bc2
2026-08-14 08:35:59,005 - DEBUG - ==>Verifying data for policy with id: 488c5c44-50e7-44ca-90db-4ccc8eba1e5a, fqn: ['default-domain', 'ctest-TestBasicPolicy-20551376', 'ctest-policy-allow-all-99793076']
2026-08-14 08:35:59,005 - INFO - VN ctest-vn-73564029 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-14 08:35:59,006 - DEBUG - Verifying the vn in opserver
2026-08-14 08:35:59,006 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20551376:ctest-vn-73564029 virtual network link through opserver 10.0.0.22
2026-08-14 08:35:59,006 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-08-14 08:35:59,323 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-08-14 08:35:59,372 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20551376:ctest-vn-73564029', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20551376:ctest-vn-73564029?flat'}
2026-08-14 08:35:59,372 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20551376:ctest-vn-73564029 is found in opserver
2026-08-14 08:35:59,382 - DEBUG - Do not have enough data to verify VN in agent
2026-08-14 08:35:59,387 - DEBUG - VRF ids for VN ctest-vn-73564029: {}
2026-08-14 08:35:59,387 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-08-14 08:35:59,393 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5accba49-7983-4b8b-bc38-d78e2aa25efc
2026-08-14 08:35:59,405 - DEBUG - Requesting: http://10.0.0.22:8082/project/31a85335-a9dc-43c2-b9e6-369bc428ff02
2026-08-14 08:35:59,478 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/69664e9d-9b77-48b7-b8e8-240f0c26eca5
2026-08-14 08:35:59,490 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/69664e9d-9b77-48b7-b8e8-240f0c26eca5
2026-08-14 08:35:59,498 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9b833f58-9f9a-4630-8606-c44fcac09119
2026-08-14 08:35:59,504 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9b833f58-9f9a-4630-8606-c44fcac09119
2026-08-14 08:35:59,510 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/809b7370-8c5a-43ac-8dd8-51f2fd756874
2026-08-14 08:35:59,515 - DEBUG - Route Targets: ['target:64512:8000006']
2026-08-14 08:35:59,515 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/69664e9d-9b77-48b7-b8e8-240f0c26eca5
2026-08-14 08:35:59,524 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9b833f58-9f9a-4630-8606-c44fcac09119
2026-08-14 08:35:59,537 - INFO - Verified VN network id 13 for VN 69664e9d-9b77-48b7-b8e8-240f0c26eca5
2026-08-14 08:35:59,537 - INFO - Verifications in API Server for VN ctest-vn-55539711 passed
2026-08-14 08:35:59,537 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/69664e9d-9b77-48b7-b8e8-240f0c26eca5
2026-08-14 08:35:59,546 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9b833f58-9f9a-4630-8606-c44fcac09119
2026-08-14 08:35:59,553 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9b833f58-9f9a-4630-8606-c44fcac09119
2026-08-14 08:35:59,558 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/809b7370-8c5a-43ac-8dd8-51f2fd756874
2026-08-14 08:35:59,570 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20551376:ctest-vn-55539711', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20551376', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7594844260432038071', 'uuid-lslong': '13323939144622599333'}, 'enable': 'true', 'created': '2026-08-14T08:35:57', 'last-modified': '2026-08-14T08:35:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.419312'}
2026-08-14 08:35:59,577 - DEBUG - Route Targets: ['target:64512:8000006']
2026-08-14 08:35:59,577 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55539711 passed
2026-08-14 08:35:59,578 - DEBUG - ====Verifying policy data for ctest-vn-55539711 in API_Server ======
2026-08-14 08:35:59,578 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-08-14 08:35:59,583 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5accba49-7983-4b8b-bc38-d78e2aa25efc
2026-08-14 08:35:59,593 - DEBUG - Requesting: http://10.0.0.22:8082/project/31a85335-a9dc-43c2-b9e6-369bc428ff02
2026-08-14 08:35:59,671 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/69664e9d-9b77-48b7-b8e8-240f0c26eca5
2026-08-14 08:35:59,684 - DEBUG - ==>Verifying data for policy with id: 488c5c44-50e7-44ca-90db-4ccc8eba1e5a, fqn: ['default-domain', 'ctest-TestBasicPolicy-20551376', 'ctest-policy-allow-all-99793076']
2026-08-14 08:35:59,684 - INFO - VN ctest-vn-55539711 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-14 08:35:59,684 - DEBUG - Verifying the vn in opserver
2026-08-14 08:35:59,685 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20551376:ctest-vn-55539711 virtual network link through opserver 10.0.0.22
2026-08-14 08:35:59,685 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-08-14 08:35:59,697 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20551376:ctest-vn-55539711', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20551376:ctest-vn-55539711?flat'}
2026-08-14 08:35:59,697 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20551376:ctest-vn-55539711 is found in opserver
2026-08-14 08:35:59,710 - DEBUG - Do not have enough data to verify VN in agent
2026-08-14 08:35:59,715 - DEBUG - VRF ids for VN ctest-vn-55539711: {}
2026-08-14 08:35:59,777 - DEBUG - Services list from nova: [