2026-05-19 15:41:27,531 - INFO - Domain Default found not creating 2026-05-19 15:41:27,711 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-12090025 not found, creating it 2026-05-19 15:41:28,452 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-12090025, ID : f1e5170a-990f-475e-ac3e-f560a9ea4a78 2026-05-19 15:41:29,931 - INFO - ================================================================================ 2026-05-19 15:41:29,932 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-19 15:41:30,191 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-05-19 15:41:30,191 - INFO - Initial checks done. Running the testcase now 2026-05-19 15:41:30,192 - INFO - 2026-05-19 15:41:30,192 - INFO - ================================================================================ 2026-05-19 15:41:30,192 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-19 15:41:30,192 - 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-05-19 15:41:30,480 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-05-19 15:41:30,481 - INFO - Initial checks done. Running the testcase now 2026-05-19 15:41:30,481 - INFO - 2026-05-19 15:41:30,828 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12090025:ctest-vn4-11137986, 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-12090025:ctest-vn4-11137986, 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-12090025:ctest-vn4-11137986, 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-12090025:ctest-vn4-11137986, 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-05-19 15:41:31,331 - DEBUG - Response for create_network : {'network': {'id': 'e481a2ed-29d2-4aab-8287-65fd93db2f63', 'name': 'ctest-vn4-11137986', 'tenant_id': 'f1e5170a990f475eac3ef560a9ea4a78', 'project_id': 'f1e5170a990f475eac3ef560a9ea4a78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12090025', 'ctest-vn4-11137986'], 'port_security_enabled': True, 'description': ''}} 2026-05-19 15:41:31,482 - DEBUG - Response for create_subnet : {'subnet': {'id': '6b12a20a-c755-4456-8597-0943ed3f9c6b', 'name': '', 'tenant_id': 'f1e5170a990f475eac3ef560a9ea4a78', 'network_id': 'e481a2ed-29d2-4aab-8287-65fd93db2f63', 'ip_version': 4, 'cidr': '206.73.107.192/26', 'allocation_pools': [{'start': '206.73.107.194', 'end': '206.73.107.254'}], 'gateway_ip': '206.73.107.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.73.107.194', 'tags': [], 'project_id': 'f1e5170a990f475eac3ef560a9ea4a78'}} 2026-05-19 15:41:31,646 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fdd65e5b-e4fc-4af7-b5de-9ca091808e69', 'name': '', 'tenant_id': 'f1e5170a990f475eac3ef560a9ea4a78', 'network_id': 'e481a2ed-29d2-4aab-8287-65fd93db2f63', 'ip_version': 6, 'cidr': '3598:9835:df8c:3e3d:e9b7:c631::/96', 'allocation_pools': [{'start': '3598:9835:df8c:3e3d:e9b7:c631:0:2', 'end': '3598:9835:df8c:3e3d:e9b7:c631:ffff:fffe'}], 'gateway_ip': '3598:9835:df8c:3e3d:e9b7:c631:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3598:9835:df8c:3e3d:e9b7:c631:0:2', 'tags': [], 'project_id': 'f1e5170a990f475eac3ef560a9ea4a78'}} 2026-05-19 15:41:31,665 - INFO - Created VN ctest-vn4-11137986 2026-05-19 15:41:31,716 - DEBUG - VN ctest-vn4-11137986 UUID is e481a2ed-29d2-4aab-8287-65fd93db2f63 2026-05-19 15:41:31,917 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e481a2ed-29d2-4aab-8287-65fd93db2f63', 'name': 'ctest-vn4-11137986', 'tenant_id': 'f1e5170a990f475eac3ef560a9ea4a78', 'project_id': 'f1e5170a990f475eac3ef560a9ea4a78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6b12a20a-c755-4456-8597-0943ed3f9c6b', 'fdd65e5b-e4fc-4af7-b5de-9ca091808e69'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12090025', 'ctest-vn4-11137986'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12090025', 'ctest-policy1-52123812']], 'subnet_ipam': [{'subnet_cidr': '206.73.107.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3598:9835:df8c:3e3d:e9b7:c631::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-19 15:41:32,084 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-05-19 15:41:32,382 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-05-19 15:41:32,415 - DEBUG - Requesting: http://10.0.0.249:8082/domain/0eceec70-5e66-45a5-8f0a-19104e53907b 2026-05-19 15:41:32,427 - DEBUG - Requesting: http://10.0.0.249:8082/project/f1e5170a-990f-475e-ac3e-f560a9ea4a78 2026-05-19 15:41:32,498 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/e481a2ed-29d2-4aab-8287-65fd93db2f63 2026-05-19 15:41:32,509 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/e481a2ed-29d2-4aab-8287-65fd93db2f63 2026-05-19 15:41:32,518 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/81d23105-38fe-445f-92ca-2068f6486cbb 2026-05-19 15:41:32,524 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/81d23105-38fe-445f-92ca-2068f6486cbb 2026-05-19 15:41:32,530 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/1b468284-4b4d-4bc6-a863-c3f0cf712113 2026-05-19 15:41:32,536 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-19 15:41:32,536 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/e481a2ed-29d2-4aab-8287-65fd93db2f63 2026-05-19 15:41:32,544 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/81d23105-38fe-445f-92ca-2068f6486cbb 2026-05-19 15:41:32,556 - INFO - Verified VN network id 11 for VN e481a2ed-29d2-4aab-8287-65fd93db2f63 2026-05-19 15:41:32,556 - INFO - Verifications in API Server for VN ctest-vn4-11137986 passed 2026-05-19 15:41:32,556 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/e481a2ed-29d2-4aab-8287-65fd93db2f63 2026-05-19 15:41:32,565 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/81d23105-38fe-445f-92ca-2068f6486cbb 2026-05-19 15:41:32,570 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/81d23105-38fe-445f-92ca-2068f6486cbb 2026-05-19 15:41:32,576 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/1b468284-4b4d-4bc6-a863-c3f0cf712113 2026-05-19 15:41:32,586 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12090025:ctest-vn4-11137986', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-12090025', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16465620852135840427', 'uuid-lslong': '9405598486568316771'}, 'enable': 'true', 'created': '2026-05-19T15:41:31', 'last-modified': '2026-05-19T15:41:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.693776'} 2026-05-19 15:41:32,591 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-19 15:41:32,592 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-11137986 passed 2026-05-19 15:41:32,592 - DEBUG - ====Verifying policy data for ctest-vn4-11137986 in API_Server ====== 2026-05-19 15:41:32,592 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-05-19 15:41:32,598 - DEBUG - Requesting: http://10.0.0.249:8082/domain/0eceec70-5e66-45a5-8f0a-19104e53907b 2026-05-19 15:41:32,608 - DEBUG - Requesting: http://10.0.0.249:8082/project/f1e5170a-990f-475e-ac3e-f560a9ea4a78 2026-05-19 15:41:32,683 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/e481a2ed-29d2-4aab-8287-65fd93db2f63 2026-05-19 15:41:32,692 - DEBUG - ==>Verifying data for policy with id: 106978b9-64d5-49ed-a59d-66404a81b344, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12090025', 'ctest-policy1-52123812'] 2026-05-19 15:41:32,692 - INFO - VN ctest-vn4-11137986 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-19 15:41:32,692 - DEBUG - Verifying the vn in opserver 2026-05-19 15:41:32,692 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12090025:ctest-vn4-11137986 virtual network link through opserver 10.0.0.249 2026-05-19 15:41:32,693 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-05-19 15:41:32,987 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-05-19 15:41:33,054 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12090025:ctest-vn4-11137986', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12090025:ctest-vn4-11137986?flat'} 2026-05-19 15:41:33,054 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12090025:ctest-vn4-11137986 is found in opserver 2026-05-19 15:41:33,064 - DEBUG - Do not have enough data to verify VN in agent 2026-05-19 15:41:33,068 - DEBUG - VRF ids for VN ctest-vn4-11137986: {} 2026-05-19 15:41:33,069 - DEBUG - ====Verifying data for ctest-policy1-52123812 in API_Server ====== 2026-05-19 15:41:33,069 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-05-19 15:41:33,074 - DEBUG - Requesting: http://10.0.0.249:8082/domain/0eceec70-5e66-45a5-8f0a-19104e53907b 2026-05-19 15:41:33,083 - DEBUG - Requesting: http://10.0.0.249:8082/project/f1e5170a-990f-475e-ac3e-f560a9ea4a78 2026-05-19 15:41:33,159 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/106978b9-64d5-49ed-a59d-66404a81b344 2026-05-19 15:41:33,170 - INFO - Verified policy ctest-policy1-52123812 in API Server, Result: True 2026-05-19 15:41:33,170 - INFO - Done with setup and verification, moving onto test .. 2026-05-19 15:41:33,179 - INFO - Deleting VN ctest-vn4-11137986 2026-05-19 15:41:33,326 - DEBUG - Response for deleting network () 2026-05-19 15:41:33,326 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/81d23105-38fe-445f-92ca-2068f6486cbb 2026-05-19 15:41:33,333 - DEBUG - Response Code: 404 2026-05-19 15:41:33,333 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-05-19 15:41:33,340 - DEBUG - Requesting: http://10.0.0.249:8082/domain/0eceec70-5e66-45a5-8f0a-19104e53907b 2026-05-19 15:41:33,397 - DEBUG - Requesting: http://10.0.0.249:8082/project/f1e5170a-990f-475e-ac3e-f560a9ea4a78 2026-05-19 15:41:33,470 - INFO - Validated that VN ctest-vn4-11137986 is not found in API Server 2026-05-19 15:41:33,481 - DEBUG - VN ctest-vn4-11137986 is not present in Agent 10.0.0.249 2026-05-19 15:41:33,481 - INFO - Validated that VN ctest-vn4-11137986 is not in any agent 2026-05-19 15:41:33,495 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-11137986 info 2026-05-19 15:41:33,515 - INFO - Deleted policy ctest-policy1-52123812 2026-05-19 15:41:33,680 - DEBUG - policy ctest-policy1-52123812 is not found in API Server 2026-05-19 15:41:33,946 - DEBUG - No XMPP flaps were noticed during the test 2026-05-19 15:41:33,946 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-05-19 15:41:33,946 - INFO - -------------------------------------------------------------------------------- 2026-05-19 15:41:34,245 - DEBUG - No XMPP flaps were noticed during the test 2026-05-19 15:41:34,246 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-05-19 15:41:34,246 - INFO - -------------------------------------------------------------------------------- 2026-05-19 15:41:34,943 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-12090025, ID : f1e5170a-990f-475e-ac3e-f560a9ea4a78