2026-02-02 19:50:08,577 - INFO - Domain Default found not creating 2026-02-02 19:50:08,768 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-10293018 not found, creating it 2026-02-02 19:50:09,317 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-10293018, ID : 5a6e0843-11f5-469d-aa04-57a71d74c9fe 2026-02-02 19:50:11,578 - INFO - ================================================================================ 2026-02-02 19:50:11,578 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 19:50:11,904 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.17': '0'}} with 2026-02-02 19:50:11,904 - INFO - Initial checks done. Running the testcase now 2026-02-02 19:50:11,904 - INFO - 2026-02-02 19:50:11,904 - INFO - ================================================================================ 2026-02-02 19:50:11,904 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 19:50:11,905 - 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-02-02 19:50:12,254 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.17': '0'}} with 2026-02-02 19:50:12,255 - INFO - Initial checks done. Running the testcase now 2026-02-02 19:50:12,255 - INFO - 2026-02-02 19:50:12,708 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10293018:ctest-vn4-76345262, 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-10293018:ctest-vn4-76345262, 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-10293018:ctest-vn4-76345262, 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-10293018:ctest-vn4-76345262, 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-02-02 19:50:13,439 - DEBUG - Response for create_network : {'network': {'id': '9c445041-6df7-4ba1-82f8-f171dcef8090', 'name': 'ctest-vn4-76345262', 'tenant_id': '5a6e084311f5469daa0457a71d74c9fe', 'project_id': '5a6e084311f5469daa0457a71d74c9fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10293018', 'ctest-vn4-76345262'], 'port_security_enabled': True, 'description': ''}} 2026-02-02 19:50:13,605 - DEBUG - Response for create_subnet : {'subnet': {'id': '957994cc-e5cd-4e66-9f5c-7579caea763e', 'name': '', 'tenant_id': '5a6e084311f5469daa0457a71d74c9fe', 'network_id': '9c445041-6df7-4ba1-82f8-f171dcef8090', 'ip_version': 4, 'cidr': '159.36.192.128/26', 'allocation_pools': [{'start': '159.36.192.130', 'end': '159.36.192.190'}], 'gateway_ip': '159.36.192.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.36.192.130', 'tags': [], 'project_id': '5a6e084311f5469daa0457a71d74c9fe'}} 2026-02-02 19:50:13,765 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd9b4b972-6e36-4004-a8fe-303b175b0fa3', 'name': '', 'tenant_id': '5a6e084311f5469daa0457a71d74c9fe', 'network_id': '9c445041-6df7-4ba1-82f8-f171dcef8090', 'ip_version': 6, 'cidr': '3ea5:9bd2:fb8b:958:b9ff:4c7f::/96', 'allocation_pools': [{'start': '3ea5:9bd2:fb8b:958:b9ff:4c7f:0:2', 'end': '3ea5:9bd2:fb8b:958:b9ff:4c7f:ffff:fffe'}], 'gateway_ip': '3ea5:9bd2:fb8b:958:b9ff:4c7f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ea5:9bd2:fb8b:958:b9ff:4c7f:0:2', 'tags': [], 'project_id': '5a6e084311f5469daa0457a71d74c9fe'}} 2026-02-02 19:50:13,793 - INFO - Created VN ctest-vn4-76345262 2026-02-02 19:50:13,852 - DEBUG - VN ctest-vn4-76345262 UUID is 9c445041-6df7-4ba1-82f8-f171dcef8090 2026-02-02 19:50:14,092 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9c445041-6df7-4ba1-82f8-f171dcef8090', 'name': 'ctest-vn4-76345262', 'tenant_id': '5a6e084311f5469daa0457a71d74c9fe', 'project_id': '5a6e084311f5469daa0457a71d74c9fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['957994cc-e5cd-4e66-9f5c-7579caea763e', 'd9b4b972-6e36-4004-a8fe-303b175b0fa3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10293018', 'ctest-vn4-76345262'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10293018', 'ctest-policy1-30422540']], 'subnet_ipam': [{'subnet_cidr': '159.36.192.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ea5:9bd2:fb8b:958:b9ff:4c7f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-02 19:50:14,261 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-02-02 19:50:14,617 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-02-02 19:50:14,680 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8d7a5b3d-e4cf-4fac-8887-07511fecac4d 2026-02-02 19:50:14,703 - DEBUG - Requesting: http://10.0.0.23:8082/project/5a6e0843-11f5-469d-aa04-57a71d74c9fe 2026-02-02 19:50:14,804 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9c445041-6df7-4ba1-82f8-f171dcef8090 2026-02-02 19:50:14,821 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9c445041-6df7-4ba1-82f8-f171dcef8090 2026-02-02 19:50:14,834 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/d6dab234-619f-447a-ace9-e4989a1163a0 2026-02-02 19:50:14,843 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/d6dab234-619f-447a-ace9-e4989a1163a0 2026-02-02 19:50:14,851 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/0b6c9423-cfbe-4b0d-b802-ac5d6d8f6740 2026-02-02 19:50:14,858 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 19:50:14,858 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9c445041-6df7-4ba1-82f8-f171dcef8090 2026-02-02 19:50:14,870 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/d6dab234-619f-447a-ace9-e4989a1163a0 2026-02-02 19:50:14,885 - INFO - Verified VN network id 11 for VN 9c445041-6df7-4ba1-82f8-f171dcef8090 2026-02-02 19:50:14,885 - INFO - Verifications in API Server for VN ctest-vn4-76345262 passed 2026-02-02 19:50:14,886 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9c445041-6df7-4ba1-82f8-f171dcef8090 2026-02-02 19:50:14,898 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/d6dab234-619f-447a-ace9-e4989a1163a0 2026-02-02 19:50:14,905 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/d6dab234-619f-447a-ace9-e4989a1163a0 2026-02-02 19:50:14,911 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/0b6c9423-cfbe-4b0d-b802-ac5d6d8f6740 2026-02-02 19:50:14,924 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10293018:ctest-vn4-76345262', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-10293018', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11260213210281102241', 'uuid-lslong': '9437558490495156368'}, 'enable': 'true', 'created': '2026-02-02T19:50:13', 'last-modified': '2026-02-02T19:50:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.862729'} 2026-02-02 19:50:14,932 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 19:50:14,932 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-76345262 passed 2026-02-02 19:50:14,932 - DEBUG - ====Verifying policy data for ctest-vn4-76345262 in API_Server ====== 2026-02-02 19:50:14,932 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-02-02 19:50:14,938 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8d7a5b3d-e4cf-4fac-8887-07511fecac4d 2026-02-02 19:50:14,950 - DEBUG - Requesting: http://10.0.0.23:8082/project/5a6e0843-11f5-469d-aa04-57a71d74c9fe 2026-02-02 19:50:15,041 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9c445041-6df7-4ba1-82f8-f171dcef8090 2026-02-02 19:50:15,059 - DEBUG - ==>Verifying data for policy with id: 8bf726a0-0494-4871-9785-14faf09eee10, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10293018', 'ctest-policy1-30422540'] 2026-02-02 19:50:15,059 - INFO - VN ctest-vn4-76345262 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-02 19:50:15,059 - DEBUG - Verifying the vn in opserver 2026-02-02 19:50:15,059 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10293018:ctest-vn4-76345262 virtual network link through opserver 10.0.0.23 2026-02-02 19:50:15,059 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-02 19:50:15,386 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-02 19:50:15,502 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10293018:ctest-vn4-76345262', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10293018:ctest-vn4-76345262?flat'} 2026-02-02 19:50:15,502 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10293018:ctest-vn4-76345262 is found in opserver 2026-02-02 19:50:15,529 - DEBUG - Do not have enough data to verify VN in agent 2026-02-02 19:50:15,541 - DEBUG - VRF ids for VN ctest-vn4-76345262: {} 2026-02-02 19:50:15,542 - DEBUG - ====Verifying data for ctest-policy1-30422540 in API_Server ====== 2026-02-02 19:50:15,543 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-02-02 19:50:15,551 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8d7a5b3d-e4cf-4fac-8887-07511fecac4d 2026-02-02 19:50:15,562 - DEBUG - Requesting: http://10.0.0.23:8082/project/5a6e0843-11f5-469d-aa04-57a71d74c9fe 2026-02-02 19:50:15,681 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/8bf726a0-0494-4871-9785-14faf09eee10 2026-02-02 19:50:15,701 - INFO - Verified policy ctest-policy1-30422540 in API Server, Result: True 2026-02-02 19:50:15,702 - INFO - Done with setup and verification, moving onto test .. 2026-02-02 19:50:15,719 - INFO - Deleting VN ctest-vn4-76345262 2026-02-02 19:50:15,884 - DEBUG - Response for deleting network () 2026-02-02 19:50:15,884 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/d6dab234-619f-447a-ace9-e4989a1163a0 2026-02-02 19:50:15,890 - DEBUG - Response Code: 404 2026-02-02 19:50:15,891 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-02-02 19:50:15,900 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8d7a5b3d-e4cf-4fac-8887-07511fecac4d 2026-02-02 19:50:15,954 - DEBUG - Requesting: http://10.0.0.23:8082/project/5a6e0843-11f5-469d-aa04-57a71d74c9fe 2026-02-02 19:50:16,033 - INFO - Validated that VN ctest-vn4-76345262 is not found in API Server 2026-02-02 19:50:16,047 - DEBUG - VN ctest-vn4-76345262 is not present in Agent 10.0.0.23 2026-02-02 19:50:16,047 - INFO - Validated that VN ctest-vn4-76345262 is not in any agent 2026-02-02 19:50:16,070 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-76345262 info 2026-02-02 19:50:16,104 - INFO - Deleted policy ctest-policy1-30422540 2026-02-02 19:50:16,300 - DEBUG - policy ctest-policy1-30422540 is not found in API Server 2026-02-02 19:50:16,597 - DEBUG - No XMPP flaps were noticed during the test 2026-02-02 19:50:16,597 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-02 19:50:16,598 - INFO - -------------------------------------------------------------------------------- 2026-02-02 19:50:16,941 - DEBUG - No XMPP flaps were noticed during the test 2026-02-02 19:50:16,942 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-02 19:50:16,942 - INFO - -------------------------------------------------------------------------------- 2026-02-02 19:50:17,942 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-10293018, ID : 5a6e0843-11f5-469d-aa04-57a71d74c9fe