2026-09-18 13:40:46,647 - INFO - Domain Default found not creating 2026-09-18 13:40:46,836 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-73738624 not found, creating it 2026-09-18 13:40:47,360 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-73738624, ID : 9bffe885-3ebb-472d-ab2d-ecaa79177c74 2026-09-18 13:40:49,012 - INFO - ================================================================================ 2026-09-18 13:40:49,012 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-18 13:40:49,273 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.17': '0'}} with 2026-09-18 13:40:49,273 - INFO - Initial checks done. Running the testcase now 2026-09-18 13:40:49,273 - INFO - 2026-09-18 13:40:49,273 - INFO - ================================================================================ 2026-09-18 13:40:49,273 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-18 13:40:49,273 - 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-18 13:40:49,579 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.17': '0'}} with 2026-09-18 13:40:49,579 - INFO - Initial checks done. Running the testcase now 2026-09-18 13:40:49,579 - INFO - 2026-09-18 13:40:49,987 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73738624:ctest-vn4-46782071, 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-73738624:ctest-vn4-46782071, 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-73738624:ctest-vn4-46782071, 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-73738624:ctest-vn4-46782071, 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-18 13:40:50,560 - DEBUG - Response for create_network : {'network': {'id': 'b155266d-405f-4c08-a598-3328ab994521', 'name': 'ctest-vn4-46782071', 'tenant_id': '9bffe8853ebb472dab2decaa79177c74', 'project_id': '9bffe8853ebb472dab2decaa79177c74', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73738624', 'ctest-vn4-46782071'], 'port_security_enabled': True, 'description': ''}} 2026-09-18 13:40:50,798 - DEBUG - Response for create_subnet : {'subnet': {'id': '444dbaf6-1f4d-40b4-b5ec-66b0c4528afc', 'name': '', 'tenant_id': '9bffe8853ebb472dab2decaa79177c74', 'network_id': 'b155266d-405f-4c08-a598-3328ab994521', 'ip_version': 4, 'cidr': '138.162.61.64/26', 'allocation_pools': [{'start': '138.162.61.66', 'end': '138.162.61.126'}], 'gateway_ip': '138.162.61.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.162.61.66', 'tags': [], 'project_id': '9bffe8853ebb472dab2decaa79177c74'}} 2026-09-18 13:40:51,012 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c52a484-723c-402c-8c2c-fb1ac25a5aeb', 'name': '', 'tenant_id': '9bffe8853ebb472dab2decaa79177c74', 'network_id': 'b155266d-405f-4c08-a598-3328ab994521', 'ip_version': 6, 'cidr': '32f2:e82e:84eb:b590:e49:d938::/96', 'allocation_pools': [{'start': '32f2:e82e:84eb:b590:e49:d938:0:2', 'end': '32f2:e82e:84eb:b590:e49:d938:ffff:fffe'}], 'gateway_ip': '32f2:e82e:84eb:b590:e49:d938:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32f2:e82e:84eb:b590:e49:d938:0:2', 'tags': [], 'project_id': '9bffe8853ebb472dab2decaa79177c74'}} 2026-09-18 13:40:51,035 - INFO - Created VN ctest-vn4-46782071 2026-09-18 13:40:51,090 - DEBUG - VN ctest-vn4-46782071 UUID is b155266d-405f-4c08-a598-3328ab994521 2026-09-18 13:40:51,313 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b155266d-405f-4c08-a598-3328ab994521', 'name': 'ctest-vn4-46782071', 'tenant_id': '9bffe8853ebb472dab2decaa79177c74', 'project_id': '9bffe8853ebb472dab2decaa79177c74', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['444dbaf6-1f4d-40b4-b5ec-66b0c4528afc', '1c52a484-723c-402c-8c2c-fb1ac25a5aeb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73738624', 'ctest-vn4-46782071'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73738624', 'ctest-policy1-41584907']], 'subnet_ipam': [{'subnet_cidr': '138.162.61.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32f2:e82e:84eb:b590:e49:d938::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-18 13:40:51,482 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-18 13:40:51,824 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-18 13:40:51,854 - DEBUG - Requesting: http://10.0.0.189:8082/domain/43b9ffac-29b0-4ad0-99d7-cf034868a7c4 2026-09-18 13:40:51,869 - DEBUG - Requesting: http://10.0.0.189:8082/project/9bffe885-3ebb-472d-ab2d-ecaa79177c74 2026-09-18 13:40:51,954 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/b155266d-405f-4c08-a598-3328ab994521 2026-09-18 13:40:51,969 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/b155266d-405f-4c08-a598-3328ab994521 2026-09-18 13:40:51,980 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/a41428a9-f4d0-4459-a125-add5b889513f 2026-09-18 13:40:51,991 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/a41428a9-f4d0-4459-a125-add5b889513f 2026-09-18 13:40:51,999 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/e357e033-2018-44c8-8bbb-d2950f7f1612 2026-09-18 13:40:52,006 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-18 13:40:52,007 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/b155266d-405f-4c08-a598-3328ab994521 2026-09-18 13:40:52,018 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/a41428a9-f4d0-4459-a125-add5b889513f 2026-09-18 13:40:52,035 - INFO - Verified VN network id 12 for VN b155266d-405f-4c08-a598-3328ab994521 2026-09-18 13:40:52,036 - INFO - Verifications in API Server for VN ctest-vn4-46782071 passed 2026-09-18 13:40:52,036 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/b155266d-405f-4c08-a598-3328ab994521 2026-09-18 13:40:52,050 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/a41428a9-f4d0-4459-a125-add5b889513f 2026-09-18 13:40:52,059 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/a41428a9-f4d0-4459-a125-add5b889513f 2026-09-18 13:40:52,066 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/e357e033-2018-44c8-8bbb-d2950f7f1612 2026-09-18 13:40:52,081 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73738624:ctest-vn4-46782071', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-73738624', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12778161768406928392', 'uuid-lslong': '11932343462488786209'}, 'enable': 'true', 'created': '2026-09-18T13:40:50', 'last-modified': '2026-09-18T13:40:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.795471'} 2026-09-18 13:40:52,091 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-18 13:40:52,091 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-46782071 passed 2026-09-18 13:40:52,091 - DEBUG - ====Verifying policy data for ctest-vn4-46782071 in API_Server ====== 2026-09-18 13:40:52,092 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-18 13:40:52,099 - DEBUG - Requesting: http://10.0.0.189:8082/domain/43b9ffac-29b0-4ad0-99d7-cf034868a7c4 2026-09-18 13:40:52,115 - DEBUG - Requesting: http://10.0.0.189:8082/project/9bffe885-3ebb-472d-ab2d-ecaa79177c74 2026-09-18 13:40:52,196 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/b155266d-405f-4c08-a598-3328ab994521 2026-09-18 13:40:52,208 - DEBUG - ==>Verifying data for policy with id: 9f14faba-c467-4034-9b36-80256cd59d29, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73738624', 'ctest-policy1-41584907'] 2026-09-18 13:40:52,208 - INFO - VN ctest-vn4-46782071 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-18 13:40:52,208 - DEBUG - Verifying the vn in opserver 2026-09-18 13:40:52,208 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73738624:ctest-vn4-46782071 virtual network link through opserver 10.0.0.189 2026-09-18 13:40:52,209 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-09-18 13:40:52,530 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-09-18 13:40:52,593 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73738624:ctest-vn4-46782071', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73738624:ctest-vn4-46782071?flat'} 2026-09-18 13:40:52,593 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73738624:ctest-vn4-46782071 is found in opserver 2026-09-18 13:40:52,605 - DEBUG - Do not have enough data to verify VN in agent 2026-09-18 13:40:52,610 - DEBUG - VRF ids for VN ctest-vn4-46782071: {} 2026-09-18 13:40:52,611 - DEBUG - ====Verifying data for ctest-policy1-41584907 in API_Server ====== 2026-09-18 13:40:52,611 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-18 13:40:52,618 - DEBUG - Requesting: http://10.0.0.189:8082/domain/43b9ffac-29b0-4ad0-99d7-cf034868a7c4 2026-09-18 13:40:52,631 - DEBUG - Requesting: http://10.0.0.189:8082/project/9bffe885-3ebb-472d-ab2d-ecaa79177c74 2026-09-18 13:40:52,723 - DEBUG - Requesting: http://10.0.0.189:8082/network-policy/9f14faba-c467-4034-9b36-80256cd59d29 2026-09-18 13:40:52,736 - INFO - Verified policy ctest-policy1-41584907 in API Server, Result: True 2026-09-18 13:40:52,736 - INFO - Done with setup and verification, moving onto test .. 2026-09-18 13:40:52,747 - INFO - Deleting VN ctest-vn4-46782071 2026-09-18 13:40:52,897 - DEBUG - Response for deleting network () 2026-09-18 13:40:52,897 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/a41428a9-f4d0-4459-a125-add5b889513f 2026-09-18 13:40:52,904 - DEBUG - Response Code: 404 2026-09-18 13:40:52,904 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-18 13:40:52,911 - DEBUG - Requesting: http://10.0.0.189:8082/domain/43b9ffac-29b0-4ad0-99d7-cf034868a7c4 2026-09-18 13:40:52,963 - DEBUG - Requesting: http://10.0.0.189:8082/project/9bffe885-3ebb-472d-ab2d-ecaa79177c74 2026-09-18 13:40:53,041 - INFO - Validated that VN ctest-vn4-46782071 is not found in API Server 2026-09-18 13:40:53,055 - DEBUG - VN ctest-vn4-46782071 is not present in Agent 10.0.0.189 2026-09-18 13:40:53,055 - INFO - Validated that VN ctest-vn4-46782071 is not in any agent 2026-09-18 13:40:53,077 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-46782071 info 2026-09-18 13:40:53,114 - INFO - Deleted policy ctest-policy1-41584907 2026-09-18 13:40:53,294 - DEBUG - policy ctest-policy1-41584907 is not found in API Server 2026-09-18 13:40:53,555 - DEBUG - No XMPP flaps were noticed during the test 2026-09-18 13:40:53,555 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-09-18 13:40:53,555 - INFO - -------------------------------------------------------------------------------- 2026-09-18 13:40:53,855 - DEBUG - No XMPP flaps were noticed during the test 2026-09-18 13:40:53,855 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-09-18 13:40:53,855 - INFO - -------------------------------------------------------------------------------- 2026-09-18 13:40:54,618 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-73738624, ID : 9bffe885-3ebb-472d-ab2d-ecaa79177c74