2026-09-16 07:34:02,601 - INFO - Domain Default found not creating 2026-09-16 07:34:02,768 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-00953363 not found, creating it 2026-09-16 07:34:03,252 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-00953363, ID : b16d77ec-bca2-4f4f-bd00-b27fdcde944a 2026-09-16 07:34:04,887 - INFO - ================================================================================ 2026-09-16 07:34:04,887 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-16 07:34:05,149 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.17': '0'}} with 2026-09-16 07:34:05,149 - INFO - Initial checks done. Running the testcase now 2026-09-16 07:34:05,149 - INFO - 2026-09-16 07:34:05,149 - INFO - ================================================================================ 2026-09-16 07:34:05,149 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-16 07:34:05,149 - 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-16 07:34:05,446 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.17': '0'}} with 2026-09-16 07:34:05,446 - INFO - Initial checks done. Running the testcase now 2026-09-16 07:34:05,446 - INFO - 2026-09-16 07:34:05,806 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00953363:ctest-vn4-66983918, 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-00953363:ctest-vn4-66983918, 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-00953363:ctest-vn4-66983918, 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-00953363:ctest-vn4-66983918, 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-16 07:34:06,370 - DEBUG - Response for create_network : {'network': {'id': '86eaa13f-dd99-4055-9f84-1ec8f6eef416', 'name': 'ctest-vn4-66983918', 'tenant_id': 'b16d77ecbca24f4fbd00b27fdcde944a', 'project_id': 'b16d77ecbca24f4fbd00b27fdcde944a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00953363', 'ctest-vn4-66983918'], 'port_security_enabled': True, 'description': ''}} 2026-09-16 07:34:06,597 - DEBUG - Response for create_subnet : {'subnet': {'id': '90310f2c-8312-4bc0-b04b-22228e0395bf', 'name': '', 'tenant_id': 'b16d77ecbca24f4fbd00b27fdcde944a', 'network_id': '86eaa13f-dd99-4055-9f84-1ec8f6eef416', 'ip_version': 4, 'cidr': '186.31.67.128/26', 'allocation_pools': [{'start': '186.31.67.130', 'end': '186.31.67.190'}], 'gateway_ip': '186.31.67.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.31.67.130', 'tags': [], 'project_id': 'b16d77ecbca24f4fbd00b27fdcde944a'}} 2026-09-16 07:34:06,761 - DEBUG - Response for create_subnet : {'subnet': {'id': '3b29d50f-0b7c-4740-ae9f-571ad030efcd', 'name': '', 'tenant_id': 'b16d77ecbca24f4fbd00b27fdcde944a', 'network_id': '86eaa13f-dd99-4055-9f84-1ec8f6eef416', 'ip_version': 6, 'cidr': '209c:4e09:94f2:455f:688c:11ce::/96', 'allocation_pools': [{'start': '209c:4e09:94f2:455f:688c:11ce:0:2', 'end': '209c:4e09:94f2:455f:688c:11ce:ffff:fffe'}], 'gateway_ip': '209c:4e09:94f2:455f:688c:11ce:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209c:4e09:94f2:455f:688c:11ce:0:2', 'tags': [], 'project_id': 'b16d77ecbca24f4fbd00b27fdcde944a'}} 2026-09-16 07:34:06,780 - INFO - Created VN ctest-vn4-66983918 2026-09-16 07:34:06,836 - DEBUG - VN ctest-vn4-66983918 UUID is 86eaa13f-dd99-4055-9f84-1ec8f6eef416 2026-09-16 07:34:07,058 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '86eaa13f-dd99-4055-9f84-1ec8f6eef416', 'name': 'ctest-vn4-66983918', 'tenant_id': 'b16d77ecbca24f4fbd00b27fdcde944a', 'project_id': 'b16d77ecbca24f4fbd00b27fdcde944a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['90310f2c-8312-4bc0-b04b-22228e0395bf', '3b29d50f-0b7c-4740-ae9f-571ad030efcd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00953363', 'ctest-vn4-66983918'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00953363', 'ctest-policy1-27920013']], 'subnet_ipam': [{'subnet_cidr': '186.31.67.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '209c:4e09:94f2:455f:688c:11ce::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-16 07:34:07,216 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-16 07:34:07,544 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-16 07:34:07,575 - DEBUG - Requesting: http://10.0.0.185:8082/domain/d4089221-3ac8-4c42-a9c9-8186e069a031 2026-09-16 07:34:07,589 - DEBUG - Requesting: http://10.0.0.185:8082/project/b16d77ec-bca2-4f4f-bd00-b27fdcde944a 2026-09-16 07:34:07,666 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/86eaa13f-dd99-4055-9f84-1ec8f6eef416 2026-09-16 07:34:07,684 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/86eaa13f-dd99-4055-9f84-1ec8f6eef416 2026-09-16 07:34:07,696 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/6a652891-60c7-46f9-8d45-085a9cc29804 2026-09-16 07:34:07,706 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/6a652891-60c7-46f9-8d45-085a9cc29804 2026-09-16 07:34:07,716 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/bbac0bbc-a47a-4bca-9334-4476996e42a7 2026-09-16 07:34:07,724 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-16 07:34:07,724 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/86eaa13f-dd99-4055-9f84-1ec8f6eef416 2026-09-16 07:34:07,733 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/6a652891-60c7-46f9-8d45-085a9cc29804 2026-09-16 07:34:07,748 - INFO - Verified VN network id 12 for VN 86eaa13f-dd99-4055-9f84-1ec8f6eef416 2026-09-16 07:34:07,748 - INFO - Verifications in API Server for VN ctest-vn4-66983918 passed 2026-09-16 07:34:07,748 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/86eaa13f-dd99-4055-9f84-1ec8f6eef416 2026-09-16 07:34:07,758 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/6a652891-60c7-46f9-8d45-085a9cc29804 2026-09-16 07:34:07,766 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/6a652891-60c7-46f9-8d45-085a9cc29804 2026-09-16 07:34:07,774 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/bbac0bbc-a47a-4bca-9334-4476996e42a7 2026-09-16 07:34:07,788 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00953363:ctest-vn4-66983918', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-00953363', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9721760041305456725', 'uuid-lslong': '11494345997441496086'}, 'enable': 'true', 'created': '2026-09-16T07:34:06', 'last-modified': '2026-09-16T07:34:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.768408'} 2026-09-16 07:34:07,798 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-16 07:34:07,798 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-66983918 passed 2026-09-16 07:34:07,798 - DEBUG - ====Verifying policy data for ctest-vn4-66983918 in API_Server ====== 2026-09-16 07:34:07,799 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-16 07:34:07,805 - DEBUG - Requesting: http://10.0.0.185:8082/domain/d4089221-3ac8-4c42-a9c9-8186e069a031 2026-09-16 07:34:07,816 - DEBUG - Requesting: http://10.0.0.185:8082/project/b16d77ec-bca2-4f4f-bd00-b27fdcde944a 2026-09-16 07:34:07,887 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/86eaa13f-dd99-4055-9f84-1ec8f6eef416 2026-09-16 07:34:07,899 - DEBUG - ==>Verifying data for policy with id: 979275c8-3e96-4dc1-8cb0-83ed6f79be5a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00953363', 'ctest-policy1-27920013'] 2026-09-16 07:34:07,899 - INFO - VN ctest-vn4-66983918 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-16 07:34:07,899 - DEBUG - Verifying the vn in opserver 2026-09-16 07:34:07,899 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00953363:ctest-vn4-66983918 virtual network link through opserver 10.0.0.185 2026-09-16 07:34:07,899 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-09-16 07:34:08,226 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-09-16 07:34:08,296 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00953363:ctest-vn4-66983918', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00953363:ctest-vn4-66983918?flat'} 2026-09-16 07:34:08,296 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00953363:ctest-vn4-66983918 is found in opserver 2026-09-16 07:34:08,307 - DEBUG - Do not have enough data to verify VN in agent 2026-09-16 07:34:08,313 - DEBUG - VRF ids for VN ctest-vn4-66983918: {} 2026-09-16 07:34:08,313 - DEBUG - ====Verifying data for ctest-policy1-27920013 in API_Server ====== 2026-09-16 07:34:08,313 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-16 07:34:08,321 - DEBUG - Requesting: http://10.0.0.185:8082/domain/d4089221-3ac8-4c42-a9c9-8186e069a031 2026-09-16 07:34:08,339 - DEBUG - Requesting: http://10.0.0.185:8082/project/b16d77ec-bca2-4f4f-bd00-b27fdcde944a 2026-09-16 07:34:08,421 - DEBUG - Requesting: http://10.0.0.185:8082/network-policy/979275c8-3e96-4dc1-8cb0-83ed6f79be5a 2026-09-16 07:34:08,433 - INFO - Verified policy ctest-policy1-27920013 in API Server, Result: True 2026-09-16 07:34:08,433 - INFO - Done with setup and verification, moving onto test .. 2026-09-16 07:34:08,445 - INFO - Deleting VN ctest-vn4-66983918 2026-09-16 07:34:08,605 - DEBUG - Response for deleting network () 2026-09-16 07:34:08,605 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/6a652891-60c7-46f9-8d45-085a9cc29804 2026-09-16 07:34:08,610 - DEBUG - Response Code: 404 2026-09-16 07:34:08,611 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-16 07:34:08,616 - DEBUG - Requesting: http://10.0.0.185:8082/domain/d4089221-3ac8-4c42-a9c9-8186e069a031 2026-09-16 07:34:08,673 - DEBUG - Requesting: http://10.0.0.185:8082/project/b16d77ec-bca2-4f4f-bd00-b27fdcde944a 2026-09-16 07:34:08,747 - INFO - Validated that VN ctest-vn4-66983918 is not found in API Server 2026-09-16 07:34:08,758 - DEBUG - VN ctest-vn4-66983918 is not present in Agent 10.0.0.185 2026-09-16 07:34:08,758 - INFO - Validated that VN ctest-vn4-66983918 is not in any agent 2026-09-16 07:34:08,773 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-66983918 info 2026-09-16 07:34:08,801 - INFO - Deleted policy ctest-policy1-27920013 2026-09-16 07:34:08,984 - DEBUG - policy ctest-policy1-27920013 is not found in API Server 2026-09-16 07:34:09,255 - DEBUG - No XMPP flaps were noticed during the test
2026-09-16 07:34:09,255 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-09-16 07:34:09,255 - INFO - -------------------------------------------------------------------------------- 2026-09-16 07:34:09,556 - DEBUG - No XMPP flaps were noticed during the test
2026-09-16 07:34:09,557 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-16 07:34:09,557 - INFO - -------------------------------------------------------------------------------- 2026-09-16 07:34:10,340 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-00953363, ID : b16d77ec-bca2-4f4f-bd00-b27fdcde944a