2026-05-28 09:07:15,343 - INFO - Domain Default found not creating 2026-05-28 09:07:15,539 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-51538876 not found, creating it 2026-05-28 09:07:16,050 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-51538876, ID : 5fa02525-e053-484f-888a-ba9bee0fe7e1 2026-05-28 09:07:17,703 - INFO - ================================================================================ 2026-05-28 09:07:17,703 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-28 09:07:17,975 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-05-28 09:07:17,975 - INFO - Initial checks done. Running the testcase now 2026-05-28 09:07:17,976 - INFO - 2026-05-28 09:07:17,976 - INFO - ================================================================================ 2026-05-28 09:07:17,976 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-28 09:07:17,976 - 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-05-28 09:07:18,285 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-05-28 09:07:18,285 - INFO - Initial checks done. Running the testcase now 2026-05-28 09:07:18,285 - INFO - 2026-05-28 09:07:18,724 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51538876:ctest-vn4-06049288, 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-51538876:ctest-vn4-06049288, 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-51538876:ctest-vn4-06049288, 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-51538876:ctest-vn4-06049288, 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-05-28 09:07:19,523 - DEBUG - Response for create_network : {'network': {'id': '2dec1a00-207d-465f-b41c-c796809983eb', 'name': 'ctest-vn4-06049288', 'tenant_id': '5fa02525e053484f888aba9bee0fe7e1', 'project_id': '5fa02525e053484f888aba9bee0fe7e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51538876', 'ctest-vn4-06049288'], 'port_security_enabled': True, 'description': ''}} 2026-05-28 09:07:19,718 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9ed0c53-6dfe-4102-92a4-eb1bfefa0618', 'name': '', 'tenant_id': '5fa02525e053484f888aba9bee0fe7e1', 'network_id': '2dec1a00-207d-465f-b41c-c796809983eb', 'ip_version': 4, 'cidr': '137.67.154.128/26', 'allocation_pools': [{'start': '137.67.154.130', 'end': '137.67.154.190'}], 'gateway_ip': '137.67.154.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.67.154.130', 'tags': [], 'project_id': '5fa02525e053484f888aba9bee0fe7e1'}} 2026-05-28 09:07:19,925 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6d6a713-9c04-4dd2-a1e1-15ffb2ba931a', 'name': '', 'tenant_id': '5fa02525e053484f888aba9bee0fe7e1', 'network_id': '2dec1a00-207d-465f-b41c-c796809983eb', 'ip_version': 6, 'cidr': '33ca:3ca4:8c54:35e9:7d02:2492::/96', 'allocation_pools': [{'start': '33ca:3ca4:8c54:35e9:7d02:2492:0:2', 'end': '33ca:3ca4:8c54:35e9:7d02:2492:ffff:fffe'}], 'gateway_ip': '33ca:3ca4:8c54:35e9:7d02:2492:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33ca:3ca4:8c54:35e9:7d02:2492:0:2', 'tags': [], 'project_id': '5fa02525e053484f888aba9bee0fe7e1'}} 2026-05-28 09:07:19,952 - INFO - Created VN ctest-vn4-06049288 2026-05-28 09:07:20,007 - DEBUG - VN ctest-vn4-06049288 UUID is 2dec1a00-207d-465f-b41c-c796809983eb 2026-05-28 09:07:20,220 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2dec1a00-207d-465f-b41c-c796809983eb', 'name': 'ctest-vn4-06049288', 'tenant_id': '5fa02525e053484f888aba9bee0fe7e1', 'project_id': '5fa02525e053484f888aba9bee0fe7e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c9ed0c53-6dfe-4102-92a4-eb1bfefa0618', 'a6d6a713-9c04-4dd2-a1e1-15ffb2ba931a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51538876', 'ctest-vn4-06049288'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51538876', 'ctest-policy1-42490990']], 'subnet_ipam': [{'subnet_cidr': '137.67.154.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '33ca:3ca4:8c54:35e9:7d02:2492::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-28 09:07:20,387 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-28 09:07:20,730 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-28 09:07:20,766 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74fe28d1-ba1d-49c5-8c80-173f73584c7c 2026-05-28 09:07:20,782 - DEBUG - Requesting: http://10.0.0.33:8082/project/5fa02525-e053-484f-888a-ba9bee0fe7e1 2026-05-28 09:07:20,857 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2dec1a00-207d-465f-b41c-c796809983eb 2026-05-28 09:07:20,870 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2dec1a00-207d-465f-b41c-c796809983eb 2026-05-28 09:07:20,881 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cd9f0912-a067-4cf8-84c7-545b87985d75 2026-05-28 09:07:20,890 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cd9f0912-a067-4cf8-84c7-545b87985d75 2026-05-28 09:07:20,899 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f1cdff11-a246-4616-bf69-43b13c0eabd3 2026-05-28 09:07:20,907 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 09:07:20,907 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2dec1a00-207d-465f-b41c-c796809983eb 2026-05-28 09:07:20,917 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cd9f0912-a067-4cf8-84c7-545b87985d75 2026-05-28 09:07:20,931 - INFO - Verified VN network id 12 for VN 2dec1a00-207d-465f-b41c-c796809983eb 2026-05-28 09:07:20,931 - INFO - Verifications in API Server for VN ctest-vn4-06049288 passed 2026-05-28 09:07:20,931 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2dec1a00-207d-465f-b41c-c796809983eb 2026-05-28 09:07:20,940 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cd9f0912-a067-4cf8-84c7-545b87985d75 2026-05-28 09:07:20,947 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cd9f0912-a067-4cf8-84c7-545b87985d75 2026-05-28 09:07:20,953 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f1cdff11-a246-4616-bf69-43b13c0eabd3 2026-05-28 09:07:20,965 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51538876:ctest-vn4-06049288', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51538876', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3309048414057875039', 'uuid-lslong': '12978467675391493099'}, 'enable': 'true', 'created': '2026-05-28T09:07:19', 'last-modified': '2026-05-28T09:07:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.778765'} 2026-05-28 09:07:20,972 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 09:07:20,972 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-06049288 passed 2026-05-28 09:07:20,972 - DEBUG - ====Verifying policy data for ctest-vn4-06049288 in API_Server ====== 2026-05-28 09:07:20,972 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-28 09:07:20,977 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74fe28d1-ba1d-49c5-8c80-173f73584c7c 2026-05-28 09:07:20,987 - DEBUG - Requesting: http://10.0.0.33:8082/project/5fa02525-e053-484f-888a-ba9bee0fe7e1 2026-05-28 09:07:21,056 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2dec1a00-207d-465f-b41c-c796809983eb 2026-05-28 09:07:21,066 - DEBUG - ==>Verifying data for policy with id: 57068263-d373-4294-8b7c-d1f709cc73ba, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51538876', 'ctest-policy1-42490990'] 2026-05-28 09:07:21,066 - INFO - VN ctest-vn4-06049288 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-28 09:07:21,066 - DEBUG - Verifying the vn in opserver 2026-05-28 09:07:21,066 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51538876:ctest-vn4-06049288 virtual network link through opserver 10.0.0.33 2026-05-28 09:07:21,066 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-05-28 09:07:21,402 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-05-28 09:07:21,463 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51538876:ctest-vn4-06049288', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51538876:ctest-vn4-06049288?flat'} 2026-05-28 09:07:21,463 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51538876:ctest-vn4-06049288 is found in opserver 2026-05-28 09:07:21,474 - DEBUG - Do not have enough data to verify VN in agent 2026-05-28 09:07:21,479 - DEBUG - VRF ids for VN ctest-vn4-06049288: {} 2026-05-28 09:07:21,479 - DEBUG - ====Verifying data for ctest-policy1-42490990 in API_Server ====== 2026-05-28 09:07:21,479 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-28 09:07:21,485 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74fe28d1-ba1d-49c5-8c80-173f73584c7c 2026-05-28 09:07:21,499 - DEBUG - Requesting: http://10.0.0.33:8082/project/5fa02525-e053-484f-888a-ba9bee0fe7e1 2026-05-28 09:07:21,569 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/57068263-d373-4294-8b7c-d1f709cc73ba 2026-05-28 09:07:21,580 - INFO - Verified policy ctest-policy1-42490990 in API Server, Result: True 2026-05-28 09:07:21,581 - INFO - Done with setup and verification, moving onto test .. 2026-05-28 09:07:21,590 - INFO - Deleting VN ctest-vn4-06049288 2026-05-28 09:07:21,708 - DEBUG - Response for deleting network () 2026-05-28 09:07:21,709 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cd9f0912-a067-4cf8-84c7-545b87985d75 2026-05-28 09:07:21,714 - DEBUG - Response Code: 404 2026-05-28 09:07:21,714 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-28 09:07:21,720 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74fe28d1-ba1d-49c5-8c80-173f73584c7c 2026-05-28 09:07:21,772 - DEBUG - Requesting: http://10.0.0.33:8082/project/5fa02525-e053-484f-888a-ba9bee0fe7e1 2026-05-28 09:07:21,855 - INFO - Validated that VN ctest-vn4-06049288 is not found in API Server 2026-05-28 09:07:21,866 - DEBUG - VN ctest-vn4-06049288 is not present in Agent 10.0.0.33 2026-05-28 09:07:21,866 - INFO - Validated that VN ctest-vn4-06049288 is not in any agent 2026-05-28 09:07:21,881 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-06049288 info 2026-05-28 09:07:21,907 - INFO - Deleted policy ctest-policy1-42490990 2026-05-28 09:07:22,071 - DEBUG - policy ctest-policy1-42490990 is not found in API Server 2026-05-28 09:07:22,331 - DEBUG - No XMPP flaps were noticed during the test