2026-04-24 17:08:19,295 - INFO - Domain Default found not creating 2026-04-24 17:08:19,473 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-54573993 not found, creating it 2026-04-24 17:08:19,972 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-54573993, ID : 8951d732-b3d3-40fe-bb36-bde467d1c5c0 2026-04-24 17:08:21,558 - INFO - ================================================================================ 2026-04-24 17:08:21,559 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-24 17:08:21,814 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-24 17:08:21,814 - INFO - Initial checks done. Running the testcase now 2026-04-24 17:08:21,814 - INFO - 2026-04-24 17:08:21,814 - INFO - ================================================================================ 2026-04-24 17:08:21,814 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-24 17:08:21,814 - 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-24 17:08:22,106 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-24 17:08:22,106 - INFO - Initial checks done. Running the testcase now 2026-04-24 17:08:22,106 - INFO - 2026-04-24 17:08:22,463 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54573993:ctest-vn4-14010979, 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-54573993:ctest-vn4-14010979, 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-54573993:ctest-vn4-14010979, 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-54573993:ctest-vn4-14010979, 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-24 17:08:23,003 - DEBUG - Response for create_network : {'network': {'id': '2b4f05f1-f8c1-4119-b111-bf9883f8e0e8', 'name': 'ctest-vn4-14010979', 'tenant_id': '8951d732b3d340febb36bde467d1c5c0', 'project_id': '8951d732b3d340febb36bde467d1c5c0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54573993', 'ctest-vn4-14010979'], 'port_security_enabled': True, 'description': ''}} 2026-04-24 17:08:23,197 - DEBUG - Response for create_subnet : {'subnet': {'id': '786946da-27b6-4522-bb2b-e66e38a42063', 'name': '', 'tenant_id': '8951d732b3d340febb36bde467d1c5c0', 'network_id': '2b4f05f1-f8c1-4119-b111-bf9883f8e0e8', 'ip_version': 4, 'cidr': '169.65.118.192/26', 'allocation_pools': [{'start': '169.65.118.194', 'end': '169.65.118.254'}], 'gateway_ip': '169.65.118.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.65.118.194', 'tags': [], 'project_id': '8951d732b3d340febb36bde467d1c5c0'}} 2026-04-24 17:08:23,381 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff52b444-be83-4c49-9981-db6714b111e8', 'name': '', 'tenant_id': '8951d732b3d340febb36bde467d1c5c0', 'network_id': '2b4f05f1-f8c1-4119-b111-bf9883f8e0e8', 'ip_version': 6, 'cidr': '346e:7cd:6322:262f:f332:7139::/96', 'allocation_pools': [{'start': '346e:7cd:6322:262f:f332:7139:0:2', 'end': '346e:7cd:6322:262f:f332:7139:ffff:fffe'}], 'gateway_ip': '346e:7cd:6322:262f:f332:7139:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '346e:7cd:6322:262f:f332:7139:0:2', 'tags': [], 'project_id': '8951d732b3d340febb36bde467d1c5c0'}} 2026-04-24 17:08:23,404 - INFO - Created VN ctest-vn4-14010979 2026-04-24 17:08:23,460 - DEBUG - VN ctest-vn4-14010979 UUID is 2b4f05f1-f8c1-4119-b111-bf9883f8e0e8 2026-04-24 17:08:23,699 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2b4f05f1-f8c1-4119-b111-bf9883f8e0e8', 'name': 'ctest-vn4-14010979', 'tenant_id': '8951d732b3d340febb36bde467d1c5c0', 'project_id': '8951d732b3d340febb36bde467d1c5c0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['786946da-27b6-4522-bb2b-e66e38a42063', 'ff52b444-be83-4c49-9981-db6714b111e8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54573993', 'ctest-vn4-14010979'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54573993', 'ctest-policy1-61785746']], 'subnet_ipam': [{'subnet_cidr': '169.65.118.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '346e:7cd:6322:262f:f332:7139::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-24 17:08:23,877 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-24 17:08:24,182 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-24 17:08:24,218 - DEBUG - Requesting: http://10.0.0.38:8082/domain/edcce260-caef-4999-8ac9-8def37d9b21e 2026-04-24 17:08:24,233 - DEBUG - Requesting: http://10.0.0.38:8082/project/8951d732-b3d3-40fe-bb36-bde467d1c5c0 2026-04-24 17:08:24,307 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2b4f05f1-f8c1-4119-b111-bf9883f8e0e8 2026-04-24 17:08:24,319 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2b4f05f1-f8c1-4119-b111-bf9883f8e0e8 2026-04-24 17:08:24,330 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/24f42889-53c1-4ff3-a413-21ed6c2e7deb 2026-04-24 17:08:24,338 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/24f42889-53c1-4ff3-a413-21ed6c2e7deb 2026-04-24 17:08:24,345 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2a917a06-f1ef-44a2-8e01-8ed1f00907c8 2026-04-24 17:08:24,352 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-24 17:08:24,352 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2b4f05f1-f8c1-4119-b111-bf9883f8e0e8 2026-04-24 17:08:24,361 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/24f42889-53c1-4ff3-a413-21ed6c2e7deb 2026-04-24 17:08:24,376 - INFO - Verified VN network id 11 for VN 2b4f05f1-f8c1-4119-b111-bf9883f8e0e8 2026-04-24 17:08:24,376 - INFO - Verifications in API Server for VN ctest-vn4-14010979 passed 2026-04-24 17:08:24,376 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2b4f05f1-f8c1-4119-b111-bf9883f8e0e8 2026-04-24 17:08:24,388 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/24f42889-53c1-4ff3-a413-21ed6c2e7deb 2026-04-24 17:08:24,396 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/24f42889-53c1-4ff3-a413-21ed6c2e7deb 2026-04-24 17:08:24,404 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2a917a06-f1ef-44a2-8e01-8ed1f00907c8 2026-04-24 17:08:24,417 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54573993:ctest-vn4-14010979', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-54573993', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3120719603609714969', 'uuid-lslong': '12759189881087385832'}, 'enable': 'true', 'created': '2026-04-24T17:08:22', 'last-modified': '2026-04-24T17:08:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.743671'} 2026-04-24 17:08:24,425 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-24 17:08:24,425 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-14010979 passed 2026-04-24 17:08:24,425 - DEBUG - ====Verifying policy data for ctest-vn4-14010979 in API_Server ====== 2026-04-24 17:08:24,425 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-24 17:08:24,432 - DEBUG - Requesting: http://10.0.0.38:8082/domain/edcce260-caef-4999-8ac9-8def37d9b21e 2026-04-24 17:08:24,445 - DEBUG - Requesting: http://10.0.0.38:8082/project/8951d732-b3d3-40fe-bb36-bde467d1c5c0 2026-04-24 17:08:24,518 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2b4f05f1-f8c1-4119-b111-bf9883f8e0e8 2026-04-24 17:08:24,528 - DEBUG - ==>Verifying data for policy with id: 7dbbe0c4-570a-438a-84eb-956b59d4623e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54573993', 'ctest-policy1-61785746'] 2026-04-24 17:08:24,528 - INFO - VN ctest-vn4-14010979 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-24 17:08:24,528 - DEBUG - Verifying the vn in opserver 2026-04-24 17:08:24,528 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54573993:ctest-vn4-14010979 virtual network link through opserver 10.0.0.38 2026-04-24 17:08:24,528 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-24 17:08:24,823 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-24 17:08:24,893 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54573993:ctest-vn4-14010979', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54573993:ctest-vn4-14010979?flat'} 2026-04-24 17:08:24,893 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54573993:ctest-vn4-14010979 is found in opserver 2026-04-24 17:08:24,903 - DEBUG - Do not have enough data to verify VN in agent 2026-04-24 17:08:24,907 - DEBUG - VRF ids for VN ctest-vn4-14010979: {} 2026-04-24 17:08:24,908 - DEBUG - ====Verifying data for ctest-policy1-61785746 in API_Server ====== 2026-04-24 17:08:24,908 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-24 17:08:24,914 - DEBUG - Requesting: http://10.0.0.38:8082/domain/edcce260-caef-4999-8ac9-8def37d9b21e 2026-04-24 17:08:24,925 - DEBUG - Requesting: http://10.0.0.38:8082/project/8951d732-b3d3-40fe-bb36-bde467d1c5c0 2026-04-24 17:08:24,997 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/7dbbe0c4-570a-438a-84eb-956b59d4623e 2026-04-24 17:08:25,008 - INFO - Verified policy ctest-policy1-61785746 in API Server, Result: True 2026-04-24 17:08:25,008 - INFO - Done with setup and verification, moving onto test .. 2026-04-24 17:08:25,019 - INFO - Deleting VN ctest-vn4-14010979 2026-04-24 17:08:25,139 - DEBUG - Response for deleting network () 2026-04-24 17:08:25,139 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/24f42889-53c1-4ff3-a413-21ed6c2e7deb 2026-04-24 17:08:25,144 - DEBUG - Response Code: 404 2026-04-24 17:08:25,145 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-24 17:08:25,150 - DEBUG - Requesting: http://10.0.0.38:8082/domain/edcce260-caef-4999-8ac9-8def37d9b21e 2026-04-24 17:08:25,206 - DEBUG - Requesting: http://10.0.0.38:8082/project/8951d732-b3d3-40fe-bb36-bde467d1c5c0 2026-04-24 17:08:25,277 - INFO - Validated that VN ctest-vn4-14010979 is not found in API Server 2026-04-24 17:08:25,288 - DEBUG - VN ctest-vn4-14010979 is not present in Agent 10.0.0.38 2026-04-24 17:08:25,288 - INFO - Validated that VN ctest-vn4-14010979 is not in any agent 2026-04-24 17:08:25,304 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-14010979 info 2026-04-24 17:08:25,327 - INFO - Deleted policy ctest-policy1-61785746 2026-04-24 17:08:25,488 - DEBUG - policy ctest-policy1-61785746 is not found in API Server 2026-04-24 17:08:25,754 - DEBUG - No XMPP flaps were noticed during the test