2026-11-05 11:43:50,338 - INFO - Domain Default found not creating 2026-11-05 11:43:50,489 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-63317345 not found, creating it 2026-11-05 11:43:50,928 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-63317345, ID : a69b4cd4-9b29-4754-ae7a-2f0682e5a2dc 2026-11-05 11:43:52,573 - INFO - ================================================================================ 2026-11-05 11:43:52,573 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-05 11:43:52,848 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.25': '0'}} with 2026-11-05 11:43:52,848 - INFO - Initial checks done. Running the testcase now 2026-11-05 11:43:52,848 - INFO - 2026-11-05 11:43:52,848 - INFO - ================================================================================ 2026-11-05 11:43:52,848 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-05 11:43:52,848 - 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-11-05 11:43:53,147 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.25': '0'}} with 2026-11-05 11:43:53,147 - INFO - Initial checks done. Running the testcase now 2026-11-05 11:43:53,147 - INFO - 2026-11-05 11:43:53,558 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63317345:ctest-vn4-67472638, 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-63317345:ctest-vn4-67472638, 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-63317345:ctest-vn4-67472638, 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-63317345:ctest-vn4-67472638, 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-11-05 11:43:54,060 - DEBUG - Response for create_network : {'network': {'id': '4aa18162-49dc-4aab-8ca0-4eca199448fc', 'name': 'ctest-vn4-67472638', 'tenant_id': 'a69b4cd49b294754ae7a2f0682e5a2dc', 'project_id': 'a69b4cd49b294754ae7a2f0682e5a2dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63317345', 'ctest-vn4-67472638'], 'port_security_enabled': True, 'description': ''}} 2026-11-05 11:43:54,299 - DEBUG - Response for create_subnet : {'subnet': {'id': '34db8978-666c-4612-a1f3-5e95b417dee3', 'name': '', 'tenant_id': 'a69b4cd49b294754ae7a2f0682e5a2dc', 'network_id': '4aa18162-49dc-4aab-8ca0-4eca199448fc', 'ip_version': 4, 'cidr': '195.105.85.0/26', 'allocation_pools': [{'start': '195.105.85.2', 'end': '195.105.85.62'}], 'gateway_ip': '195.105.85.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.105.85.2', 'tags': [], 'project_id': 'a69b4cd49b294754ae7a2f0682e5a2dc'}} 2026-11-05 11:43:54,482 - DEBUG - Response for create_subnet : {'subnet': {'id': '71aa0cb4-418a-4ee1-9707-6ff2e9466b59', 'name': '', 'tenant_id': 'a69b4cd49b294754ae7a2f0682e5a2dc', 'network_id': '4aa18162-49dc-4aab-8ca0-4eca199448fc', 'ip_version': 6, 'cidr': '3fd6:e2f1:a268:f522:6ffa:77b9::/96', 'allocation_pools': [{'start': '3fd6:e2f1:a268:f522:6ffa:77b9:0:2', 'end': '3fd6:e2f1:a268:f522:6ffa:77b9:ffff:fffe'}], 'gateway_ip': '3fd6:e2f1:a268:f522:6ffa:77b9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3fd6:e2f1:a268:f522:6ffa:77b9:0:2', 'tags': [], 'project_id': 'a69b4cd49b294754ae7a2f0682e5a2dc'}} 2026-11-05 11:43:54,498 - INFO - Created VN ctest-vn4-67472638 2026-11-05 11:43:54,551 - DEBUG - VN ctest-vn4-67472638 UUID is 4aa18162-49dc-4aab-8ca0-4eca199448fc 2026-11-05 11:43:54,744 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4aa18162-49dc-4aab-8ca0-4eca199448fc', 'name': 'ctest-vn4-67472638', 'tenant_id': 'a69b4cd49b294754ae7a2f0682e5a2dc', 'project_id': 'a69b4cd49b294754ae7a2f0682e5a2dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['34db8978-666c-4612-a1f3-5e95b417dee3', '71aa0cb4-418a-4ee1-9707-6ff2e9466b59'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63317345', 'ctest-vn4-67472638'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63317345', 'ctest-policy1-18596560']], 'subnet_ipam': [{'subnet_cidr': '195.105.85.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3fd6:e2f1:a268:f522:6ffa:77b9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-05 11:43:54,907 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-11-05 11:43:55,286 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-11-05 11:43:55,312 - DEBUG - Requesting: http://10.0.0.162:8082/domain/12e985d4-a531-4546-b45c-249113131030 2026-11-05 11:43:55,324 - DEBUG - Requesting: http://10.0.0.162:8082/project/a69b4cd4-9b29-4754-ae7a-2f0682e5a2dc 2026-11-05 11:43:55,400 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/4aa18162-49dc-4aab-8ca0-4eca199448fc 2026-11-05 11:43:55,411 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/4aa18162-49dc-4aab-8ca0-4eca199448fc 2026-11-05 11:43:55,420 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/533b3c24-8d02-4709-a420-e2b9ff995af1 2026-11-05 11:43:55,426 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/533b3c24-8d02-4709-a420-e2b9ff995af1 2026-11-05 11:43:55,431 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/b1169a16-128a-4e6e-9b9c-4c66c8e2c545 2026-11-05 11:43:55,436 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-05 11:43:55,436 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/4aa18162-49dc-4aab-8ca0-4eca199448fc 2026-11-05 11:43:55,446 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/533b3c24-8d02-4709-a420-e2b9ff995af1 2026-11-05 11:43:55,460 - INFO - Verified VN network id 11 for VN 4aa18162-49dc-4aab-8ca0-4eca199448fc 2026-11-05 11:43:55,460 - INFO - Verifications in API Server for VN ctest-vn4-67472638 passed 2026-11-05 11:43:55,461 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/4aa18162-49dc-4aab-8ca0-4eca199448fc 2026-11-05 11:43:55,473 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/533b3c24-8d02-4709-a420-e2b9ff995af1 2026-11-05 11:43:55,483 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/533b3c24-8d02-4709-a420-e2b9ff995af1 2026-11-05 11:43:55,491 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/b1169a16-128a-4e6e-9b9c-4c66c8e2c545 2026-11-05 11:43:55,504 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63317345:ctest-vn4-67472638', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-63317345', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5377721689203034795', 'uuid-lslong': '10133185791503124732'}, 'enable': 'true', 'created': '2026-11-05T11:43:54', 'last-modified': '2026-11-05T11:43:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.792117'} 2026-11-05 11:43:55,511 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-05 11:43:55,511 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-67472638 passed 2026-11-05 11:43:55,511 - DEBUG - ====Verifying policy data for ctest-vn4-67472638 in API_Server ====== 2026-11-05 11:43:55,511 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-11-05 11:43:55,516 - DEBUG - Requesting: http://10.0.0.162:8082/domain/12e985d4-a531-4546-b45c-249113131030 2026-11-05 11:43:55,527 - DEBUG - Requesting: http://10.0.0.162:8082/project/a69b4cd4-9b29-4754-ae7a-2f0682e5a2dc 2026-11-05 11:43:55,600 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/4aa18162-49dc-4aab-8ca0-4eca199448fc 2026-11-05 11:43:55,612 - DEBUG - ==>Verifying data for policy with id: 6a60599b-b8c8-480f-a013-9b8ee5d67b75, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63317345', 'ctest-policy1-18596560'] 2026-11-05 11:43:55,612 - INFO - VN ctest-vn4-67472638 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-05 11:43:55,612 - DEBUG - Verifying the vn in opserver 2026-11-05 11:43:55,613 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63317345:ctest-vn4-67472638 virtual network link through opserver 10.0.0.162 2026-11-05 11:43:55,613 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks 2026-11-05 11:43:55,980 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks 2026-11-05 11:43:56,034 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63317345:ctest-vn4-67472638', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63317345:ctest-vn4-67472638?flat'} 2026-11-05 11:43:56,034 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63317345:ctest-vn4-67472638 is found in opserver 2026-11-05 11:43:56,044 - DEBUG - Do not have enough data to verify VN in agent 2026-11-05 11:43:56,049 - DEBUG - VRF ids for VN ctest-vn4-67472638: {} 2026-11-05 11:43:56,049 - DEBUG - ====Verifying data for ctest-policy1-18596560 in API_Server ====== 2026-11-05 11:43:56,049 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-11-05 11:43:56,054 - DEBUG - Requesting: http://10.0.0.162:8082/domain/12e985d4-a531-4546-b45c-249113131030 2026-11-05 11:43:56,065 - DEBUG - Requesting: http://10.0.0.162:8082/project/a69b4cd4-9b29-4754-ae7a-2f0682e5a2dc 2026-11-05 11:43:56,134 - DEBUG - Requesting: http://10.0.0.162:8082/network-policy/6a60599b-b8c8-480f-a013-9b8ee5d67b75 2026-11-05 11:43:56,143 - INFO - Verified policy ctest-policy1-18596560 in API Server, Result: True 2026-11-05 11:43:56,143 - INFO - Done with setup and verification, moving onto test .. 2026-11-05 11:43:56,150 - INFO - Deleting VN ctest-vn4-67472638 2026-11-05 11:43:56,263 - DEBUG - Response for deleting network () 2026-11-05 11:43:56,263 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/533b3c24-8d02-4709-a420-e2b9ff995af1 2026-11-05 11:43:56,267 - DEBUG - Response Code: 404 2026-11-05 11:43:56,267 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-11-05 11:43:56,271 - DEBUG - Requesting: http://10.0.0.162:8082/domain/12e985d4-a531-4546-b45c-249113131030 2026-11-05 11:43:56,325 - DEBUG - Requesting: http://10.0.0.162:8082/project/a69b4cd4-9b29-4754-ae7a-2f0682e5a2dc 2026-11-05 11:43:56,392 - INFO - Validated that VN ctest-vn4-67472638 is not found in API Server 2026-11-05 11:43:56,405 - DEBUG - VN ctest-vn4-67472638 is not present in Agent 10.0.0.162 2026-11-05 11:43:56,406 - INFO - Validated that VN ctest-vn4-67472638 is not in any agent 2026-11-05 11:43:56,426 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-67472638 info 2026-11-05 11:43:56,465 - INFO - Deleted policy ctest-policy1-18596560 2026-11-05 11:43:56,635 - DEBUG - policy ctest-policy1-18596560 is not found in API Server 2026-11-05 11:43:56,900 - DEBUG - No XMPP flaps were noticed during the test