2026-01-06 14:09:06,002 - INFO - Domain Default found not creating 2026-01-06 14:09:06,147 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-70017403 not found, creating it 2026-01-06 14:09:06,583 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-70017403, ID : 8943a120-be86-474a-b013-9606d71d6d5b 2026-01-06 14:09:07,967 - INFO - ================================================================================ 2026-01-06 14:09:07,967 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-06 14:09:08,221 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-06 14:09:08,221 - INFO - Initial checks done. Running the testcase now 2026-01-06 14:09:08,221 - INFO - 2026-01-06 14:09:08,221 - INFO - ================================================================================ 2026-01-06 14:09:08,221 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-06 14:09:08,221 - 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-06 14:09:08,509 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-06 14:09:08,509 - INFO - Initial checks done. Running the testcase now 2026-01-06 14:09:08,509 - INFO - 2026-01-06 14:09:08,855 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70017403:ctest-vn4-13520005, 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-70017403:ctest-vn4-13520005, 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-70017403:ctest-vn4-13520005, 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-70017403:ctest-vn4-13520005, 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-06 14:09:09,358 - DEBUG - Response for create_network : {'network': {'id': 'a24d1166-0c99-4f13-a454-4f9e1bfcbcf0', 'name': 'ctest-vn4-13520005', 'tenant_id': '8943a120be86474ab0139606d71d6d5b', 'project_id': '8943a120be86474ab0139606d71d6d5b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70017403', 'ctest-vn4-13520005'], 'port_security_enabled': True, 'description': ''}} 2026-01-06 14:09:09,534 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b6893237-9eab-46d8-9393-fc27410004ea', 'name': '', 'tenant_id': '8943a120be86474ab0139606d71d6d5b', 'network_id': 'a24d1166-0c99-4f13-a454-4f9e1bfcbcf0', 'ip_version': 4, 'cidr': '5.142.139.128/26', 'allocation_pools': [{'start': '5.142.139.130', 'end': '5.142.139.190'}], 'gateway_ip': '5.142.139.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.142.139.130', 'tags': [], 'project_id': '8943a120be86474ab0139606d71d6d5b'}} 2026-01-06 14:09:09,717 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bfa7c5bc-512f-496d-b8c0-b2ce80e5f13b', 'name': '', 'tenant_id': '8943a120be86474ab0139606d71d6d5b', 'network_id': 'a24d1166-0c99-4f13-a454-4f9e1bfcbcf0', 'ip_version': 6, 'cidr': '3ecf:80ed:eff4:3412:e4d7:996d::/96', 'allocation_pools': [{'start': '3ecf:80ed:eff4:3412:e4d7:996d:0:2', 'end': '3ecf:80ed:eff4:3412:e4d7:996d:ffff:fffe'}], 'gateway_ip': '3ecf:80ed:eff4:3412:e4d7:996d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ecf:80ed:eff4:3412:e4d7:996d:0:2', 'tags': [], 'project_id': '8943a120be86474ab0139606d71d6d5b'}} 2026-01-06 14:09:09,734 - INFO - Created VN ctest-vn4-13520005 2026-01-06 14:09:09,784 - DEBUG - VN ctest-vn4-13520005 UUID is a24d1166-0c99-4f13-a454-4f9e1bfcbcf0 2026-01-06 14:09:09,966 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a24d1166-0c99-4f13-a454-4f9e1bfcbcf0', 'name': 'ctest-vn4-13520005', 'tenant_id': '8943a120be86474ab0139606d71d6d5b', 'project_id': '8943a120be86474ab0139606d71d6d5b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b6893237-9eab-46d8-9393-fc27410004ea', 'bfa7c5bc-512f-496d-b8c0-b2ce80e5f13b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70017403', 'ctest-vn4-13520005'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70017403', 'ctest-policy1-63274779']], 'subnet_ipam': [{'subnet_cidr': '5.142.139.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ecf:80ed:eff4:3412:e4d7:996d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-06 14:09:10,128 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-06 14:09:10,419 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-06 14:09:10,446 - DEBUG - Requesting: http://10.0.0.38:8082/domain/65ec345c-9b48-4231-96b9-1badb46d1b06 2026-01-06 14:09:10,457 - DEBUG - Requesting: http://10.0.0.38:8082/project/8943a120-be86-474a-b013-9606d71d6d5b 2026-01-06 14:09:10,523 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a24d1166-0c99-4f13-a454-4f9e1bfcbcf0 2026-01-06 14:09:10,533 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a24d1166-0c99-4f13-a454-4f9e1bfcbcf0 2026-01-06 14:09:10,542 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b89946d9-b6ca-46dc-af4d-bcfe82a8801f 2026-01-06 14:09:10,548 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b89946d9-b6ca-46dc-af4d-bcfe82a8801f 2026-01-06 14:09:10,554 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/72abc4a7-0679-4afe-b1d3-94a727421011 2026-01-06 14:09:10,559 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-06 14:09:10,559 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a24d1166-0c99-4f13-a454-4f9e1bfcbcf0 2026-01-06 14:09:10,567 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b89946d9-b6ca-46dc-af4d-bcfe82a8801f 2026-01-06 14:09:10,578 - INFO - Verified VN network id 11 for VN a24d1166-0c99-4f13-a454-4f9e1bfcbcf0 2026-01-06 14:09:10,578 - INFO - Verifications in API Server for VN ctest-vn4-13520005 passed 2026-01-06 14:09:10,578 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a24d1166-0c99-4f13-a454-4f9e1bfcbcf0 2026-01-06 14:09:10,586 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b89946d9-b6ca-46dc-af4d-bcfe82a8801f 2026-01-06 14:09:10,591 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b89946d9-b6ca-46dc-af4d-bcfe82a8801f 2026-01-06 14:09:10,596 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/72abc4a7-0679-4afe-b1d3-94a727421011 2026-01-06 14:09:10,606 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70017403:ctest-vn4-13520005', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-70017403', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11695022937346756371', 'uuid-lslong': '11841176860756851952'}, 'enable': 'true', 'created': '2026-01-06T14:09:09', 'last-modified': '2026-01-06T14:09:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.663435'} 2026-01-06 14:09:10,611 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-06 14:09:10,611 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-13520005 passed 2026-01-06 14:09:10,611 - DEBUG - ====Verifying policy data for ctest-vn4-13520005 in API_Server ====== 2026-01-06 14:09:10,611 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-06 14:09:10,616 - DEBUG - Requesting: http://10.0.0.38:8082/domain/65ec345c-9b48-4231-96b9-1badb46d1b06 2026-01-06 14:09:10,625 - DEBUG - Requesting: http://10.0.0.38:8082/project/8943a120-be86-474a-b013-9606d71d6d5b 2026-01-06 14:09:10,691 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a24d1166-0c99-4f13-a454-4f9e1bfcbcf0 2026-01-06 14:09:10,699 - DEBUG - ==>Verifying data for policy with id: 697850c6-9dc7-4da8-93cb-222b0d8e6285, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70017403', 'ctest-policy1-63274779'] 2026-01-06 14:09:10,699 - INFO - VN ctest-vn4-13520005 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-06 14:09:10,699 - DEBUG - Verifying the vn in opserver 2026-01-06 14:09:10,699 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70017403:ctest-vn4-13520005 virtual network link through opserver 10.0.0.38 2026-01-06 14:09:10,699 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-06 14:09:10,988 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-06 14:09:11,044 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70017403:ctest-vn4-13520005', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70017403:ctest-vn4-13520005?flat'} 2026-01-06 14:09:11,044 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70017403:ctest-vn4-13520005 is found in opserver 2026-01-06 14:09:11,053 - DEBUG - Do not have enough data to verify VN in agent 2026-01-06 14:09:11,057 - DEBUG - VRF ids for VN ctest-vn4-13520005: {} 2026-01-06 14:09:11,057 - DEBUG - ====Verifying data for ctest-policy1-63274779 in API_Server ====== 2026-01-06 14:09:11,057 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-06 14:09:11,062 - DEBUG - Requesting: http://10.0.0.38:8082/domain/65ec345c-9b48-4231-96b9-1badb46d1b06 2026-01-06 14:09:11,071 - DEBUG - Requesting: http://10.0.0.38:8082/project/8943a120-be86-474a-b013-9606d71d6d5b 2026-01-06 14:09:11,134 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/697850c6-9dc7-4da8-93cb-222b0d8e6285 2026-01-06 14:09:11,144 - INFO - Verified policy ctest-policy1-63274779 in API Server, Result: True 2026-01-06 14:09:11,144 - INFO - Done with setup and verification, moving onto test .. 2026-01-06 14:09:11,151 - INFO - Deleting VN ctest-vn4-13520005 2026-01-06 14:09:11,249 - DEBUG - Response for deleting network () 2026-01-06 14:09:11,249 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b89946d9-b6ca-46dc-af4d-bcfe82a8801f 2026-01-06 14:09:11,253 - DEBUG - Response Code: 404 2026-01-06 14:09:11,253 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-06 14:09:11,258 - DEBUG - Requesting: http://10.0.0.38:8082/domain/65ec345c-9b48-4231-96b9-1badb46d1b06 2026-01-06 14:09:11,309 - DEBUG - Requesting: http://10.0.0.38:8082/project/8943a120-be86-474a-b013-9606d71d6d5b 2026-01-06 14:09:11,378 - INFO - Validated that VN ctest-vn4-13520005 is not found in API Server 2026-01-06 14:09:11,386 - DEBUG - VN ctest-vn4-13520005 is not present in Agent 10.0.0.38 2026-01-06 14:09:11,386 - INFO - Validated that VN ctest-vn4-13520005 is not in any agent 2026-01-06 14:09:11,398 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-13520005 info 2026-01-06 14:09:11,414 - INFO - Deleted policy ctest-policy1-63274779 2026-01-06 14:09:11,572 - DEBUG - policy ctest-policy1-63274779 is not found in API Server 2026-01-06 14:09:11,821 - DEBUG - No XMPP flaps were noticed during the test