2026-03-30 03:37:56,005 - INFO - Domain Default found not creating 2026-03-30 03:37:56,184 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-75111221 not found, creating it 2026-03-30 03:37:56,662 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-75111221, ID : 5d23d814-460a-407f-8e1c-77da1727e057 2026-03-30 03:37:58,165 - INFO - ================================================================================ 2026-03-30 03:37:58,165 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-30 03:37:58,433 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.193': '0'}} with 2026-03-30 03:37:58,434 - INFO - Initial checks done. Running the testcase now 2026-03-30 03:37:58,434 - INFO - 2026-03-30 03:37:58,434 - INFO - ================================================================================ 2026-03-30 03:37:58,434 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-30 03:37:58,434 - 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-03-30 03:37:58,724 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.193': '0'}} with 2026-03-30 03:37:58,724 - INFO - Initial checks done. Running the testcase now 2026-03-30 03:37:58,725 - INFO - 2026-03-30 03:37:59,095 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75111221:ctest-vn4-15614303, 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-75111221:ctest-vn4-15614303, 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-75111221:ctest-vn4-15614303, 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-75111221:ctest-vn4-15614303, 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-03-30 03:37:59,620 - DEBUG - Response for create_network : {'network': {'id': '676f9ef0-3896-4dad-a691-34a60e5ff671', 'name': 'ctest-vn4-15614303', 'tenant_id': '5d23d814460a407f8e1c77da1727e057', 'project_id': '5d23d814460a407f8e1c77da1727e057', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75111221', 'ctest-vn4-15614303'], 'port_security_enabled': True, 'description': ''}} 2026-03-30 03:37:59,793 - DEBUG - Response for create_subnet : {'subnet': {'id': '7174cc52-b86c-4f1f-b51f-117bebe657e9', 'name': '', 'tenant_id': '5d23d814460a407f8e1c77da1727e057', 'network_id': '676f9ef0-3896-4dad-a691-34a60e5ff671', 'ip_version': 4, 'cidr': '162.113.9.64/26', 'allocation_pools': [{'start': '162.113.9.66', 'end': '162.113.9.126'}], 'gateway_ip': '162.113.9.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.113.9.66', 'tags': [], 'project_id': '5d23d814460a407f8e1c77da1727e057'}} 2026-03-30 03:37:59,994 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b366a3f9-d0e9-4eac-9b69-8e0cca1b4717', 'name': '', 'tenant_id': '5d23d814460a407f8e1c77da1727e057', 'network_id': '676f9ef0-3896-4dad-a691-34a60e5ff671', 'ip_version': 6, 'cidr': '3309:a308:8007:5907:6ab9:ebc6::/96', 'allocation_pools': [{'start': '3309:a308:8007:5907:6ab9:ebc6:0:2', 'end': '3309:a308:8007:5907:6ab9:ebc6:ffff:fffe'}], 'gateway_ip': '3309:a308:8007:5907:6ab9:ebc6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3309:a308:8007:5907:6ab9:ebc6:0:2', 'tags': [], 'project_id': '5d23d814460a407f8e1c77da1727e057'}} 2026-03-30 03:38:00,015 - INFO - Created VN ctest-vn4-15614303 2026-03-30 03:38:00,074 - DEBUG - VN ctest-vn4-15614303 UUID is 676f9ef0-3896-4dad-a691-34a60e5ff671 2026-03-30 03:38:00,285 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '676f9ef0-3896-4dad-a691-34a60e5ff671', 'name': 'ctest-vn4-15614303', 'tenant_id': '5d23d814460a407f8e1c77da1727e057', 'project_id': '5d23d814460a407f8e1c77da1727e057', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7174cc52-b86c-4f1f-b51f-117bebe657e9', 'b366a3f9-d0e9-4eac-9b69-8e0cca1b4717'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75111221', 'ctest-vn4-15614303'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75111221', 'ctest-policy1-42982636']], 'subnet_ipam': [{'subnet_cidr': '162.113.9.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3309:a308:8007:5907:6ab9:ebc6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-30 03:38:00,442 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-03-30 03:38:00,743 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-03-30 03:38:00,780 - DEBUG - Requesting: http://10.0.0.19:8082/domain/834f966d-5a78-4189-87b6-8e200ff83a1c 2026-03-30 03:38:00,797 - DEBUG - Requesting: http://10.0.0.19:8082/project/5d23d814-460a-407f-8e1c-77da1727e057 2026-03-30 03:38:00,866 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/676f9ef0-3896-4dad-a691-34a60e5ff671 2026-03-30 03:38:00,880 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/676f9ef0-3896-4dad-a691-34a60e5ff671 2026-03-30 03:38:00,890 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/af8b54ca-6a0e-4791-a7ef-3b0549dc9890 2026-03-30 03:38:00,897 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/af8b54ca-6a0e-4791-a7ef-3b0549dc9890 2026-03-30 03:38:00,906 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/8d47095e-42cd-410f-ab1b-341d72a21eac 2026-03-30 03:38:00,912 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-30 03:38:00,912 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/676f9ef0-3896-4dad-a691-34a60e5ff671 2026-03-30 03:38:00,921 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/af8b54ca-6a0e-4791-a7ef-3b0549dc9890 2026-03-30 03:38:00,937 - INFO - Verified VN network id 11 for VN 676f9ef0-3896-4dad-a691-34a60e5ff671 2026-03-30 03:38:00,937 - INFO - Verifications in API Server for VN ctest-vn4-15614303 passed 2026-03-30 03:38:00,937 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/676f9ef0-3896-4dad-a691-34a60e5ff671 2026-03-30 03:38:00,946 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/af8b54ca-6a0e-4791-a7ef-3b0549dc9890 2026-03-30 03:38:00,955 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/af8b54ca-6a0e-4791-a7ef-3b0549dc9890 2026-03-30 03:38:00,965 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/8d47095e-42cd-410f-ab1b-341d72a21eac 2026-03-30 03:38:00,982 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75111221:ctest-vn4-15614303', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-75111221', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7453350662900174253', 'uuid-lslong': '12002432369729468017'}, 'enable': 'true', 'created': '2026-03-30T03:37:59', 'last-modified': '2026-03-30T03:38:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.722047'} 2026-03-30 03:38:00,992 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-30 03:38:00,992 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15614303 passed 2026-03-30 03:38:00,992 - DEBUG - ====Verifying policy data for ctest-vn4-15614303 in API_Server ====== 2026-03-30 03:38:00,993 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-03-30 03:38:01,001 - DEBUG - Requesting: http://10.0.0.19:8082/domain/834f966d-5a78-4189-87b6-8e200ff83a1c 2026-03-30 03:38:01,012 - DEBUG - Requesting: http://10.0.0.19:8082/project/5d23d814-460a-407f-8e1c-77da1727e057 2026-03-30 03:38:01,105 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/676f9ef0-3896-4dad-a691-34a60e5ff671 2026-03-30 03:38:01,116 - DEBUG - ==>Verifying data for policy with id: 8c362788-07d8-4b83-85fa-2a0d9ff683c4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75111221', 'ctest-policy1-42982636'] 2026-03-30 03:38:01,116 - INFO - VN ctest-vn4-15614303 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-30 03:38:01,116 - DEBUG - Verifying the vn in opserver 2026-03-30 03:38:01,116 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75111221:ctest-vn4-15614303 virtual network link through opserver 10.0.0.19 2026-03-30 03:38:01,116 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-03-30 03:38:01,414 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-03-30 03:38:01,495 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75111221:ctest-vn4-15614303', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75111221:ctest-vn4-15614303?flat'} 2026-03-30 03:38:01,495 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75111221:ctest-vn4-15614303 is found in opserver 2026-03-30 03:38:01,506 - DEBUG - Do not have enough data to verify VN in agent 2026-03-30 03:38:01,512 - DEBUG - VRF ids for VN ctest-vn4-15614303: {} 2026-03-30 03:38:01,512 - DEBUG - ====Verifying data for ctest-policy1-42982636 in API_Server ====== 2026-03-30 03:38:01,512 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-03-30 03:38:01,518 - DEBUG - Requesting: http://10.0.0.19:8082/domain/834f966d-5a78-4189-87b6-8e200ff83a1c 2026-03-30 03:38:01,530 - DEBUG - Requesting: http://10.0.0.19:8082/project/5d23d814-460a-407f-8e1c-77da1727e057 2026-03-30 03:38:01,616 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/8c362788-07d8-4b83-85fa-2a0d9ff683c4 2026-03-30 03:38:01,626 - INFO - Verified policy ctest-policy1-42982636 in API Server, Result: True 2026-03-30 03:38:01,626 - INFO - Done with setup and verification, moving onto test .. 2026-03-30 03:38:01,636 - INFO - Deleting VN ctest-vn4-15614303 2026-03-30 03:38:01,761 - DEBUG - Response for deleting network () 2026-03-30 03:38:01,761 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/af8b54ca-6a0e-4791-a7ef-3b0549dc9890 2026-03-30 03:38:01,766 - DEBUG - Response Code: 404 2026-03-30 03:38:01,767 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-03-30 03:38:01,774 - DEBUG - Requesting: http://10.0.0.19:8082/domain/834f966d-5a78-4189-87b6-8e200ff83a1c 2026-03-30 03:38:01,826 - DEBUG - Requesting: http://10.0.0.19:8082/project/5d23d814-460a-407f-8e1c-77da1727e057 2026-03-30 03:38:01,893 - INFO - Validated that VN ctest-vn4-15614303 is not found in API Server 2026-03-30 03:38:01,903 - DEBUG - VN ctest-vn4-15614303 is not present in Agent 10.0.0.19 2026-03-30 03:38:01,903 - INFO - Validated that VN ctest-vn4-15614303 is not in any agent 2026-03-30 03:38:01,918 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15614303 info 2026-03-30 03:38:01,946 - INFO - Deleted policy ctest-policy1-42982636 2026-03-30 03:38:02,109 - DEBUG - policy ctest-policy1-42982636 is not found in API Server 2026-03-30 03:38:02,365 - DEBUG - No XMPP flaps were noticed during the test