2026-08-20 22:29:45,249 - INFO - Domain Default found not creating 2026-08-20 22:29:45,416 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95016978 not found, creating it 2026-08-20 22:29:45,925 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95016978, ID : 69693650-fc86-494c-a717-a8325705e235 2026-08-20 22:29:47,509 - INFO - ================================================================================ 2026-08-20 22:29:47,510 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-20 22:29:47,771 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.17': '0'}} with 2026-08-20 22:29:47,771 - INFO - Initial checks done. Running the testcase now 2026-08-20 22:29:47,771 - INFO - 2026-08-20 22:29:47,771 - INFO - ================================================================================ 2026-08-20 22:29:47,771 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-20 22:29:47,771 - 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-08-20 22:29:48,061 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.17': '0'}} with 2026-08-20 22:29:48,061 - INFO - Initial checks done. Running the testcase now 2026-08-20 22:29:48,061 - INFO - 2026-08-20 22:29:48,448 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95016978:ctest-vn4-07996545, 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-95016978:ctest-vn4-07996545, 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-95016978:ctest-vn4-07996545, 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-95016978:ctest-vn4-07996545, 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-08-20 22:29:48,977 - DEBUG - Response for create_network : {'network': {'id': '5dd2be46-c15d-4cf4-99f0-e6119949fd94', 'name': 'ctest-vn4-07996545', 'tenant_id': '69693650fc86494ca717a8325705e235', 'project_id': '69693650fc86494ca717a8325705e235', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95016978', 'ctest-vn4-07996545'], 'port_security_enabled': True, 'description': ''}} 2026-08-20 22:29:49,143 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d86f11d-a2f6-42b2-98f6-5bc08f1cda09', 'name': '', 'tenant_id': '69693650fc86494ca717a8325705e235', 'network_id': '5dd2be46-c15d-4cf4-99f0-e6119949fd94', 'ip_version': 4, 'cidr': '50.245.231.64/26', 'allocation_pools': [{'start': '50.245.231.66', 'end': '50.245.231.126'}], 'gateway_ip': '50.245.231.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.245.231.66', 'tags': [], 'project_id': '69693650fc86494ca717a8325705e235'}} 2026-08-20 22:29:49,373 - DEBUG - Response for create_subnet : {'subnet': {'id': '81631d91-52b0-4065-b934-74c66d2d63de', 'name': '', 'tenant_id': '69693650fc86494ca717a8325705e235', 'network_id': '5dd2be46-c15d-4cf4-99f0-e6119949fd94', 'ip_version': 6, 'cidr': '2d56:553:58db:3895:806c:e2a0::/96', 'allocation_pools': [{'start': '2d56:553:58db:3895:806c:e2a0:0:2', 'end': '2d56:553:58db:3895:806c:e2a0:ffff:fffe'}], 'gateway_ip': '2d56:553:58db:3895:806c:e2a0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d56:553:58db:3895:806c:e2a0:0:2', 'tags': [], 'project_id': '69693650fc86494ca717a8325705e235'}} 2026-08-20 22:29:49,392 - INFO - Created VN ctest-vn4-07996545 2026-08-20 22:29:49,447 - DEBUG - VN ctest-vn4-07996545 UUID is 5dd2be46-c15d-4cf4-99f0-e6119949fd94 2026-08-20 22:29:49,661 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5dd2be46-c15d-4cf4-99f0-e6119949fd94', 'name': 'ctest-vn4-07996545', 'tenant_id': '69693650fc86494ca717a8325705e235', 'project_id': '69693650fc86494ca717a8325705e235', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4d86f11d-a2f6-42b2-98f6-5bc08f1cda09', '81631d91-52b0-4065-b934-74c66d2d63de'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95016978', 'ctest-vn4-07996545'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95016978', 'ctest-policy1-02032294']], 'subnet_ipam': [{'subnet_cidr': '50.245.231.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d56:553:58db:3895:806c:e2a0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-20 22:29:49,831 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-08-20 22:29:50,163 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-08-20 22:29:50,192 - DEBUG - Requesting: http://10.0.0.163:8082/domain/1c62434c-28df-40ec-b6ae-d8351bc23717 2026-08-20 22:29:50,209 - DEBUG - Requesting: http://10.0.0.163:8082/project/69693650-fc86-494c-a717-a8325705e235 2026-08-20 22:29:50,286 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/5dd2be46-c15d-4cf4-99f0-e6119949fd94 2026-08-20 22:29:50,299 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/5dd2be46-c15d-4cf4-99f0-e6119949fd94 2026-08-20 22:29:50,310 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/85d19b62-c255-4d20-a29e-d14699d35d4d 2026-08-20 22:29:50,317 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/85d19b62-c255-4d20-a29e-d14699d35d4d 2026-08-20 22:29:50,325 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/53223000-6996-48e5-b381-e9f488050bad 2026-08-20 22:29:50,333 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-20 22:29:50,333 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/5dd2be46-c15d-4cf4-99f0-e6119949fd94 2026-08-20 22:29:50,344 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/85d19b62-c255-4d20-a29e-d14699d35d4d 2026-08-20 22:29:50,361 - INFO - Verified VN network id 11 for VN 5dd2be46-c15d-4cf4-99f0-e6119949fd94 2026-08-20 22:29:50,361 - INFO - Verifications in API Server for VN ctest-vn4-07996545 passed 2026-08-20 22:29:50,361 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/5dd2be46-c15d-4cf4-99f0-e6119949fd94 2026-08-20 22:29:50,372 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/85d19b62-c255-4d20-a29e-d14699d35d4d 2026-08-20 22:29:50,381 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/85d19b62-c255-4d20-a29e-d14699d35d4d 2026-08-20 22:29:50,388 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/53223000-6996-48e5-b381-e9f488050bad 2026-08-20 22:29:50,400 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95016978:ctest-vn4-07996545', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95016978', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6760675201737641204', 'uuid-lslong': '11092618845474127252'}, 'enable': 'true', 'created': '2026-08-20T22:29:48', 'last-modified': '2026-08-20T22:29:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.781739'} 2026-08-20 22:29:50,408 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-20 22:29:50,408 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-07996545 passed 2026-08-20 22:29:50,408 - DEBUG - ====Verifying policy data for ctest-vn4-07996545 in API_Server ====== 2026-08-20 22:29:50,408 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-08-20 22:29:50,415 - DEBUG - Requesting: http://10.0.0.163:8082/domain/1c62434c-28df-40ec-b6ae-d8351bc23717 2026-08-20 22:29:50,426 - DEBUG - Requesting: http://10.0.0.163:8082/project/69693650-fc86-494c-a717-a8325705e235 2026-08-20 22:29:50,499 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/5dd2be46-c15d-4cf4-99f0-e6119949fd94 2026-08-20 22:29:50,512 - DEBUG - ==>Verifying data for policy with id: 5d94d65b-912e-48a9-8da3-858e7b19737e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95016978', 'ctest-policy1-02032294'] 2026-08-20 22:29:50,512 - INFO - VN ctest-vn4-07996545 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-20 22:29:50,512 - DEBUG - Verifying the vn in opserver 2026-08-20 22:29:50,512 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95016978:ctest-vn4-07996545 virtual network link through opserver 10.0.0.163 2026-08-20 22:29:50,512 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks 2026-08-20 22:29:50,834 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks 2026-08-20 22:29:50,891 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95016978:ctest-vn4-07996545', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95016978:ctest-vn4-07996545?flat'} 2026-08-20 22:29:50,891 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95016978:ctest-vn4-07996545 is found in opserver 2026-08-20 22:29:50,903 - DEBUG - Do not have enough data to verify VN in agent 2026-08-20 22:29:50,908 - DEBUG - VRF ids for VN ctest-vn4-07996545: {} 2026-08-20 22:29:50,909 - DEBUG - ====Verifying data for ctest-policy1-02032294 in API_Server ====== 2026-08-20 22:29:50,909 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-08-20 22:29:50,916 - DEBUG - Requesting: http://10.0.0.163:8082/domain/1c62434c-28df-40ec-b6ae-d8351bc23717 2026-08-20 22:29:50,927 - DEBUG - Requesting: http://10.0.0.163:8082/project/69693650-fc86-494c-a717-a8325705e235 2026-08-20 22:29:50,997 - DEBUG - Requesting: http://10.0.0.163:8082/network-policy/5d94d65b-912e-48a9-8da3-858e7b19737e 2026-08-20 22:29:51,010 - INFO - Verified policy ctest-policy1-02032294 in API Server, Result: True 2026-08-20 22:29:51,010 - INFO - Done with setup and verification, moving onto test .. 2026-08-20 22:29:51,021 - INFO - Deleting VN ctest-vn4-07996545 2026-08-20 22:29:51,145 - DEBUG - Response for deleting network () 2026-08-20 22:29:51,145 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/85d19b62-c255-4d20-a29e-d14699d35d4d 2026-08-20 22:29:51,151 - DEBUG - Response Code: 404 2026-08-20 22:29:51,151 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-08-20 22:29:51,157 - DEBUG - Requesting: http://10.0.0.163:8082/domain/1c62434c-28df-40ec-b6ae-d8351bc23717 2026-08-20 22:29:51,216 - DEBUG - Requesting: http://10.0.0.163:8082/project/69693650-fc86-494c-a717-a8325705e235 2026-08-20 22:29:51,295 - INFO - Validated that VN ctest-vn4-07996545 is not found in API Server 2026-08-20 22:29:51,308 - DEBUG - VN ctest-vn4-07996545 is not present in Agent 10.0.0.163 2026-08-20 22:29:51,308 - INFO - Validated that VN ctest-vn4-07996545 is not in any agent 2026-08-20 22:29:51,327 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-07996545 info 2026-08-20 22:29:51,355 - INFO - Deleted policy ctest-policy1-02032294 2026-08-20 22:29:51,522 - DEBUG - policy ctest-policy1-02032294 is not found in API Server 2026-08-20 22:29:51,788 - DEBUG - No XMPP flaps were noticed during the test 2026-08-20 22:29:51,788 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-08-20 22:29:51,788 - INFO - -------------------------------------------------------------------------------- 2026-08-20 22:29:52,082 - DEBUG - No XMPP flaps were noticed during the test 2026-08-20 22:29:52,082 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-08-20 22:29:52,083 - INFO - -------------------------------------------------------------------------------- 2026-08-20 22:29:52,796 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-95016978, ID : 69693650-fc86-494c-a717-a8325705e235