2026-03-04 18:35:02,748 - INFO - Domain Default found not creating 2026-03-04 18:35:02,910 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-67998572 not found, creating it 2026-03-04 18:35:03,393 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-67998572, ID : ea4d9645-6c54-4c65-a682-afc73159ac76 2026-03-04 18:35:04,917 - INFO - ================================================================================ 2026-03-04 18:35:04,917 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-04 18:35:05,172 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2026-03-04 18:35:05,172 - INFO - Initial checks done. Running the testcase now 2026-03-04 18:35:05,172 - INFO - 2026-03-04 18:35:05,172 - INFO - ================================================================================ 2026-03-04 18:35:05,172 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-04 18:35:05,172 - 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-04 18:35:05,475 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2026-03-04 18:35:05,475 - INFO - Initial checks done. Running the testcase now 2026-03-04 18:35:05,475 - INFO - 2026-03-04 18:35:05,873 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67998572:ctest-vn4-80265916, 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-67998572:ctest-vn4-80265916, 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-67998572:ctest-vn4-80265916, 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-67998572:ctest-vn4-80265916, 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-04 18:35:06,378 - DEBUG - Response for create_network : {'network': {'id': 'a34a8fe4-f802-4705-a81d-a3ac4efaf33f', 'name': 'ctest-vn4-80265916', 'tenant_id': 'ea4d96456c544c65a682afc73159ac76', 'project_id': 'ea4d96456c544c65a682afc73159ac76', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67998572', 'ctest-vn4-80265916'], 'port_security_enabled': True, 'description': ''}} 2026-03-04 18:35:06,575 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd9495199-92a9-4960-b6b0-e490754236a5', 'name': '', 'tenant_id': 'ea4d96456c544c65a682afc73159ac76', 'network_id': 'a34a8fe4-f802-4705-a81d-a3ac4efaf33f', 'ip_version': 4, 'cidr': '15.125.225.64/26', 'allocation_pools': [{'start': '15.125.225.66', 'end': '15.125.225.126'}], 'gateway_ip': '15.125.225.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.125.225.66', 'tags': [], 'project_id': 'ea4d96456c544c65a682afc73159ac76'}} 2026-03-04 18:35:06,764 - DEBUG - Response for create_subnet : {'subnet': {'id': '2382795b-85d7-4b90-982b-a69d0bb69335', 'name': '', 'tenant_id': 'ea4d96456c544c65a682afc73159ac76', 'network_id': 'a34a8fe4-f802-4705-a81d-a3ac4efaf33f', 'ip_version': 6, 'cidr': '222a:4189:3fe4:6045:32f0:fe3c::/96', 'allocation_pools': [{'start': '222a:4189:3fe4:6045:32f0:fe3c:0:2', 'end': '222a:4189:3fe4:6045:32f0:fe3c:ffff:fffe'}], 'gateway_ip': '222a:4189:3fe4:6045:32f0:fe3c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222a:4189:3fe4:6045:32f0:fe3c:0:2', 'tags': [], 'project_id': 'ea4d96456c544c65a682afc73159ac76'}} 2026-03-04 18:35:06,784 - INFO - Created VN ctest-vn4-80265916 2026-03-04 18:35:06,842 - DEBUG - VN ctest-vn4-80265916 UUID is a34a8fe4-f802-4705-a81d-a3ac4efaf33f 2026-03-04 18:35:07,043 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a34a8fe4-f802-4705-a81d-a3ac4efaf33f', 'name': 'ctest-vn4-80265916', 'tenant_id': 'ea4d96456c544c65a682afc73159ac76', 'project_id': 'ea4d96456c544c65a682afc73159ac76', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d9495199-92a9-4960-b6b0-e490754236a5', '2382795b-85d7-4b90-982b-a69d0bb69335'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67998572', 'ctest-vn4-80265916'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67998572', 'ctest-policy1-14036549']], 'subnet_ipam': [{'subnet_cidr': '15.125.225.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '222a:4189:3fe4:6045:32f0:fe3c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-04 18:35:07,202 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-04 18:35:07,495 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-04 18:35:07,525 - DEBUG - Requesting: http://10.0.0.33:8082/domain/43ae3b76-4c26-4084-b595-2e9b852d91dc 2026-03-04 18:35:07,536 - DEBUG - Requesting: http://10.0.0.33:8082/project/ea4d9645-6c54-4c65-a682-afc73159ac76 2026-03-04 18:35:07,608 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a34a8fe4-f802-4705-a81d-a3ac4efaf33f 2026-03-04 18:35:07,620 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a34a8fe4-f802-4705-a81d-a3ac4efaf33f 2026-03-04 18:35:07,630 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d8caf6db-a9e5-4b6e-b35e-4e0b0fb9efdf 2026-03-04 18:35:07,636 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d8caf6db-a9e5-4b6e-b35e-4e0b0fb9efdf 2026-03-04 18:35:07,643 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/30b3b097-9dc1-465c-9a7d-03e32f208143 2026-03-04 18:35:07,650 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-04 18:35:07,650 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a34a8fe4-f802-4705-a81d-a3ac4efaf33f 2026-03-04 18:35:07,660 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d8caf6db-a9e5-4b6e-b35e-4e0b0fb9efdf 2026-03-04 18:35:07,676 - INFO - Verified VN network id 11 for VN a34a8fe4-f802-4705-a81d-a3ac4efaf33f 2026-03-04 18:35:07,676 - INFO - Verifications in API Server for VN ctest-vn4-80265916 passed 2026-03-04 18:35:07,677 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a34a8fe4-f802-4705-a81d-a3ac4efaf33f 2026-03-04 18:35:07,687 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d8caf6db-a9e5-4b6e-b35e-4e0b0fb9efdf 2026-03-04 18:35:07,694 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d8caf6db-a9e5-4b6e-b35e-4e0b0fb9efdf 2026-03-04 18:35:07,700 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/30b3b097-9dc1-465c-9a7d-03e32f208143 2026-03-04 18:35:07,713 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67998572:ctest-vn4-80265916', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-67998572', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11766375190035056389', 'uuid-lslong': '12114018533151273791'}, 'enable': 'true', 'created': '2026-03-04T18:35:06', 'last-modified': '2026-03-04T18:35:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.700249'} 2026-03-04 18:35:07,719 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-04 18:35:07,719 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-80265916 passed 2026-03-04 18:35:07,719 - DEBUG - ====Verifying policy data for ctest-vn4-80265916 in API_Server ====== 2026-03-04 18:35:07,719 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-04 18:35:07,725 - DEBUG - Requesting: http://10.0.0.33:8082/domain/43ae3b76-4c26-4084-b595-2e9b852d91dc 2026-03-04 18:35:07,735 - DEBUG - Requesting: http://10.0.0.33:8082/project/ea4d9645-6c54-4c65-a682-afc73159ac76 2026-03-04 18:35:07,811 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a34a8fe4-f802-4705-a81d-a3ac4efaf33f 2026-03-04 18:35:07,822 - DEBUG - ==>Verifying data for policy with id: 4abcf78a-c866-4ef4-a483-bdfeb5118270, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67998572', 'ctest-policy1-14036549'] 2026-03-04 18:35:07,822 - INFO - VN ctest-vn4-80265916 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-04 18:35:07,822 - DEBUG - Verifying the vn in opserver 2026-03-04 18:35:07,822 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67998572:ctest-vn4-80265916 virtual network link through opserver 10.0.0.33 2026-03-04 18:35:07,822 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-04 18:35:08,119 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-04 18:35:08,185 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67998572:ctest-vn4-80265916', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67998572:ctest-vn4-80265916?flat'} 2026-03-04 18:35:08,185 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67998572:ctest-vn4-80265916 is found in opserver 2026-03-04 18:35:08,194 - DEBUG - Do not have enough data to verify VN in agent 2026-03-04 18:35:08,198 - DEBUG - VRF ids for VN ctest-vn4-80265916: {} 2026-03-04 18:35:08,199 - DEBUG - ====Verifying data for ctest-policy1-14036549 in API_Server ====== 2026-03-04 18:35:08,199 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-04 18:35:08,204 - DEBUG - Requesting: http://10.0.0.33:8082/domain/43ae3b76-4c26-4084-b595-2e9b852d91dc 2026-03-04 18:35:08,220 - DEBUG - Requesting: http://10.0.0.33:8082/project/ea4d9645-6c54-4c65-a682-afc73159ac76 2026-03-04 18:35:08,296 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/4abcf78a-c866-4ef4-a483-bdfeb5118270 2026-03-04 18:35:08,307 - INFO - Verified policy ctest-policy1-14036549 in API Server, Result: True 2026-03-04 18:35:08,307 - INFO - Done with setup and verification, moving onto test .. 2026-03-04 18:35:08,320 - INFO - Deleting VN ctest-vn4-80265916 2026-03-04 18:35:08,452 - DEBUG - Response for deleting network () 2026-03-04 18:35:08,453 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d8caf6db-a9e5-4b6e-b35e-4e0b0fb9efdf 2026-03-04 18:35:08,457 - DEBUG - Response Code: 404 2026-03-04 18:35:08,458 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-04 18:35:08,463 - DEBUG - Requesting: http://10.0.0.33:8082/domain/43ae3b76-4c26-4084-b595-2e9b852d91dc 2026-03-04 18:35:08,518 - DEBUG - Requesting: http://10.0.0.33:8082/project/ea4d9645-6c54-4c65-a682-afc73159ac76 2026-03-04 18:35:08,595 - INFO - Validated that VN ctest-vn4-80265916 is not found in API Server 2026-03-04 18:35:08,607 - DEBUG - VN ctest-vn4-80265916 is not present in Agent 10.0.0.33 2026-03-04 18:35:08,607 - INFO - Validated that VN ctest-vn4-80265916 is not in any agent 2026-03-04 18:35:08,621 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-80265916 info 2026-03-04 18:35:08,652 - INFO - Deleted policy ctest-policy1-14036549 2026-03-04 18:35:08,813 - DEBUG - policy ctest-policy1-14036549 is not found in API Server 2026-03-04 18:35:09,066 - DEBUG - No XMPP flaps were noticed during the test
2026-03-04 18:35:09,066 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-04 18:35:09,067 - INFO - -------------------------------------------------------------------------------- 2026-03-04 18:35:09,359 - DEBUG - No XMPP flaps were noticed during the test
2026-03-04 18:35:09,359 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-03-04 18:35:09,359 - INFO - -------------------------------------------------------------------------------- 2026-03-04 18:35:10,371 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-67998572, ID : ea4d9645-6c54-4c65-a682-afc73159ac76