2026-01-27 11:56:25,376 - INFO - Domain Default found not creating 2026-01-27 11:56:25,548 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-15549100 not found, creating it 2026-01-27 11:56:26,006 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-15549100, ID : 60b7b17b-73a0-466d-98f5-2a4e2fe8d93b 2026-01-27 11:56:27,524 - INFO - ================================================================================ 2026-01-27 11:56:27,524 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-27 11:56:27,787 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-27 11:56:27,787 - INFO - Initial checks done. Running the testcase now 2026-01-27 11:56:27,787 - INFO - 2026-01-27 11:56:27,787 - INFO - ================================================================================ 2026-01-27 11:56:27,787 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-27 11:56:27,787 - 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-01-27 11:56:28,081 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-27 11:56:28,081 - INFO - Initial checks done. Running the testcase now 2026-01-27 11:56:28,081 - INFO - 2026-01-27 11:56:28,445 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15549100:ctest-vn4-85892717, 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-15549100:ctest-vn4-85892717, 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-15549100:ctest-vn4-85892717, 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-15549100:ctest-vn4-85892717, 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-01-27 11:56:28,934 - DEBUG - Response for create_network : {'network': {'id': '416d580e-766d-42f1-bbb0-b04070e022ca', 'name': 'ctest-vn4-85892717', 'tenant_id': '60b7b17b73a0466d98f52a4e2fe8d93b', 'project_id': '60b7b17b73a0466d98f52a4e2fe8d93b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15549100', 'ctest-vn4-85892717'], 'port_security_enabled': True, 'description': ''}} 2026-01-27 11:56:29,094 - DEBUG - Response for create_subnet : {'subnet': {'id': '6b2983ce-148d-4675-9f54-7e4ffc395b3c', 'name': '', 'tenant_id': '60b7b17b73a0466d98f52a4e2fe8d93b', 'network_id': '416d580e-766d-42f1-bbb0-b04070e022ca', 'ip_version': 4, 'cidr': '131.165.71.128/26', 'allocation_pools': [{'start': '131.165.71.130', 'end': '131.165.71.190'}], 'gateway_ip': '131.165.71.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.165.71.130', 'tags': [], 'project_id': '60b7b17b73a0466d98f52a4e2fe8d93b'}} 2026-01-27 11:56:29,305 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae3f0c51-e50f-4800-9ea2-1217db163407', 'name': '', 'tenant_id': '60b7b17b73a0466d98f52a4e2fe8d93b', 'network_id': '416d580e-766d-42f1-bbb0-b04070e022ca', 'ip_version': 6, 'cidr': '3a96:64cb:6615:9b43:79fb:ac27::/96', 'allocation_pools': [{'start': '3a96:64cb:6615:9b43:79fb:ac27:0:2', 'end': '3a96:64cb:6615:9b43:79fb:ac27:ffff:fffe'}], 'gateway_ip': '3a96:64cb:6615:9b43:79fb:ac27:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a96:64cb:6615:9b43:79fb:ac27:0:2', 'tags': [], 'project_id': '60b7b17b73a0466d98f52a4e2fe8d93b'}} 2026-01-27 11:56:29,324 - INFO - Created VN ctest-vn4-85892717 2026-01-27 11:56:29,377 - DEBUG - VN ctest-vn4-85892717 UUID is 416d580e-766d-42f1-bbb0-b04070e022ca 2026-01-27 11:56:29,567 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '416d580e-766d-42f1-bbb0-b04070e022ca', 'name': 'ctest-vn4-85892717', 'tenant_id': '60b7b17b73a0466d98f52a4e2fe8d93b', 'project_id': '60b7b17b73a0466d98f52a4e2fe8d93b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6b2983ce-148d-4675-9f54-7e4ffc395b3c', 'ae3f0c51-e50f-4800-9ea2-1217db163407'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15549100', 'ctest-vn4-85892717'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15549100', 'ctest-policy1-60102275']], 'subnet_ipam': [{'subnet_cidr': '131.165.71.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a96:64cb:6615:9b43:79fb:ac27::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-27 11:56:29,725 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-27 11:56:30,029 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-27 11:56:30,064 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0b0d55a5-2d0e-40b0-86f3-c2152c002fc4 2026-01-27 11:56:30,078 - DEBUG - Requesting: http://10.0.0.38:8082/project/60b7b17b-73a0-466d-98f5-2a4e2fe8d93b 2026-01-27 11:56:30,155 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/416d580e-766d-42f1-bbb0-b04070e022ca 2026-01-27 11:56:30,166 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/416d580e-766d-42f1-bbb0-b04070e022ca 2026-01-27 11:56:30,175 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/827ac82c-f30f-45e4-a46c-7281bf90fd54 2026-01-27 11:56:30,182 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/827ac82c-f30f-45e4-a46c-7281bf90fd54 2026-01-27 11:56:30,188 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/dc32bb92-6a66-4083-b834-3f3f82f03dfb 2026-01-27 11:56:30,194 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-27 11:56:30,194 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/416d580e-766d-42f1-bbb0-b04070e022ca 2026-01-27 11:56:30,203 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/827ac82c-f30f-45e4-a46c-7281bf90fd54 2026-01-27 11:56:30,215 - INFO - Verified VN network id 10 for VN 416d580e-766d-42f1-bbb0-b04070e022ca 2026-01-27 11:56:30,215 - INFO - Verifications in API Server for VN ctest-vn4-85892717 passed 2026-01-27 11:56:30,215 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/416d580e-766d-42f1-bbb0-b04070e022ca 2026-01-27 11:56:30,224 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/827ac82c-f30f-45e4-a46c-7281bf90fd54 2026-01-27 11:56:30,230 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/827ac82c-f30f-45e4-a46c-7281bf90fd54 2026-01-27 11:56:30,236 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/dc32bb92-6a66-4083-b834-3f3f82f03dfb 2026-01-27 11:56:30,249 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15549100:ctest-vn4-85892717', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-15549100', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4714521204066435825', 'uuid-lslong': '13524503471811732170'}, 'enable': 'true', 'created': '2026-01-27T11:56:28', 'last-modified': '2026-01-27T11:56:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.703696'} 2026-01-27 11:56:30,257 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-27 11:56:30,257 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-85892717 passed 2026-01-27 11:56:30,257 - DEBUG - ====Verifying policy data for ctest-vn4-85892717 in API_Server ====== 2026-01-27 11:56:30,257 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-27 11:56:30,263 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0b0d55a5-2d0e-40b0-86f3-c2152c002fc4 2026-01-27 11:56:30,273 - DEBUG - Requesting: http://10.0.0.38:8082/project/60b7b17b-73a0-466d-98f5-2a4e2fe8d93b 2026-01-27 11:56:30,345 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/416d580e-766d-42f1-bbb0-b04070e022ca 2026-01-27 11:56:30,357 - DEBUG - ==>Verifying data for policy with id: f0275b3f-8f85-4c9d-aca6-bf08d6541014, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15549100', 'ctest-policy1-60102275'] 2026-01-27 11:56:30,357 - INFO - VN ctest-vn4-85892717 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-27 11:56:30,357 - DEBUG - Verifying the vn in opserver 2026-01-27 11:56:30,357 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15549100:ctest-vn4-85892717 virtual network link through opserver 10.0.0.38 2026-01-27 11:56:30,357 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-27 11:56:30,654 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-27 11:56:30,708 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15549100:ctest-vn4-85892717', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15549100:ctest-vn4-85892717?flat'} 2026-01-27 11:56:30,708 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15549100:ctest-vn4-85892717 is found in opserver 2026-01-27 11:56:30,717 - DEBUG - Do not have enough data to verify VN in agent 2026-01-27 11:56:30,720 - DEBUG - VRF ids for VN ctest-vn4-85892717: {} 2026-01-27 11:56:30,721 - DEBUG - ====Verifying data for ctest-policy1-60102275 in API_Server ====== 2026-01-27 11:56:30,721 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-27 11:56:30,726 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0b0d55a5-2d0e-40b0-86f3-c2152c002fc4 2026-01-27 11:56:30,735 - DEBUG - Requesting: http://10.0.0.38:8082/project/60b7b17b-73a0-466d-98f5-2a4e2fe8d93b 2026-01-27 11:56:30,800 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/f0275b3f-8f85-4c9d-aca6-bf08d6541014 2026-01-27 11:56:30,808 - INFO - Verified policy ctest-policy1-60102275 in API Server, Result: True 2026-01-27 11:56:30,808 - INFO - Done with setup and verification, moving onto test .. 2026-01-27 11:56:30,814 - INFO - Deleting VN ctest-vn4-85892717 2026-01-27 11:56:30,928 - DEBUG - Response for deleting network () 2026-01-27 11:56:30,928 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/827ac82c-f30f-45e4-a46c-7281bf90fd54 2026-01-27 11:56:30,933 - DEBUG - Response Code: 404 2026-01-27 11:56:30,933 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-27 11:56:30,938 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0b0d55a5-2d0e-40b0-86f3-c2152c002fc4 2026-01-27 11:56:30,995 - DEBUG - Requesting: http://10.0.0.38:8082/project/60b7b17b-73a0-466d-98f5-2a4e2fe8d93b 2026-01-27 11:56:31,066 - INFO - Validated that VN ctest-vn4-85892717 is not found in API Server 2026-01-27 11:56:31,077 - DEBUG - VN ctest-vn4-85892717 is not present in Agent 10.0.0.38 2026-01-27 11:56:31,077 - INFO - Validated that VN ctest-vn4-85892717 is not in any agent 2026-01-27 11:56:31,092 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-85892717 info 2026-01-27 11:56:31,114 - INFO - Deleted policy ctest-policy1-60102275 2026-01-27 11:56:31,273 - DEBUG - policy ctest-policy1-60102275 is not found in API Server 2026-01-27 11:56:31,526 - DEBUG - No XMPP flaps were noticed during the test