2026-11-07 05:17:31,276 - INFO - Domain Default found not creating 2026-11-07 05:17:31,473 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-20994571 not found, creating it 2026-11-07 05:17:31,971 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-20994571, ID : 4566ad21-a5bc-4a38-a8a1-aaed84e3ba6b 2026-11-07 05:17:33,543 - INFO - ================================================================================ 2026-11-07 05:17:33,544 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-07 05:17:33,808 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with 2026-11-07 05:17:33,808 - INFO - Initial checks done. Running the testcase now 2026-11-07 05:17:33,808 - INFO - 2026-11-07 05:17:33,808 - INFO - ================================================================================ 2026-11-07 05:17:33,808 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-07 05:17:33,809 - 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-11-07 05:17:34,097 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with 2026-11-07 05:17:34,097 - INFO - Initial checks done. Running the testcase now 2026-11-07 05:17:34,097 - INFO - 2026-11-07 05:17:34,480 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20994571:ctest-vn4-88825856, 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-20994571:ctest-vn4-88825856, 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-20994571:ctest-vn4-88825856, 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-20994571:ctest-vn4-88825856, 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-11-07 05:17:35,018 - DEBUG - Response for create_network : {'network': {'id': '95287e3c-e113-4702-a4b3-f97b11133d10', 'name': 'ctest-vn4-88825856', 'tenant_id': '4566ad21a5bc4a38a8a1aaed84e3ba6b', 'project_id': '4566ad21a5bc4a38a8a1aaed84e3ba6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20994571', 'ctest-vn4-88825856'], 'port_security_enabled': True, 'description': ''}} 2026-11-07 05:17:35,226 - DEBUG - Response for create_subnet : {'subnet': {'id': '60bed58c-9231-4cca-8808-b9f10e53626f', 'name': '', 'tenant_id': '4566ad21a5bc4a38a8a1aaed84e3ba6b', 'network_id': '95287e3c-e113-4702-a4b3-f97b11133d10', 'ip_version': 4, 'cidr': '216.227.165.64/26', 'allocation_pools': [{'start': '216.227.165.66', 'end': '216.227.165.126'}], 'gateway_ip': '216.227.165.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.227.165.66', 'tags': [], 'project_id': '4566ad21a5bc4a38a8a1aaed84e3ba6b'}} 2026-11-07 05:17:35,419 - DEBUG - Response for create_subnet : {'subnet': {'id': '09b39a1c-0222-43e7-9593-bc73fe29a39f', 'name': '', 'tenant_id': '4566ad21a5bc4a38a8a1aaed84e3ba6b', 'network_id': '95287e3c-e113-4702-a4b3-f97b11133d10', 'ip_version': 6, 'cidr': '3ab7:a9b7:28bf:7a5:3bb:c1cb::/96', 'allocation_pools': [{'start': '3ab7:a9b7:28bf:7a5:3bb:c1cb:0:2', 'end': '3ab7:a9b7:28bf:7a5:3bb:c1cb:ffff:fffe'}], 'gateway_ip': '3ab7:a9b7:28bf:7a5:3bb:c1cb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ab7:a9b7:28bf:7a5:3bb:c1cb:0:2', 'tags': [], 'project_id': '4566ad21a5bc4a38a8a1aaed84e3ba6b'}} 2026-11-07 05:17:35,439 - INFO - Created VN ctest-vn4-88825856 2026-11-07 05:17:35,491 - DEBUG - VN ctest-vn4-88825856 UUID is 95287e3c-e113-4702-a4b3-f97b11133d10 2026-11-07 05:17:35,694 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '95287e3c-e113-4702-a4b3-f97b11133d10', 'name': 'ctest-vn4-88825856', 'tenant_id': '4566ad21a5bc4a38a8a1aaed84e3ba6b', 'project_id': '4566ad21a5bc4a38a8a1aaed84e3ba6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['60bed58c-9231-4cca-8808-b9f10e53626f', '09b39a1c-0222-43e7-9593-bc73fe29a39f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20994571', 'ctest-vn4-88825856'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20994571', 'ctest-policy1-46350080']], 'subnet_ipam': [{'subnet_cidr': '216.227.165.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ab7:a9b7:28bf:7a5:3bb:c1cb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-07 05:17:35,855 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-11-07 05:17:36,187 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-11-07 05:17:36,216 - DEBUG - Requesting: http://10.0.0.185:8082/domain/1d04880d-91fb-48ba-907e-d600bd308c22 2026-11-07 05:17:36,230 - DEBUG - Requesting: http://10.0.0.185:8082/project/4566ad21-a5bc-4a38-a8a1-aaed84e3ba6b 2026-11-07 05:17:36,302 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/95287e3c-e113-4702-a4b3-f97b11133d10 2026-11-07 05:17:36,314 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/95287e3c-e113-4702-a4b3-f97b11133d10 2026-11-07 05:17:36,323 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/ad3d6544-681f-44b4-bb15-d8aad860e212 2026-11-07 05:17:36,331 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/ad3d6544-681f-44b4-bb15-d8aad860e212 2026-11-07 05:17:36,338 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/ff4546a0-94b0-4094-ad1e-80ae2363defa 2026-11-07 05:17:36,344 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-07 05:17:36,344 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/95287e3c-e113-4702-a4b3-f97b11133d10 2026-11-07 05:17:36,353 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/ad3d6544-681f-44b4-bb15-d8aad860e212 2026-11-07 05:17:36,365 - INFO - Verified VN network id 12 for VN 95287e3c-e113-4702-a4b3-f97b11133d10 2026-11-07 05:17:36,365 - INFO - Verifications in API Server for VN ctest-vn4-88825856 passed 2026-11-07 05:17:36,365 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/95287e3c-e113-4702-a4b3-f97b11133d10 2026-11-07 05:17:36,374 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/ad3d6544-681f-44b4-bb15-d8aad860e212 2026-11-07 05:17:36,381 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/ad3d6544-681f-44b4-bb15-d8aad860e212 2026-11-07 05:17:36,388 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/ff4546a0-94b0-4094-ad1e-80ae2363defa 2026-11-07 05:17:36,402 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20994571:ctest-vn4-88825856', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-20994571', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10747979310658963202', 'uuid-lslong': '11868103750014156048'}, 'enable': 'true', 'created': '2026-11-07T05:17:34', 'last-modified': '2026-11-07T05:17:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.733774'} 2026-11-07 05:17:36,410 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-07 05:17:36,410 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88825856 passed 2026-11-07 05:17:36,410 - DEBUG - ====Verifying policy data for ctest-vn4-88825856 in API_Server ====== 2026-11-07 05:17:36,410 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-11-07 05:17:36,416 - DEBUG - Requesting: http://10.0.0.185:8082/domain/1d04880d-91fb-48ba-907e-d600bd308c22 2026-11-07 05:17:36,427 - DEBUG - Requesting: http://10.0.0.185:8082/project/4566ad21-a5bc-4a38-a8a1-aaed84e3ba6b 2026-11-07 05:17:36,503 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/95287e3c-e113-4702-a4b3-f97b11133d10 2026-11-07 05:17:36,515 - DEBUG - ==>Verifying data for policy with id: 3a656501-3729-4aef-8e07-697c6e57fec5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20994571', 'ctest-policy1-46350080'] 2026-11-07 05:17:36,515 - INFO - VN ctest-vn4-88825856 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-07 05:17:36,515 - DEBUG - Verifying the vn in opserver 2026-11-07 05:17:36,515 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20994571:ctest-vn4-88825856 virtual network link through opserver 10.0.0.185 2026-11-07 05:17:36,516 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-11-07 05:17:36,865 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-11-07 05:17:36,920 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20994571:ctest-vn4-88825856', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20994571:ctest-vn4-88825856?flat'} 2026-11-07 05:17:36,920 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20994571:ctest-vn4-88825856 is found in opserver 2026-11-07 05:17:36,930 - DEBUG - Do not have enough data to verify VN in agent 2026-11-07 05:17:36,935 - DEBUG - VRF ids for VN ctest-vn4-88825856: {} 2026-11-07 05:17:36,935 - DEBUG - ====Verifying data for ctest-policy1-46350080 in API_Server ====== 2026-11-07 05:17:36,936 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-11-07 05:17:36,941 - DEBUG - Requesting: http://10.0.0.185:8082/domain/1d04880d-91fb-48ba-907e-d600bd308c22 2026-11-07 05:17:36,951 - DEBUG - Requesting: http://10.0.0.185:8082/project/4566ad21-a5bc-4a38-a8a1-aaed84e3ba6b 2026-11-07 05:17:37,027 - DEBUG - Requesting: http://10.0.0.185:8082/network-policy/3a656501-3729-4aef-8e07-697c6e57fec5 2026-11-07 05:17:37,037 - INFO - Verified policy ctest-policy1-46350080 in API Server, Result: True 2026-11-07 05:17:37,037 - INFO - Done with setup and verification, moving onto test .. 2026-11-07 05:17:37,048 - INFO - Deleting VN ctest-vn4-88825856 2026-11-07 05:17:37,192 - DEBUG - Response for deleting network () 2026-11-07 05:17:37,192 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/ad3d6544-681f-44b4-bb15-d8aad860e212 2026-11-07 05:17:37,200 - DEBUG - Response Code: 404 2026-11-07 05:17:37,200 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-11-07 05:17:37,207 - DEBUG - Requesting: http://10.0.0.185:8082/domain/1d04880d-91fb-48ba-907e-d600bd308c22 2026-11-07 05:17:37,269 - DEBUG - Requesting: http://10.0.0.185:8082/project/4566ad21-a5bc-4a38-a8a1-aaed84e3ba6b 2026-11-07 05:17:37,341 - INFO - Validated that VN ctest-vn4-88825856 is not found in API Server 2026-11-07 05:17:37,354 - DEBUG - VN ctest-vn4-88825856 is not present in Agent 10.0.0.185 2026-11-07 05:17:37,354 - INFO - Validated that VN ctest-vn4-88825856 is not in any agent 2026-11-07 05:17:37,369 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88825856 info 2026-11-07 05:17:37,394 - INFO - Deleted policy ctest-policy1-46350080 2026-11-07 05:17:37,559 - DEBUG - policy ctest-policy1-46350080 is not found in API Server 2026-11-07 05:17:37,833 - DEBUG - No XMPP flaps were noticed during the test