2026-01-22 10:25:18,133 - INFO - Domain Default found not creating 2026-01-22 10:25:18,347 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-51555955 not found, creating it 2026-01-22 10:25:18,870 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-51555955, ID : 29e13634-66ce-4213-981d-ca538bd5e0ef 2026-01-22 10:25:20,503 - INFO - ================================================================================ 2026-01-22 10:25:20,503 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-22 10:25:20,777 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.5': '0'}} with 2026-01-22 10:25:20,777 - INFO - Initial checks done. Running the testcase now 2026-01-22 10:25:20,777 - INFO - 2026-01-22 10:25:20,777 - INFO - ================================================================================ 2026-01-22 10:25:20,777 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-22 10:25:20,777 - 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-01-22 10:25:21,062 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.5': '0'}} with 2026-01-22 10:25:21,062 - INFO - Initial checks done. Running the testcase now 2026-01-22 10:25:21,063 - INFO - 2026-01-22 10:25:21,490 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51555955:ctest-vn4-13318173, 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-51555955:ctest-vn4-13318173, 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-51555955:ctest-vn4-13318173, 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-51555955:ctest-vn4-13318173, 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-01-22 10:25:22,044 - DEBUG - Response for create_network : {'network': {'id': '2b4abcc7-775b-458c-be8a-bc15c860f147', 'name': 'ctest-vn4-13318173', 'tenant_id': '29e1363466ce4213981dca538bd5e0ef', 'project_id': '29e1363466ce4213981dca538bd5e0ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51555955', 'ctest-vn4-13318173'], 'port_security_enabled': True, 'description': ''}} 2026-01-22 10:25:22,236 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0b4d1f0-875c-4d64-8fb6-af054f7b5371', 'name': '', 'tenant_id': '29e1363466ce4213981dca538bd5e0ef', 'network_id': '2b4abcc7-775b-458c-be8a-bc15c860f147', 'ip_version': 4, 'cidr': '96.93.34.64/26', 'allocation_pools': [{'start': '96.93.34.66', 'end': '96.93.34.126'}], 'gateway_ip': '96.93.34.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.93.34.66', 'tags': [], 'project_id': '29e1363466ce4213981dca538bd5e0ef'}} 2026-01-22 10:25:22,398 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e8a8deae-f985-4020-a740-d456e4d50a7b', 'name': '', 'tenant_id': '29e1363466ce4213981dca538bd5e0ef', 'network_id': '2b4abcc7-775b-458c-be8a-bc15c860f147', 'ip_version': 6, 'cidr': '26df:4933:47c8:c565:6bd0:5c8d::/96', 'allocation_pools': [{'start': '26df:4933:47c8:c565:6bd0:5c8d:0:2', 'end': '26df:4933:47c8:c565:6bd0:5c8d:ffff:fffe'}], 'gateway_ip': '26df:4933:47c8:c565:6bd0:5c8d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26df:4933:47c8:c565:6bd0:5c8d:0:2', 'tags': [], 'project_id': '29e1363466ce4213981dca538bd5e0ef'}} 2026-01-22 10:25:22,428 - INFO - Created VN ctest-vn4-13318173 2026-01-22 10:25:22,483 - DEBUG - VN ctest-vn4-13318173 UUID is 2b4abcc7-775b-458c-be8a-bc15c860f147 2026-01-22 10:25:22,703 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2b4abcc7-775b-458c-be8a-bc15c860f147', 'name': 'ctest-vn4-13318173', 'tenant_id': '29e1363466ce4213981dca538bd5e0ef', 'project_id': '29e1363466ce4213981dca538bd5e0ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c0b4d1f0-875c-4d64-8fb6-af054f7b5371', 'e8a8deae-f985-4020-a740-d456e4d50a7b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51555955', 'ctest-vn4-13318173'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51555955', 'ctest-policy1-08095417']], 'subnet_ipam': [{'subnet_cidr': '96.93.34.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '26df:4933:47c8:c565:6bd0:5c8d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-22 10:25:22,878 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-22 10:25:23,188 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-22 10:25:23,225 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d017d9ed-b1ec-48ea-9d26-a6f145346bf2 2026-01-22 10:25:23,240 - DEBUG - Requesting: http://10.0.0.38:8082/project/29e13634-66ce-4213-981d-ca538bd5e0ef 2026-01-22 10:25:23,317 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2b4abcc7-775b-458c-be8a-bc15c860f147 2026-01-22 10:25:23,337 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2b4abcc7-775b-458c-be8a-bc15c860f147 2026-01-22 10:25:23,347 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2df7f3b2-7a05-4022-8da3-fb01b6ad8aae 2026-01-22 10:25:23,356 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2df7f3b2-7a05-4022-8da3-fb01b6ad8aae 2026-01-22 10:25:23,366 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/004b7b93-128a-444a-8447-6835ade0ebbd 2026-01-22 10:25:23,375 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-22 10:25:23,375 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2b4abcc7-775b-458c-be8a-bc15c860f147 2026-01-22 10:25:23,386 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2df7f3b2-7a05-4022-8da3-fb01b6ad8aae 2026-01-22 10:25:23,402 - INFO - Verified VN network id 11 for VN 2b4abcc7-775b-458c-be8a-bc15c860f147 2026-01-22 10:25:23,402 - INFO - Verifications in API Server for VN ctest-vn4-13318173 passed 2026-01-22 10:25:23,402 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2b4abcc7-775b-458c-be8a-bc15c860f147 2026-01-22 10:25:23,413 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2df7f3b2-7a05-4022-8da3-fb01b6ad8aae 2026-01-22 10:25:23,427 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2df7f3b2-7a05-4022-8da3-fb01b6ad8aae 2026-01-22 10:25:23,437 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/004b7b93-128a-444a-8447-6835ade0ebbd 2026-01-22 10:25:23,450 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51555955:ctest-vn4-13318173', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51555955', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3119513256794473868', 'uuid-lslong': '13729993215734509895'}, 'enable': 'true', 'created': '2026-01-22T10:25:22', 'last-modified': '2026-01-22T10:25:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.774906'} 2026-01-22 10:25:23,458 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-22 10:25:23,459 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-13318173 passed 2026-01-22 10:25:23,459 - DEBUG - ====Verifying policy data for ctest-vn4-13318173 in API_Server ====== 2026-01-22 10:25:23,459 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-22 10:25:23,465 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d017d9ed-b1ec-48ea-9d26-a6f145346bf2 2026-01-22 10:25:23,477 - DEBUG - Requesting: http://10.0.0.38:8082/project/29e13634-66ce-4213-981d-ca538bd5e0ef 2026-01-22 10:25:23,556 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2b4abcc7-775b-458c-be8a-bc15c860f147 2026-01-22 10:25:23,566 - DEBUG - ==>Verifying data for policy with id: 0132ec2b-a48c-4353-8847-6994c816d8b9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51555955', 'ctest-policy1-08095417'] 2026-01-22 10:25:23,566 - INFO - VN ctest-vn4-13318173 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-22 10:25:23,567 - DEBUG - Verifying the vn in opserver 2026-01-22 10:25:23,567 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51555955:ctest-vn4-13318173 virtual network link through opserver 10.0.0.38 2026-01-22 10:25:23,567 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-22 10:25:23,875 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-22 10:25:23,947 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51555955:ctest-vn4-13318173', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51555955:ctest-vn4-13318173?flat'} 2026-01-22 10:25:23,947 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51555955:ctest-vn4-13318173 is found in opserver 2026-01-22 10:25:23,960 - DEBUG - Do not have enough data to verify VN in agent 2026-01-22 10:25:23,967 - DEBUG - VRF ids for VN ctest-vn4-13318173: {} 2026-01-22 10:25:23,968 - DEBUG - ====Verifying data for ctest-policy1-08095417 in API_Server ====== 2026-01-22 10:25:23,968 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-22 10:25:23,974 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d017d9ed-b1ec-48ea-9d26-a6f145346bf2 2026-01-22 10:25:23,985 - DEBUG - Requesting: http://10.0.0.38:8082/project/29e13634-66ce-4213-981d-ca538bd5e0ef 2026-01-22 10:25:24,058 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/0132ec2b-a48c-4353-8847-6994c816d8b9 2026-01-22 10:25:24,071 - INFO - Verified policy ctest-policy1-08095417 in API Server, Result: True 2026-01-22 10:25:24,071 - INFO - Done with setup and verification, moving onto test .. 2026-01-22 10:25:24,080 - INFO - Deleting VN ctest-vn4-13318173 2026-01-22 10:25:24,209 - DEBUG - Response for deleting network () 2026-01-22 10:25:24,209 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2df7f3b2-7a05-4022-8da3-fb01b6ad8aae 2026-01-22 10:25:24,215 - DEBUG - Response Code: 404 2026-01-22 10:25:24,216 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-22 10:25:24,221 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d017d9ed-b1ec-48ea-9d26-a6f145346bf2 2026-01-22 10:25:24,277 - DEBUG - Requesting: http://10.0.0.38:8082/project/29e13634-66ce-4213-981d-ca538bd5e0ef 2026-01-22 10:25:24,351 - INFO - Validated that VN ctest-vn4-13318173 is not found in API Server 2026-01-22 10:25:24,361 - DEBUG - VN ctest-vn4-13318173 is not present in Agent 10.0.0.38 2026-01-22 10:25:24,361 - INFO - Validated that VN ctest-vn4-13318173 is not in any agent 2026-01-22 10:25:24,376 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-13318173 info 2026-01-22 10:25:24,399 - INFO - Deleted policy ctest-policy1-08095417 2026-01-22 10:25:24,570 - DEBUG - policy ctest-policy1-08095417 is not found in API Server 2026-01-22 10:25:24,840 - DEBUG - No XMPP flaps were noticed during the test