2026-09-09 04:30:08,783 - INFO - Domain Default found not creating 2026-09-09 04:30:08,963 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-39329140 not found, creating it 2026-09-09 04:30:09,467 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-39329140, ID : 1e10e920-dc46-44ee-8f34-507405580790 2026-09-09 04:30:11,278 - INFO - ================================================================================ 2026-09-09 04:30:11,279 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-09 04:30:11,552 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-09-09 04:30:11,552 - INFO - Initial checks done. Running the testcase now 2026-09-09 04:30:11,552 - INFO - 2026-09-09 04:30:11,553 - INFO - ================================================================================ 2026-09-09 04:30:11,553 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-09 04:30:11,553 - 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-09-09 04:30:11,847 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-09-09 04:30:11,847 - INFO - Initial checks done. Running the testcase now 2026-09-09 04:30:11,848 - INFO - 2026-09-09 04:30:12,285 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39329140:ctest-vn4-13972450, 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-39329140:ctest-vn4-13972450, 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-39329140:ctest-vn4-13972450, 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-39329140:ctest-vn4-13972450, 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-09-09 04:30:12,838 - DEBUG - Response for create_network : {'network': {'id': 'd477bb08-f9f6-4b9e-ab88-47f3ec68bd17', 'name': 'ctest-vn4-13972450', 'tenant_id': '1e10e920dc4644ee8f34507405580790', 'project_id': '1e10e920dc4644ee8f34507405580790', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39329140', 'ctest-vn4-13972450'], 'port_security_enabled': True, 'description': ''}} 2026-09-09 04:30:13,062 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c2770d05-aa5c-473c-b480-33f6f34dbc56', 'name': '', 'tenant_id': '1e10e920dc4644ee8f34507405580790', 'network_id': 'd477bb08-f9f6-4b9e-ab88-47f3ec68bd17', 'ip_version': 4, 'cidr': '68.143.193.0/26', 'allocation_pools': [{'start': '68.143.193.2', 'end': '68.143.193.62'}], 'gateway_ip': '68.143.193.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.143.193.2', 'tags': [], 'project_id': '1e10e920dc4644ee8f34507405580790'}} 2026-09-09 04:30:13,240 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b1206bb2-a1c6-44a6-a732-3e9094b761dd', 'name': '', 'tenant_id': '1e10e920dc4644ee8f34507405580790', 'network_id': 'd477bb08-f9f6-4b9e-ab88-47f3ec68bd17', 'ip_version': 6, 'cidr': '21bc:bfff:c83d:339b:1c5b:716c::/96', 'allocation_pools': [{'start': '21bc:bfff:c83d:339b:1c5b:716c:0:2', 'end': '21bc:bfff:c83d:339b:1c5b:716c:ffff:fffe'}], 'gateway_ip': '21bc:bfff:c83d:339b:1c5b:716c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21bc:bfff:c83d:339b:1c5b:716c:0:2', 'tags': [], 'project_id': '1e10e920dc4644ee8f34507405580790'}} 2026-09-09 04:30:13,269 - INFO - Created VN ctest-vn4-13972450 2026-09-09 04:30:13,326 - DEBUG - VN ctest-vn4-13972450 UUID is d477bb08-f9f6-4b9e-ab88-47f3ec68bd17 2026-09-09 04:30:13,596 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd477bb08-f9f6-4b9e-ab88-47f3ec68bd17', 'name': 'ctest-vn4-13972450', 'tenant_id': '1e10e920dc4644ee8f34507405580790', 'project_id': '1e10e920dc4644ee8f34507405580790', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['c2770d05-aa5c-473c-b480-33f6f34dbc56', 'b1206bb2-a1c6-44a6-a732-3e9094b761dd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39329140', 'ctest-vn4-13972450'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39329140', 'ctest-policy1-12955473']], 'subnet_ipam': [{'subnet_cidr': '68.143.193.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21bc:bfff:c83d:339b:1c5b:716c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-09 04:30:13,766 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-09 04:30:14,141 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-09 04:30:14,171 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5eeef5e2-079c-4bbc-b0b5-46d5a92e4549 2026-09-09 04:30:14,185 - DEBUG - Requesting: http://10.0.0.38:8082/project/1e10e920-dc46-44ee-8f34-507405580790 2026-09-09 04:30:14,266 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d477bb08-f9f6-4b9e-ab88-47f3ec68bd17 2026-09-09 04:30:14,280 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d477bb08-f9f6-4b9e-ab88-47f3ec68bd17 2026-09-09 04:30:14,292 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f884cf7e-c48b-4d1a-a747-3f5743defbe0 2026-09-09 04:30:14,300 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f884cf7e-c48b-4d1a-a747-3f5743defbe0 2026-09-09 04:30:14,309 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/469d5776-dfdb-4a36-81bc-f55b3cd00415 2026-09-09 04:30:14,317 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-09 04:30:14,317 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d477bb08-f9f6-4b9e-ab88-47f3ec68bd17 2026-09-09 04:30:14,329 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f884cf7e-c48b-4d1a-a747-3f5743defbe0 2026-09-09 04:30:14,347 - INFO - Verified VN network id 12 for VN d477bb08-f9f6-4b9e-ab88-47f3ec68bd17 2026-09-09 04:30:14,348 - INFO - Verifications in API Server for VN ctest-vn4-13972450 passed 2026-09-09 04:30:14,348 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d477bb08-f9f6-4b9e-ab88-47f3ec68bd17 2026-09-09 04:30:14,361 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f884cf7e-c48b-4d1a-a747-3f5743defbe0 2026-09-09 04:30:14,371 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f884cf7e-c48b-4d1a-a747-3f5743defbe0 2026-09-09 04:30:14,381 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/469d5776-dfdb-4a36-81bc-f55b3cd00415 2026-09-09 04:30:14,396 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39329140:ctest-vn4-13972450', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-39329140', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15309911105497090974', 'uuid-lslong': '12360208290287238423'}, 'enable': 'true', 'created': '2026-09-09T04:30:12', 'last-modified': '2026-09-09T04:30:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.855763'} 2026-09-09 04:30:14,405 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-09 04:30:14,405 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-13972450 passed 2026-09-09 04:30:14,405 - DEBUG - ====Verifying policy data for ctest-vn4-13972450 in API_Server ====== 2026-09-09 04:30:14,405 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-09 04:30:14,412 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5eeef5e2-079c-4bbc-b0b5-46d5a92e4549 2026-09-09 04:30:14,426 - DEBUG - Requesting: http://10.0.0.38:8082/project/1e10e920-dc46-44ee-8f34-507405580790 2026-09-09 04:30:14,511 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d477bb08-f9f6-4b9e-ab88-47f3ec68bd17 2026-09-09 04:30:14,524 - DEBUG - ==>Verifying data for policy with id: c12b99ed-c11a-4fcb-9051-3aa26154e93d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39329140', 'ctest-policy1-12955473'] 2026-09-09 04:30:14,524 - INFO - VN ctest-vn4-13972450 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-09 04:30:14,524 - DEBUG - Verifying the vn in opserver 2026-09-09 04:30:14,524 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39329140:ctest-vn4-13972450 virtual network link through opserver 10.0.0.38 2026-09-09 04:30:14,525 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-09 04:30:14,905 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-09 04:30:14,972 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39329140:ctest-vn4-13972450', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39329140:ctest-vn4-13972450?flat'} 2026-09-09 04:30:14,972 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39329140:ctest-vn4-13972450 is found in opserver 2026-09-09 04:30:14,984 - DEBUG - Do not have enough data to verify VN in agent 2026-09-09 04:30:14,989 - DEBUG - VRF ids for VN ctest-vn4-13972450: {} 2026-09-09 04:30:14,990 - DEBUG - ====Verifying data for ctest-policy1-12955473 in API_Server ====== 2026-09-09 04:30:14,990 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-09 04:30:14,996 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5eeef5e2-079c-4bbc-b0b5-46d5a92e4549 2026-09-09 04:30:15,010 - DEBUG - Requesting: http://10.0.0.38:8082/project/1e10e920-dc46-44ee-8f34-507405580790 2026-09-09 04:30:15,088 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/c12b99ed-c11a-4fcb-9051-3aa26154e93d 2026-09-09 04:30:15,102 - INFO - Verified policy ctest-policy1-12955473 in API Server, Result: True 2026-09-09 04:30:15,102 - INFO - Done with setup and verification, moving onto test .. 2026-09-09 04:30:15,112 - INFO - Deleting VN ctest-vn4-13972450 2026-09-09 04:30:15,248 - DEBUG - Response for deleting network () 2026-09-09 04:30:15,248 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f884cf7e-c48b-4d1a-a747-3f5743defbe0 2026-09-09 04:30:15,254 - DEBUG - Response Code: 404 2026-09-09 04:30:15,254 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-09 04:30:15,262 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5eeef5e2-079c-4bbc-b0b5-46d5a92e4549 2026-09-09 04:30:15,317 - DEBUG - Requesting: http://10.0.0.38:8082/project/1e10e920-dc46-44ee-8f34-507405580790 2026-09-09 04:30:15,402 - INFO - Validated that VN ctest-vn4-13972450 is not found in API Server 2026-09-09 04:30:15,416 - DEBUG - VN ctest-vn4-13972450 is not present in Agent 10.0.0.38 2026-09-09 04:30:15,416 - INFO - Validated that VN ctest-vn4-13972450 is not in any agent 2026-09-09 04:30:15,433 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-13972450 info 2026-09-09 04:30:15,474 - INFO - Deleted policy ctest-policy1-12955473 2026-09-09 04:30:15,649 - DEBUG - policy ctest-policy1-12955473 is not found in API Server 2026-09-09 04:30:15,923 - DEBUG - No XMPP flaps were noticed during the test