2026-02-10 11:32:57,460 - INFO - Domain Default found not creating 2026-02-10 11:32:57,815 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-48133372 not found, creating it 2026-02-10 11:32:58,388 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-48133372, ID : ddf81d02-b2a7-4f4a-a261-de1bc7d9c9b5 2026-02-10 11:33:01,246 - INFO - ================================================================================ 2026-02-10 11:33:01,246 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 11:33:01,534 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-10 11:33:01,534 - INFO - Initial checks done. Running the testcase now 2026-02-10 11:33:01,534 - INFO - 2026-02-10 11:33:01,534 - INFO - ================================================================================ 2026-02-10 11:33:01,534 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 11:33:01,534 - 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-02-10 11:33:01,859 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-10 11:33:01,859 - INFO - Initial checks done. Running the testcase now 2026-02-10 11:33:01,859 - INFO - 2026-02-10 11:33:02,310 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48133372:ctest-vn4-23846474, 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-48133372:ctest-vn4-23846474, 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-48133372:ctest-vn4-23846474, 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-48133372:ctest-vn4-23846474, 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-02-10 11:33:03,003 - DEBUG - Response for create_network : {'network': {'id': 'bf8189fa-4c4a-4787-92ec-9ab813560dc9', 'name': 'ctest-vn4-23846474', 'tenant_id': 'ddf81d02b2a74f4aa261de1bc7d9c9b5', 'project_id': 'ddf81d02b2a74f4aa261de1bc7d9c9b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48133372', 'ctest-vn4-23846474'], 'port_security_enabled': True, 'description': ''}} 2026-02-10 11:33:03,228 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8b71603-e37b-4013-955b-44d835fced94', 'name': '', 'tenant_id': 'ddf81d02b2a74f4aa261de1bc7d9c9b5', 'network_id': 'bf8189fa-4c4a-4787-92ec-9ab813560dc9', 'ip_version': 4, 'cidr': '162.68.220.64/26', 'allocation_pools': [{'start': '162.68.220.66', 'end': '162.68.220.126'}], 'gateway_ip': '162.68.220.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.68.220.66', 'tags': [], 'project_id': 'ddf81d02b2a74f4aa261de1bc7d9c9b5'}} 2026-02-10 11:33:03,506 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed7b544c-3faa-4a77-b953-a28d37f2abfc', 'name': '', 'tenant_id': 'ddf81d02b2a74f4aa261de1bc7d9c9b5', 'network_id': 'bf8189fa-4c4a-4787-92ec-9ab813560dc9', 'ip_version': 6, 'cidr': '2666:93ce:60bb:3e03:953a:d182::/96', 'allocation_pools': [{'start': '2666:93ce:60bb:3e03:953a:d182:0:2', 'end': '2666:93ce:60bb:3e03:953a:d182:ffff:fffe'}], 'gateway_ip': '2666:93ce:60bb:3e03:953a:d182:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2666:93ce:60bb:3e03:953a:d182:0:2', 'tags': [], 'project_id': 'ddf81d02b2a74f4aa261de1bc7d9c9b5'}} 2026-02-10 11:33:03,550 - INFO - Created VN ctest-vn4-23846474 2026-02-10 11:33:03,611 - DEBUG - VN ctest-vn4-23846474 UUID is bf8189fa-4c4a-4787-92ec-9ab813560dc9 2026-02-10 11:33:03,901 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bf8189fa-4c4a-4787-92ec-9ab813560dc9', 'name': 'ctest-vn4-23846474', 'tenant_id': 'ddf81d02b2a74f4aa261de1bc7d9c9b5', 'project_id': 'ddf81d02b2a74f4aa261de1bc7d9c9b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d8b71603-e37b-4013-955b-44d835fced94', 'ed7b544c-3faa-4a77-b953-a28d37f2abfc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48133372', 'ctest-vn4-23846474'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48133372', 'ctest-policy1-58292343']], 'subnet_ipam': [{'subnet_cidr': '162.68.220.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2666:93ce:60bb:3e03:953a:d182::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-10 11:33:04,068 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-10 11:33:04,422 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-10 11:33:04,461 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7492b9ef-d4fe-4fce-a4a2-a8bbe9c3adac 2026-02-10 11:33:04,483 - DEBUG - Requesting: http://10.0.0.50:8082/project/ddf81d02-b2a7-4f4a-a261-de1bc7d9c9b5 2026-02-10 11:33:04,597 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bf8189fa-4c4a-4787-92ec-9ab813560dc9 2026-02-10 11:33:04,619 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bf8189fa-4c4a-4787-92ec-9ab813560dc9 2026-02-10 11:33:04,634 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d5bbbe4a-3803-45d3-b2de-08391feb69f9 2026-02-10 11:33:04,645 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d5bbbe4a-3803-45d3-b2de-08391feb69f9 2026-02-10 11:33:04,656 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/babc6924-b8e0-40d7-a18a-50094c7ef128 2026-02-10 11:33:04,667 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 11:33:04,667 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bf8189fa-4c4a-4787-92ec-9ab813560dc9 2026-02-10 11:33:04,682 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d5bbbe4a-3803-45d3-b2de-08391feb69f9 2026-02-10 11:33:04,703 - INFO - Verified VN network id 10 for VN bf8189fa-4c4a-4787-92ec-9ab813560dc9 2026-02-10 11:33:04,704 - INFO - Verifications in API Server for VN ctest-vn4-23846474 passed 2026-02-10 11:33:04,704 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bf8189fa-4c4a-4787-92ec-9ab813560dc9 2026-02-10 11:33:04,719 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d5bbbe4a-3803-45d3-b2de-08391feb69f9 2026-02-10 11:33:04,729 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d5bbbe4a-3803-45d3-b2de-08391feb69f9 2026-02-10 11:33:04,740 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/babc6924-b8e0-40d7-a18a-50094c7ef128 2026-02-10 11:33:04,757 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48133372:ctest-vn4-23846474', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48133372', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13799462441354676103', 'uuid-lslong': '10587006939430260169'}, 'enable': 'true', 'created': '2026-02-10T11:33:02', 'last-modified': '2026-02-10T11:33:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.891780'} 2026-02-10 11:33:04,767 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 11:33:04,768 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-23846474 passed 2026-02-10 11:33:04,768 - DEBUG - ====Verifying policy data for ctest-vn4-23846474 in API_Server ====== 2026-02-10 11:33:04,768 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-10 11:33:04,777 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7492b9ef-d4fe-4fce-a4a2-a8bbe9c3adac 2026-02-10 11:33:04,795 - DEBUG - Requesting: http://10.0.0.50:8082/project/ddf81d02-b2a7-4f4a-a261-de1bc7d9c9b5 2026-02-10 11:33:04,880 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bf8189fa-4c4a-4787-92ec-9ab813560dc9 2026-02-10 11:33:04,895 - DEBUG - ==>Verifying data for policy with id: ee70a145-332e-4b5f-b331-97e704d6514b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48133372', 'ctest-policy1-58292343'] 2026-02-10 11:33:04,895 - INFO - VN ctest-vn4-23846474 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-10 11:33:04,895 - DEBUG - Verifying the vn in opserver 2026-02-10 11:33:04,895 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48133372:ctest-vn4-23846474 virtual network link through opserver 10.0.0.50 2026-02-10 11:33:04,896 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-10 11:33:05,201 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-10 11:33:05,276 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48133372:ctest-vn4-23846474', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48133372:ctest-vn4-23846474?flat'} 2026-02-10 11:33:05,276 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48133372:ctest-vn4-23846474 is found in opserver 2026-02-10 11:33:05,299 - DEBUG - Do not have enough data to verify VN in agent 2026-02-10 11:33:05,310 - DEBUG - VRF ids for VN ctest-vn4-23846474: {} 2026-02-10 11:33:05,311 - DEBUG - ====Verifying data for ctest-policy1-58292343 in API_Server ====== 2026-02-10 11:33:05,311 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-10 11:33:05,317 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7492b9ef-d4fe-4fce-a4a2-a8bbe9c3adac 2026-02-10 11:33:05,331 - DEBUG - Requesting: http://10.0.0.50:8082/project/ddf81d02-b2a7-4f4a-a261-de1bc7d9c9b5 2026-02-10 11:33:05,420 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/ee70a145-332e-4b5f-b331-97e704d6514b 2026-02-10 11:33:05,431 - INFO - Verified policy ctest-policy1-58292343 in API Server, Result: True 2026-02-10 11:33:05,431 - INFO - Done with setup and verification, moving onto test .. 2026-02-10 11:33:05,443 - INFO - Deleting VN ctest-vn4-23846474 2026-02-10 11:33:05,587 - DEBUG - Response for deleting network () 2026-02-10 11:33:05,587 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d5bbbe4a-3803-45d3-b2de-08391feb69f9 2026-02-10 11:33:05,595 - DEBUG - Response Code: 404 2026-02-10 11:33:05,595 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-10 11:33:05,601 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7492b9ef-d4fe-4fce-a4a2-a8bbe9c3adac 2026-02-10 11:33:05,656 - DEBUG - Requesting: http://10.0.0.50:8082/project/ddf81d02-b2a7-4f4a-a261-de1bc7d9c9b5 2026-02-10 11:33:05,746 - INFO - Validated that VN ctest-vn4-23846474 is not found in API Server 2026-02-10 11:33:05,759 - DEBUG - VN ctest-vn4-23846474 is not present in Agent 10.0.0.50 2026-02-10 11:33:05,759 - INFO - Validated that VN ctest-vn4-23846474 is not in any agent 2026-02-10 11:33:05,778 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-23846474 info 2026-02-10 11:33:05,814 - INFO - Deleted policy ctest-policy1-58292343 2026-02-10 11:33:05,995 - DEBUG - policy ctest-policy1-58292343 is not found in API Server 2026-02-10 11:33:06,325 - DEBUG - No XMPP flaps were noticed during the test 2026-02-10 11:33:06,325 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-10 11:33:06,326 - INFO - -------------------------------------------------------------------------------- 2026-02-10 11:33:06,668 - DEBUG - No XMPP flaps were noticed during the test 2026-02-10 11:33:06,668 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-10 11:33:06,668 - INFO - -------------------------------------------------------------------------------- 2026-02-10 11:33:07,583 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-48133372, ID : ddf81d02-b2a7-4f4a-a261-de1bc7d9c9b5