2026-03-20 15:12:12,140 - INFO - Domain Default found not creating 2026-03-20 15:12:12,323 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36401361 not found, creating it 2026-03-20 15:12:12,826 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36401361, ID : f00625d1-b7ae-4ee6-ad20-f36667c82b34 2026-03-20 15:12:14,381 - INFO - ================================================================================ 2026-03-20 15:12:14,381 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-20 15:12:14,635 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-03-20 15:12:14,635 - INFO - Initial checks done. Running the testcase now 2026-03-20 15:12:14,635 - INFO - 2026-03-20 15:12:14,635 - INFO - ================================================================================ 2026-03-20 15:12:14,635 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-20 15:12:14,635 - 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-03-20 15:12:14,923 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-03-20 15:12:14,923 - INFO - Initial checks done. Running the testcase now 2026-03-20 15:12:14,923 - INFO - 2026-03-20 15:12:15,286 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36401361:ctest-vn4-79094530, 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-36401361:ctest-vn4-79094530, 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-36401361:ctest-vn4-79094530, 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-36401361:ctest-vn4-79094530, 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-03-20 15:12:15,808 - DEBUG - Response for create_network : {'network': {'id': '9092e446-0cbd-4ddb-986a-1326affbf270', 'name': 'ctest-vn4-79094530', 'tenant_id': 'f00625d1b7ae4ee6ad20f36667c82b34', 'project_id': 'f00625d1b7ae4ee6ad20f36667c82b34', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36401361', 'ctest-vn4-79094530'], 'port_security_enabled': True, 'description': ''}} 2026-03-20 15:12:16,004 - DEBUG - Response for create_subnet : {'subnet': {'id': '94beb792-602a-4425-b539-f44c1e146025', 'name': '', 'tenant_id': 'f00625d1b7ae4ee6ad20f36667c82b34', 'network_id': '9092e446-0cbd-4ddb-986a-1326affbf270', 'ip_version': 4, 'cidr': '149.156.119.0/26', 'allocation_pools': [{'start': '149.156.119.2', 'end': '149.156.119.62'}], 'gateway_ip': '149.156.119.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.156.119.2', 'tags': [], 'project_id': 'f00625d1b7ae4ee6ad20f36667c82b34'}} 2026-03-20 15:12:16,179 - DEBUG - Response for create_subnet : {'subnet': {'id': '5dbdd3fd-5a1a-4f29-a2cb-ed2e5909bd24', 'name': '', 'tenant_id': 'f00625d1b7ae4ee6ad20f36667c82b34', 'network_id': '9092e446-0cbd-4ddb-986a-1326affbf270', 'ip_version': 6, 'cidr': '3f4c:cee0:8563:9f4e:724c:6a03::/96', 'allocation_pools': [{'start': '3f4c:cee0:8563:9f4e:724c:6a03:0:2', 'end': '3f4c:cee0:8563:9f4e:724c:6a03:ffff:fffe'}], 'gateway_ip': '3f4c:cee0:8563:9f4e:724c:6a03:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f4c:cee0:8563:9f4e:724c:6a03:0:2', 'tags': [], 'project_id': 'f00625d1b7ae4ee6ad20f36667c82b34'}} 2026-03-20 15:12:16,202 - INFO - Created VN ctest-vn4-79094530 2026-03-20 15:12:16,258 - DEBUG - VN ctest-vn4-79094530 UUID is 9092e446-0cbd-4ddb-986a-1326affbf270 2026-03-20 15:12:16,478 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9092e446-0cbd-4ddb-986a-1326affbf270', 'name': 'ctest-vn4-79094530', 'tenant_id': 'f00625d1b7ae4ee6ad20f36667c82b34', 'project_id': 'f00625d1b7ae4ee6ad20f36667c82b34', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['94beb792-602a-4425-b539-f44c1e146025', '5dbdd3fd-5a1a-4f29-a2cb-ed2e5909bd24'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36401361', 'ctest-vn4-79094530'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36401361', 'ctest-policy1-23949963']], 'subnet_ipam': [{'subnet_cidr': '149.156.119.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f4c:cee0:8563:9f4e:724c:6a03::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-20 15:12:16,637 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-20 15:12:16,930 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-20 15:12:16,963 - DEBUG - Requesting: http://10.0.0.38:8082/domain/539d60a3-b1a9-4faf-964f-f691bca43cc3 2026-03-20 15:12:16,977 - DEBUG - Requesting: http://10.0.0.38:8082/project/f00625d1-b7ae-4ee6-ad20-f36667c82b34 2026-03-20 15:12:17,047 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9092e446-0cbd-4ddb-986a-1326affbf270 2026-03-20 15:12:17,060 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9092e446-0cbd-4ddb-986a-1326affbf270 2026-03-20 15:12:17,070 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f6af094-02e1-4e84-bd12-5954a7048505 2026-03-20 15:12:17,077 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f6af094-02e1-4e84-bd12-5954a7048505 2026-03-20 15:12:17,085 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/dc24bf70-cfbe-41da-ad24-6051d6549721 2026-03-20 15:12:17,091 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-20 15:12:17,091 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9092e446-0cbd-4ddb-986a-1326affbf270 2026-03-20 15:12:17,100 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f6af094-02e1-4e84-bd12-5954a7048505 2026-03-20 15:12:17,115 - INFO - Verified VN network id 11 for VN 9092e446-0cbd-4ddb-986a-1326affbf270 2026-03-20 15:12:17,116 - INFO - Verifications in API Server for VN ctest-vn4-79094530 passed 2026-03-20 15:12:17,116 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9092e446-0cbd-4ddb-986a-1326affbf270 2026-03-20 15:12:17,126 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f6af094-02e1-4e84-bd12-5954a7048505 2026-03-20 15:12:17,135 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f6af094-02e1-4e84-bd12-5954a7048505 2026-03-20 15:12:17,144 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/dc24bf70-cfbe-41da-ad24-6051d6549721 2026-03-20 15:12:17,159 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36401361:ctest-vn4-79094530', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36401361', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10417639877573955035', 'uuid-lslong': '10982611698178585200'}, 'enable': 'true', 'created': '2026-03-20T15:12:15', 'last-modified': '2026-03-20T15:12:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.708388'} 2026-03-20 15:12:17,166 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-20 15:12:17,167 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-79094530 passed 2026-03-20 15:12:17,167 - DEBUG - ====Verifying policy data for ctest-vn4-79094530 in API_Server ====== 2026-03-20 15:12:17,167 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-20 15:12:17,174 - DEBUG - Requesting: http://10.0.0.38:8082/domain/539d60a3-b1a9-4faf-964f-f691bca43cc3 2026-03-20 15:12:17,186 - DEBUG - Requesting: http://10.0.0.38:8082/project/f00625d1-b7ae-4ee6-ad20-f36667c82b34 2026-03-20 15:12:17,257 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9092e446-0cbd-4ddb-986a-1326affbf270 2026-03-20 15:12:17,267 - DEBUG - ==>Verifying data for policy with id: 98be84dd-7399-4255-ba0b-e15de2df9de7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36401361', 'ctest-policy1-23949963'] 2026-03-20 15:12:17,267 - INFO - VN ctest-vn4-79094530 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-20 15:12:17,267 - DEBUG - Verifying the vn in opserver 2026-03-20 15:12:17,267 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36401361:ctest-vn4-79094530 virtual network link through opserver 10.0.0.38 2026-03-20 15:12:17,267 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-20 15:12:17,561 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-20 15:12:17,632 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36401361:ctest-vn4-79094530', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36401361:ctest-vn4-79094530?flat'} 2026-03-20 15:12:17,632 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36401361:ctest-vn4-79094530 is found in opserver 2026-03-20 15:12:17,642 - DEBUG - Do not have enough data to verify VN in agent 2026-03-20 15:12:17,646 - DEBUG - VRF ids for VN ctest-vn4-79094530: {} 2026-03-20 15:12:17,647 - DEBUG - ====Verifying data for ctest-policy1-23949963 in API_Server ====== 2026-03-20 15:12:17,647 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-20 15:12:17,652 - DEBUG - Requesting: http://10.0.0.38:8082/domain/539d60a3-b1a9-4faf-964f-f691bca43cc3 2026-03-20 15:12:17,664 - DEBUG - Requesting: http://10.0.0.38:8082/project/f00625d1-b7ae-4ee6-ad20-f36667c82b34 2026-03-20 15:12:17,743 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/98be84dd-7399-4255-ba0b-e15de2df9de7 2026-03-20 15:12:17,753 - INFO - Verified policy ctest-policy1-23949963 in API Server, Result: True 2026-03-20 15:12:17,754 - INFO - Done with setup and verification, moving onto test .. 2026-03-20 15:12:17,761 - INFO - Deleting VN ctest-vn4-79094530 2026-03-20 15:12:17,894 - DEBUG - Response for deleting network () 2026-03-20 15:12:17,894 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f6af094-02e1-4e84-bd12-5954a7048505 2026-03-20 15:12:17,899 - DEBUG - Response Code: 404 2026-03-20 15:12:17,900 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-20 15:12:17,905 - DEBUG - Requesting: http://10.0.0.38:8082/domain/539d60a3-b1a9-4faf-964f-f691bca43cc3 2026-03-20 15:12:17,959 - DEBUG - Requesting: http://10.0.0.38:8082/project/f00625d1-b7ae-4ee6-ad20-f36667c82b34 2026-03-20 15:12:18,030 - INFO - Validated that VN ctest-vn4-79094530 is not found in API Server 2026-03-20 15:12:18,041 - DEBUG - VN ctest-vn4-79094530 is not present in Agent 10.0.0.38 2026-03-20 15:12:18,042 - INFO - Validated that VN ctest-vn4-79094530 is not in any agent 2026-03-20 15:12:18,057 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-79094530 info 2026-03-20 15:12:18,083 - INFO - Deleted policy ctest-policy1-23949963 2026-03-20 15:12:18,249 - DEBUG - policy ctest-policy1-23949963 is not found in API Server 2026-03-20 15:12:18,504 - DEBUG - No XMPP flaps were noticed during the test 2026-03-20 15:12:18,504 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-20 15:12:18,504 - INFO - -------------------------------------------------------------------------------- 2026-03-20 15:12:18,790 - DEBUG - No XMPP flaps were noticed during the test 2026-03-20 15:12:18,790 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-20 15:12:18,790 - INFO - -------------------------------------------------------------------------------- 2026-03-20 15:12:19,504 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-36401361, ID : f00625d1-b7ae-4ee6-ad20-f36667c82b34