2026-06-22 11:31:11,734 - INFO - Domain Default found not creating 2026-06-22 11:31:11,912 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-85347111 not found, creating it 2026-06-22 11:31:12,398 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-85347111, ID : 2a67f2c0-d8b3-4b57-a8d4-4804e5ab9942 2026-06-22 11:31:13,970 - INFO - ================================================================================ 2026-06-22 11:31:13,970 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-22 11:31:14,225 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-06-22 11:31:14,225 - INFO - Initial checks done. Running the testcase now 2026-06-22 11:31:14,226 - INFO - 2026-06-22 11:31:14,226 - INFO - ================================================================================ 2026-06-22 11:31:14,226 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-22 11:31:14,226 - 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-06-22 11:31:14,513 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-06-22 11:31:14,513 - INFO - Initial checks done. Running the testcase now 2026-06-22 11:31:14,513 - INFO - 2026-06-22 11:31:14,912 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85347111:ctest-vn4-00203267, 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-85347111:ctest-vn4-00203267, 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-85347111:ctest-vn4-00203267, 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-85347111:ctest-vn4-00203267, 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-06-22 11:31:15,439 - DEBUG - Response for create_network : {'network': {'id': 'd6114937-ebb0-4bdb-9a39-840ec72c4236', 'name': 'ctest-vn4-00203267', 'tenant_id': '2a67f2c0d8b34b57a8d44804e5ab9942', 'project_id': '2a67f2c0d8b34b57a8d44804e5ab9942', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85347111', 'ctest-vn4-00203267'], 'port_security_enabled': True, 'description': ''}} 2026-06-22 11:31:15,618 - DEBUG - Response for create_subnet : {'subnet': {'id': '475aa9f0-52cb-4e25-b878-62572ec850c7', 'name': '', 'tenant_id': '2a67f2c0d8b34b57a8d44804e5ab9942', 'network_id': 'd6114937-ebb0-4bdb-9a39-840ec72c4236', 'ip_version': 4, 'cidr': '42.47.33.64/26', 'allocation_pools': [{'start': '42.47.33.66', 'end': '42.47.33.126'}], 'gateway_ip': '42.47.33.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.47.33.66', 'tags': [], 'project_id': '2a67f2c0d8b34b57a8d44804e5ab9942'}} 2026-06-22 11:31:15,833 - DEBUG - Response for create_subnet : {'subnet': {'id': '6dac5cd0-2b93-422d-8803-e23ff0080546', 'name': '', 'tenant_id': '2a67f2c0d8b34b57a8d44804e5ab9942', 'network_id': 'd6114937-ebb0-4bdb-9a39-840ec72c4236', 'ip_version': 6, 'cidr': '3b55:cb59:4d57:2fbb:759e:4795::/96', 'allocation_pools': [{'start': '3b55:cb59:4d57:2fbb:759e:4795:0:2', 'end': '3b55:cb59:4d57:2fbb:759e:4795:ffff:fffe'}], 'gateway_ip': '3b55:cb59:4d57:2fbb:759e:4795:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b55:cb59:4d57:2fbb:759e:4795:0:2', 'tags': [], 'project_id': '2a67f2c0d8b34b57a8d44804e5ab9942'}} 2026-06-22 11:31:15,852 - INFO - Created VN ctest-vn4-00203267 2026-06-22 11:31:15,907 - DEBUG - VN ctest-vn4-00203267 UUID is d6114937-ebb0-4bdb-9a39-840ec72c4236 2026-06-22 11:31:16,129 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd6114937-ebb0-4bdb-9a39-840ec72c4236', 'name': 'ctest-vn4-00203267', 'tenant_id': '2a67f2c0d8b34b57a8d44804e5ab9942', 'project_id': '2a67f2c0d8b34b57a8d44804e5ab9942', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['475aa9f0-52cb-4e25-b878-62572ec850c7', '6dac5cd0-2b93-422d-8803-e23ff0080546'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85347111', 'ctest-vn4-00203267'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85347111', 'ctest-policy1-47282005']], 'subnet_ipam': [{'subnet_cidr': '42.47.33.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b55:cb59:4d57:2fbb:759e:4795::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-22 11:31:16,299 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-22 11:31:16,619 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-22 11:31:16,653 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c82e6a84-635e-4de9-8fa8-c9226476c9c0 2026-06-22 11:31:16,667 - DEBUG - Requesting: http://10.0.0.33:8082/project/2a67f2c0-d8b3-4b57-a8d4-4804e5ab9942 2026-06-22 11:31:16,741 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d6114937-ebb0-4bdb-9a39-840ec72c4236 2026-06-22 11:31:16,753 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d6114937-ebb0-4bdb-9a39-840ec72c4236 2026-06-22 11:31:16,763 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d4c90af4-3861-4b4b-90ec-4e616fac96e7 2026-06-22 11:31:16,771 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d4c90af4-3861-4b4b-90ec-4e616fac96e7 2026-06-22 11:31:16,778 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6ae716d0-2f5e-4505-bf56-9d8a3f51898e 2026-06-22 11:31:16,787 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-22 11:31:16,787 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d6114937-ebb0-4bdb-9a39-840ec72c4236 2026-06-22 11:31:16,800 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d4c90af4-3861-4b4b-90ec-4e616fac96e7 2026-06-22 11:31:16,816 - INFO - Verified VN network id 11 for VN d6114937-ebb0-4bdb-9a39-840ec72c4236 2026-06-22 11:31:16,817 - INFO - Verifications in API Server for VN ctest-vn4-00203267 passed 2026-06-22 11:31:16,817 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d6114937-ebb0-4bdb-9a39-840ec72c4236 2026-06-22 11:31:16,830 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d4c90af4-3861-4b4b-90ec-4e616fac96e7 2026-06-22 11:31:16,840 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d4c90af4-3861-4b4b-90ec-4e616fac96e7 2026-06-22 11:31:16,849 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6ae716d0-2f5e-4505-bf56-9d8a3f51898e 2026-06-22 11:31:16,865 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85347111:ctest-vn4-00203267', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85347111', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15425190703246887899', 'uuid-lslong': '11113058754519384630'}, 'enable': 'true', 'created': '2026-06-22T11:31:15', 'last-modified': '2026-06-22T11:31:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.764393'} 2026-06-22 11:31:16,880 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-22 11:31:16,880 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-00203267 passed 2026-06-22 11:31:16,880 - DEBUG - ====Verifying policy data for ctest-vn4-00203267 in API_Server ====== 2026-06-22 11:31:16,880 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-22 11:31:16,887 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c82e6a84-635e-4de9-8fa8-c9226476c9c0 2026-06-22 11:31:16,903 - DEBUG - Requesting: http://10.0.0.33:8082/project/2a67f2c0-d8b3-4b57-a8d4-4804e5ab9942 2026-06-22 11:31:16,973 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d6114937-ebb0-4bdb-9a39-840ec72c4236 2026-06-22 11:31:16,982 - DEBUG - ==>Verifying data for policy with id: c000308c-e921-4102-a43f-8ad9138a8c26, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85347111', 'ctest-policy1-47282005'] 2026-06-22 11:31:16,982 - INFO - VN ctest-vn4-00203267 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-22 11:31:16,982 - DEBUG - Verifying the vn in opserver 2026-06-22 11:31:16,982 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85347111:ctest-vn4-00203267 virtual network link through opserver 10.0.0.33 2026-06-22 11:31:16,982 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-22 11:31:17,309 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-22 11:31:17,363 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85347111:ctest-vn4-00203267', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85347111:ctest-vn4-00203267?flat'} 2026-06-22 11:31:17,363 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85347111:ctest-vn4-00203267 is found in opserver 2026-06-22 11:31:17,375 - DEBUG - Do not have enough data to verify VN in agent 2026-06-22 11:31:17,380 - DEBUG - VRF ids for VN ctest-vn4-00203267: {} 2026-06-22 11:31:17,380 - DEBUG - ====Verifying data for ctest-policy1-47282005 in API_Server ====== 2026-06-22 11:31:17,380 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-22 11:31:17,387 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c82e6a84-635e-4de9-8fa8-c9226476c9c0 2026-06-22 11:31:17,399 - DEBUG - Requesting: http://10.0.0.33:8082/project/2a67f2c0-d8b3-4b57-a8d4-4804e5ab9942 2026-06-22 11:31:17,475 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/c000308c-e921-4102-a43f-8ad9138a8c26 2026-06-22 11:31:17,485 - INFO - Verified policy ctest-policy1-47282005 in API Server, Result: True 2026-06-22 11:31:17,486 - INFO - Done with setup and verification, moving onto test .. 2026-06-22 11:31:17,495 - INFO - Deleting VN ctest-vn4-00203267 2026-06-22 11:31:17,622 - DEBUG - Response for deleting network () 2026-06-22 11:31:17,622 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d4c90af4-3861-4b4b-90ec-4e616fac96e7 2026-06-22 11:31:17,629 - DEBUG - Response Code: 404 2026-06-22 11:31:17,629 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-22 11:31:17,635 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c82e6a84-635e-4de9-8fa8-c9226476c9c0 2026-06-22 11:31:17,688 - DEBUG - Requesting: http://10.0.0.33:8082/project/2a67f2c0-d8b3-4b57-a8d4-4804e5ab9942 2026-06-22 11:31:17,759 - INFO - Validated that VN ctest-vn4-00203267 is not found in API Server 2026-06-22 11:31:17,770 - DEBUG - VN ctest-vn4-00203267 is not present in Agent 10.0.0.33 2026-06-22 11:31:17,770 - INFO - Validated that VN ctest-vn4-00203267 is not in any agent 2026-06-22 11:31:17,785 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-00203267 info 2026-06-22 11:31:17,813 - INFO - Deleted policy ctest-policy1-47282005 2026-06-22 11:31:17,979 - DEBUG - policy ctest-policy1-47282005 is not found in API Server 2026-06-22 11:31:18,232 - DEBUG - No XMPP flaps were noticed during the test