2026-10-29 18:51:28,072 - INFO - Domain Default found not creating 2026-10-29 18:51:28,287 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-85704526 not found, creating it 2026-10-29 18:51:28,862 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-85704526, ID : 9f278212-26e3-4aed-bbef-852a41acd533 2026-10-29 18:51:30,760 - INFO - ================================================================================ 2026-10-29 18:51:30,760 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-29 18:51:31,033 - DEBUG - Nothing to compare xmpp stats {'10.0.0.251': {'10.20.0.254': '0'}} with 2026-10-29 18:51:31,033 - INFO - Initial checks done. Running the testcase now 2026-10-29 18:51:31,033 - INFO - 2026-10-29 18:51:31,033 - INFO - ================================================================================ 2026-10-29 18:51:31,033 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-29 18:51:31,033 - 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-10-29 18:51:31,347 - DEBUG - Nothing to compare xmpp stats {'10.0.0.251': {'10.20.0.254': '0'}} with 2026-10-29 18:51:31,347 - INFO - Initial checks done. Running the testcase now 2026-10-29 18:51:31,347 - INFO - 2026-10-29 18:51:31,805 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85704526:ctest-vn4-48783561, 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-85704526:ctest-vn4-48783561, 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-85704526:ctest-vn4-48783561, 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-85704526:ctest-vn4-48783561, 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-10-29 18:51:32,425 - DEBUG - Response for create_network : {'network': {'id': '8f26203c-51db-4e05-a8db-b630f8b7344b', 'name': 'ctest-vn4-48783561', 'tenant_id': '9f27821226e34aedbbef852a41acd533', 'project_id': '9f27821226e34aedbbef852a41acd533', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85704526', 'ctest-vn4-48783561'], 'port_security_enabled': True, 'description': ''}} 2026-10-29 18:51:32,631 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9e793e0-e4b5-4d7d-9313-9de6482b3ef4', 'name': '', 'tenant_id': '9f27821226e34aedbbef852a41acd533', 'network_id': '8f26203c-51db-4e05-a8db-b630f8b7344b', 'ip_version': 4, 'cidr': '29.12.183.128/26', 'allocation_pools': [{'start': '29.12.183.130', 'end': '29.12.183.190'}], 'gateway_ip': '29.12.183.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.12.183.130', 'tags': [], 'project_id': '9f27821226e34aedbbef852a41acd533'}} 2026-10-29 18:51:32,820 - DEBUG - Response for create_subnet : {'subnet': {'id': '8d4b3248-1d5f-40d1-b730-62476d1019dd', 'name': '', 'tenant_id': '9f27821226e34aedbbef852a41acd533', 'network_id': '8f26203c-51db-4e05-a8db-b630f8b7344b', 'ip_version': 6, 'cidr': '3117:1e8d:6520:3092:c1cf:23e5::/96', 'allocation_pools': [{'start': '3117:1e8d:6520:3092:c1cf:23e5:0:2', 'end': '3117:1e8d:6520:3092:c1cf:23e5:ffff:fffe'}], 'gateway_ip': '3117:1e8d:6520:3092:c1cf:23e5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3117:1e8d:6520:3092:c1cf:23e5:0:2', 'tags': [], 'project_id': '9f27821226e34aedbbef852a41acd533'}} 2026-10-29 18:51:32,844 - INFO - Created VN ctest-vn4-48783561 2026-10-29 18:51:32,900 - DEBUG - VN ctest-vn4-48783561 UUID is 8f26203c-51db-4e05-a8db-b630f8b7344b 2026-10-29 18:51:33,150 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8f26203c-51db-4e05-a8db-b630f8b7344b', 'name': 'ctest-vn4-48783561', 'tenant_id': '9f27821226e34aedbbef852a41acd533', 'project_id': '9f27821226e34aedbbef852a41acd533', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['e9e793e0-e4b5-4d7d-9313-9de6482b3ef4', '8d4b3248-1d5f-40d1-b730-62476d1019dd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85704526', 'ctest-vn4-48783561'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85704526', 'ctest-policy1-17541164']], 'subnet_ipam': [{'subnet_cidr': '29.12.183.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3117:1e8d:6520:3092:c1cf:23e5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-29 18:51:33,332 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-10-29 18:51:33,746 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-10-29 18:51:33,795 - DEBUG - Requesting: http://10.0.0.251:8082/domain/e5597cc4-72ea-49d8-8940-9b4df571d52a 2026-10-29 18:51:33,815 - DEBUG - Requesting: http://10.0.0.251:8082/project/9f278212-26e3-4aed-bbef-852a41acd533 2026-10-29 18:51:33,916 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/8f26203c-51db-4e05-a8db-b630f8b7344b 2026-10-29 18:51:33,938 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/8f26203c-51db-4e05-a8db-b630f8b7344b 2026-10-29 18:51:33,954 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/ad402e50-45b4-426f-abdf-a067306bf5d1 2026-10-29 18:51:33,969 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/ad402e50-45b4-426f-abdf-a067306bf5d1 2026-10-29 18:51:33,982 - DEBUG - Requesting: http://10.0.0.251:8082/route-target/da0f6083-129b-4b46-92e4-f0c5c99af685 2026-10-29 18:51:33,994 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-29 18:51:33,994 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/8f26203c-51db-4e05-a8db-b630f8b7344b 2026-10-29 18:51:34,009 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/ad402e50-45b4-426f-abdf-a067306bf5d1 2026-10-29 18:51:34,034 - INFO - Verified VN network id 11 for VN 8f26203c-51db-4e05-a8db-b630f8b7344b 2026-10-29 18:51:34,034 - INFO - Verifications in API Server for VN ctest-vn4-48783561 passed 2026-10-29 18:51:34,034 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/8f26203c-51db-4e05-a8db-b630f8b7344b 2026-10-29 18:51:34,053 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/ad402e50-45b4-426f-abdf-a067306bf5d1 2026-10-29 18:51:34,068 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/ad402e50-45b4-426f-abdf-a067306bf5d1 2026-10-29 18:51:34,083 - DEBUG - Requesting: http://10.0.0.251:8082/route-target/da0f6083-129b-4b46-92e4-f0c5c99af685 2026-10-29 18:51:34,102 - DEBUG - Control-node 10.0.0.251 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85704526:ctest-vn4-48783561', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85704526', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10314967439982153221', 'uuid-lslong': '12167519139718968395'}, 'enable': 'true', 'created': '2026-10-29T18:51:32', 'last-modified': '2026-10-29T18:51:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.983833'} 2026-10-29 18:51:34,111 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-29 18:51:34,111 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-48783561 passed 2026-10-29 18:51:34,111 - DEBUG - ====Verifying policy data for ctest-vn4-48783561 in API_Server ====== 2026-10-29 18:51:34,111 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-10-29 18:51:34,119 - DEBUG - Requesting: http://10.0.0.251:8082/domain/e5597cc4-72ea-49d8-8940-9b4df571d52a 2026-10-29 18:51:34,135 - DEBUG - Requesting: http://10.0.0.251:8082/project/9f278212-26e3-4aed-bbef-852a41acd533 2026-10-29 18:51:34,225 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/8f26203c-51db-4e05-a8db-b630f8b7344b 2026-10-29 18:51:34,241 - DEBUG - ==>Verifying data for policy with id: 2b0918ad-383d-44fb-ac23-9ae35623e229, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85704526', 'ctest-policy1-17541164'] 2026-10-29 18:51:34,241 - INFO - VN ctest-vn4-48783561 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-29 18:51:34,242 - DEBUG - Verifying the vn in opserver 2026-10-29 18:51:34,242 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85704526:ctest-vn4-48783561 virtual network link through opserver 10.0.0.251 2026-10-29 18:51:34,242 - DEBUG - Requesting: http://10.0.0.251:8081/analytics/uves/virtual-networks 2026-10-29 18:51:34,619 - DEBUG - Requesting: http://10.0.0.251:8081/analytics/uves/virtual-networks 2026-10-29 18:51:34,686 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85704526:ctest-vn4-48783561', 'href': 'http://10.0.0.251:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85704526:ctest-vn4-48783561?flat'} 2026-10-29 18:51:34,686 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85704526:ctest-vn4-48783561 is found in opserver 2026-10-29 18:51:34,700 - DEBUG - Do not have enough data to verify VN in agent 2026-10-29 18:51:34,707 - DEBUG - VRF ids for VN ctest-vn4-48783561: {} 2026-10-29 18:51:34,708 - DEBUG - ====Verifying data for ctest-policy1-17541164 in API_Server ====== 2026-10-29 18:51:34,708 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-10-29 18:51:34,715 - DEBUG - Requesting: http://10.0.0.251:8082/domain/e5597cc4-72ea-49d8-8940-9b4df571d52a 2026-10-29 18:51:34,728 - DEBUG - Requesting: http://10.0.0.251:8082/project/9f278212-26e3-4aed-bbef-852a41acd533 2026-10-29 18:51:34,825 - DEBUG - Requesting: http://10.0.0.251:8082/network-policy/2b0918ad-383d-44fb-ac23-9ae35623e229 2026-10-29 18:51:34,840 - INFO - Verified policy ctest-policy1-17541164 in API Server, Result: True 2026-10-29 18:51:34,840 - INFO - Done with setup and verification, moving onto test .. 2026-10-29 18:51:34,850 - INFO - Deleting VN ctest-vn4-48783561 2026-10-29 18:51:35,020 - DEBUG - Response for deleting network () 2026-10-29 18:51:35,020 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/ad402e50-45b4-426f-abdf-a067306bf5d1 2026-10-29 18:51:35,027 - DEBUG - Response Code: 404 2026-10-29 18:51:35,027 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-10-29 18:51:35,034 - DEBUG - Requesting: http://10.0.0.251:8082/domain/e5597cc4-72ea-49d8-8940-9b4df571d52a 2026-10-29 18:51:35,091 - DEBUG - Requesting: http://10.0.0.251:8082/project/9f278212-26e3-4aed-bbef-852a41acd533 2026-10-29 18:51:35,188 - INFO - Validated that VN ctest-vn4-48783561 is not found in API Server 2026-10-29 18:51:35,207 - DEBUG - VN ctest-vn4-48783561 is not present in Agent 10.0.0.251 2026-10-29 18:51:35,207 - INFO - Validated that VN ctest-vn4-48783561 is not in any agent 2026-10-29 18:51:35,233 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-48783561 info 2026-10-29 18:51:35,309 - INFO - Deleted policy ctest-policy1-17541164 2026-10-29 18:51:35,508 - DEBUG - policy ctest-policy1-17541164 is not found in API Server 2026-10-29 18:51:35,785 - DEBUG - No XMPP flaps were noticed during the test