2026-05-05 17:17:36,850 - INFO - Domain Default found not creating 2026-05-05 17:17:37,037 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-13349385 not found, creating it 2026-05-05 17:17:37,539 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-13349385, ID : 619161f3-d515-41b5-ac0b-fa6ef8ad5131 2026-05-05 17:17:39,068 - INFO - ================================================================================ 2026-05-05 17:17:39,068 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-05 17:17:39,324 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-05-05 17:17:39,324 - INFO - Initial checks done. Running the testcase now 2026-05-05 17:17:39,324 - INFO - 2026-05-05 17:17:39,324 - INFO - ================================================================================ 2026-05-05 17:17:39,324 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-05 17:17:39,325 - 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-05 17:17:39,616 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-05-05 17:17:39,616 - INFO - Initial checks done. Running the testcase now 2026-05-05 17:17:39,616 - INFO - 2026-05-05 17:17:40,002 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13349385:ctest-vn4-36516742, 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-13349385:ctest-vn4-36516742, 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-13349385:ctest-vn4-36516742, 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-13349385:ctest-vn4-36516742, 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-05 17:17:40,547 - DEBUG - Response for create_network : {'network': {'id': '45f4fe28-5f31-41c2-9109-c324e0591e63', 'name': 'ctest-vn4-36516742', 'tenant_id': '619161f3d51541b5ac0bfa6ef8ad5131', 'project_id': '619161f3d51541b5ac0bfa6ef8ad5131', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13349385', 'ctest-vn4-36516742'], 'port_security_enabled': True, 'description': ''}} 2026-05-05 17:17:40,775 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd599bd62-9862-415d-9474-6cf9ee52cffc', 'name': '', 'tenant_id': '619161f3d51541b5ac0bfa6ef8ad5131', 'network_id': '45f4fe28-5f31-41c2-9109-c324e0591e63', 'ip_version': 4, 'cidr': '55.140.192.64/26', 'allocation_pools': [{'start': '55.140.192.66', 'end': '55.140.192.126'}], 'gateway_ip': '55.140.192.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.140.192.66', 'tags': [], 'project_id': '619161f3d51541b5ac0bfa6ef8ad5131'}} 2026-05-05 17:17:40,994 - DEBUG - Response for create_subnet : {'subnet': {'id': '5b3b4472-a257-44e9-ae73-840cec68b0f2', 'name': '', 'tenant_id': '619161f3d51541b5ac0bfa6ef8ad5131', 'network_id': '45f4fe28-5f31-41c2-9109-c324e0591e63', 'ip_version': 6, 'cidr': '3d3e:6cfb:26c3:705e:f368:2d8a::/96', 'allocation_pools': [{'start': '3d3e:6cfb:26c3:705e:f368:2d8a:0:2', 'end': '3d3e:6cfb:26c3:705e:f368:2d8a:ffff:fffe'}], 'gateway_ip': '3d3e:6cfb:26c3:705e:f368:2d8a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d3e:6cfb:26c3:705e:f368:2d8a:0:2', 'tags': [], 'project_id': '619161f3d51541b5ac0bfa6ef8ad5131'}} 2026-05-05 17:17:41,014 - INFO - Created VN ctest-vn4-36516742 2026-05-05 17:17:41,067 - DEBUG - VN ctest-vn4-36516742 UUID is 45f4fe28-5f31-41c2-9109-c324e0591e63 2026-05-05 17:17:41,288 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '45f4fe28-5f31-41c2-9109-c324e0591e63', 'name': 'ctest-vn4-36516742', 'tenant_id': '619161f3d51541b5ac0bfa6ef8ad5131', 'project_id': '619161f3d51541b5ac0bfa6ef8ad5131', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d599bd62-9862-415d-9474-6cf9ee52cffc', '5b3b4472-a257-44e9-ae73-840cec68b0f2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13349385', 'ctest-vn4-36516742'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13349385', 'ctest-policy1-88921570']], 'subnet_ipam': [{'subnet_cidr': '55.140.192.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d3e:6cfb:26c3:705e:f368:2d8a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-05 17:17:41,471 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-05 17:17:41,767 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-05 17:17:41,801 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3341b8ff-0c14-42bb-a083-2736d8c74713 2026-05-05 17:17:41,812 - DEBUG - Requesting: http://10.0.0.38:8082/project/619161f3-d515-41b5-ac0b-fa6ef8ad5131 2026-05-05 17:17:41,882 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/45f4fe28-5f31-41c2-9109-c324e0591e63 2026-05-05 17:17:41,895 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/45f4fe28-5f31-41c2-9109-c324e0591e63 2026-05-05 17:17:41,904 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26e4d0a7-1651-4329-ba89-21e3396f8ad7 2026-05-05 17:17:41,911 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26e4d0a7-1651-4329-ba89-21e3396f8ad7 2026-05-05 17:17:41,917 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/db1b1ebc-980f-4897-aede-1df258076685 2026-05-05 17:17:41,923 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-05 17:17:41,923 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/45f4fe28-5f31-41c2-9109-c324e0591e63 2026-05-05 17:17:41,933 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26e4d0a7-1651-4329-ba89-21e3396f8ad7 2026-05-05 17:17:41,946 - INFO - Verified VN network id 11 for VN 45f4fe28-5f31-41c2-9109-c324e0591e63 2026-05-05 17:17:41,946 - INFO - Verifications in API Server for VN ctest-vn4-36516742 passed 2026-05-05 17:17:41,946 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/45f4fe28-5f31-41c2-9109-c324e0591e63 2026-05-05 17:17:41,955 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26e4d0a7-1651-4329-ba89-21e3396f8ad7 2026-05-05 17:17:41,961 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26e4d0a7-1651-4329-ba89-21e3396f8ad7 2026-05-05 17:17:41,968 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/db1b1ebc-980f-4897-aede-1df258076685 2026-05-05 17:17:41,982 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13349385:ctest-vn4-36516742', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-13349385', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5040933332283638210', 'uuid-lslong': '10451098973440122467'}, 'enable': 'true', 'created': '2026-05-05T17:17:40', 'last-modified': '2026-05-05T17:17:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.721126'} 2026-05-05 17:17:41,989 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-05 17:17:41,989 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-36516742 passed 2026-05-05 17:17:41,989 - DEBUG - ====Verifying policy data for ctest-vn4-36516742 in API_Server ====== 2026-05-05 17:17:41,989 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-05 17:17:41,995 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3341b8ff-0c14-42bb-a083-2736d8c74713 2026-05-05 17:17:42,005 - DEBUG - Requesting: http://10.0.0.38:8082/project/619161f3-d515-41b5-ac0b-fa6ef8ad5131 2026-05-05 17:17:42,082 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/45f4fe28-5f31-41c2-9109-c324e0591e63 2026-05-05 17:17:42,094 - DEBUG - ==>Verifying data for policy with id: 86d547f3-3ad9-41b2-8cb3-178acd3a0a8e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13349385', 'ctest-policy1-88921570'] 2026-05-05 17:17:42,094 - INFO - VN ctest-vn4-36516742 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-05 17:17:42,094 - DEBUG - Verifying the vn in opserver 2026-05-05 17:17:42,095 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13349385:ctest-vn4-36516742 virtual network link through opserver 10.0.0.38 2026-05-05 17:17:42,095 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-05-05 17:17:42,393 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-05-05 17:17:42,468 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13349385:ctest-vn4-36516742', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13349385:ctest-vn4-36516742?flat'} 2026-05-05 17:17:42,468 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13349385:ctest-vn4-36516742 is found in opserver 2026-05-05 17:17:42,477 - DEBUG - Do not have enough data to verify VN in agent 2026-05-05 17:17:42,482 - DEBUG - VRF ids for VN ctest-vn4-36516742: {} 2026-05-05 17:17:42,482 - DEBUG - ====Verifying data for ctest-policy1-88921570 in API_Server ====== 2026-05-05 17:17:42,482 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-05 17:17:42,487 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3341b8ff-0c14-42bb-a083-2736d8c74713 2026-05-05 17:17:42,499 - DEBUG - Requesting: http://10.0.0.38:8082/project/619161f3-d515-41b5-ac0b-fa6ef8ad5131 2026-05-05 17:17:42,572 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/86d547f3-3ad9-41b2-8cb3-178acd3a0a8e 2026-05-05 17:17:42,581 - INFO - Verified policy ctest-policy1-88921570 in API Server, Result: True 2026-05-05 17:17:42,581 - INFO - Done with setup and verification, moving onto test .. 2026-05-05 17:17:42,588 - INFO - Deleting VN ctest-vn4-36516742 2026-05-05 17:17:42,705 - DEBUG - Response for deleting network () 2026-05-05 17:17:42,705 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26e4d0a7-1651-4329-ba89-21e3396f8ad7 2026-05-05 17:17:42,711 - DEBUG - Response Code: 404 2026-05-05 17:17:42,711 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-05 17:17:42,718 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3341b8ff-0c14-42bb-a083-2736d8c74713 2026-05-05 17:17:42,773 - DEBUG - Requesting: http://10.0.0.38:8082/project/619161f3-d515-41b5-ac0b-fa6ef8ad5131 2026-05-05 17:17:42,844 - INFO - Validated that VN ctest-vn4-36516742 is not found in API Server 2026-05-05 17:17:42,859 - DEBUG - VN ctest-vn4-36516742 is not present in Agent 10.0.0.38 2026-05-05 17:17:42,859 - INFO - Validated that VN ctest-vn4-36516742 is not in any agent 2026-05-05 17:17:42,879 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-36516742 info 2026-05-05 17:17:42,906 - INFO - Deleted policy ctest-policy1-88921570 2026-05-05 17:17:43,075 - DEBUG - policy ctest-policy1-88921570 is not found in API Server 2026-05-05 17:17:43,332 - DEBUG - No XMPP flaps were noticed during the test