2026-03-16 10:41:37,972 - INFO - Domain Default found not creating 2026-03-16 10:41:38,149 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-03283821 not found, creating it 2026-03-16 10:41:38,614 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-03283821, ID : 88b834eb-e0d7-4e2f-83a2-d3ff5ae09674 2026-03-16 10:41:40,072 - INFO - ================================================================================ 2026-03-16 10:41:40,072 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-16 10:41:40,332 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-03-16 10:41:40,332 - INFO - Initial checks done. Running the testcase now 2026-03-16 10:41:40,332 - INFO - 2026-03-16 10:41:40,332 - INFO - ================================================================================ 2026-03-16 10:41:40,332 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-16 10:41:40,332 - 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-03-16 10:41:40,620 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-03-16 10:41:40,620 - INFO - Initial checks done. Running the testcase now 2026-03-16 10:41:40,620 - INFO - 2026-03-16 10:41:40,975 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03283821:ctest-vn4-61747315, 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-03283821:ctest-vn4-61747315, 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-03283821:ctest-vn4-61747315, 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-03283821:ctest-vn4-61747315, 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-03-16 10:41:41,518 - DEBUG - Response for create_network : {'network': {'id': '8b512853-7330-4a0e-849e-7fe5fd5f3ad4', 'name': 'ctest-vn4-61747315', 'tenant_id': '88b834ebe0d74e2f83a2d3ff5ae09674', 'project_id': '88b834ebe0d74e2f83a2d3ff5ae09674', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03283821', 'ctest-vn4-61747315'], 'port_security_enabled': True, 'description': ''}} 2026-03-16 10:41:41,748 - DEBUG - Response for create_subnet : {'subnet': {'id': '525f750a-203f-4426-b887-abb700b7c028', 'name': '', 'tenant_id': '88b834ebe0d74e2f83a2d3ff5ae09674', 'network_id': '8b512853-7330-4a0e-849e-7fe5fd5f3ad4', 'ip_version': 4, 'cidr': '154.80.168.64/26', 'allocation_pools': [{'start': '154.80.168.66', 'end': '154.80.168.126'}], 'gateway_ip': '154.80.168.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.80.168.66', 'tags': [], 'project_id': '88b834ebe0d74e2f83a2d3ff5ae09674'}} 2026-03-16 10:41:41,977 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae93ec17-0c5d-455a-bd2a-bc095db7dd12', 'name': '', 'tenant_id': '88b834ebe0d74e2f83a2d3ff5ae09674', 'network_id': '8b512853-7330-4a0e-849e-7fe5fd5f3ad4', 'ip_version': 6, 'cidr': '239f:e75a:bfc4:486c:170:2b08::/96', 'allocation_pools': [{'start': '239f:e75a:bfc4:486c:170:2b08:0:2', 'end': '239f:e75a:bfc4:486c:170:2b08:ffff:fffe'}], 'gateway_ip': '239f:e75a:bfc4:486c:170:2b08:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '239f:e75a:bfc4:486c:170:2b08:0:2', 'tags': [], 'project_id': '88b834ebe0d74e2f83a2d3ff5ae09674'}} 2026-03-16 10:41:41,998 - INFO - Created VN ctest-vn4-61747315 2026-03-16 10:41:42,054 - DEBUG - VN ctest-vn4-61747315 UUID is 8b512853-7330-4a0e-849e-7fe5fd5f3ad4 2026-03-16 10:41:42,276 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8b512853-7330-4a0e-849e-7fe5fd5f3ad4', 'name': 'ctest-vn4-61747315', 'tenant_id': '88b834ebe0d74e2f83a2d3ff5ae09674', 'project_id': '88b834ebe0d74e2f83a2d3ff5ae09674', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['525f750a-203f-4426-b887-abb700b7c028', 'ae93ec17-0c5d-455a-bd2a-bc095db7dd12'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03283821', 'ctest-vn4-61747315'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03283821', 'ctest-policy1-08586384']], 'subnet_ipam': [{'subnet_cidr': '154.80.168.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '239f:e75a:bfc4:486c:170:2b08::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-16 10:41:42,450 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-16 10:41:42,721 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-16 10:41:42,756 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9d93f2dd-588e-4a80-a9ea-3fc51e0ee49b 2026-03-16 10:41:42,770 - DEBUG - Requesting: http://10.0.0.50:8082/project/88b834eb-e0d7-4e2f-83a2-d3ff5ae09674 2026-03-16 10:41:42,845 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8b512853-7330-4a0e-849e-7fe5fd5f3ad4 2026-03-16 10:41:42,858 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8b512853-7330-4a0e-849e-7fe5fd5f3ad4 2026-03-16 10:41:42,868 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c2b51097-4784-481a-8daa-a77f0f607e9a 2026-03-16 10:41:42,877 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c2b51097-4784-481a-8daa-a77f0f607e9a 2026-03-16 10:41:42,883 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9d30bec2-7027-4b5c-a9db-ee33fba4f301 2026-03-16 10:41:42,890 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-16 10:41:42,890 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8b512853-7330-4a0e-849e-7fe5fd5f3ad4 2026-03-16 10:41:42,900 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c2b51097-4784-481a-8daa-a77f0f607e9a 2026-03-16 10:41:42,914 - INFO - Verified VN network id 11 for VN 8b512853-7330-4a0e-849e-7fe5fd5f3ad4 2026-03-16 10:41:42,914 - INFO - Verifications in API Server for VN ctest-vn4-61747315 passed 2026-03-16 10:41:42,915 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8b512853-7330-4a0e-849e-7fe5fd5f3ad4 2026-03-16 10:41:42,926 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c2b51097-4784-481a-8daa-a77f0f607e9a 2026-03-16 10:41:42,933 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c2b51097-4784-481a-8daa-a77f0f607e9a 2026-03-16 10:41:42,943 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9d30bec2-7027-4b5c-a9db-ee33fba4f301 2026-03-16 10:41:42,957 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03283821:ctest-vn4-61747315', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03283821', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10038849383265487374', 'uuid-lslong': '9556216085101886164'}, 'enable': 'true', 'created': '2026-03-16T10:41:41', 'last-modified': '2026-03-16T10:41:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.710621'} 2026-03-16 10:41:42,963 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-16 10:41:42,963 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-61747315 passed 2026-03-16 10:41:42,963 - DEBUG - ====Verifying policy data for ctest-vn4-61747315 in API_Server ====== 2026-03-16 10:41:42,963 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-16 10:41:42,970 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9d93f2dd-588e-4a80-a9ea-3fc51e0ee49b 2026-03-16 10:41:42,981 - DEBUG - Requesting: http://10.0.0.50:8082/project/88b834eb-e0d7-4e2f-83a2-d3ff5ae09674 2026-03-16 10:41:43,054 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8b512853-7330-4a0e-849e-7fe5fd5f3ad4 2026-03-16 10:41:43,064 - DEBUG - ==>Verifying data for policy with id: f602d32c-6ffb-46df-92fe-5c94b68ea305, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03283821', 'ctest-policy1-08586384'] 2026-03-16 10:41:43,064 - INFO - VN ctest-vn4-61747315 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-16 10:41:43,064 - DEBUG - Verifying the vn in opserver 2026-03-16 10:41:43,064 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03283821:ctest-vn4-61747315 virtual network link through opserver 10.0.0.50 2026-03-16 10:41:43,064 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-03-16 10:41:43,331 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-03-16 10:41:43,396 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03283821:ctest-vn4-61747315', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03283821:ctest-vn4-61747315?flat'} 2026-03-16 10:41:43,396 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03283821:ctest-vn4-61747315 is found in opserver 2026-03-16 10:41:43,406 - DEBUG - Do not have enough data to verify VN in agent 2026-03-16 10:41:43,410 - DEBUG - VRF ids for VN ctest-vn4-61747315: {} 2026-03-16 10:41:43,411 - DEBUG - ====Verifying data for ctest-policy1-08586384 in API_Server ====== 2026-03-16 10:41:43,411 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-16 10:41:43,417 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9d93f2dd-588e-4a80-a9ea-3fc51e0ee49b 2026-03-16 10:41:43,429 - DEBUG - Requesting: http://10.0.0.50:8082/project/88b834eb-e0d7-4e2f-83a2-d3ff5ae09674 2026-03-16 10:41:43,499 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/f602d32c-6ffb-46df-92fe-5c94b68ea305 2026-03-16 10:41:43,508 - INFO - Verified policy ctest-policy1-08586384 in API Server, Result: True 2026-03-16 10:41:43,508 - INFO - Done with setup and verification, moving onto test .. 2026-03-16 10:41:43,517 - INFO - Deleting VN ctest-vn4-61747315 2026-03-16 10:41:43,642 - DEBUG - Response for deleting network () 2026-03-16 10:41:43,642 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c2b51097-4784-481a-8daa-a77f0f607e9a 2026-03-16 10:41:43,648 - DEBUG - Response Code: 404 2026-03-16 10:41:43,648 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-16 10:41:43,655 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9d93f2dd-588e-4a80-a9ea-3fc51e0ee49b 2026-03-16 10:41:43,715 - DEBUG - Requesting: http://10.0.0.50:8082/project/88b834eb-e0d7-4e2f-83a2-d3ff5ae09674 2026-03-16 10:41:43,794 - INFO - Validated that VN ctest-vn4-61747315 is not found in API Server 2026-03-16 10:41:43,804 - DEBUG - VN ctest-vn4-61747315 is not present in Agent 10.0.0.50 2026-03-16 10:41:43,804 - INFO - Validated that VN ctest-vn4-61747315 is not in any agent 2026-03-16 10:41:43,816 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-61747315 info 2026-03-16 10:41:43,841 - INFO - Deleted policy ctest-policy1-08586384 2026-03-16 10:41:44,010 - DEBUG - policy ctest-policy1-08586384 is not found in API Server 2026-03-16 10:41:44,264 - DEBUG - No XMPP flaps were noticed during the test