2026-08-24 22:38:26,058 - INFO - Domain Default found not creating 2026-08-24 22:38:26,217 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-90327909 not found, creating it 2026-08-24 22:38:26,696 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-90327909, ID : 7d9df5d9-2e25-4ca3-a2ee-3d88af1b54fe 2026-08-24 22:38:28,216 - INFO - ================================================================================ 2026-08-24 22:38:28,216 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-24 22:38:28,476 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-08-24 22:38:28,476 - INFO - Initial checks done. Running the testcase now 2026-08-24 22:38:28,476 - INFO - 2026-08-24 22:38:28,476 - INFO - ================================================================================ 2026-08-24 22:38:28,476 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-24 22:38:28,476 - 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-08-24 22:38:28,767 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-08-24 22:38:28,768 - INFO - Initial checks done. Running the testcase now 2026-08-24 22:38:28,768 - INFO - 2026-08-24 22:38:29,158 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90327909:ctest-vn4-51115699, 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-90327909:ctest-vn4-51115699, 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-90327909:ctest-vn4-51115699, 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-90327909:ctest-vn4-51115699, 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-24 22:38:29,707 - DEBUG - Response for create_network : {'network': {'id': 'b9dfddc6-1099-4c42-89a1-48cc0de9e732', 'name': 'ctest-vn4-51115699', 'tenant_id': '7d9df5d92e254ca3a2ee3d88af1b54fe', 'project_id': '7d9df5d92e254ca3a2ee3d88af1b54fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90327909', 'ctest-vn4-51115699'], 'port_security_enabled': True, 'description': ''}} 2026-08-24 22:38:29,882 - DEBUG - Response for create_subnet : {'subnet': {'id': '8e531ce0-adf9-468b-97b1-1bcc1b827082', 'name': '', 'tenant_id': '7d9df5d92e254ca3a2ee3d88af1b54fe', 'network_id': 'b9dfddc6-1099-4c42-89a1-48cc0de9e732', 'ip_version': 4, 'cidr': '104.126.13.192/26', 'allocation_pools': [{'start': '104.126.13.194', 'end': '104.126.13.254'}], 'gateway_ip': '104.126.13.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.126.13.194', 'tags': [], 'project_id': '7d9df5d92e254ca3a2ee3d88af1b54fe'}} 2026-08-24 22:38:30,065 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a435d1dc-76e6-4d72-b59b-900159a7ac8a', 'name': '', 'tenant_id': '7d9df5d92e254ca3a2ee3d88af1b54fe', 'network_id': 'b9dfddc6-1099-4c42-89a1-48cc0de9e732', 'ip_version': 6, 'cidr': '3c8c:95dd:c813:f244:9857:9fff::/96', 'allocation_pools': [{'start': '3c8c:95dd:c813:f244:9857:9fff:0:2', 'end': '3c8c:95dd:c813:f244:9857:9fff:ffff:fffe'}], 'gateway_ip': '3c8c:95dd:c813:f244:9857:9fff:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c8c:95dd:c813:f244:9857:9fff:0:2', 'tags': [], 'project_id': '7d9df5d92e254ca3a2ee3d88af1b54fe'}} 2026-08-24 22:38:30,083 - INFO - Created VN ctest-vn4-51115699 2026-08-24 22:38:30,137 - DEBUG - VN ctest-vn4-51115699 UUID is b9dfddc6-1099-4c42-89a1-48cc0de9e732 2026-08-24 22:38:30,344 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b9dfddc6-1099-4c42-89a1-48cc0de9e732', 'name': 'ctest-vn4-51115699', 'tenant_id': '7d9df5d92e254ca3a2ee3d88af1b54fe', 'project_id': '7d9df5d92e254ca3a2ee3d88af1b54fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8e531ce0-adf9-468b-97b1-1bcc1b827082', 'a435d1dc-76e6-4d72-b59b-900159a7ac8a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90327909', 'ctest-vn4-51115699'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90327909', 'ctest-policy1-60630452']], 'subnet_ipam': [{'subnet_cidr': '104.126.13.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c8c:95dd:c813:f244:9857:9fff::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-24 22:38:30,513 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-24 22:38:30,842 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-24 22:38:30,875 - DEBUG - Requesting: http://10.0.0.177:8082/domain/6ae23672-1c0c-46f8-a1fc-29e9b9bfd802 2026-08-24 22:38:30,888 - DEBUG - Requesting: http://10.0.0.177:8082/project/7d9df5d9-2e25-4ca3-a2ee-3d88af1b54fe 2026-08-24 22:38:30,967 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b9dfddc6-1099-4c42-89a1-48cc0de9e732 2026-08-24 22:38:30,979 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b9dfddc6-1099-4c42-89a1-48cc0de9e732 2026-08-24 22:38:30,990 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/26286813-89c3-4d30-b5eb-3fea99f803a0 2026-08-24 22:38:30,997 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/26286813-89c3-4d30-b5eb-3fea99f803a0 2026-08-24 22:38:31,004 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/b8429e76-f76b-4596-8aa4-2e1dbd2795f7 2026-08-24 22:38:31,011 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-24 22:38:31,011 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b9dfddc6-1099-4c42-89a1-48cc0de9e732 2026-08-24 22:38:31,021 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/26286813-89c3-4d30-b5eb-3fea99f803a0 2026-08-24 22:38:31,035 - INFO - Verified VN network id 11 for VN b9dfddc6-1099-4c42-89a1-48cc0de9e732 2026-08-24 22:38:31,035 - INFO - Verifications in API Server for VN ctest-vn4-51115699 passed 2026-08-24 22:38:31,035 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b9dfddc6-1099-4c42-89a1-48cc0de9e732 2026-08-24 22:38:31,046 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/26286813-89c3-4d30-b5eb-3fea99f803a0 2026-08-24 22:38:31,053 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/26286813-89c3-4d30-b5eb-3fea99f803a0 2026-08-24 22:38:31,062 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/b8429e76-f76b-4596-8aa4-2e1dbd2795f7 2026-08-24 22:38:31,074 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90327909:ctest-vn4-51115699', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-90327909', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13393667659574889538', 'uuid-lslong': '9917287895690503986'}, 'enable': 'true', 'created': '2026-08-24T22:38:29', 'last-modified': '2026-08-24T22:38:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.756882'} 2026-08-24 22:38:31,083 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-24 22:38:31,083 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-51115699 passed 2026-08-24 22:38:31,083 - DEBUG - ====Verifying policy data for ctest-vn4-51115699 in API_Server ====== 2026-08-24 22:38:31,083 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-24 22:38:31,089 - DEBUG - Requesting: http://10.0.0.177:8082/domain/6ae23672-1c0c-46f8-a1fc-29e9b9bfd802 2026-08-24 22:38:31,098 - DEBUG - Requesting: http://10.0.0.177:8082/project/7d9df5d9-2e25-4ca3-a2ee-3d88af1b54fe 2026-08-24 22:38:31,173 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b9dfddc6-1099-4c42-89a1-48cc0de9e732 2026-08-24 22:38:31,183 - DEBUG - ==>Verifying data for policy with id: 5adf9b12-ea2c-4f9c-b04f-61a04b042e17, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90327909', 'ctest-policy1-60630452'] 2026-08-24 22:38:31,183 - INFO - VN ctest-vn4-51115699 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-24 22:38:31,183 - DEBUG - Verifying the vn in opserver 2026-08-24 22:38:31,183 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90327909:ctest-vn4-51115699 virtual network link through opserver 10.0.0.177 2026-08-24 22:38:31,183 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-24 22:38:31,529 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-24 22:38:31,588 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90327909:ctest-vn4-51115699', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90327909:ctest-vn4-51115699?flat'} 2026-08-24 22:38:31,588 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90327909:ctest-vn4-51115699 is found in opserver 2026-08-24 22:38:31,601 - DEBUG - Do not have enough data to verify VN in agent 2026-08-24 22:38:31,606 - DEBUG - VRF ids for VN ctest-vn4-51115699: {} 2026-08-24 22:38:31,607 - DEBUG - ====Verifying data for ctest-policy1-60630452 in API_Server ====== 2026-08-24 22:38:31,607 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-24 22:38:31,613 - DEBUG - Requesting: http://10.0.0.177:8082/domain/6ae23672-1c0c-46f8-a1fc-29e9b9bfd802 2026-08-24 22:38:31,625 - DEBUG - Requesting: http://10.0.0.177:8082/project/7d9df5d9-2e25-4ca3-a2ee-3d88af1b54fe 2026-08-24 22:38:31,702 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/5adf9b12-ea2c-4f9c-b04f-61a04b042e17 2026-08-24 22:38:31,713 - INFO - Verified policy ctest-policy1-60630452 in API Server, Result: True 2026-08-24 22:38:31,713 - INFO - Done with setup and verification, moving onto test .. 2026-08-24 22:38:31,723 - INFO - Deleting VN ctest-vn4-51115699 2026-08-24 22:38:31,862 - DEBUG - Response for deleting network () 2026-08-24 22:38:31,862 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/26286813-89c3-4d30-b5eb-3fea99f803a0 2026-08-24 22:38:31,867 - DEBUG - Response Code: 404 2026-08-24 22:38:31,867 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-24 22:38:31,874 - DEBUG - Requesting: http://10.0.0.177:8082/domain/6ae23672-1c0c-46f8-a1fc-29e9b9bfd802 2026-08-24 22:38:31,931 - DEBUG - Requesting: http://10.0.0.177:8082/project/7d9df5d9-2e25-4ca3-a2ee-3d88af1b54fe 2026-08-24 22:38:32,009 - INFO - Validated that VN ctest-vn4-51115699 is not found in API Server 2026-08-24 22:38:32,022 - DEBUG - VN ctest-vn4-51115699 is not present in Agent 10.0.0.177 2026-08-24 22:38:32,022 - INFO - Validated that VN ctest-vn4-51115699 is not in any agent 2026-08-24 22:38:32,043 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-51115699 info 2026-08-24 22:38:32,078 - INFO - Deleted policy ctest-policy1-60630452 2026-08-24 22:38:32,257 - DEBUG - policy ctest-policy1-60630452 is not found in API Server 2026-08-24 22:38:32,521 - DEBUG - No XMPP flaps were noticed during the test