2026-01-27 20:34:35,773 - INFO - Domain Default found not creating 2026-01-27 20:34:35,925 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-39456675 not found, creating it 2026-01-27 20:34:36,352 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-39456675, ID : 6c718a04-6baf-4e97-8a0d-88c93b996268 2026-01-27 20:34:37,783 - INFO - ================================================================================ 2026-01-27 20:34:37,783 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-27 20:34:38,038 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-01-27 20:34:38,038 - INFO - Initial checks done. Running the testcase now 2026-01-27 20:34:38,038 - INFO - 2026-01-27 20:34:38,038 - INFO - ================================================================================ 2026-01-27 20:34:38,039 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-27 20:34:38,039 - 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-01-27 20:34:38,325 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-01-27 20:34:38,325 - INFO - Initial checks done. Running the testcase now 2026-01-27 20:34:38,325 - INFO - 2026-01-27 20:34:38,681 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39456675:ctest-vn4-79873110, 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-39456675:ctest-vn4-79873110, 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-39456675:ctest-vn4-79873110, 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-39456675:ctest-vn4-79873110, 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-01-27 20:34:39,180 - DEBUG - Response for create_network : {'network': {'id': 'e83b7d3e-25bd-4282-867f-6022aef66e27', 'name': 'ctest-vn4-79873110', 'tenant_id': '6c718a046baf4e978a0d88c93b996268', 'project_id': '6c718a046baf4e978a0d88c93b996268', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39456675', 'ctest-vn4-79873110'], 'port_security_enabled': True, 'description': ''}} 2026-01-27 20:34:39,365 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a4db270e-7e2c-4306-af4e-b752ef13bae0', 'name': '', 'tenant_id': '6c718a046baf4e978a0d88c93b996268', 'network_id': 'e83b7d3e-25bd-4282-867f-6022aef66e27', 'ip_version': 4, 'cidr': '74.179.79.0/26', 'allocation_pools': [{'start': '74.179.79.2', 'end': '74.179.79.62'}], 'gateway_ip': '74.179.79.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.179.79.2', 'tags': [], 'project_id': '6c718a046baf4e978a0d88c93b996268'}} 2026-01-27 20:34:39,495 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c32e520-baee-4a32-b3a6-363f7908c335', 'name': '', 'tenant_id': '6c718a046baf4e978a0d88c93b996268', 'network_id': 'e83b7d3e-25bd-4282-867f-6022aef66e27', 'ip_version': 6, 'cidr': '25b3:1a01:6d48:379c:e2f4:5f5b::/96', 'allocation_pools': [{'start': '25b3:1a01:6d48:379c:e2f4:5f5b:0:2', 'end': '25b3:1a01:6d48:379c:e2f4:5f5b:ffff:fffe'}], 'gateway_ip': '25b3:1a01:6d48:379c:e2f4:5f5b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25b3:1a01:6d48:379c:e2f4:5f5b:0:2', 'tags': [], 'project_id': '6c718a046baf4e978a0d88c93b996268'}} 2026-01-27 20:34:39,526 - INFO - Created VN ctest-vn4-79873110 2026-01-27 20:34:39,577 - DEBUG - VN ctest-vn4-79873110 UUID is e83b7d3e-25bd-4282-867f-6022aef66e27 2026-01-27 20:34:39,769 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e83b7d3e-25bd-4282-867f-6022aef66e27', 'name': 'ctest-vn4-79873110', 'tenant_id': '6c718a046baf4e978a0d88c93b996268', 'project_id': '6c718a046baf4e978a0d88c93b996268', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a4db270e-7e2c-4306-af4e-b752ef13bae0', '4c32e520-baee-4a32-b3a6-363f7908c335'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39456675', 'ctest-vn4-79873110'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39456675', 'ctest-policy1-82546741']], 'subnet_ipam': [{'subnet_cidr': '74.179.79.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '25b3:1a01:6d48:379c:e2f4:5f5b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-27 20:34:39,925 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-27 20:34:40,219 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-27 20:34:40,249 - DEBUG - Requesting: http://10.0.0.33:8082/domain/56c911da-18d0-450d-9291-741a08145a6d 2026-01-27 20:34:40,260 - DEBUG - Requesting: http://10.0.0.33:8082/project/6c718a04-6baf-4e97-8a0d-88c93b996268 2026-01-27 20:34:40,329 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e83b7d3e-25bd-4282-867f-6022aef66e27 2026-01-27 20:34:40,341 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e83b7d3e-25bd-4282-867f-6022aef66e27 2026-01-27 20:34:40,350 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/02a9e94b-c514-4fd7-82e8-81eede479fb1 2026-01-27 20:34:40,358 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/02a9e94b-c514-4fd7-82e8-81eede479fb1 2026-01-27 20:34:40,365 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/94ea0cbc-eed7-4a96-aea2-58652ce4bb4f 2026-01-27 20:34:40,372 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-27 20:34:40,372 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e83b7d3e-25bd-4282-867f-6022aef66e27 2026-01-27 20:34:40,385 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/02a9e94b-c514-4fd7-82e8-81eede479fb1 2026-01-27 20:34:40,401 - INFO - Verified VN network id 12 for VN e83b7d3e-25bd-4282-867f-6022aef66e27 2026-01-27 20:34:40,401 - INFO - Verifications in API Server for VN ctest-vn4-79873110 passed 2026-01-27 20:34:40,401 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e83b7d3e-25bd-4282-867f-6022aef66e27 2026-01-27 20:34:40,411 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/02a9e94b-c514-4fd7-82e8-81eede479fb1 2026-01-27 20:34:40,417 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/02a9e94b-c514-4fd7-82e8-81eede479fb1 2026-01-27 20:34:40,424 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/94ea0cbc-eed7-4a96-aea2-58652ce4bb4f 2026-01-27 20:34:40,436 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39456675:ctest-vn4-79873110', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-39456675', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16734106546299814530', 'uuid-lslong': '9691570625205136935'}, 'enable': 'true', 'created': '2026-01-27T20:34:39', 'last-modified': '2026-01-27T20:34:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.697106'} 2026-01-27 20:34:40,441 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-27 20:34:40,441 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-79873110 passed 2026-01-27 20:34:40,442 - DEBUG - ====Verifying policy data for ctest-vn4-79873110 in API_Server ====== 2026-01-27 20:34:40,442 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-27 20:34:40,446 - DEBUG - Requesting: http://10.0.0.33:8082/domain/56c911da-18d0-450d-9291-741a08145a6d 2026-01-27 20:34:40,456 - DEBUG - Requesting: http://10.0.0.33:8082/project/6c718a04-6baf-4e97-8a0d-88c93b996268 2026-01-27 20:34:40,528 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e83b7d3e-25bd-4282-867f-6022aef66e27 2026-01-27 20:34:40,539 - DEBUG - ==>Verifying data for policy with id: 2a766bba-09b4-4d4b-b8fe-558d7a460d7e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39456675', 'ctest-policy1-82546741'] 2026-01-27 20:34:40,539 - INFO - VN ctest-vn4-79873110 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-27 20:34:40,539 - DEBUG - Verifying the vn in opserver 2026-01-27 20:34:40,540 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39456675:ctest-vn4-79873110 virtual network link through opserver 10.0.0.33 2026-01-27 20:34:40,540 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-27 20:34:40,835 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-27 20:34:40,891 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39456675:ctest-vn4-79873110', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39456675:ctest-vn4-79873110?flat'} 2026-01-27 20:34:40,891 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39456675:ctest-vn4-79873110 is found in opserver 2026-01-27 20:34:40,899 - DEBUG - Do not have enough data to verify VN in agent 2026-01-27 20:34:40,903 - DEBUG - VRF ids for VN ctest-vn4-79873110: {} 2026-01-27 20:34:40,903 - DEBUG - ====Verifying data for ctest-policy1-82546741 in API_Server ====== 2026-01-27 20:34:40,903 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-27 20:34:40,908 - DEBUG - Requesting: http://10.0.0.33:8082/domain/56c911da-18d0-450d-9291-741a08145a6d 2026-01-27 20:34:40,917 - DEBUG - Requesting: http://10.0.0.33:8082/project/6c718a04-6baf-4e97-8a0d-88c93b996268 2026-01-27 20:34:40,984 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/2a766bba-09b4-4d4b-b8fe-558d7a460d7e 2026-01-27 20:34:40,992 - INFO - Verified policy ctest-policy1-82546741 in API Server, Result: True 2026-01-27 20:34:40,992 - INFO - Done with setup and verification, moving onto test .. 2026-01-27 20:34:40,999 - INFO - Deleting VN ctest-vn4-79873110 2026-01-27 20:34:41,107 - DEBUG - Response for deleting network () 2026-01-27 20:34:41,107 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/02a9e94b-c514-4fd7-82e8-81eede479fb1 2026-01-27 20:34:41,111 - DEBUG - Response Code: 404 2026-01-27 20:34:41,111 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-27 20:34:41,117 - DEBUG - Requesting: http://10.0.0.33:8082/domain/56c911da-18d0-450d-9291-741a08145a6d 2026-01-27 20:34:41,170 - DEBUG - Requesting: http://10.0.0.33:8082/project/6c718a04-6baf-4e97-8a0d-88c93b996268 2026-01-27 20:34:41,234 - INFO - Validated that VN ctest-vn4-79873110 is not found in API Server 2026-01-27 20:34:41,243 - DEBUG - VN ctest-vn4-79873110 is not present in Agent 10.0.0.33 2026-01-27 20:34:41,243 - INFO - Validated that VN ctest-vn4-79873110 is not in any agent 2026-01-27 20:34:41,255 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-79873110 info 2026-01-27 20:34:41,273 - INFO - Deleted policy ctest-policy1-82546741 2026-01-27 20:34:41,437 - DEBUG - policy ctest-policy1-82546741 is not found in API Server 2026-01-27 20:34:41,689 - DEBUG - No XMPP flaps were noticed during the test