2026-02-02 11:05:02,934 - INFO - Domain Default found not creating 2026-02-02 11:05:03,117 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-41278749 not found, creating it 2026-02-02 11:05:03,566 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-41278749, ID : c072a10d-1226-44c2-8281-08ab14585486 2026-02-02 11:05:05,049 - INFO - ================================================================================ 2026-02-02 11:05:05,049 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 11:05:05,307 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-02 11:05:05,307 - INFO - Initial checks done. Running the testcase now 2026-02-02 11:05:05,307 - INFO - 2026-02-02 11:05:05,307 - INFO - ================================================================================ 2026-02-02 11:05:05,307 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 11:05:05,307 - 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-02 11:05:05,596 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-02 11:05:05,596 - INFO - Initial checks done. Running the testcase now 2026-02-02 11:05:05,596 - INFO - 2026-02-02 11:05:05,944 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41278749:ctest-vn4-40761522, 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-41278749:ctest-vn4-40761522, 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-41278749:ctest-vn4-40761522, 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-41278749:ctest-vn4-40761522, 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-02 11:05:06,468 - DEBUG - Response for create_network : {'network': {'id': '839058a1-8d2e-4a66-9b10-fd90614cf71a', 'name': 'ctest-vn4-40761522', 'tenant_id': 'c072a10d122644c2828108ab14585486', 'project_id': 'c072a10d122644c2828108ab14585486', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41278749', 'ctest-vn4-40761522'], 'port_security_enabled': True, 'description': ''}} 2026-02-02 11:05:06,643 - DEBUG - Response for create_subnet : {'subnet': {'id': 'edf698ff-38e5-4cba-be97-be1086377dd4', 'name': '', 'tenant_id': 'c072a10d122644c2828108ab14585486', 'network_id': '839058a1-8d2e-4a66-9b10-fd90614cf71a', 'ip_version': 4, 'cidr': '206.117.162.0/26', 'allocation_pools': [{'start': '206.117.162.2', 'end': '206.117.162.62'}], 'gateway_ip': '206.117.162.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.117.162.2', 'tags': [], 'project_id': 'c072a10d122644c2828108ab14585486'}} 2026-02-02 11:05:06,827 - DEBUG - Response for create_subnet : {'subnet': {'id': '26987f37-3d59-47e7-95b3-95d73827da3f', 'name': '', 'tenant_id': 'c072a10d122644c2828108ab14585486', 'network_id': '839058a1-8d2e-4a66-9b10-fd90614cf71a', 'ip_version': 6, 'cidr': '33a2:fdbd:55de:47c4:706:49c5::/96', 'allocation_pools': [{'start': '33a2:fdbd:55de:47c4:706:49c5:0:2', 'end': '33a2:fdbd:55de:47c4:706:49c5:ffff:fffe'}], 'gateway_ip': '33a2:fdbd:55de:47c4:706:49c5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33a2:fdbd:55de:47c4:706:49c5:0:2', 'tags': [], 'project_id': 'c072a10d122644c2828108ab14585486'}} 2026-02-02 11:05:06,847 - INFO - Created VN ctest-vn4-40761522 2026-02-02 11:05:06,904 - DEBUG - VN ctest-vn4-40761522 UUID is 839058a1-8d2e-4a66-9b10-fd90614cf71a 2026-02-02 11:05:07,109 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '839058a1-8d2e-4a66-9b10-fd90614cf71a', 'name': 'ctest-vn4-40761522', 'tenant_id': 'c072a10d122644c2828108ab14585486', 'project_id': 'c072a10d122644c2828108ab14585486', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['edf698ff-38e5-4cba-be97-be1086377dd4', '26987f37-3d59-47e7-95b3-95d73827da3f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41278749', 'ctest-vn4-40761522'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41278749', 'ctest-policy1-25580695']], 'subnet_ipam': [{'subnet_cidr': '206.117.162.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '33a2:fdbd:55de:47c4:706:49c5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-02 11:05:07,275 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-02 11:05:07,571 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-02 11:05:07,601 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c1a77e27-717f-41f0-ba91-a071550ff6bd 2026-02-02 11:05:07,614 - DEBUG - Requesting: http://10.0.0.50:8082/project/c072a10d-1226-44c2-8281-08ab14585486 2026-02-02 11:05:07,687 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/839058a1-8d2e-4a66-9b10-fd90614cf71a 2026-02-02 11:05:07,698 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/839058a1-8d2e-4a66-9b10-fd90614cf71a 2026-02-02 11:05:07,710 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4fb62cf5-7886-48ab-a19e-9732ed61b52c 2026-02-02 11:05:07,719 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4fb62cf5-7886-48ab-a19e-9732ed61b52c 2026-02-02 11:05:07,727 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/58a06fb0-45ae-4581-b27b-e9df765b0554 2026-02-02 11:05:07,734 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 11:05:07,734 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/839058a1-8d2e-4a66-9b10-fd90614cf71a 2026-02-02 11:05:07,743 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4fb62cf5-7886-48ab-a19e-9732ed61b52c 2026-02-02 11:05:07,756 - INFO - Verified VN network id 12 for VN 839058a1-8d2e-4a66-9b10-fd90614cf71a 2026-02-02 11:05:07,756 - INFO - Verifications in API Server for VN ctest-vn4-40761522 passed 2026-02-02 11:05:07,756 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/839058a1-8d2e-4a66-9b10-fd90614cf71a 2026-02-02 11:05:07,766 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4fb62cf5-7886-48ab-a19e-9732ed61b52c 2026-02-02 11:05:07,773 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4fb62cf5-7886-48ab-a19e-9732ed61b52c 2026-02-02 11:05:07,780 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/58a06fb0-45ae-4581-b27b-e9df765b0554 2026-02-02 11:05:07,792 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41278749:ctest-vn4-40761522', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-41278749', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9480174666496494182', 'uuid-lslong': '11173709472055752474'}, 'enable': 'true', 'created': '2026-02-02T11:05:06', 'last-modified': '2026-02-02T11:05:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.706081'} 2026-02-02 11:05:07,799 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 11:05:07,800 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-40761522 passed 2026-02-02 11:05:07,800 - DEBUG - ====Verifying policy data for ctest-vn4-40761522 in API_Server ====== 2026-02-02 11:05:07,800 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-02 11:05:07,805 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c1a77e27-717f-41f0-ba91-a071550ff6bd 2026-02-02 11:05:07,817 - DEBUG - Requesting: http://10.0.0.50:8082/project/c072a10d-1226-44c2-8281-08ab14585486 2026-02-02 11:05:07,890 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/839058a1-8d2e-4a66-9b10-fd90614cf71a 2026-02-02 11:05:07,898 - DEBUG - ==>Verifying data for policy with id: 5df14b16-9827-48db-884d-b25faf29cff2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41278749', 'ctest-policy1-25580695'] 2026-02-02 11:05:07,899 - INFO - VN ctest-vn4-40761522 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-02 11:05:07,899 - DEBUG - Verifying the vn in opserver 2026-02-02 11:05:07,899 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41278749:ctest-vn4-40761522 virtual network link through opserver 10.0.0.50 2026-02-02 11:05:07,899 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-02 11:05:08,193 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-02 11:05:08,257 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41278749:ctest-vn4-40761522', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41278749:ctest-vn4-40761522?flat'} 2026-02-02 11:05:08,257 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41278749:ctest-vn4-40761522 is found in opserver 2026-02-02 11:05:08,267 - DEBUG - Do not have enough data to verify VN in agent 2026-02-02 11:05:08,272 - DEBUG - VRF ids for VN ctest-vn4-40761522: {} 2026-02-02 11:05:08,273 - DEBUG - ====Verifying data for ctest-policy1-25580695 in API_Server ====== 2026-02-02 11:05:08,273 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-02 11:05:08,278 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c1a77e27-717f-41f0-ba91-a071550ff6bd 2026-02-02 11:05:08,289 - DEBUG - Requesting: http://10.0.0.50:8082/project/c072a10d-1226-44c2-8281-08ab14585486 2026-02-02 11:05:08,362 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/5df14b16-9827-48db-884d-b25faf29cff2 2026-02-02 11:05:08,373 - INFO - Verified policy ctest-policy1-25580695 in API Server, Result: True 2026-02-02 11:05:08,373 - INFO - Done with setup and verification, moving onto test .. 2026-02-02 11:05:08,382 - INFO - Deleting VN ctest-vn4-40761522 2026-02-02 11:05:08,501 - DEBUG - Response for deleting network () 2026-02-02 11:05:08,501 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4fb62cf5-7886-48ab-a19e-9732ed61b52c 2026-02-02 11:05:08,505 - DEBUG - Response Code: 404 2026-02-02 11:05:08,505 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-02 11:05:08,511 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c1a77e27-717f-41f0-ba91-a071550ff6bd 2026-02-02 11:05:08,564 - DEBUG - Requesting: http://10.0.0.50:8082/project/c072a10d-1226-44c2-8281-08ab14585486 2026-02-02 11:05:08,633 - INFO - Validated that VN ctest-vn4-40761522 is not found in API Server 2026-02-02 11:05:08,642 - DEBUG - VN ctest-vn4-40761522 is not present in Agent 10.0.0.50 2026-02-02 11:05:08,642 - INFO - Validated that VN ctest-vn4-40761522 is not in any agent 2026-02-02 11:05:08,655 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-40761522 info 2026-02-02 11:05:08,677 - INFO - Deleted policy ctest-policy1-25580695 2026-02-02 11:05:08,839 - DEBUG - policy ctest-policy1-25580695 is not found in API Server 2026-02-02 11:05:09,104 - DEBUG - No XMPP flaps were noticed during the test 2026-02-02 11:05:09,104 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-02 11:05:09,104 - INFO - -------------------------------------------------------------------------------- 2026-02-02 11:05:09,405 - DEBUG - No XMPP flaps were noticed during the test 2026-02-02 11:05:09,405 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-02 11:05:09,405 - INFO - -------------------------------------------------------------------------------- 2026-02-02 11:05:10,118 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-41278749, ID : c072a10d-1226-44c2-8281-08ab14585486