2026-06-22 01:48:29,972 - INFO - Reading existing Domain with UUID 3d18adb4-0133-48c0-977a-27957b969067 2026-06-22 01:48:29,982 - INFO - Using existing domain ['admin_domain'](3d18adb4-0133-48c0-977a-27957b969067) 2026-06-22 01:48:30,163 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-16881235 not found, creating it 2026-06-22 01:48:30,673 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-16881235, ID : b6e15df9-7caf-439a-b732-76c3c38bfa7e 2026-06-22 01:48:32,307 - INFO - ================================================================================ 2026-06-22 01:48:32,307 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-22 01:48:32,703 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with 2026-06-22 01:48:32,703 - INFO - Initial checks done. Running the testcase now 2026-06-22 01:48:32,703 - INFO - 2026-06-22 01:48:32,703 - INFO - ================================================================================ 2026-06-22 01:48:32,703 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-22 01:48:32,703 - 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 01:48:33,094 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with 2026-06-22 01:48:33,094 - INFO - Initial checks done. Running the testcase now 2026-06-22 01:48:33,094 - INFO - 2026-06-22 01:48:33,478 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-16881235:ctest-vn4-49742621, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-16881235:ctest-vn4-49742621, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-16881235:ctest-vn4-49742621, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-16881235:ctest-vn4-49742621, 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 01:48:34,194 - DEBUG - Response for create_network : {'network': {'id': 'ab6563d7-86c4-498f-9bf8-a5e5e697352b', 'name': 'ctest-vn4-49742621', 'tenant_id': 'b6e15df97caf439ab73276c3c38bfa7e', 'project_id': 'b6e15df97caf439ab73276c3c38bfa7e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16881235', 'ctest-vn4-49742621'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-06-22 01:48:34,390 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ad09303-3463-426d-b369-0efd6cd65e4b', 'name': '', 'tenant_id': 'b6e15df97caf439ab73276c3c38bfa7e', 'network_id': 'ab6563d7-86c4-498f-9bf8-a5e5e697352b', 'ip_version': 4, 'cidr': '6.36.109.64/26', 'allocation_pools': [{'start': '6.36.109.66', 'end': '6.36.109.126'}], 'gateway_ip': '6.36.109.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-06-22T01:48:34.295383', 'updated_at': '2026-06-22T01:48:34.295383', 'dns_server_address': '6.36.109.66', 'tags': [], 'project_id': 'b6e15df97caf439ab73276c3c38bfa7e'}} 2026-06-22 01:48:34,622 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ffda34e7-9ad5-41db-be6a-c1070e5235bd', 'name': '', 'tenant_id': 'b6e15df97caf439ab73276c3c38bfa7e', 'network_id': 'ab6563d7-86c4-498f-9bf8-a5e5e697352b', 'ip_version': 6, 'cidr': '31b7:599e:1dac:50b8:4383:7984::/96', 'allocation_pools': [{'start': '31b7:599e:1dac:50b8:4383:7984:0:2', 'end': '31b7:599e:1dac:50b8:4383:7984:ffff:fffe'}], 'gateway_ip': '31b7:599e:1dac:50b8:4383:7984:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-06-22T01:48:34.522522', 'updated_at': '2026-06-22T01:48:34.522522', 'dns_server_address': '31b7:599e:1dac:50b8:4383:7984:0:2', 'tags': [], 'project_id': 'b6e15df97caf439ab73276c3c38bfa7e'}} 2026-06-22 01:48:34,687 - INFO - Created VN ctest-vn4-49742621 2026-06-22 01:48:34,741 - DEBUG - VN ctest-vn4-49742621 UUID is ab6563d7-86c4-498f-9bf8-a5e5e697352b 2026-06-22 01:48:35,193 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab6563d7-86c4-498f-9bf8-a5e5e697352b', 'name': 'ctest-vn4-49742621', 'tenant_id': 'b6e15df97caf439ab73276c3c38bfa7e', 'project_id': 'b6e15df97caf439ab73276c3c38bfa7e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9ad09303-3463-426d-b369-0efd6cd65e4b', 'ffda34e7-9ad5-41db-be6a-c1070e5235bd'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16881235', 'ctest-vn4-49742621'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16881235', 'ctest-policy1-25274899']], 'subnet_ipam': [{'subnet_cidr': '6.36.109.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '31b7:599e:1dac:50b8:4383:7984::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-06-22T01:48:34.123371', 'updated_at': '2026-06-22T01:48:34.537560'}} 2026-06-22 01:48:35,365 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-06-22 01:48:35,714 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-06-22 01:48:35,793 - DEBUG - Requesting: https://10.0.0.129:8082/domain/3d18adb4-0133-48c0-977a-27957b969067 2026-06-22 01:48:35,854 - DEBUG - Requesting: https://10.0.0.129:8082/project/b6e15df9-7caf-439a-b732-76c3c38bfa7e 2026-06-22 01:48:35,942 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/ab6563d7-86c4-498f-9bf8-a5e5e697352b 2026-06-22 01:48:36,003 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/ab6563d7-86c4-498f-9bf8-a5e5e697352b 2026-06-22 01:48:36,059 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/96318c56-0b18-49c7-82c0-e74197393c05 2026-06-22 01:48:36,114 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/96318c56-0b18-49c7-82c0-e74197393c05 2026-06-22 01:48:36,174 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/7dca35ef-973a-48bf-9bd1-4f03c164c07b 2026-06-22 01:48:36,230 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-22 01:48:36,230 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/ab6563d7-86c4-498f-9bf8-a5e5e697352b 2026-06-22 01:48:36,287 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/96318c56-0b18-49c7-82c0-e74197393c05 2026-06-22 01:48:36,349 - INFO - Verified VN network id 9 for VN ab6563d7-86c4-498f-9bf8-a5e5e697352b 2026-06-22 01:48:36,349 - INFO - Verifications in API Server for VN ctest-vn4-49742621 passed 2026-06-22 01:48:36,350 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/ab6563d7-86c4-498f-9bf8-a5e5e697352b 2026-06-22 01:48:36,403 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/96318c56-0b18-49c7-82c0-e74197393c05 2026-06-22 01:48:36,458 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/96318c56-0b18-49c7-82c0-e74197393c05 2026-06-22 01:48:36,514 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/7dca35ef-973a-48bf-9bd1-4f03c164c07b 2026-06-22 01:48:36,614 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-16881235:ctest-vn4-49742621', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-16881235', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12350387330463582607', 'uuid-lslong': '11238915276937835819'}, 'enable': 'true', 'created': '2026-06-22T01:48:34', 'last-modified': '2026-06-22T01:48:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.457708'} 2026-06-22 01:48:36,663 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-22 01:48:36,663 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-49742621 passed 2026-06-22 01:48:36,663 - DEBUG - ====Verifying policy data for ctest-vn4-49742621 in API_Server ====== 2026-06-22 01:48:36,663 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-06-22 01:48:36,713 - DEBUG - Requesting: https://10.0.0.129:8082/domain/3d18adb4-0133-48c0-977a-27957b969067 2026-06-22 01:48:36,774 - DEBUG - Requesting: https://10.0.0.129:8082/project/b6e15df9-7caf-439a-b732-76c3c38bfa7e 2026-06-22 01:48:36,854 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/ab6563d7-86c4-498f-9bf8-a5e5e697352b 2026-06-22 01:48:36,911 - DEBUG - ==>Verifying data for policy with id: dd284c68-18e6-413b-849e-75d3932c8115, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16881235', 'ctest-policy1-25274899'] 2026-06-22 01:48:36,911 - INFO - VN ctest-vn4-49742621 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-22 01:48:36,911 - DEBUG - Verifying the vn in opserver 2026-06-22 01:48:36,911 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-16881235:ctest-vn4-49742621 virtual network link through opserver 10.0.0.129 2026-06-22 01:48:36,911 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2026-06-22 01:48:37,256 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2026-06-22 01:48:37,414 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-16881235:ctest-vn4-49742621', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-16881235:ctest-vn4-49742621?flat'} 2026-06-22 01:48:37,414 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-16881235:ctest-vn4-49742621 is found in opserver 2026-06-22 01:48:37,513 - DEBUG - Do not have enough data to verify VN in agent 2026-06-22 01:48:37,562 - DEBUG - VRF ids for VN ctest-vn4-49742621: {} 2026-06-22 01:48:37,562 - DEBUG - ====Verifying data for ctest-policy1-25274899 in API_Server ====== 2026-06-22 01:48:37,562 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-06-22 01:48:37,613 - DEBUG - Requesting: https://10.0.0.129:8082/domain/3d18adb4-0133-48c0-977a-27957b969067 2026-06-22 01:48:37,670 - DEBUG - Requesting: https://10.0.0.129:8082/project/b6e15df9-7caf-439a-b732-76c3c38bfa7e 2026-06-22 01:48:37,750 - DEBUG - Requesting: https://10.0.0.129:8082/network-policy/dd284c68-18e6-413b-849e-75d3932c8115 2026-06-22 01:48:37,807 - INFO - Verified policy ctest-policy1-25274899 in API Server, Result: True 2026-06-22 01:48:37,807 - INFO - Done with setup and verification, moving onto test .. 2026-06-22 01:48:37,816 - INFO - Deleting VN ctest-vn4-49742621 2026-06-22 01:48:38,023 - DEBUG - Response for deleting network () 2026-06-22 01:48:38,023 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/96318c56-0b18-49c7-82c0-e74197393c05 2026-06-22 01:48:38,073 - DEBUG - Response Code: 404 2026-06-22 01:48:38,073 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-06-22 01:48:38,125 - DEBUG - Requesting: https://10.0.0.129:8082/domain/3d18adb4-0133-48c0-977a-27957b969067 2026-06-22 01:48:38,182 - DEBUG - Requesting: https://10.0.0.129:8082/project/b6e15df9-7caf-439a-b732-76c3c38bfa7e 2026-06-22 01:48:38,258 - INFO - Validated that VN ctest-vn4-49742621 is not found in API Server 2026-06-22 01:48:38,353 - DEBUG - VN ctest-vn4-49742621 is not present in Agent 10.0.0.129 2026-06-22 01:48:38,353 - INFO - Validated that VN ctest-vn4-49742621 is not in any agent 2026-06-22 01:48:38,502 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-49742621 info 2026-06-22 01:48:38,525 - INFO - Deleted policy ctest-policy1-25274899 2026-06-22 01:48:38,697 - DEBUG - policy ctest-policy1-25274899 is not found in API Server 2026-06-22 01:48:39,086 - DEBUG - No XMPP flaps were noticed during the test