2026-04-28 14:56:52,910 - INFO - Domain Default found not creating 2026-04-28 14:56:53,086 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-59837544 not found, creating it 2026-04-28 14:56:53,555 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-59837544, ID : d7b20bfb-bd73-4105-b972-c33a78df1f2a 2026-04-28 14:56:55,038 - INFO - ================================================================================ 2026-04-28 14:56:55,038 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-28 14:56:55,295 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-28 14:56:55,295 - INFO - Initial checks done. Running the testcase now 2026-04-28 14:56:55,295 - INFO - 2026-04-28 14:56:55,295 - INFO - ================================================================================ 2026-04-28 14:56:55,295 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-28 14:56:55,295 - 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-28 14:56:55,581 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-28 14:56:55,581 - INFO - Initial checks done. Running the testcase now 2026-04-28 14:56:55,582 - INFO - 2026-04-28 14:56:55,941 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59837544:ctest-vn4-76734027, 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-59837544:ctest-vn4-76734027, 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-59837544:ctest-vn4-76734027, 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-59837544:ctest-vn4-76734027, 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-28 14:56:56,457 - DEBUG - Response for create_network : {'network': {'id': '719df86e-75e4-443b-bf5a-9e03bdfd026a', 'name': 'ctest-vn4-76734027', 'tenant_id': 'd7b20bfbbd734105b972c33a78df1f2a', 'project_id': 'd7b20bfbbd734105b972c33a78df1f2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59837544', 'ctest-vn4-76734027'], 'port_security_enabled': True, 'description': ''}} 2026-04-28 14:56:56,614 - DEBUG - Response for create_subnet : {'subnet': {'id': '6fcd45b3-7133-443d-8158-869fed86d977', 'name': '', 'tenant_id': 'd7b20bfbbd734105b972c33a78df1f2a', 'network_id': '719df86e-75e4-443b-bf5a-9e03bdfd026a', 'ip_version': 4, 'cidr': '170.238.86.192/26', 'allocation_pools': [{'start': '170.238.86.194', 'end': '170.238.86.254'}], 'gateway_ip': '170.238.86.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.238.86.194', 'tags': [], 'project_id': 'd7b20bfbbd734105b972c33a78df1f2a'}} 2026-04-28 14:56:56,799 - DEBUG - Response for create_subnet : {'subnet': {'id': '0961528a-6a30-425f-a1c6-8e7353a359f6', 'name': '', 'tenant_id': 'd7b20bfbbd734105b972c33a78df1f2a', 'network_id': '719df86e-75e4-443b-bf5a-9e03bdfd026a', 'ip_version': 6, 'cidr': '3d5d:4e96:768e:4a5c:a731:d31b::/96', 'allocation_pools': [{'start': '3d5d:4e96:768e:4a5c:a731:d31b:0:2', 'end': '3d5d:4e96:768e:4a5c:a731:d31b:ffff:fffe'}], 'gateway_ip': '3d5d:4e96:768e:4a5c:a731:d31b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d5d:4e96:768e:4a5c:a731:d31b:0:2', 'tags': [], 'project_id': 'd7b20bfbbd734105b972c33a78df1f2a'}} 2026-04-28 14:56:56,819 - INFO - Created VN ctest-vn4-76734027 2026-04-28 14:56:56,872 - DEBUG - VN ctest-vn4-76734027 UUID is 719df86e-75e4-443b-bf5a-9e03bdfd026a 2026-04-28 14:56:57,077 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '719df86e-75e4-443b-bf5a-9e03bdfd026a', 'name': 'ctest-vn4-76734027', 'tenant_id': 'd7b20bfbbd734105b972c33a78df1f2a', 'project_id': 'd7b20bfbbd734105b972c33a78df1f2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6fcd45b3-7133-443d-8158-869fed86d977', '0961528a-6a30-425f-a1c6-8e7353a359f6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59837544', 'ctest-vn4-76734027'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59837544', 'ctest-policy1-41708271']], 'subnet_ipam': [{'subnet_cidr': '170.238.86.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d5d:4e96:768e:4a5c:a731:d31b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-28 14:56:57,240 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-28 14:56:57,534 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-28 14:56:57,564 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0b4ccab4-0a8d-4512-af6f-d7e959bacc86 2026-04-28 14:56:57,575 - DEBUG - Requesting: http://10.0.0.50:8082/project/d7b20bfb-bd73-4105-b972-c33a78df1f2a 2026-04-28 14:56:57,646 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/719df86e-75e4-443b-bf5a-9e03bdfd026a 2026-04-28 14:56:57,658 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/719df86e-75e4-443b-bf5a-9e03bdfd026a 2026-04-28 14:56:57,667 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8e7e17ca-7411-49d0-ad5d-107f65d936f7 2026-04-28 14:56:57,674 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8e7e17ca-7411-49d0-ad5d-107f65d936f7 2026-04-28 14:56:57,681 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0c743952-86f3-42fc-b142-020747a20351 2026-04-28 14:56:57,687 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-28 14:56:57,687 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/719df86e-75e4-443b-bf5a-9e03bdfd026a 2026-04-28 14:56:57,699 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8e7e17ca-7411-49d0-ad5d-107f65d936f7 2026-04-28 14:56:57,714 - INFO - Verified VN network id 12 for VN 719df86e-75e4-443b-bf5a-9e03bdfd026a 2026-04-28 14:56:57,714 - INFO - Verifications in API Server for VN ctest-vn4-76734027 passed 2026-04-28 14:56:57,715 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/719df86e-75e4-443b-bf5a-9e03bdfd026a 2026-04-28 14:56:57,724 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8e7e17ca-7411-49d0-ad5d-107f65d936f7 2026-04-28 14:56:57,730 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8e7e17ca-7411-49d0-ad5d-107f65d936f7 2026-04-28 14:56:57,737 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0c743952-86f3-42fc-b142-020747a20351 2026-04-28 14:56:57,748 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59837544:ctest-vn4-76734027', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-59837544', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8186972850937414715', 'uuid-lslong': '13788506948057760362'}, 'enable': 'true', 'created': '2026-04-28T14:56:56', 'last-modified': '2026-04-28T14:56:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.706226'} 2026-04-28 14:56:57,754 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-28 14:56:57,754 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-76734027 passed 2026-04-28 14:56:57,754 - DEBUG - ====Verifying policy data for ctest-vn4-76734027 in API_Server ====== 2026-04-28 14:56:57,754 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-28 14:56:57,760 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0b4ccab4-0a8d-4512-af6f-d7e959bacc86 2026-04-28 14:56:57,770 - DEBUG - Requesting: http://10.0.0.50:8082/project/d7b20bfb-bd73-4105-b972-c33a78df1f2a 2026-04-28 14:56:57,839 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/719df86e-75e4-443b-bf5a-9e03bdfd026a 2026-04-28 14:56:57,851 - DEBUG - ==>Verifying data for policy with id: 76a0f32f-ff95-4bdc-9f3e-84325b08db47, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59837544', 'ctest-policy1-41708271'] 2026-04-28 14:56:57,851 - INFO - VN ctest-vn4-76734027 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-28 14:56:57,851 - DEBUG - Verifying the vn in opserver 2026-04-28 14:56:57,851 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59837544:ctest-vn4-76734027 virtual network link through opserver 10.0.0.50 2026-04-28 14:56:57,851 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-28 14:56:58,143 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-28 14:56:58,206 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59837544:ctest-vn4-76734027', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59837544:ctest-vn4-76734027?flat'} 2026-04-28 14:56:58,206 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59837544:ctest-vn4-76734027 is found in opserver 2026-04-28 14:56:58,216 - DEBUG - Do not have enough data to verify VN in agent 2026-04-28 14:56:58,221 - DEBUG - VRF ids for VN ctest-vn4-76734027: {} 2026-04-28 14:56:58,221 - DEBUG - ====Verifying data for ctest-policy1-41708271 in API_Server ====== 2026-04-28 14:56:58,221 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-28 14:56:58,227 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0b4ccab4-0a8d-4512-af6f-d7e959bacc86 2026-04-28 14:56:58,238 - DEBUG - Requesting: http://10.0.0.50:8082/project/d7b20bfb-bd73-4105-b972-c33a78df1f2a 2026-04-28 14:56:58,307 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/76a0f32f-ff95-4bdc-9f3e-84325b08db47 2026-04-28 14:56:58,317 - INFO - Verified policy ctest-policy1-41708271 in API Server, Result: True 2026-04-28 14:56:58,317 - INFO - Done with setup and verification, moving onto test .. 2026-04-28 14:56:58,325 - INFO - Deleting VN ctest-vn4-76734027 2026-04-28 14:56:58,448 - DEBUG - Response for deleting network () 2026-04-28 14:56:58,448 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8e7e17ca-7411-49d0-ad5d-107f65d936f7 2026-04-28 14:56:58,453 - DEBUG - Response Code: 404 2026-04-28 14:56:58,453 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-28 14:56:58,459 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0b4ccab4-0a8d-4512-af6f-d7e959bacc86 2026-04-28 14:56:58,513 - DEBUG - Requesting: http://10.0.0.50:8082/project/d7b20bfb-bd73-4105-b972-c33a78df1f2a 2026-04-28 14:56:58,590 - INFO - Validated that VN ctest-vn4-76734027 is not found in API Server 2026-04-28 14:56:58,599 - DEBUG - VN ctest-vn4-76734027 is not present in Agent 10.0.0.50 2026-04-28 14:56:58,599 - INFO - Validated that VN ctest-vn4-76734027 is not in any agent 2026-04-28 14:56:58,614 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-76734027 info 2026-04-28 14:56:58,639 - INFO - Deleted policy ctest-policy1-41708271 2026-04-28 14:56:58,812 - DEBUG - policy ctest-policy1-41708271 is not found in API Server 2026-04-28 14:56:59,082 - DEBUG - No XMPP flaps were noticed during the test