2026-07-18 14:36:37,933 - INFO - Domain Default found not creating 2026-07-18 14:36:38,109 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-23369673 not found, creating it 2026-07-18 14:36:38,628 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-23369673, ID : a14fc1fc-28b5-465d-9cbd-722a0a358ffa 2026-07-18 14:36:40,362 - INFO - ================================================================================ 2026-07-18 14:36:40,362 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-18 14:36:40,633 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-07-18 14:36:40,633 - INFO - Initial checks done. Running the testcase now 2026-07-18 14:36:40,633 - INFO - 2026-07-18 14:36:40,634 - INFO - ================================================================================ 2026-07-18 14:36:40,634 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-18 14:36:40,634 - 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-07-18 14:36:40,929 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-07-18 14:36:40,929 - INFO - Initial checks done. Running the testcase now 2026-07-18 14:36:40,929 - INFO - 2026-07-18 14:36:41,364 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23369673:ctest-vn4-36868433, 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-23369673:ctest-vn4-36868433, 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-23369673:ctest-vn4-36868433, 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-23369673:ctest-vn4-36868433, 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-07-18 14:36:41,920 - DEBUG - Response for create_network : {'network': {'id': '1124cedd-6810-4de9-9f68-5aeba62b10b7', 'name': 'ctest-vn4-36868433', 'tenant_id': 'a14fc1fc28b5465d9cbd722a0a358ffa', 'project_id': 'a14fc1fc28b5465d9cbd722a0a358ffa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23369673', 'ctest-vn4-36868433'], 'port_security_enabled': True, 'description': ''}} 2026-07-18 14:36:42,101 - DEBUG - Response for create_subnet : {'subnet': {'id': '853ad719-1ab9-483a-a6fe-d28d54a0ed1c', 'name': '', 'tenant_id': 'a14fc1fc28b5465d9cbd722a0a358ffa', 'network_id': '1124cedd-6810-4de9-9f68-5aeba62b10b7', 'ip_version': 4, 'cidr': '175.93.71.0/26', 'allocation_pools': [{'start': '175.93.71.2', 'end': '175.93.71.62'}], 'gateway_ip': '175.93.71.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.93.71.2', 'tags': [], 'project_id': 'a14fc1fc28b5465d9cbd722a0a358ffa'}} 2026-07-18 14:36:42,273 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a4163626-5e6d-4bfc-80ad-8170e6f48963', 'name': '', 'tenant_id': 'a14fc1fc28b5465d9cbd722a0a358ffa', 'network_id': '1124cedd-6810-4de9-9f68-5aeba62b10b7', 'ip_version': 6, 'cidr': '3604:80a4:68c9:5b1c:9e0d:130e::/96', 'allocation_pools': [{'start': '3604:80a4:68c9:5b1c:9e0d:130e:0:2', 'end': '3604:80a4:68c9:5b1c:9e0d:130e:ffff:fffe'}], 'gateway_ip': '3604:80a4:68c9:5b1c:9e0d:130e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3604:80a4:68c9:5b1c:9e0d:130e:0:2', 'tags': [], 'project_id': 'a14fc1fc28b5465d9cbd722a0a358ffa'}} 2026-07-18 14:36:42,294 - INFO - Created VN ctest-vn4-36868433 2026-07-18 14:36:42,346 - DEBUG - VN ctest-vn4-36868433 UUID is 1124cedd-6810-4de9-9f68-5aeba62b10b7 2026-07-18 14:36:42,571 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1124cedd-6810-4de9-9f68-5aeba62b10b7', 'name': 'ctest-vn4-36868433', 'tenant_id': 'a14fc1fc28b5465d9cbd722a0a358ffa', 'project_id': 'a14fc1fc28b5465d9cbd722a0a358ffa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['853ad719-1ab9-483a-a6fe-d28d54a0ed1c', 'a4163626-5e6d-4bfc-80ad-8170e6f48963'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23369673', 'ctest-vn4-36868433'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23369673', 'ctest-policy1-98914092']], 'subnet_ipam': [{'subnet_cidr': '175.93.71.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3604:80a4:68c9:5b1c:9e0d:130e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-18 14:36:42,742 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-07-18 14:36:43,121 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-07-18 14:36:43,151 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e5d71531-1c93-46fb-84d4-bc8ea547b5f2 2026-07-18 14:36:43,166 - DEBUG - Requesting: http://10.0.0.242:8082/project/a14fc1fc-28b5-465d-9cbd-722a0a358ffa 2026-07-18 14:36:43,246 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1124cedd-6810-4de9-9f68-5aeba62b10b7 2026-07-18 14:36:43,260 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1124cedd-6810-4de9-9f68-5aeba62b10b7 2026-07-18 14:36:43,272 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a3aa7f67-9022-4a3c-8ffe-db29979f9a0e 2026-07-18 14:36:43,281 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a3aa7f67-9022-4a3c-8ffe-db29979f9a0e 2026-07-18 14:36:43,288 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/dbc38ea9-b57d-4361-899d-cba0007a0483 2026-07-18 14:36:43,296 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-18 14:36:43,296 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1124cedd-6810-4de9-9f68-5aeba62b10b7 2026-07-18 14:36:43,306 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a3aa7f67-9022-4a3c-8ffe-db29979f9a0e 2026-07-18 14:36:43,321 - INFO - Verified VN network id 11 for VN 1124cedd-6810-4de9-9f68-5aeba62b10b7 2026-07-18 14:36:43,321 - INFO - Verifications in API Server for VN ctest-vn4-36868433 passed 2026-07-18 14:36:43,321 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1124cedd-6810-4de9-9f68-5aeba62b10b7 2026-07-18 14:36:43,333 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a3aa7f67-9022-4a3c-8ffe-db29979f9a0e 2026-07-18 14:36:43,341 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a3aa7f67-9022-4a3c-8ffe-db29979f9a0e 2026-07-18 14:36:43,349 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/dbc38ea9-b57d-4361-899d-cba0007a0483 2026-07-18 14:36:43,364 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23369673:ctest-vn4-36868433', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-23369673', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1235339648135351785', 'uuid-lslong': '11486530817760104631'}, 'enable': 'true', 'created': '2026-07-18T14:36:41', 'last-modified': '2026-07-18T14:36:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.829874'} 2026-07-18 14:36:43,372 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-18 14:36:43,372 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-36868433 passed 2026-07-18 14:36:43,372 - DEBUG - ====Verifying policy data for ctest-vn4-36868433 in API_Server ====== 2026-07-18 14:36:43,372 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-07-18 14:36:43,382 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e5d71531-1c93-46fb-84d4-bc8ea547b5f2 2026-07-18 14:36:43,394 - DEBUG - Requesting: http://10.0.0.242:8082/project/a14fc1fc-28b5-465d-9cbd-722a0a358ffa 2026-07-18 14:36:43,471 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1124cedd-6810-4de9-9f68-5aeba62b10b7 2026-07-18 14:36:43,482 - DEBUG - ==>Verifying data for policy with id: 5116c6a6-c491-4c7a-8b61-55506c8bf92c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23369673', 'ctest-policy1-98914092'] 2026-07-18 14:36:43,483 - INFO - VN ctest-vn4-36868433 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-18 14:36:43,483 - DEBUG - Verifying the vn in opserver 2026-07-18 14:36:43,483 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23369673:ctest-vn4-36868433 virtual network link through opserver 10.0.0.242 2026-07-18 14:36:43,483 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-07-18 14:36:43,858 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-07-18 14:36:43,915 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23369673:ctest-vn4-36868433', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23369673:ctest-vn4-36868433?flat'} 2026-07-18 14:36:43,915 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23369673:ctest-vn4-36868433 is found in opserver 2026-07-18 14:36:43,930 - DEBUG - Do not have enough data to verify VN in agent 2026-07-18 14:36:43,936 - DEBUG - VRF ids for VN ctest-vn4-36868433: {} 2026-07-18 14:36:43,936 - DEBUG - ====Verifying data for ctest-policy1-98914092 in API_Server ====== 2026-07-18 14:36:43,937 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-07-18 14:36:43,943 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e5d71531-1c93-46fb-84d4-bc8ea547b5f2 2026-07-18 14:36:43,955 - DEBUG - Requesting: http://10.0.0.242:8082/project/a14fc1fc-28b5-465d-9cbd-722a0a358ffa 2026-07-18 14:36:44,031 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/5116c6a6-c491-4c7a-8b61-55506c8bf92c 2026-07-18 14:36:44,043 - INFO - Verified policy ctest-policy1-98914092 in API Server, Result: True 2026-07-18 14:36:44,043 - INFO - Done with setup and verification, moving onto test .. 2026-07-18 14:36:44,051 - INFO - Deleting VN ctest-vn4-36868433 2026-07-18 14:36:44,179 - DEBUG - Response for deleting network () 2026-07-18 14:36:44,179 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a3aa7f67-9022-4a3c-8ffe-db29979f9a0e 2026-07-18 14:36:44,185 - DEBUG - Response Code: 404 2026-07-18 14:36:44,186 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-07-18 14:36:44,192 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e5d71531-1c93-46fb-84d4-bc8ea547b5f2 2026-07-18 14:36:44,248 - DEBUG - Requesting: http://10.0.0.242:8082/project/a14fc1fc-28b5-465d-9cbd-722a0a358ffa 2026-07-18 14:36:44,326 - INFO - Validated that VN ctest-vn4-36868433 is not found in API Server 2026-07-18 14:36:44,339 - DEBUG - VN ctest-vn4-36868433 is not present in Agent 10.0.0.242 2026-07-18 14:36:44,340 - INFO - Validated that VN ctest-vn4-36868433 is not in any agent 2026-07-18 14:36:44,358 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-36868433 info 2026-07-18 14:36:44,387 - INFO - Deleted policy ctest-policy1-98914092 2026-07-18 14:36:44,558 - DEBUG - policy ctest-policy1-98914092 is not found in API Server 2026-07-18 14:36:44,828 - DEBUG - No XMPP flaps were noticed during the test
2026-07-18 14:36:44,828 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-07-18 14:36:44,828 - INFO - -------------------------------------------------------------------------------- 2026-07-18 14:36:45,113 - DEBUG - No XMPP flaps were noticed during the test
2026-07-18 14:36:45,113 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-07-18 14:36:45,113 - INFO - -------------------------------------------------------------------------------- 2026-07-18 14:36:45,880 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-23369673, ID : a14fc1fc-28b5-465d-9cbd-722a0a358ffa