2026-07-06 04:58:19,518 - INFO - Domain Default found not creating 2026-07-06 04:58:19,677 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-16862768 not found, creating it 2026-07-06 04:58:20,182 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-16862768, ID : 027c7832-f269-469b-a60d-4fd537036071 2026-07-06 04:58:21,769 - INFO - ================================================================================ 2026-07-06 04:58:21,770 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-06 04:58:22,026 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-07-06 04:58:22,026 - INFO - Initial checks done. Running the testcase now 2026-07-06 04:58:22,026 - INFO - 2026-07-06 04:58:22,026 - INFO - ================================================================================ 2026-07-06 04:58:22,026 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-06 04:58:22,027 - INFO - TEST DESCRIPTION : This tests the following scenarios. 1. Test to validate that policy removal will fail when it referenced with VN. 2. validate vn_policy data in api-s against quantum-vn data, when created and unbind policy from VN thru quantum APIs. 3. validate policy data in api-s against quantum-policy data, when created and deleted thru quantum APIs. 2026-07-06 04:58:22,328 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-07-06 04:58:22,328 - INFO - Initial checks done. Running the testcase now 2026-07-06 04:58:22,328 - INFO - 2026-07-06 04:58:22,716 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16862768:ctest-vn4-27604942, 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-TestBasicPolicyNegativeIpv4v6-16862768:ctest-vn4-27604942, 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, rule_sequence = None, rule_uuid = None, direction = <>, protocol = 58, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16862768:ctest-vn4-27604942, 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-TestBasicPolicyNegativeIpv4v6-16862768:ctest-vn4-27604942, 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-07-06 04:58:23,236 - DEBUG - Response for create_network : {'network': {'id': '001e5d8d-58c0-4a9c-a74b-e69534d73c4b', 'name': 'ctest-vn4-27604942', 'tenant_id': '027c7832f269469ba60d4fd537036071', 'project_id': '027c7832f269469ba60d4fd537036071', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16862768', 'ctest-vn4-27604942'], 'port_security_enabled': True, 'description': ''}} 2026-07-06 04:58:23,458 - DEBUG - Response for create_subnet : {'subnet': {'id': '56b2a0f6-0d9a-49be-92a1-b3d7f9f33c69', 'name': '', 'tenant_id': '027c7832f269469ba60d4fd537036071', 'network_id': '001e5d8d-58c0-4a9c-a74b-e69534d73c4b', 'ip_version': 4, 'cidr': '152.0.212.128/26', 'allocation_pools': [{'start': '152.0.212.130', 'end': '152.0.212.190'}], 'gateway_ip': '152.0.212.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.0.212.130', 'tags': [], 'project_id': '027c7832f269469ba60d4fd537036071'}} 2026-07-06 04:58:23,635 - DEBUG - Response for create_subnet : {'subnet': {'id': '75f0e681-646b-4acf-938d-d34ee44e94be', 'name': '', 'tenant_id': '027c7832f269469ba60d4fd537036071', 'network_id': '001e5d8d-58c0-4a9c-a74b-e69534d73c4b', 'ip_version': 6, 'cidr': '252e:2e9a:14d1:4e45:a301:61b0::/96', 'allocation_pools': [{'start': '252e:2e9a:14d1:4e45:a301:61b0:0:2', 'end': '252e:2e9a:14d1:4e45:a301:61b0:ffff:fffe'}], 'gateway_ip': '252e:2e9a:14d1:4e45:a301:61b0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '252e:2e9a:14d1:4e45:a301:61b0:0:2', 'tags': [], 'project_id': '027c7832f269469ba60d4fd537036071'}} 2026-07-06 04:58:23,656 - INFO - Created VN ctest-vn4-27604942 2026-07-06 04:58:23,708 - DEBUG - VN ctest-vn4-27604942 UUID is 001e5d8d-58c0-4a9c-a74b-e69534d73c4b 2026-07-06 04:58:23,903 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '001e5d8d-58c0-4a9c-a74b-e69534d73c4b', 'name': 'ctest-vn4-27604942', 'tenant_id': '027c7832f269469ba60d4fd537036071', 'project_id': '027c7832f269469ba60d4fd537036071', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['56b2a0f6-0d9a-49be-92a1-b3d7f9f33c69', '75f0e681-646b-4acf-938d-d34ee44e94be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16862768', 'ctest-vn4-27604942'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16862768', 'ctest-policy1-61587872']], 'subnet_ipam': [{'subnet_cidr': '152.0.212.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '252e:2e9a:14d1:4e45:a301:61b0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-06 04:58:24,064 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-07-06 04:58:24,387 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-07-06 04:58:24,416 - DEBUG - Requesting: http://10.0.0.22:8082/domain/98b227c7-fcb3-400a-afb8-e4afb1f9bba4 2026-07-06 04:58:24,429 - DEBUG - Requesting: http://10.0.0.22:8082/project/027c7832-f269-469b-a60d-4fd537036071 2026-07-06 04:58:24,498 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/001e5d8d-58c0-4a9c-a74b-e69534d73c4b 2026-07-06 04:58:24,509 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/001e5d8d-58c0-4a9c-a74b-e69534d73c4b 2026-07-06 04:58:24,518 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dc2164c8-1840-4333-885f-c096eb3ad101 2026-07-06 04:58:24,525 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dc2164c8-1840-4333-885f-c096eb3ad101 2026-07-06 04:58:24,531 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/449f267a-8a45-46cc-b9d9-2d1ce747e329 2026-07-06 04:58:24,538 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-06 04:58:24,538 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/001e5d8d-58c0-4a9c-a74b-e69534d73c4b 2026-07-06 04:58:24,550 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dc2164c8-1840-4333-885f-c096eb3ad101 2026-07-06 04:58:24,568 - INFO - Verified VN network id 9 for VN 001e5d8d-58c0-4a9c-a74b-e69534d73c4b 2026-07-06 04:58:24,568 - INFO - Verifications in API Server for VN ctest-vn4-27604942 passed 2026-07-06 04:58:24,569 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/001e5d8d-58c0-4a9c-a74b-e69534d73c4b 2026-07-06 04:58:24,580 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dc2164c8-1840-4333-885f-c096eb3ad101 2026-07-06 04:58:24,588 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dc2164c8-1840-4333-885f-c096eb3ad101 2026-07-06 04:58:24,597 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/449f267a-8a45-46cc-b9d9-2d1ce747e329 2026-07-06 04:58:24,610 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16862768:ctest-vn4-27604942', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-16862768', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8547110962088604', 'uuid-lslong': '12054982356098301003'}, 'enable': 'true', 'created': '2026-07-06T04:58:23', 'last-modified': '2026-07-06T04:58:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.736036'} 2026-07-06 04:58:24,616 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-06 04:58:24,616 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-27604942 passed 2026-07-06 04:58:24,616 - DEBUG - ====Verifying policy data for ctest-vn4-27604942 in API_Server ====== 2026-07-06 04:58:24,616 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-07-06 04:58:24,622 - DEBUG - Requesting: http://10.0.0.22:8082/domain/98b227c7-fcb3-400a-afb8-e4afb1f9bba4 2026-07-06 04:58:24,632 - DEBUG - Requesting: http://10.0.0.22:8082/project/027c7832-f269-469b-a60d-4fd537036071 2026-07-06 04:58:24,717 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/001e5d8d-58c0-4a9c-a74b-e69534d73c4b 2026-07-06 04:58:24,726 - DEBUG - ==>Verifying data for policy with id: 5936a29a-0b5d-47f2-b67e-e6de31d351cb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16862768', 'ctest-policy1-61587872'] 2026-07-06 04:58:24,726 - INFO - VN ctest-vn4-27604942 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-06 04:58:24,726 - DEBUG - Verifying the vn in opserver 2026-07-06 04:58:24,726 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16862768:ctest-vn4-27604942 virtual network link through opserver 10.0.0.22 2026-07-06 04:58:24,726 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-07-06 04:58:25,043 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-07-06 04:58:25,101 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16862768:ctest-vn4-27604942', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16862768:ctest-vn4-27604942?flat'} 2026-07-06 04:58:25,101 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16862768:ctest-vn4-27604942 is found in opserver 2026-07-06 04:58:25,110 - DEBUG - Do not have enough data to verify VN in agent 2026-07-06 04:58:25,114 - DEBUG - VRF ids for VN ctest-vn4-27604942: {} 2026-07-06 04:58:25,114 - DEBUG - ====Verifying data for ctest-policy1-61587872 in API_Server ====== 2026-07-06 04:58:25,114 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-07-06 04:58:25,120 - DEBUG - Requesting: http://10.0.0.22:8082/domain/98b227c7-fcb3-400a-afb8-e4afb1f9bba4 2026-07-06 04:58:25,131 - DEBUG - Requesting: http://10.0.0.22:8082/project/027c7832-f269-469b-a60d-4fd537036071 2026-07-06 04:58:25,204 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/5936a29a-0b5d-47f2-b67e-e6de31d351cb 2026-07-06 04:58:25,215 - INFO - Verified policy ctest-policy1-61587872 in API Server, Result: True 2026-07-06 04:58:25,216 - INFO - Done with setup and verification, moving onto test .. 2026-07-06 04:58:25,224 - INFO - Deleting VN ctest-vn4-27604942 2026-07-06 04:58:25,339 - DEBUG - Response for deleting network () 2026-07-06 04:58:25,339 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dc2164c8-1840-4333-885f-c096eb3ad101 2026-07-06 04:58:25,344 - DEBUG - Response Code: 404 2026-07-06 04:58:25,344 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-07-06 04:58:25,350 - DEBUG - Requesting: http://10.0.0.22:8082/domain/98b227c7-fcb3-400a-afb8-e4afb1f9bba4 2026-07-06 04:58:25,401 - DEBUG - Requesting: http://10.0.0.22:8082/project/027c7832-f269-469b-a60d-4fd537036071 2026-07-06 04:58:25,475 - INFO - Validated that VN ctest-vn4-27604942 is not found in API Server 2026-07-06 04:58:25,484 - DEBUG - VN ctest-vn4-27604942 is not present in Agent 10.0.0.22 2026-07-06 04:58:25,485 - INFO - Validated that VN ctest-vn4-27604942 is not in any agent 2026-07-06 04:58:25,500 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-27604942 info 2026-07-06 04:58:25,525 - INFO - Deleted policy ctest-policy1-61587872 2026-07-06 04:58:25,692 - DEBUG - policy ctest-policy1-61587872 is not found in API Server 2026-07-06 04:58:25,954 - DEBUG - No XMPP flaps were noticed during the test