2026-11-16 15:47:19,918 - INFO - Domain Default found not creating 2026-11-16 15:47:20,594 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-69905069 not found, creating it 2026-11-16 15:47:21,094 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-69905069, ID : 26f9b92f-a3a4-4f53-847c-584ae987a4ec 2026-11-16 15:47:22,829 - INFO - ================================================================================ 2026-11-16 15:47:22,830 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-16 15:47:23,100 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-11-16 15:47:23,100 - INFO - Initial checks done. Running the testcase now 2026-11-16 15:47:23,100 - INFO - 2026-11-16 15:47:23,100 - INFO - ================================================================================ 2026-11-16 15:47:23,100 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-16 15:47:23,101 - 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-11-16 15:47:23,390 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-11-16 15:47:23,391 - INFO - Initial checks done. Running the testcase now 2026-11-16 15:47:23,391 - INFO - 2026-11-16 15:47:23,815 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69905069:ctest-vn4-41960539, 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-69905069:ctest-vn4-41960539, 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-69905069:ctest-vn4-41960539, 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-69905069:ctest-vn4-41960539, 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-11-16 15:47:24,339 - DEBUG - Response for create_network : {'network': {'id': '7ed6ce5e-d904-4fea-85dc-282f210db4ec', 'name': 'ctest-vn4-41960539', 'tenant_id': '26f9b92fa3a44f53847c584ae987a4ec', 'project_id': '26f9b92fa3a44f53847c584ae987a4ec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69905069', 'ctest-vn4-41960539'], 'port_security_enabled': True, 'description': ''}} 2026-11-16 15:47:24,569 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec4b9b80-36ac-463a-a488-24dffac437ef', 'name': '', 'tenant_id': '26f9b92fa3a44f53847c584ae987a4ec', 'network_id': '7ed6ce5e-d904-4fea-85dc-282f210db4ec', 'ip_version': 4, 'cidr': '221.56.168.64/26', 'allocation_pools': [{'start': '221.56.168.66', 'end': '221.56.168.126'}], 'gateway_ip': '221.56.168.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.56.168.66', 'tags': [], 'project_id': '26f9b92fa3a44f53847c584ae987a4ec'}} 2026-11-16 15:47:24,765 - DEBUG - Response for create_subnet : {'subnet': {'id': '90f8ffdf-e4b0-49f2-804b-89d3f9184fd7', 'name': '', 'tenant_id': '26f9b92fa3a44f53847c584ae987a4ec', 'network_id': '7ed6ce5e-d904-4fea-85dc-282f210db4ec', 'ip_version': 6, 'cidr': '3328:942:c98e:a9d0:bc5b:324f::/96', 'allocation_pools': [{'start': '3328:942:c98e:a9d0:bc5b:324f:0:2', 'end': '3328:942:c98e:a9d0:bc5b:324f:ffff:fffe'}], 'gateway_ip': '3328:942:c98e:a9d0:bc5b:324f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3328:942:c98e:a9d0:bc5b:324f:0:2', 'tags': [], 'project_id': '26f9b92fa3a44f53847c584ae987a4ec'}} 2026-11-16 15:47:24,783 - INFO - Created VN ctest-vn4-41960539 2026-11-16 15:47:24,834 - DEBUG - VN ctest-vn4-41960539 UUID is 7ed6ce5e-d904-4fea-85dc-282f210db4ec 2026-11-16 15:47:25,037 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7ed6ce5e-d904-4fea-85dc-282f210db4ec', 'name': 'ctest-vn4-41960539', 'tenant_id': '26f9b92fa3a44f53847c584ae987a4ec', 'project_id': '26f9b92fa3a44f53847c584ae987a4ec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['ec4b9b80-36ac-463a-a488-24dffac437ef', '90f8ffdf-e4b0-49f2-804b-89d3f9184fd7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69905069', 'ctest-vn4-41960539'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69905069', 'ctest-policy1-68256482']], 'subnet_ipam': [{'subnet_cidr': '221.56.168.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3328:942:c98e:a9d0:bc5b:324f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-16 15:47:25,198 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-16 15:47:25,561 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-16 15:47:25,588 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e7860507-8b5a-4ab6-9a83-386b090a353b 2026-11-16 15:47:25,601 - DEBUG - Requesting: http://10.0.0.38:8082/project/26f9b92f-a3a4-4f53-847c-584ae987a4ec 2026-11-16 15:47:25,674 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7ed6ce5e-d904-4fea-85dc-282f210db4ec 2026-11-16 15:47:25,685 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7ed6ce5e-d904-4fea-85dc-282f210db4ec 2026-11-16 15:47:25,694 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d4b4b079-1274-4b73-921e-11053f3c92df 2026-11-16 15:47:25,700 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d4b4b079-1274-4b73-921e-11053f3c92df 2026-11-16 15:47:25,706 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ba88fefb-c85e-4343-9ef2-278262d13762 2026-11-16 15:47:25,714 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-16 15:47:25,714 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7ed6ce5e-d904-4fea-85dc-282f210db4ec 2026-11-16 15:47:25,723 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d4b4b079-1274-4b73-921e-11053f3c92df 2026-11-16 15:47:25,735 - INFO - Verified VN network id 11 for VN 7ed6ce5e-d904-4fea-85dc-282f210db4ec 2026-11-16 15:47:25,735 - INFO - Verifications in API Server for VN ctest-vn4-41960539 passed 2026-11-16 15:47:25,735 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7ed6ce5e-d904-4fea-85dc-282f210db4ec 2026-11-16 15:47:25,744 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d4b4b079-1274-4b73-921e-11053f3c92df 2026-11-16 15:47:25,750 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d4b4b079-1274-4b73-921e-11053f3c92df 2026-11-16 15:47:25,756 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ba88fefb-c85e-4343-9ef2-278262d13762 2026-11-16 15:47:25,768 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69905069:ctest-vn4-41960539', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-69905069', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9139719400558186474', 'uuid-lslong': '9645628684803880172'}, 'enable': 'true', 'created': '2026-11-16T15:47:24', 'last-modified': '2026-11-16T15:47:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.757250'} 2026-11-16 15:47:25,775 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-16 15:47:25,775 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-41960539 passed 2026-11-16 15:47:25,776 - DEBUG - ====Verifying policy data for ctest-vn4-41960539 in API_Server ====== 2026-11-16 15:47:25,776 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-16 15:47:25,781 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e7860507-8b5a-4ab6-9a83-386b090a353b 2026-11-16 15:47:25,791 - DEBUG - Requesting: http://10.0.0.38:8082/project/26f9b92f-a3a4-4f53-847c-584ae987a4ec 2026-11-16 15:47:25,859 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7ed6ce5e-d904-4fea-85dc-282f210db4ec 2026-11-16 15:47:25,870 - DEBUG - ==>Verifying data for policy with id: 833f8054-8021-4448-aac0-ba92bc200b10, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69905069', 'ctest-policy1-68256482'] 2026-11-16 15:47:25,870 - INFO - VN ctest-vn4-41960539 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-16 15:47:25,870 - DEBUG - Verifying the vn in opserver 2026-11-16 15:47:25,870 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69905069:ctest-vn4-41960539 virtual network link through opserver 10.0.0.38 2026-11-16 15:47:25,870 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-11-16 15:47:26,236 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-11-16 15:47:26,289 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69905069:ctest-vn4-41960539', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69905069:ctest-vn4-41960539?flat'} 2026-11-16 15:47:26,290 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69905069:ctest-vn4-41960539 is found in opserver 2026-11-16 15:47:26,303 - DEBUG - Do not have enough data to verify VN in agent 2026-11-16 15:47:26,308 - DEBUG - VRF ids for VN ctest-vn4-41960539: {} 2026-11-16 15:47:26,309 - DEBUG - ====Verifying data for ctest-policy1-68256482 in API_Server ====== 2026-11-16 15:47:26,309 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-16 15:47:26,315 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e7860507-8b5a-4ab6-9a83-386b090a353b 2026-11-16 15:47:26,327 - DEBUG - Requesting: http://10.0.0.38:8082/project/26f9b92f-a3a4-4f53-847c-584ae987a4ec 2026-11-16 15:47:26,399 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/833f8054-8021-4448-aac0-ba92bc200b10 2026-11-16 15:47:26,412 - INFO - Verified policy ctest-policy1-68256482 in API Server, Result: True 2026-11-16 15:47:26,412 - INFO - Done with setup and verification, moving onto test .. 2026-11-16 15:47:26,422 - INFO - Deleting VN ctest-vn4-41960539 2026-11-16 15:47:26,568 - DEBUG - Response for deleting network () 2026-11-16 15:47:26,568 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d4b4b079-1274-4b73-921e-11053f3c92df 2026-11-16 15:47:26,573 - DEBUG - Response Code: 404 2026-11-16 15:47:26,573 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-16 15:47:26,583 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e7860507-8b5a-4ab6-9a83-386b090a353b 2026-11-16 15:47:26,640 - DEBUG - Requesting: http://10.0.0.38:8082/project/26f9b92f-a3a4-4f53-847c-584ae987a4ec 2026-11-16 15:47:26,712 - INFO - Validated that VN ctest-vn4-41960539 is not found in API Server 2026-11-16 15:47:26,726 - DEBUG - VN ctest-vn4-41960539 is not present in Agent 10.0.0.38 2026-11-16 15:47:26,726 - INFO - Validated that VN ctest-vn4-41960539 is not in any agent 2026-11-16 15:47:26,739 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-41960539 info 2026-11-16 15:47:26,765 - INFO - Deleted policy ctest-policy1-68256482 2026-11-16 15:47:26,926 - DEBUG - policy ctest-policy1-68256482 is not found in API Server 2026-11-16 15:47:27,189 - DEBUG - No XMPP flaps were noticed during the test
2026-11-16 15:47:27,189 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-11-16 15:47:27,189 - INFO - -------------------------------------------------------------------------------- 2026-11-16 15:47:27,479 - DEBUG - No XMPP flaps were noticed during the test
2026-11-16 15:47:27,479 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-11-16 15:47:27,479 - INFO - -------------------------------------------------------------------------------- 2026-11-16 15:47:28,263 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-69905069, ID : 26f9b92f-a3a4-4f53-847c-584ae987a4ec