2026-10-07 19:59:00,531 - INFO - Domain Default found not creating 2026-10-07 19:59:00,712 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-76503862 not found, creating it 2026-10-07 19:59:01,224 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-76503862, ID : ad61481c-4e51-4141-af6a-791747f0f41c 2026-10-07 19:59:02,989 - INFO - ================================================================================ 2026-10-07 19:59:02,989 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-07 19:59:03,261 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-10-07 19:59:03,261 - INFO - Initial checks done. Running the testcase now 2026-10-07 19:59:03,261 - INFO - 2026-10-07 19:59:03,261 - INFO - ================================================================================ 2026-10-07 19:59:03,261 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-07 19:59:03,261 - 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-10-07 19:59:03,544 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-10-07 19:59:03,544 - INFO - Initial checks done. Running the testcase now 2026-10-07 19:59:03,545 - INFO - 2026-10-07 19:59:03,991 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76503862:ctest-vn4-73816438, 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-76503862:ctest-vn4-73816438, 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-76503862:ctest-vn4-73816438, 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-76503862:ctest-vn4-73816438, 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-10-07 19:59:04,524 - DEBUG - Response for create_network : {'network': {'id': '9ac80a7e-3d26-4344-8bd1-e075c7a0f6dc', 'name': 'ctest-vn4-73816438', 'tenant_id': 'ad61481c4e514141af6a791747f0f41c', 'project_id': 'ad61481c4e514141af6a791747f0f41c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76503862', 'ctest-vn4-73816438'], 'port_security_enabled': True, 'description': ''}} 2026-10-07 19:59:04,740 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa31b536-6516-4ada-850e-e0708b6c5eda', 'name': '', 'tenant_id': 'ad61481c4e514141af6a791747f0f41c', 'network_id': '9ac80a7e-3d26-4344-8bd1-e075c7a0f6dc', 'ip_version': 4, 'cidr': '16.174.83.128/26', 'allocation_pools': [{'start': '16.174.83.130', 'end': '16.174.83.190'}], 'gateway_ip': '16.174.83.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.174.83.130', 'tags': [], 'project_id': 'ad61481c4e514141af6a791747f0f41c'}} 2026-10-07 19:59:04,897 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf3cba3e-8872-4ab4-ac04-9d19270e4f89', 'name': '', 'tenant_id': 'ad61481c4e514141af6a791747f0f41c', 'network_id': '9ac80a7e-3d26-4344-8bd1-e075c7a0f6dc', 'ip_version': 6, 'cidr': '2b61:8293:698a:2fbe:8b5f:5179::/96', 'allocation_pools': [{'start': '2b61:8293:698a:2fbe:8b5f:5179:0:2', 'end': '2b61:8293:698a:2fbe:8b5f:5179:ffff:fffe'}], 'gateway_ip': '2b61:8293:698a:2fbe:8b5f:5179:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b61:8293:698a:2fbe:8b5f:5179:0:2', 'tags': [], 'project_id': 'ad61481c4e514141af6a791747f0f41c'}} 2026-10-07 19:59:04,916 - INFO - Created VN ctest-vn4-73816438 2026-10-07 19:59:04,972 - DEBUG - VN ctest-vn4-73816438 UUID is 9ac80a7e-3d26-4344-8bd1-e075c7a0f6dc 2026-10-07 19:59:05,193 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9ac80a7e-3d26-4344-8bd1-e075c7a0f6dc', 'name': 'ctest-vn4-73816438', 'tenant_id': 'ad61481c4e514141af6a791747f0f41c', 'project_id': 'ad61481c4e514141af6a791747f0f41c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['aa31b536-6516-4ada-850e-e0708b6c5eda', 'bf3cba3e-8872-4ab4-ac04-9d19270e4f89'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76503862', 'ctest-vn4-73816438'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76503862', 'ctest-policy1-84923131']], 'subnet_ipam': [{'subnet_cidr': '16.174.83.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b61:8293:698a:2fbe:8b5f:5179::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-07 19:59:05,352 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-07 19:59:05,719 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-07 19:59:05,748 - DEBUG - Requesting: http://10.0.0.38:8082/domain/98dcc6d9-02da-4306-b277-3f6efcba845a 2026-10-07 19:59:05,763 - DEBUG - Requesting: http://10.0.0.38:8082/project/ad61481c-4e51-4141-af6a-791747f0f41c 2026-10-07 19:59:05,843 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9ac80a7e-3d26-4344-8bd1-e075c7a0f6dc 2026-10-07 19:59:05,856 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9ac80a7e-3d26-4344-8bd1-e075c7a0f6dc 2026-10-07 19:59:05,867 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/68849b9f-6af6-431e-aa28-b9ddf3ba5823 2026-10-07 19:59:05,874 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/68849b9f-6af6-431e-aa28-b9ddf3ba5823 2026-10-07 19:59:05,881 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/36ee6142-2cde-4116-a282-c942e48eb397 2026-10-07 19:59:05,890 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-07 19:59:05,890 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9ac80a7e-3d26-4344-8bd1-e075c7a0f6dc 2026-10-07 19:59:05,900 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/68849b9f-6af6-431e-aa28-b9ddf3ba5823 2026-10-07 19:59:05,916 - INFO - Verified VN network id 12 for VN 9ac80a7e-3d26-4344-8bd1-e075c7a0f6dc 2026-10-07 19:59:05,916 - INFO - Verifications in API Server for VN ctest-vn4-73816438 passed 2026-10-07 19:59:05,916 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9ac80a7e-3d26-4344-8bd1-e075c7a0f6dc 2026-10-07 19:59:05,927 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/68849b9f-6af6-431e-aa28-b9ddf3ba5823 2026-10-07 19:59:05,935 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/68849b9f-6af6-431e-aa28-b9ddf3ba5823 2026-10-07 19:59:05,942 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/36ee6142-2cde-4116-a282-c942e48eb397 2026-10-07 19:59:05,955 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76503862:ctest-vn4-73816438', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-76503862', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11153176014491108164', 'uuid-lslong': '10075080637869520604'}, 'enable': 'true', 'created': '2026-10-07T19:59:04', 'last-modified': '2026-10-07T19:59:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.796157'} 2026-10-07 19:59:05,962 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-07 19:59:05,962 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-73816438 passed 2026-10-07 19:59:05,962 - DEBUG - ====Verifying policy data for ctest-vn4-73816438 in API_Server ====== 2026-10-07 19:59:05,962 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-07 19:59:05,969 - DEBUG - Requesting: http://10.0.0.38:8082/domain/98dcc6d9-02da-4306-b277-3f6efcba845a 2026-10-07 19:59:05,980 - DEBUG - Requesting: http://10.0.0.38:8082/project/ad61481c-4e51-4141-af6a-791747f0f41c 2026-10-07 19:59:06,063 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9ac80a7e-3d26-4344-8bd1-e075c7a0f6dc 2026-10-07 19:59:06,074 - DEBUG - ==>Verifying data for policy with id: edff3374-0457-490d-ac1c-6f4e42adba4e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76503862', 'ctest-policy1-84923131'] 2026-10-07 19:59:06,074 - INFO - VN ctest-vn4-73816438 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-07 19:59:06,074 - DEBUG - Verifying the vn in opserver 2026-10-07 19:59:06,074 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76503862:ctest-vn4-73816438 virtual network link through opserver 10.0.0.38 2026-10-07 19:59:06,074 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-07 19:59:06,444 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-07 19:59:06,502 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76503862:ctest-vn4-73816438', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76503862:ctest-vn4-73816438?flat'} 2026-10-07 19:59:06,503 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76503862:ctest-vn4-73816438 is found in opserver 2026-10-07 19:59:06,514 - DEBUG - Do not have enough data to verify VN in agent 2026-10-07 19:59:06,519 - DEBUG - VRF ids for VN ctest-vn4-73816438: {} 2026-10-07 19:59:06,519 - DEBUG - ====Verifying data for ctest-policy1-84923131 in API_Server ====== 2026-10-07 19:59:06,519 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-07 19:59:06,525 - DEBUG - Requesting: http://10.0.0.38:8082/domain/98dcc6d9-02da-4306-b277-3f6efcba845a 2026-10-07 19:59:06,537 - DEBUG - Requesting: http://10.0.0.38:8082/project/ad61481c-4e51-4141-af6a-791747f0f41c 2026-10-07 19:59:06,616 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/edff3374-0457-490d-ac1c-6f4e42adba4e 2026-10-07 19:59:06,627 - INFO - Verified policy ctest-policy1-84923131 in API Server, Result: True 2026-10-07 19:59:06,627 - INFO - Done with setup and verification, moving onto test .. 2026-10-07 19:59:06,638 - INFO - Deleting VN ctest-vn4-73816438 2026-10-07 19:59:06,793 - DEBUG - Response for deleting network () 2026-10-07 19:59:06,793 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/68849b9f-6af6-431e-aa28-b9ddf3ba5823 2026-10-07 19:59:06,798 - DEBUG - Response Code: 404 2026-10-07 19:59:06,799 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-07 19:59:06,805 - DEBUG - Requesting: http://10.0.0.38:8082/domain/98dcc6d9-02da-4306-b277-3f6efcba845a 2026-10-07 19:59:06,860 - DEBUG - Requesting: http://10.0.0.38:8082/project/ad61481c-4e51-4141-af6a-791747f0f41c 2026-10-07 19:59:06,935 - INFO - Validated that VN ctest-vn4-73816438 is not found in API Server 2026-10-07 19:59:06,945 - DEBUG - VN ctest-vn4-73816438 is not present in Agent 10.0.0.38 2026-10-07 19:59:06,946 - INFO - Validated that VN ctest-vn4-73816438 is not in any agent 2026-10-07 19:59:06,966 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-73816438 info 2026-10-07 19:59:06,997 - INFO - Deleted policy ctest-policy1-84923131 2026-10-07 19:59:07,163 - DEBUG - policy ctest-policy1-84923131 is not found in API Server 2026-10-07 19:59:07,437 - DEBUG - No XMPP flaps were noticed during the test