2026-02-01 12:00:55,326 - INFO - Domain Default found not creating 2026-02-01 12:00:55,486 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-82315466 not found, creating it 2026-02-01 12:00:55,925 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-82315466, ID : 65ba5cc6-cd76-423c-a4f2-a09fe24f9aaa 2026-02-01 12:00:57,359 - INFO - ================================================================================ 2026-02-01 12:00:57,359 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-01 12:00:57,616 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2026-02-01 12:00:57,616 - INFO - Initial checks done. Running the testcase now 2026-02-01 12:00:57,616 - INFO - 2026-02-01 12:00:57,616 - INFO - ================================================================================ 2026-02-01 12:00:57,616 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-01 12:00:57,616 - 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-02-01 12:00:57,902 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2026-02-01 12:00:57,902 - INFO - Initial checks done. Running the testcase now 2026-02-01 12:00:57,902 - INFO - 2026-02-01 12:00:58,251 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82315466:ctest-vn4-59631582, 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-82315466:ctest-vn4-59631582, 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-82315466:ctest-vn4-59631582, 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-82315466:ctest-vn4-59631582, 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-02-01 12:00:58,761 - DEBUG - Response for create_network : {'network': {'id': '35588774-c41d-4534-8c10-cdd54fd81b77', 'name': 'ctest-vn4-59631582', 'tenant_id': '65ba5cc6cd76423ca4f2a09fe24f9aaa', 'project_id': '65ba5cc6cd76423ca4f2a09fe24f9aaa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82315466', 'ctest-vn4-59631582'], 'port_security_enabled': True, 'description': ''}} 2026-02-01 12:00:58,924 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ee0cf6b-b9b5-4859-9d95-41791d57b2c5', 'name': '', 'tenant_id': '65ba5cc6cd76423ca4f2a09fe24f9aaa', 'network_id': '35588774-c41d-4534-8c10-cdd54fd81b77', 'ip_version': 4, 'cidr': '202.65.220.64/26', 'allocation_pools': [{'start': '202.65.220.66', 'end': '202.65.220.126'}], 'gateway_ip': '202.65.220.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.65.220.66', 'tags': [], 'project_id': '65ba5cc6cd76423ca4f2a09fe24f9aaa'}} 2026-02-01 12:00:59,109 - DEBUG - Response for create_subnet : {'subnet': {'id': '7736d3f7-c887-44e6-aa84-7f09a143381c', 'name': '', 'tenant_id': '65ba5cc6cd76423ca4f2a09fe24f9aaa', 'network_id': '35588774-c41d-4534-8c10-cdd54fd81b77', 'ip_version': 6, 'cidr': '20b3:1463:8797:6df5:472c:ba1d::/96', 'allocation_pools': [{'start': '20b3:1463:8797:6df5:472c:ba1d:0:2', 'end': '20b3:1463:8797:6df5:472c:ba1d:ffff:fffe'}], 'gateway_ip': '20b3:1463:8797:6df5:472c:ba1d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20b3:1463:8797:6df5:472c:ba1d:0:2', 'tags': [], 'project_id': '65ba5cc6cd76423ca4f2a09fe24f9aaa'}} 2026-02-01 12:00:59,130 - INFO - Created VN ctest-vn4-59631582 2026-02-01 12:00:59,182 - DEBUG - VN ctest-vn4-59631582 UUID is 35588774-c41d-4534-8c10-cdd54fd81b77 2026-02-01 12:00:59,375 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '35588774-c41d-4534-8c10-cdd54fd81b77', 'name': 'ctest-vn4-59631582', 'tenant_id': '65ba5cc6cd76423ca4f2a09fe24f9aaa', 'project_id': '65ba5cc6cd76423ca4f2a09fe24f9aaa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5ee0cf6b-b9b5-4859-9d95-41791d57b2c5', '7736d3f7-c887-44e6-aa84-7f09a143381c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82315466', 'ctest-vn4-59631582'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82315466', 'ctest-policy1-59899933']], 'subnet_ipam': [{'subnet_cidr': '202.65.220.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '20b3:1463:8797:6df5:472c:ba1d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-01 12:00:59,530 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-01 12:00:59,820 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-01 12:00:59,848 - DEBUG - Requesting: http://10.0.0.33:8082/domain/64f9c071-327c-4c7e-97eb-6e373fb87629 2026-02-01 12:00:59,859 - DEBUG - Requesting: http://10.0.0.33:8082/project/65ba5cc6-cd76-423c-a4f2-a09fe24f9aaa 2026-02-01 12:00:59,928 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/35588774-c41d-4534-8c10-cdd54fd81b77 2026-02-01 12:00:59,939 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/35588774-c41d-4534-8c10-cdd54fd81b77 2026-02-01 12:00:59,948 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a32065a2-083c-43b1-bf23-e2801ad7510d 2026-02-01 12:00:59,953 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a32065a2-083c-43b1-bf23-e2801ad7510d 2026-02-01 12:00:59,959 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ab5ad1e6-62b0-4acd-826f-b4d6fe0b5c57 2026-02-01 12:00:59,965 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-01 12:00:59,965 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/35588774-c41d-4534-8c10-cdd54fd81b77 2026-02-01 12:00:59,973 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a32065a2-083c-43b1-bf23-e2801ad7510d 2026-02-01 12:00:59,985 - INFO - Verified VN network id 11 for VN 35588774-c41d-4534-8c10-cdd54fd81b77 2026-02-01 12:00:59,985 - INFO - Verifications in API Server for VN ctest-vn4-59631582 passed 2026-02-01 12:00:59,985 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/35588774-c41d-4534-8c10-cdd54fd81b77 2026-02-01 12:00:59,993 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a32065a2-083c-43b1-bf23-e2801ad7510d 2026-02-01 12:01:00,000 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a32065a2-083c-43b1-bf23-e2801ad7510d 2026-02-01 12:01:00,006 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ab5ad1e6-62b0-4acd-826f-b4d6fe0b5c57 2026-02-01 12:01:00,017 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82315466:ctest-vn4-59631582', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-82315466', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3843971217536927028', 'uuid-lslong': '10092793080988572535'}, 'enable': 'true', 'created': '2026-02-01T12:00:58', 'last-modified': '2026-02-01T12:00:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.667163'} 2026-02-01 12:01:00,023 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-01 12:01:00,023 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-59631582 passed 2026-02-01 12:01:00,024 - DEBUG - ====Verifying policy data for ctest-vn4-59631582 in API_Server ====== 2026-02-01 12:01:00,024 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-01 12:01:00,029 - DEBUG - Requesting: http://10.0.0.33:8082/domain/64f9c071-327c-4c7e-97eb-6e373fb87629 2026-02-01 12:01:00,039 - DEBUG - Requesting: http://10.0.0.33:8082/project/65ba5cc6-cd76-423c-a4f2-a09fe24f9aaa 2026-02-01 12:01:00,105 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/35588774-c41d-4534-8c10-cdd54fd81b77 2026-02-01 12:01:00,115 - DEBUG - ==>Verifying data for policy with id: a8e8758e-4a82-49f7-9856-f95fc9b91b5a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82315466', 'ctest-policy1-59899933'] 2026-02-01 12:01:00,115 - INFO - VN ctest-vn4-59631582 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-01 12:01:00,115 - DEBUG - Verifying the vn in opserver 2026-02-01 12:01:00,115 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82315466:ctest-vn4-59631582 virtual network link through opserver 10.0.0.33 2026-02-01 12:01:00,115 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-01 12:01:00,416 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-01 12:01:00,478 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82315466:ctest-vn4-59631582', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82315466:ctest-vn4-59631582?flat'} 2026-02-01 12:01:00,478 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82315466:ctest-vn4-59631582 is found in opserver 2026-02-01 12:01:00,488 - DEBUG - Do not have enough data to verify VN in agent 2026-02-01 12:01:00,492 - DEBUG - VRF ids for VN ctest-vn4-59631582: {} 2026-02-01 12:01:00,493 - DEBUG - ====Verifying data for ctest-policy1-59899933 in API_Server ====== 2026-02-01 12:01:00,493 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-01 12:01:00,498 - DEBUG - Requesting: http://10.0.0.33:8082/domain/64f9c071-327c-4c7e-97eb-6e373fb87629 2026-02-01 12:01:00,509 - DEBUG - Requesting: http://10.0.0.33:8082/project/65ba5cc6-cd76-423c-a4f2-a09fe24f9aaa 2026-02-01 12:01:00,576 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/a8e8758e-4a82-49f7-9856-f95fc9b91b5a 2026-02-01 12:01:00,585 - INFO - Verified policy ctest-policy1-59899933 in API Server, Result: True 2026-02-01 12:01:00,585 - INFO - Done with setup and verification, moving onto test .. 2026-02-01 12:01:00,593 - INFO - Deleting VN ctest-vn4-59631582 2026-02-01 12:01:00,704 - DEBUG - Response for deleting network () 2026-02-01 12:01:00,704 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a32065a2-083c-43b1-bf23-e2801ad7510d 2026-02-01 12:01:00,711 - DEBUG - Response Code: 404 2026-02-01 12:01:00,711 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-01 12:01:00,716 - DEBUG - Requesting: http://10.0.0.33:8082/domain/64f9c071-327c-4c7e-97eb-6e373fb87629 2026-02-01 12:01:00,775 - DEBUG - Requesting: http://10.0.0.33:8082/project/65ba5cc6-cd76-423c-a4f2-a09fe24f9aaa 2026-02-01 12:01:00,843 - INFO - Validated that VN ctest-vn4-59631582 is not found in API Server 2026-02-01 12:01:00,853 - DEBUG - VN ctest-vn4-59631582 is not present in Agent 10.0.0.33 2026-02-01 12:01:00,853 - INFO - Validated that VN ctest-vn4-59631582 is not in any agent 2026-02-01 12:01:00,869 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-59631582 info 2026-02-01 12:01:00,892 - INFO - Deleted policy ctest-policy1-59899933 2026-02-01 12:01:01,053 - DEBUG - policy ctest-policy1-59899933 is not found in API Server 2026-02-01 12:01:01,307 - DEBUG - No XMPP flaps were noticed during the test 2026-02-01 12:01:01,307 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-01 12:01:01,307 - INFO - -------------------------------------------------------------------------------- 2026-02-01 12:01:01,594 - DEBUG - No XMPP flaps were noticed during the test 2026-02-01 12:01:01,594 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-01 12:01:01,594 - INFO - -------------------------------------------------------------------------------- 2026-02-01 12:01:02,294 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-82315466, ID : 65ba5cc6-cd76-423c-a4f2-a09fe24f9aaa