2026-03-12 01:50:19,047 - INFO - Reading existing Domain with UUID d3dbfc90-0ead-4aa5-a44d-bbde5d3c799a 2026-03-12 01:50:19,057 - INFO - Using existing domain ['admin_domain'](d3dbfc90-0ead-4aa5-a44d-bbde5d3c799a) 2026-03-12 01:50:19,282 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-44782546 not found, creating it 2026-03-12 01:50:19,840 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-44782546, ID : 014e3efb-4406-44d9-b07e-a247311bf141 2026-03-12 01:50:21,705 - INFO - ================================================================================ 2026-03-12 01:50:21,705 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-12 01:50:22,098 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.0.0.41': '0'}} with 2026-03-12 01:50:22,099 - INFO - Initial checks done. Running the testcase now 2026-03-12 01:50:22,099 - INFO - 2026-03-12 01:50:22,099 - INFO - ================================================================================ 2026-03-12 01:50:22,099 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-12 01:50:22,099 - 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-12 01:50:22,482 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.0.0.41': '0'}} with 2026-03-12 01:50:22,483 - INFO - Initial checks done. Running the testcase now 2026-03-12 01:50:22,483 - INFO - 2026-03-12 01:50:22,862 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-44782546:ctest-vn4-16242147, 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-44782546:ctest-vn4-16242147, 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-44782546:ctest-vn4-16242147, 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-44782546:ctest-vn4-16242147, 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-12 01:50:23,609 - DEBUG - Response for create_network : {'network': {'id': '8882b762-95b7-4aa7-81bb-da568c77807e', 'name': 'ctest-vn4-16242147', 'tenant_id': '014e3efb440644d9b07ea247311bf141', 'project_id': '014e3efb440644d9b07ea247311bf141', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44782546', 'ctest-vn4-16242147'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-03-12 01:50:23,810 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f9d6bede-4804-4527-800d-a0f826a82e58', 'name': '', 'tenant_id': '014e3efb440644d9b07ea247311bf141', 'network_id': '8882b762-95b7-4aa7-81bb-da568c77807e', 'ip_version': 4, 'cidr': '67.245.139.64/26', 'allocation_pools': [{'start': '67.245.139.66', 'end': '67.245.139.126'}], 'gateway_ip': '67.245.139.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-03-12T01:50:23.713805', 'updated_at': '2026-03-12T01:50:23.713805', 'dns_server_address': '67.245.139.66', 'tags': [], 'project_id': '014e3efb440644d9b07ea247311bf141'}} 2026-03-12 01:50:24,019 - DEBUG - Response for create_subnet : {'subnet': {'id': '7940ebd1-5fe9-4e74-a840-4db37ff3fe2f', 'name': '', 'tenant_id': '014e3efb440644d9b07ea247311bf141', 'network_id': '8882b762-95b7-4aa7-81bb-da568c77807e', 'ip_version': 6, 'cidr': '2526:5ead:9a1b:a74b:aaae:533::/96', 'allocation_pools': [{'start': '2526:5ead:9a1b:a74b:aaae:533:0:2', 'end': '2526:5ead:9a1b:a74b:aaae:533:ffff:fffe'}], 'gateway_ip': '2526:5ead:9a1b:a74b:aaae:533:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-03-12T01:50:23.914995', 'updated_at': '2026-03-12T01:50:23.914995', 'dns_server_address': '2526:5ead:9a1b:a74b:aaae:533:0:2', 'tags': [], 'project_id': '014e3efb440644d9b07ea247311bf141'}} 2026-03-12 01:50:24,087 - INFO - Created VN ctest-vn4-16242147 2026-03-12 01:50:24,141 - DEBUG - VN ctest-vn4-16242147 UUID is 8882b762-95b7-4aa7-81bb-da568c77807e 2026-03-12 01:50:24,601 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8882b762-95b7-4aa7-81bb-da568c77807e', 'name': 'ctest-vn4-16242147', 'tenant_id': '014e3efb440644d9b07ea247311bf141', 'project_id': '014e3efb440644d9b07ea247311bf141', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f9d6bede-4804-4527-800d-a0f826a82e58', '7940ebd1-5fe9-4e74-a840-4db37ff3fe2f'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44782546', 'ctest-vn4-16242147'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44782546', 'ctest-policy1-87533602']], 'subnet_ipam': [{'subnet_cidr': '67.245.139.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2526:5ead:9a1b:a74b:aaae:533::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-03-12T01:50:23.531090', 'updated_at': '2026-03-12T01:50:23.932070'}} 2026-03-12 01:50:24,785 - DEBUG - Requesting: https://10.0.0.41:8082/domains 2026-03-12 01:50:25,156 - DEBUG - Requesting: https://10.0.0.41:8082/domains 2026-03-12 01:50:25,242 - DEBUG - Requesting: https://10.0.0.41:8082/domain/d3dbfc90-0ead-4aa5-a44d-bbde5d3c799a 2026-03-12 01:50:25,302 - DEBUG - Requesting: https://10.0.0.41:8082/project/014e3efb-4406-44d9-b07e-a247311bf141 2026-03-12 01:50:25,387 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/8882b762-95b7-4aa7-81bb-da568c77807e 2026-03-12 01:50:25,448 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/8882b762-95b7-4aa7-81bb-da568c77807e 2026-03-12 01:50:25,503 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/30999518-b2b6-486a-b1ac-e0b487c858a3 2026-03-12 01:50:25,558 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/30999518-b2b6-486a-b1ac-e0b487c858a3 2026-03-12 01:50:25,614 - DEBUG - Requesting: https://10.0.0.41:8082/route-target/54481b24-c4f4-44fd-a86a-c968795c2e70 2026-03-12 01:50:25,666 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-12 01:50:25,666 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/8882b762-95b7-4aa7-81bb-da568c77807e 2026-03-12 01:50:25,723 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/30999518-b2b6-486a-b1ac-e0b487c858a3 2026-03-12 01:50:25,788 - INFO - Verified VN network id 11 for VN 8882b762-95b7-4aa7-81bb-da568c77807e 2026-03-12 01:50:25,788 - INFO - Verifications in API Server for VN ctest-vn4-16242147 passed 2026-03-12 01:50:25,788 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/8882b762-95b7-4aa7-81bb-da568c77807e 2026-03-12 01:50:25,843 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/30999518-b2b6-486a-b1ac-e0b487c858a3 2026-03-12 01:50:25,898 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/30999518-b2b6-486a-b1ac-e0b487c858a3 2026-03-12 01:50:25,950 - DEBUG - Requesting: https://10.0.0.41:8082/route-target/54481b24-c4f4-44fd-a86a-c968795c2e70 2026-03-12 01:50:26,059 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-44782546:ctest-vn4-16242147', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-44782546', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9836626170177079975', 'uuid-lslong': '9348305516796280958'}, 'enable': 'true', 'created': '2026-03-12T01:50:23', 'last-modified': '2026-03-12T01:50:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.491472'} 2026-03-12 01:50:26,113 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-12 01:50:26,113 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-16242147 passed 2026-03-12 01:50:26,113 - DEBUG - ====Verifying policy data for ctest-vn4-16242147 in API_Server ====== 2026-03-12 01:50:26,113 - DEBUG - Requesting: https://10.0.0.41:8082/domains 2026-03-12 01:50:26,165 - DEBUG - Requesting: https://10.0.0.41:8082/domain/d3dbfc90-0ead-4aa5-a44d-bbde5d3c799a 2026-03-12 01:50:26,226 - DEBUG - Requesting: https://10.0.0.41:8082/project/014e3efb-4406-44d9-b07e-a247311bf141 2026-03-12 01:50:26,306 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/8882b762-95b7-4aa7-81bb-da568c77807e 2026-03-12 01:50:26,365 - DEBUG - ==>Verifying data for policy with id: 6ddb6eaa-cb2d-4edc-9b80-22cea8dfdec0, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44782546', 'ctest-policy1-87533602'] 2026-03-12 01:50:26,365 - INFO - VN ctest-vn4-16242147 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-12 01:50:26,365 - DEBUG - Verifying the vn in opserver 2026-03-12 01:50:26,365 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-44782546:ctest-vn4-16242147 virtual network link through opserver 10.0.0.41 2026-03-12 01:50:26,365 - DEBUG - Requesting: https://10.0.0.41:8081/analytics/uves/virtual-networks 2026-03-12 01:50:26,721 - DEBUG - Requesting: https://10.0.0.41:8081/analytics/uves/virtual-networks 2026-03-12 01:50:26,838 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-44782546:ctest-vn4-16242147', 'href': 'https://10.0.0.41:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-44782546:ctest-vn4-16242147?flat'} 2026-03-12 01:50:26,838 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-44782546:ctest-vn4-16242147 is found in opserver 2026-03-12 01:50:26,941 - DEBUG - Do not have enough data to verify VN in agent 2026-03-12 01:50:26,994 - DEBUG - VRF ids for VN ctest-vn4-16242147: {} 2026-03-12 01:50:26,995 - DEBUG - ====Verifying data for ctest-policy1-87533602 in API_Server ====== 2026-03-12 01:50:26,995 - DEBUG - Requesting: https://10.0.0.41:8082/domains 2026-03-12 01:50:27,045 - DEBUG - Requesting: https://10.0.0.41:8082/domain/d3dbfc90-0ead-4aa5-a44d-bbde5d3c799a 2026-03-12 01:50:27,106 - DEBUG - Requesting: https://10.0.0.41:8082/project/014e3efb-4406-44d9-b07e-a247311bf141 2026-03-12 01:50:27,182 - DEBUG - Requesting: https://10.0.0.41:8082/network-policy/6ddb6eaa-cb2d-4edc-9b80-22cea8dfdec0 2026-03-12 01:50:27,239 - INFO - Verified policy ctest-policy1-87533602 in API Server, Result: True 2026-03-12 01:50:27,240 - INFO - Done with setup and verification, moving onto test .. 2026-03-12 01:50:27,250 - INFO - Deleting VN ctest-vn4-16242147 2026-03-12 01:50:27,440 - DEBUG - Response for deleting network () 2026-03-12 01:50:27,440 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/30999518-b2b6-486a-b1ac-e0b487c858a3 2026-03-12 01:50:27,493 - DEBUG - Response Code: 404 2026-03-12 01:50:27,493 - DEBUG - Requesting: https://10.0.0.41:8082/domains 2026-03-12 01:50:27,545 - DEBUG - Requesting: https://10.0.0.41:8082/domain/d3dbfc90-0ead-4aa5-a44d-bbde5d3c799a 2026-03-12 01:50:27,606 - DEBUG - Requesting: https://10.0.0.41:8082/project/014e3efb-4406-44d9-b07e-a247311bf141 2026-03-12 01:50:27,686 - INFO - Validated that VN ctest-vn4-16242147 is not found in API Server 2026-03-12 01:50:27,790 - DEBUG - VN ctest-vn4-16242147 is not present in Agent 10.0.0.41 2026-03-12 01:50:27,790 - INFO - Validated that VN ctest-vn4-16242147 is not in any agent 2026-03-12 01:50:27,939 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-16242147 info 2026-03-12 01:50:27,969 - INFO - Deleted policy ctest-policy1-87533602 2026-03-12 01:50:28,149 - DEBUG - policy ctest-policy1-87533602 is not found in API Server 2026-03-12 01:50:28,526 - DEBUG - No XMPP flaps were noticed during the test