2026-04-30 02:28:08,784 - INFO - Domain Default found not creating 2026-04-30 02:28:08,945 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-09002571 not found, creating it 2026-04-30 02:28:09,395 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-09002571, ID : ba1dcdb8-519f-40fb-82a1-c612d5d3e844 2026-04-30 02:28:10,911 - INFO - ================================================================================ 2026-04-30 02:28:10,911 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-30 02:28:11,165 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.25': '0'}} with 2026-04-30 02:28:11,165 - INFO - Initial checks done. Running the testcase now 2026-04-30 02:28:11,165 - INFO - 2026-04-30 02:28:11,165 - INFO - ================================================================================ 2026-04-30 02:28:11,165 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-30 02:28:11,166 - 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-04-30 02:28:11,452 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.25': '0'}} with 2026-04-30 02:28:11,452 - INFO - Initial checks done. Running the testcase now 2026-04-30 02:28:11,452 - INFO - 2026-04-30 02:28:11,804 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09002571:ctest-vn4-10393541, 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-09002571:ctest-vn4-10393541, 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-09002571:ctest-vn4-10393541, 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-09002571:ctest-vn4-10393541, 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-04-30 02:28:12,331 - DEBUG - Response for create_network : {'network': {'id': '2a7b3070-2419-4be2-8b94-c8d726694825', 'name': 'ctest-vn4-10393541', 'tenant_id': 'ba1dcdb8519f40fb82a1c612d5d3e844', 'project_id': 'ba1dcdb8519f40fb82a1c612d5d3e844', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09002571', 'ctest-vn4-10393541'], 'port_security_enabled': True, 'description': ''}} 2026-04-30 02:28:12,480 - DEBUG - Response for create_subnet : {'subnet': {'id': '491469ac-c27a-4902-ab98-a6bb3811b586', 'name': '', 'tenant_id': 'ba1dcdb8519f40fb82a1c612d5d3e844', 'network_id': '2a7b3070-2419-4be2-8b94-c8d726694825', 'ip_version': 4, 'cidr': '145.17.212.0/26', 'allocation_pools': [{'start': '145.17.212.2', 'end': '145.17.212.62'}], 'gateway_ip': '145.17.212.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.17.212.2', 'tags': [], 'project_id': 'ba1dcdb8519f40fb82a1c612d5d3e844'}} 2026-04-30 02:28:12,672 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e3ead0cc-c473-4b30-9c64-6a9c5af55f99', 'name': '', 'tenant_id': 'ba1dcdb8519f40fb82a1c612d5d3e844', 'network_id': '2a7b3070-2419-4be2-8b94-c8d726694825', 'ip_version': 6, 'cidr': '34d0:b7e:e659:a078:f08f:938a::/96', 'allocation_pools': [{'start': '34d0:b7e:e659:a078:f08f:938a:0:2', 'end': '34d0:b7e:e659:a078:f08f:938a:ffff:fffe'}], 'gateway_ip': '34d0:b7e:e659:a078:f08f:938a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34d0:b7e:e659:a078:f08f:938a:0:2', 'tags': [], 'project_id': 'ba1dcdb8519f40fb82a1c612d5d3e844'}} 2026-04-30 02:28:12,698 - INFO - Created VN ctest-vn4-10393541 2026-04-30 02:28:12,752 - DEBUG - VN ctest-vn4-10393541 UUID is 2a7b3070-2419-4be2-8b94-c8d726694825 2026-04-30 02:28:12,957 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a7b3070-2419-4be2-8b94-c8d726694825', 'name': 'ctest-vn4-10393541', 'tenant_id': 'ba1dcdb8519f40fb82a1c612d5d3e844', 'project_id': 'ba1dcdb8519f40fb82a1c612d5d3e844', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['491469ac-c27a-4902-ab98-a6bb3811b586', 'e3ead0cc-c473-4b30-9c64-6a9c5af55f99'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09002571', 'ctest-vn4-10393541'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09002571', 'ctest-policy1-40938630']], 'subnet_ipam': [{'subnet_cidr': '145.17.212.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34d0:b7e:e659:a078:f08f:938a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-30 02:28:13,124 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-30 02:28:13,419 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-30 02:28:13,460 - DEBUG - Requesting: http://10.0.0.249:8082/domain/de2f5240-b67f-4502-96ee-15aed842570a 2026-04-30 02:28:13,472 - DEBUG - Requesting: http://10.0.0.249:8082/project/ba1dcdb8-519f-40fb-82a1-c612d5d3e844 2026-04-30 02:28:13,582 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2a7b3070-2419-4be2-8b94-c8d726694825 2026-04-30 02:28:13,603 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2a7b3070-2419-4be2-8b94-c8d726694825 2026-04-30 02:28:13,612 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f84c1e59-f348-429d-bd66-10d74a698456 2026-04-30 02:28:13,627 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f84c1e59-f348-429d-bd66-10d74a698456 2026-04-30 02:28:13,633 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/a2cd261d-9273-4070-a0a7-9392a871e5a0 2026-04-30 02:28:13,640 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-30 02:28:13,640 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2a7b3070-2419-4be2-8b94-c8d726694825 2026-04-30 02:28:13,650 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f84c1e59-f348-429d-bd66-10d74a698456 2026-04-30 02:28:13,663 - INFO - Verified VN network id 11 for VN 2a7b3070-2419-4be2-8b94-c8d726694825 2026-04-30 02:28:13,664 - INFO - Verifications in API Server for VN ctest-vn4-10393541 passed 2026-04-30 02:28:13,664 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2a7b3070-2419-4be2-8b94-c8d726694825 2026-04-30 02:28:13,675 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f84c1e59-f348-429d-bd66-10d74a698456 2026-04-30 02:28:13,689 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f84c1e59-f348-429d-bd66-10d74a698456 2026-04-30 02:28:13,696 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/a2cd261d-9273-4070-a0a7-9392a871e5a0 2026-04-30 02:28:13,716 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09002571:ctest-vn4-10393541', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-09002571', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3061093629928492002', 'uuid-lslong': '10057884694213117989'}, 'enable': 'true', 'created': '2026-04-30T02:28:12', 'last-modified': '2026-04-30T02:28:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.784519'} 2026-04-30 02:28:13,729 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-30 02:28:13,729 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-10393541 passed 2026-04-30 02:28:13,729 - DEBUG - ====Verifying policy data for ctest-vn4-10393541 in API_Server ====== 2026-04-30 02:28:13,729 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-30 02:28:13,741 - DEBUG - Requesting: http://10.0.0.249:8082/domain/de2f5240-b67f-4502-96ee-15aed842570a 2026-04-30 02:28:13,759 - DEBUG - Requesting: http://10.0.0.249:8082/project/ba1dcdb8-519f-40fb-82a1-c612d5d3e844 2026-04-30 02:28:13,866 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2a7b3070-2419-4be2-8b94-c8d726694825 2026-04-30 02:28:13,880 - DEBUG - ==>Verifying data for policy with id: 5e3a8719-2f9f-4b66-9d06-ef7d9719ec84, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09002571', 'ctest-policy1-40938630'] 2026-04-30 02:28:13,880 - INFO - VN ctest-vn4-10393541 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-30 02:28:13,880 - DEBUG - Verifying the vn in opserver 2026-04-30 02:28:13,880 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09002571:ctest-vn4-10393541 virtual network link through opserver 10.0.0.249 2026-04-30 02:28:13,880 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-30 02:28:14,194 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-30 02:28:14,258 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09002571:ctest-vn4-10393541', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09002571:ctest-vn4-10393541?flat'} 2026-04-30 02:28:14,258 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09002571:ctest-vn4-10393541 is found in opserver 2026-04-30 02:28:14,269 - DEBUG - Do not have enough data to verify VN in agent 2026-04-30 02:28:14,273 - DEBUG - VRF ids for VN ctest-vn4-10393541: {} 2026-04-30 02:28:14,274 - DEBUG - ====Verifying data for ctest-policy1-40938630 in API_Server ====== 2026-04-30 02:28:14,274 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-30 02:28:14,279 - DEBUG - Requesting: http://10.0.0.249:8082/domain/de2f5240-b67f-4502-96ee-15aed842570a 2026-04-30 02:28:14,290 - DEBUG - Requesting: http://10.0.0.249:8082/project/ba1dcdb8-519f-40fb-82a1-c612d5d3e844 2026-04-30 02:28:14,359 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/5e3a8719-2f9f-4b66-9d06-ef7d9719ec84 2026-04-30 02:28:14,369 - INFO - Verified policy ctest-policy1-40938630 in API Server, Result: True 2026-04-30 02:28:14,369 - INFO - Done with setup and verification, moving onto test .. 2026-04-30 02:28:14,378 - INFO - Deleting VN ctest-vn4-10393541 2026-04-30 02:28:14,488 - DEBUG - Response for deleting network () 2026-04-30 02:28:14,488 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f84c1e59-f348-429d-bd66-10d74a698456 2026-04-30 02:28:14,493 - DEBUG - Response Code: 404 2026-04-30 02:28:14,493 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-30 02:28:14,499 - DEBUG - Requesting: http://10.0.0.249:8082/domain/de2f5240-b67f-4502-96ee-15aed842570a 2026-04-30 02:28:14,552 - DEBUG - Requesting: http://10.0.0.249:8082/project/ba1dcdb8-519f-40fb-82a1-c612d5d3e844 2026-04-30 02:28:14,617 - INFO - Validated that VN ctest-vn4-10393541 is not found in API Server 2026-04-30 02:28:14,628 - DEBUG - VN ctest-vn4-10393541 is not present in Agent 10.0.0.249 2026-04-30 02:28:14,628 - INFO - Validated that VN ctest-vn4-10393541 is not in any agent 2026-04-30 02:28:14,641 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-10393541 info 2026-04-30 02:28:14,662 - INFO - Deleted policy ctest-policy1-40938630 2026-04-30 02:28:14,831 - DEBUG - policy ctest-policy1-40938630 is not found in API Server 2026-04-30 02:28:15,085 - DEBUG - No XMPP flaps were noticed during the test 2026-04-30 02:28:15,085 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-04-30 02:28:15,085 - INFO - -------------------------------------------------------------------------------- 2026-04-30 02:28:15,373 - DEBUG - No XMPP flaps were noticed during the test 2026-04-30 02:28:15,373 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-04-30 02:28:15,373 - INFO - -------------------------------------------------------------------------------- 2026-04-30 02:28:16,089 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-09002571, ID : ba1dcdb8-519f-40fb-82a1-c612d5d3e844