2026-09-07 13:24:22,373 - INFO - Domain Default found not creating 2026-09-07 13:24:22,530 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-89294505 not found, creating it 2026-09-07 13:24:22,992 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-89294505, ID : 466e733c-c708-4604-90e7-d30df751da75 2026-09-07 13:24:24,710 - INFO - ================================================================================ 2026-09-07 13:24:24,711 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-07 13:24:24,975 - DEBUG - Nothing to compare xmpp stats {'10.0.0.191': {'10.20.0.17': '0'}} with 2026-09-07 13:24:24,975 - INFO - Initial checks done. Running the testcase now 2026-09-07 13:24:24,975 - INFO - 2026-09-07 13:24:24,976 - INFO - ================================================================================ 2026-09-07 13:24:24,976 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-07 13:24:24,976 - 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-07 13:24:25,270 - DEBUG - Nothing to compare xmpp stats {'10.0.0.191': {'10.20.0.17': '0'}} with 2026-09-07 13:24:25,270 - INFO - Initial checks done. Running the testcase now 2026-09-07 13:24:25,270 - INFO - 2026-09-07 13:24:25,739 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89294505:ctest-vn4-36095509, 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-89294505:ctest-vn4-36095509, 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-89294505:ctest-vn4-36095509, 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-89294505:ctest-vn4-36095509, 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-07 13:24:26,275 - DEBUG - Response for create_network : {'network': {'id': 'a7c54123-b42b-4a9b-8a84-7a44b250e119', 'name': 'ctest-vn4-36095509', 'tenant_id': '466e733cc708460490e7d30df751da75', 'project_id': '466e733cc708460490e7d30df751da75', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-89294505', 'ctest-vn4-36095509'], 'port_security_enabled': True, 'description': ''}} 2026-09-07 13:24:26,517 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a14e5178-ad61-4700-9f35-6f09c9b29f42', 'name': '', 'tenant_id': '466e733cc708460490e7d30df751da75', 'network_id': 'a7c54123-b42b-4a9b-8a84-7a44b250e119', 'ip_version': 4, 'cidr': '69.117.128.64/26', 'allocation_pools': [{'start': '69.117.128.66', 'end': '69.117.128.126'}], 'gateway_ip': '69.117.128.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.117.128.66', 'tags': [], 'project_id': '466e733cc708460490e7d30df751da75'}} 2026-09-07 13:24:26,733 - DEBUG - Response for create_subnet : {'subnet': {'id': '22095936-23c7-4cca-a07a-45622d9b2143', 'name': '', 'tenant_id': '466e733cc708460490e7d30df751da75', 'network_id': 'a7c54123-b42b-4a9b-8a84-7a44b250e119', 'ip_version': 6, 'cidr': '2319:55d3:6689:7a29:6499:336a::/96', 'allocation_pools': [{'start': '2319:55d3:6689:7a29:6499:336a:0:2', 'end': '2319:55d3:6689:7a29:6499:336a:ffff:fffe'}], 'gateway_ip': '2319:55d3:6689:7a29:6499:336a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2319:55d3:6689:7a29:6499:336a:0:2', 'tags': [], 'project_id': '466e733cc708460490e7d30df751da75'}} 2026-09-07 13:24:26,756 - INFO - Created VN ctest-vn4-36095509 2026-09-07 13:24:26,815 - DEBUG - VN ctest-vn4-36095509 UUID is a7c54123-b42b-4a9b-8a84-7a44b250e119 2026-09-07 13:24:27,053 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a7c54123-b42b-4a9b-8a84-7a44b250e119', 'name': 'ctest-vn4-36095509', 'tenant_id': '466e733cc708460490e7d30df751da75', 'project_id': '466e733cc708460490e7d30df751da75', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['a14e5178-ad61-4700-9f35-6f09c9b29f42', '22095936-23c7-4cca-a07a-45622d9b2143'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-89294505', 'ctest-vn4-36095509'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-89294505', 'ctest-policy1-71407590']], 'subnet_ipam': [{'subnet_cidr': '69.117.128.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2319:55d3:6689:7a29:6499:336a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-07 13:24:27,215 - DEBUG - Requesting: http://10.0.0.191:8082/domains 2026-09-07 13:24:27,586 - DEBUG - Requesting: http://10.0.0.191:8082/domains 2026-09-07 13:24:27,619 - DEBUG - Requesting: http://10.0.0.191:8082/domain/649f1eb8-50d6-4305-a573-1e7dba4d8d4a 2026-09-07 13:24:27,632 - DEBUG - Requesting: http://10.0.0.191:8082/project/466e733c-c708-4604-90e7-d30df751da75 2026-09-07 13:24:27,708 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/a7c54123-b42b-4a9b-8a84-7a44b250e119 2026-09-07 13:24:27,721 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/a7c54123-b42b-4a9b-8a84-7a44b250e119 2026-09-07 13:24:27,733 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/62c68b3d-b31b-4fb2-8297-974e9dd67d5e 2026-09-07 13:24:27,740 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/62c68b3d-b31b-4fb2-8297-974e9dd67d5e 2026-09-07 13:24:27,748 - DEBUG - Requesting: http://10.0.0.191:8082/route-target/dc5c7116-f51d-4407-8f85-7c90f2516b6f 2026-09-07 13:24:27,755 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-07 13:24:27,755 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/a7c54123-b42b-4a9b-8a84-7a44b250e119 2026-09-07 13:24:27,765 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/62c68b3d-b31b-4fb2-8297-974e9dd67d5e 2026-09-07 13:24:27,781 - INFO - Verified VN network id 12 for VN a7c54123-b42b-4a9b-8a84-7a44b250e119 2026-09-07 13:24:27,781 - INFO - Verifications in API Server for VN ctest-vn4-36095509 passed 2026-09-07 13:24:27,781 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/a7c54123-b42b-4a9b-8a84-7a44b250e119 2026-09-07 13:24:27,794 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/62c68b3d-b31b-4fb2-8297-974e9dd67d5e 2026-09-07 13:24:27,801 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/62c68b3d-b31b-4fb2-8297-974e9dd67d5e 2026-09-07 13:24:27,812 - DEBUG - Requesting: http://10.0.0.191:8082/route-target/dc5c7116-f51d-4407-8f85-7c90f2516b6f 2026-09-07 13:24:27,826 - DEBUG - Control-node 10.0.0.191 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89294505:ctest-vn4-36095509', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-89294505', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12089140396348361371', 'uuid-lslong': '9981237109627871513'}, 'enable': 'true', 'created': '2026-09-07T13:24:26', 'last-modified': '2026-09-07T13:24:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.815805'} 2026-09-07 13:24:27,832 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-07 13:24:27,833 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-36095509 passed 2026-09-07 13:24:27,833 - DEBUG - ====Verifying policy data for ctest-vn4-36095509 in API_Server ====== 2026-09-07 13:24:27,833 - DEBUG - Requesting: http://10.0.0.191:8082/domains 2026-09-07 13:24:27,840 - DEBUG - Requesting: http://10.0.0.191:8082/domain/649f1eb8-50d6-4305-a573-1e7dba4d8d4a 2026-09-07 13:24:27,855 - DEBUG - Requesting: http://10.0.0.191:8082/project/466e733c-c708-4604-90e7-d30df751da75 2026-09-07 13:24:27,935 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/a7c54123-b42b-4a9b-8a84-7a44b250e119 2026-09-07 13:24:27,952 - DEBUG - ==>Verifying data for policy with id: a955705a-5843-4064-80cc-2009701ce8cf, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-89294505', 'ctest-policy1-71407590'] 2026-09-07 13:24:27,952 - INFO - VN ctest-vn4-36095509 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-07 13:24:27,952 - DEBUG - Verifying the vn in opserver 2026-09-07 13:24:27,952 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89294505:ctest-vn4-36095509 virtual network link through opserver 10.0.0.191 2026-09-07 13:24:27,952 - DEBUG - Requesting: http://10.0.0.191:8081/analytics/uves/virtual-networks 2026-09-07 13:24:28,322 - DEBUG - Requesting: http://10.0.0.191:8081/analytics/uves/virtual-networks 2026-09-07 13:24:28,392 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89294505:ctest-vn4-36095509', 'href': 'http://10.0.0.191:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89294505:ctest-vn4-36095509?flat'} 2026-09-07 13:24:28,392 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89294505:ctest-vn4-36095509 is found in opserver 2026-09-07 13:24:28,408 - DEBUG - Do not have enough data to verify VN in agent 2026-09-07 13:24:28,414 - DEBUG - VRF ids for VN ctest-vn4-36095509: {} 2026-09-07 13:24:28,414 - DEBUG - ====Verifying data for ctest-policy1-71407590 in API_Server ====== 2026-09-07 13:24:28,414 - DEBUG - Requesting: http://10.0.0.191:8082/domains 2026-09-07 13:24:28,421 - DEBUG - Requesting: http://10.0.0.191:8082/domain/649f1eb8-50d6-4305-a573-1e7dba4d8d4a 2026-09-07 13:24:28,440 - DEBUG - Requesting: http://10.0.0.191:8082/project/466e733c-c708-4604-90e7-d30df751da75 2026-09-07 13:24:28,541 - DEBUG - Requesting: http://10.0.0.191:8082/network-policy/a955705a-5843-4064-80cc-2009701ce8cf 2026-09-07 13:24:28,554 - INFO - Verified policy ctest-policy1-71407590 in API Server, Result: True 2026-09-07 13:24:28,554 - INFO - Done with setup and verification, moving onto test .. 2026-09-07 13:24:28,567 - INFO - Deleting VN ctest-vn4-36095509 2026-09-07 13:24:28,751 - DEBUG - Response for deleting network () 2026-09-07 13:24:28,751 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/62c68b3d-b31b-4fb2-8297-974e9dd67d5e 2026-09-07 13:24:28,763 - DEBUG - Response Code: 404 2026-09-07 13:24:28,764 - DEBUG - Requesting: http://10.0.0.191:8082/domains 2026-09-07 13:24:28,771 - DEBUG - Requesting: http://10.0.0.191:8082/domain/649f1eb8-50d6-4305-a573-1e7dba4d8d4a 2026-09-07 13:24:28,828 - DEBUG - Requesting: http://10.0.0.191:8082/project/466e733c-c708-4604-90e7-d30df751da75 2026-09-07 13:24:28,907 - INFO - Validated that VN ctest-vn4-36095509 is not found in API Server 2026-09-07 13:24:28,925 - DEBUG - VN ctest-vn4-36095509 is not present in Agent 10.0.0.191 2026-09-07 13:24:28,925 - INFO - Validated that VN ctest-vn4-36095509 is not in any agent 2026-09-07 13:24:28,960 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-36095509 info 2026-09-07 13:24:29,005 - INFO - Deleted policy ctest-policy1-71407590 2026-09-07 13:24:29,183 - DEBUG - policy ctest-policy1-71407590 is not found in API Server 2026-09-07 13:24:29,441 - DEBUG - No XMPP flaps were noticed during the test