2026-04-27 17:44:33,669 - INFO - Domain Default found not creating 2026-04-27 17:44:33,898 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-49632105 not found, creating it 2026-04-27 17:44:34,403 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-49632105, ID : ce4088ca-9649-4990-8055-c0eb157ca4d0 2026-04-27 17:44:36,054 - INFO - ================================================================================ 2026-04-27 17:44:36,054 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-27 17:44:36,314 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-04-27 17:44:36,314 - INFO - Initial checks done. Running the testcase now 2026-04-27 17:44:36,314 - INFO - 2026-04-27 17:44:36,314 - INFO - ================================================================================ 2026-04-27 17:44:36,314 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-27 17:44:36,315 - 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-04-27 17:44:36,610 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-04-27 17:44:36,611 - INFO - Initial checks done. Running the testcase now 2026-04-27 17:44:36,611 - INFO - 2026-04-27 17:44:36,987 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49632105:ctest-vn4-67926891, 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-49632105:ctest-vn4-67926891, 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-49632105:ctest-vn4-67926891, 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-49632105:ctest-vn4-67926891, 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-04-27 17:44:37,551 - DEBUG - Response for create_network : {'network': {'id': 'c7e327b5-3f8a-4e73-a384-285d2552b824', 'name': 'ctest-vn4-67926891', 'tenant_id': 'ce4088ca964949908055c0eb157ca4d0', 'project_id': 'ce4088ca964949908055c0eb157ca4d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49632105', 'ctest-vn4-67926891'], 'port_security_enabled': True, 'description': ''}} 2026-04-27 17:44:37,740 - DEBUG - Response for create_subnet : {'subnet': {'id': '84691450-7eaf-471b-86cd-e5be8012be27', 'name': '', 'tenant_id': 'ce4088ca964949908055c0eb157ca4d0', 'network_id': 'c7e327b5-3f8a-4e73-a384-285d2552b824', 'ip_version': 4, 'cidr': '15.185.26.192/26', 'allocation_pools': [{'start': '15.185.26.194', 'end': '15.185.26.254'}], 'gateway_ip': '15.185.26.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.185.26.194', 'tags': [], 'project_id': 'ce4088ca964949908055c0eb157ca4d0'}} 2026-04-27 17:44:37,908 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f338ad7-a0f2-456e-813e-e8da29eee68a', 'name': '', 'tenant_id': 'ce4088ca964949908055c0eb157ca4d0', 'network_id': 'c7e327b5-3f8a-4e73-a384-285d2552b824', 'ip_version': 6, 'cidr': '21b8:8f33:3cdc:f46c:b5e6:ac50::/96', 'allocation_pools': [{'start': '21b8:8f33:3cdc:f46c:b5e6:ac50:0:2', 'end': '21b8:8f33:3cdc:f46c:b5e6:ac50:ffff:fffe'}], 'gateway_ip': '21b8:8f33:3cdc:f46c:b5e6:ac50:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21b8:8f33:3cdc:f46c:b5e6:ac50:0:2', 'tags': [], 'project_id': 'ce4088ca964949908055c0eb157ca4d0'}} 2026-04-27 17:44:37,932 - INFO - Created VN ctest-vn4-67926891 2026-04-27 17:44:37,987 - DEBUG - VN ctest-vn4-67926891 UUID is c7e327b5-3f8a-4e73-a384-285d2552b824 2026-04-27 17:44:38,232 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c7e327b5-3f8a-4e73-a384-285d2552b824', 'name': 'ctest-vn4-67926891', 'tenant_id': 'ce4088ca964949908055c0eb157ca4d0', 'project_id': 'ce4088ca964949908055c0eb157ca4d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['84691450-7eaf-471b-86cd-e5be8012be27', '2f338ad7-a0f2-456e-813e-e8da29eee68a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49632105', 'ctest-vn4-67926891'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49632105', 'ctest-policy1-22603861']], 'subnet_ipam': [{'subnet_cidr': '15.185.26.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21b8:8f33:3cdc:f46c:b5e6:ac50::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-27 17:44:38,399 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-27 17:44:38,700 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-27 17:44:38,740 - DEBUG - Requesting: http://10.0.0.33:8082/domain/887b5ccc-0b81-4877-8df6-e2f3e42897ca 2026-04-27 17:44:38,755 - DEBUG - Requesting: http://10.0.0.33:8082/project/ce4088ca-9649-4990-8055-c0eb157ca4d0 2026-04-27 17:44:38,829 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c7e327b5-3f8a-4e73-a384-285d2552b824 2026-04-27 17:44:38,843 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c7e327b5-3f8a-4e73-a384-285d2552b824 2026-04-27 17:44:38,855 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/66656dd6-efc3-44ea-b74b-5dba6b96c8c8 2026-04-27 17:44:38,864 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/66656dd6-efc3-44ea-b74b-5dba6b96c8c8 2026-04-27 17:44:38,873 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/00f60a44-fe46-472f-902e-d054a21c82fa 2026-04-27 17:44:38,882 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-27 17:44:38,883 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c7e327b5-3f8a-4e73-a384-285d2552b824 2026-04-27 17:44:38,895 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/66656dd6-efc3-44ea-b74b-5dba6b96c8c8 2026-04-27 17:44:38,915 - INFO - Verified VN network id 11 for VN c7e327b5-3f8a-4e73-a384-285d2552b824 2026-04-27 17:44:38,915 - INFO - Verifications in API Server for VN ctest-vn4-67926891 passed 2026-04-27 17:44:38,916 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c7e327b5-3f8a-4e73-a384-285d2552b824 2026-04-27 17:44:38,928 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/66656dd6-efc3-44ea-b74b-5dba6b96c8c8 2026-04-27 17:44:38,936 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/66656dd6-efc3-44ea-b74b-5dba6b96c8c8 2026-04-27 17:44:38,944 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/00f60a44-fe46-472f-902e-d054a21c82fa 2026-04-27 17:44:38,959 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49632105:ctest-vn4-67926891', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-49632105', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14403399692669570675', 'uuid-lslong': '11782586905631307812'}, 'enable': 'true', 'created': '2026-04-27T17:44:37', 'last-modified': '2026-04-27T17:44:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.763127'} 2026-04-27 17:44:38,966 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-27 17:44:38,967 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-67926891 passed 2026-04-27 17:44:38,967 - DEBUG - ====Verifying policy data for ctest-vn4-67926891 in API_Server ====== 2026-04-27 17:44:38,967 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-27 17:44:38,973 - DEBUG - Requesting: http://10.0.0.33:8082/domain/887b5ccc-0b81-4877-8df6-e2f3e42897ca 2026-04-27 17:44:38,986 - DEBUG - Requesting: http://10.0.0.33:8082/project/ce4088ca-9649-4990-8055-c0eb157ca4d0 2026-04-27 17:44:39,064 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c7e327b5-3f8a-4e73-a384-285d2552b824 2026-04-27 17:44:39,076 - DEBUG - ==>Verifying data for policy with id: 8776b078-68e0-421d-b652-dbae908f6763, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49632105', 'ctest-policy1-22603861'] 2026-04-27 17:44:39,076 - INFO - VN ctest-vn4-67926891 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-27 17:44:39,076 - DEBUG - Verifying the vn in opserver 2026-04-27 17:44:39,076 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49632105:ctest-vn4-67926891 virtual network link through opserver 10.0.0.33 2026-04-27 17:44:39,076 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-04-27 17:44:39,376 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-04-27 17:44:39,460 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49632105:ctest-vn4-67926891', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49632105:ctest-vn4-67926891?flat'} 2026-04-27 17:44:39,460 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49632105:ctest-vn4-67926891 is found in opserver 2026-04-27 17:44:39,472 - DEBUG - Do not have enough data to verify VN in agent 2026-04-27 17:44:39,477 - DEBUG - VRF ids for VN ctest-vn4-67926891: {} 2026-04-27 17:44:39,478 - DEBUG - ====Verifying data for ctest-policy1-22603861 in API_Server ====== 2026-04-27 17:44:39,478 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-27 17:44:39,484 - DEBUG - Requesting: http://10.0.0.33:8082/domain/887b5ccc-0b81-4877-8df6-e2f3e42897ca 2026-04-27 17:44:39,498 - DEBUG - Requesting: http://10.0.0.33:8082/project/ce4088ca-9649-4990-8055-c0eb157ca4d0 2026-04-27 17:44:39,581 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/8776b078-68e0-421d-b652-dbae908f6763 2026-04-27 17:44:39,593 - INFO - Verified policy ctest-policy1-22603861 in API Server, Result: True 2026-04-27 17:44:39,593 - INFO - Done with setup and verification, moving onto test .. 2026-04-27 17:44:39,603 - INFO - Deleting VN ctest-vn4-67926891 2026-04-27 17:44:39,762 - DEBUG - Response for deleting network () 2026-04-27 17:44:39,762 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/66656dd6-efc3-44ea-b74b-5dba6b96c8c8 2026-04-27 17:44:39,769 - DEBUG - Response Code: 404 2026-04-27 17:44:39,769 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-27 17:44:39,776 - DEBUG - Requesting: http://10.0.0.33:8082/domain/887b5ccc-0b81-4877-8df6-e2f3e42897ca 2026-04-27 17:44:39,832 - DEBUG - Requesting: http://10.0.0.33:8082/project/ce4088ca-9649-4990-8055-c0eb157ca4d0 2026-04-27 17:44:39,909 - INFO - Validated that VN ctest-vn4-67926891 is not found in API Server 2026-04-27 17:44:39,922 - DEBUG - VN ctest-vn4-67926891 is not present in Agent 10.0.0.33 2026-04-27 17:44:39,922 - INFO - Validated that VN ctest-vn4-67926891 is not in any agent 2026-04-27 17:44:39,938 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-67926891 info 2026-04-27 17:44:39,970 - INFO - Deleted policy ctest-policy1-22603861 2026-04-27 17:44:40,143 - DEBUG - policy ctest-policy1-22603861 is not found in API Server 2026-04-27 17:44:40,401 - DEBUG - No XMPP flaps were noticed during the test 2026-04-27 17:44:40,401 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-04-27 17:44:40,401 - INFO - -------------------------------------------------------------------------------- 2026-04-27 17:44:40,699 - DEBUG - No XMPP flaps were noticed during the test 2026-04-27 17:44:40,699 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-04-27 17:44:40,699 - INFO - -------------------------------------------------------------------------------- 2026-04-27 17:44:41,456 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-49632105, ID : ce4088ca-9649-4990-8055-c0eb157ca4d0