2026-10-22 18:01:18,176 - INFO - Domain Default found not creating 2026-10-22 18:01:18,381 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-54863211 not found, creating it 2026-10-22 18:01:18,873 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-54863211, ID : cb7d25b5-7bfa-47b2-9f20-d1fe108001e9 2026-10-22 18:01:20,696 - INFO - ================================================================================ 2026-10-22 18:01:20,696 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-22 18:01:20,965 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.254': '0'}} with 2026-10-22 18:01:20,965 - INFO - Initial checks done. Running the testcase now 2026-10-22 18:01:20,965 - INFO - 2026-10-22 18:01:20,966 - INFO - ================================================================================ 2026-10-22 18:01:20,966 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-22 18:01:20,966 - 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-10-22 18:01:21,255 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.254': '0'}} with 2026-10-22 18:01:21,255 - INFO - Initial checks done. Running the testcase now 2026-10-22 18:01:21,255 - INFO - 2026-10-22 18:01:21,683 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54863211:ctest-vn4-87159310, 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-54863211:ctest-vn4-87159310, 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-54863211:ctest-vn4-87159310, 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-54863211:ctest-vn4-87159310, 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-10-22 18:01:22,198 - DEBUG - Response for create_network : {'network': {'id': '2d099a7f-b77e-4c90-a1f8-a461a80b1bc3', 'name': 'ctest-vn4-87159310', 'tenant_id': 'cb7d25b57bfa47b29f20d1fe108001e9', 'project_id': 'cb7d25b57bfa47b29f20d1fe108001e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54863211', 'ctest-vn4-87159310'], 'port_security_enabled': True, 'description': ''}} 2026-10-22 18:01:22,404 - DEBUG - Response for create_subnet : {'subnet': {'id': '533686c8-6346-4d62-bf5e-54d36a42a751', 'name': '', 'tenant_id': 'cb7d25b57bfa47b29f20d1fe108001e9', 'network_id': '2d099a7f-b77e-4c90-a1f8-a461a80b1bc3', 'ip_version': 4, 'cidr': '191.34.245.192/26', 'allocation_pools': [{'start': '191.34.245.194', 'end': '191.34.245.254'}], 'gateway_ip': '191.34.245.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.34.245.194', 'tags': [], 'project_id': 'cb7d25b57bfa47b29f20d1fe108001e9'}} 2026-10-22 18:01:22,575 - DEBUG - Response for create_subnet : {'subnet': {'id': '55149ab5-aab6-444a-9358-362d4c8b951f', 'name': '', 'tenant_id': 'cb7d25b57bfa47b29f20d1fe108001e9', 'network_id': '2d099a7f-b77e-4c90-a1f8-a461a80b1bc3', 'ip_version': 6, 'cidr': '38bb:e65:4e30:4c36:dd5c:4762::/96', 'allocation_pools': [{'start': '38bb:e65:4e30:4c36:dd5c:4762:0:2', 'end': '38bb:e65:4e30:4c36:dd5c:4762:ffff:fffe'}], 'gateway_ip': '38bb:e65:4e30:4c36:dd5c:4762:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38bb:e65:4e30:4c36:dd5c:4762:0:2', 'tags': [], 'project_id': 'cb7d25b57bfa47b29f20d1fe108001e9'}} 2026-10-22 18:01:22,593 - INFO - Created VN ctest-vn4-87159310 2026-10-22 18:01:22,649 - DEBUG - VN ctest-vn4-87159310 UUID is 2d099a7f-b77e-4c90-a1f8-a461a80b1bc3 2026-10-22 18:01:22,847 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d099a7f-b77e-4c90-a1f8-a461a80b1bc3', 'name': 'ctest-vn4-87159310', 'tenant_id': 'cb7d25b57bfa47b29f20d1fe108001e9', 'project_id': 'cb7d25b57bfa47b29f20d1fe108001e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['533686c8-6346-4d62-bf5e-54d36a42a751', '55149ab5-aab6-444a-9358-362d4c8b951f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54863211', 'ctest-vn4-87159310'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54863211', 'ctest-policy1-88194074']], 'subnet_ipam': [{'subnet_cidr': '191.34.245.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '38bb:e65:4e30:4c36:dd5c:4762::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-22 18:01:23,009 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-22 18:01:23,379 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-22 18:01:23,406 - DEBUG - Requesting: http://10.0.0.190:8082/domain/d1016fab-71c1-4e8a-9324-a9ffaf62869c 2026-10-22 18:01:23,417 - DEBUG - Requesting: http://10.0.0.190:8082/project/cb7d25b5-7bfa-47b2-9f20-d1fe108001e9 2026-10-22 18:01:23,492 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/2d099a7f-b77e-4c90-a1f8-a461a80b1bc3 2026-10-22 18:01:23,504 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/2d099a7f-b77e-4c90-a1f8-a461a80b1bc3 2026-10-22 18:01:23,514 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/8b65452e-8639-4e18-9214-e683fd0db575 2026-10-22 18:01:23,520 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/8b65452e-8639-4e18-9214-e683fd0db575 2026-10-22 18:01:23,526 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/556fa4d4-4d7d-4f8e-84e7-dcda50a800e4 2026-10-22 18:01:23,532 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-22 18:01:23,532 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/2d099a7f-b77e-4c90-a1f8-a461a80b1bc3 2026-10-22 18:01:23,541 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/8b65452e-8639-4e18-9214-e683fd0db575 2026-10-22 18:01:23,557 - INFO - Verified VN network id 12 for VN 2d099a7f-b77e-4c90-a1f8-a461a80b1bc3 2026-10-22 18:01:23,558 - INFO - Verifications in API Server for VN ctest-vn4-87159310 passed 2026-10-22 18:01:23,558 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/2d099a7f-b77e-4c90-a1f8-a461a80b1bc3 2026-10-22 18:01:23,575 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/8b65452e-8639-4e18-9214-e683fd0db575 2026-10-22 18:01:23,582 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/8b65452e-8639-4e18-9214-e683fd0db575 2026-10-22 18:01:23,588 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/556fa4d4-4d7d-4f8e-84e7-dcda50a800e4 2026-10-22 18:01:23,600 - DEBUG - Control-node 10.0.0.190 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54863211:ctest-vn4-87159310', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-54863211', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3245294879827184784', 'uuid-lslong': '11671259173668723651'}, 'enable': 'true', 'created': '2026-10-22T18:01:22', 'last-modified': '2026-10-22T18:01:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.781214'} 2026-10-22 18:01:23,606 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-22 18:01:23,606 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-87159310 passed 2026-10-22 18:01:23,606 - DEBUG - ====Verifying policy data for ctest-vn4-87159310 in API_Server ====== 2026-10-22 18:01:23,606 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-22 18:01:23,611 - DEBUG - Requesting: http://10.0.0.190:8082/domain/d1016fab-71c1-4e8a-9324-a9ffaf62869c 2026-10-22 18:01:23,621 - DEBUG - Requesting: http://10.0.0.190:8082/project/cb7d25b5-7bfa-47b2-9f20-d1fe108001e9 2026-10-22 18:01:23,693 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/2d099a7f-b77e-4c90-a1f8-a461a80b1bc3 2026-10-22 18:01:23,702 - DEBUG - ==>Verifying data for policy with id: c10cea2d-40a9-405f-acc8-968d10a28243, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54863211', 'ctest-policy1-88194074'] 2026-10-22 18:01:23,702 - INFO - VN ctest-vn4-87159310 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-22 18:01:23,702 - DEBUG - Verifying the vn in opserver 2026-10-22 18:01:23,702 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54863211:ctest-vn4-87159310 virtual network link through opserver 10.0.0.190 2026-10-22 18:01:23,703 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-10-22 18:01:24,068 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-10-22 18:01:24,124 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54863211:ctest-vn4-87159310', 'href': 'http://10.0.0.190:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54863211:ctest-vn4-87159310?flat'} 2026-10-22 18:01:24,124 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54863211:ctest-vn4-87159310 is found in opserver 2026-10-22 18:01:24,135 - DEBUG - Do not have enough data to verify VN in agent 2026-10-22 18:01:24,140 - DEBUG - VRF ids for VN ctest-vn4-87159310: {} 2026-10-22 18:01:24,141 - DEBUG - ====Verifying data for ctest-policy1-88194074 in API_Server ====== 2026-10-22 18:01:24,141 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-22 18:01:24,147 - DEBUG - Requesting: http://10.0.0.190:8082/domain/d1016fab-71c1-4e8a-9324-a9ffaf62869c 2026-10-22 18:01:24,158 - DEBUG - Requesting: http://10.0.0.190:8082/project/cb7d25b5-7bfa-47b2-9f20-d1fe108001e9 2026-10-22 18:01:24,230 - DEBUG - Requesting: http://10.0.0.190:8082/network-policy/c10cea2d-40a9-405f-acc8-968d10a28243 2026-10-22 18:01:24,239 - INFO - Verified policy ctest-policy1-88194074 in API Server, Result: True 2026-10-22 18:01:24,240 - INFO - Done with setup and verification, moving onto test .. 2026-10-22 18:01:24,249 - INFO - Deleting VN ctest-vn4-87159310 2026-10-22 18:01:24,363 - DEBUG - Response for deleting network () 2026-10-22 18:01:24,363 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/8b65452e-8639-4e18-9214-e683fd0db575 2026-10-22 18:01:24,369 - DEBUG - Response Code: 404 2026-10-22 18:01:24,369 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-22 18:01:24,374 - DEBUG - Requesting: http://10.0.0.190:8082/domain/d1016fab-71c1-4e8a-9324-a9ffaf62869c 2026-10-22 18:01:24,425 - DEBUG - Requesting: http://10.0.0.190:8082/project/cb7d25b5-7bfa-47b2-9f20-d1fe108001e9 2026-10-22 18:01:24,497 - INFO - Validated that VN ctest-vn4-87159310 is not found in API Server 2026-10-22 18:01:24,508 - DEBUG - VN ctest-vn4-87159310 is not present in Agent 10.0.0.190 2026-10-22 18:01:24,508 - INFO - Validated that VN ctest-vn4-87159310 is not in any agent 2026-10-22 18:01:24,523 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-87159310 info 2026-10-22 18:01:24,548 - INFO - Deleted policy ctest-policy1-88194074 2026-10-22 18:01:24,709 - DEBUG - policy ctest-policy1-88194074 is not found in API Server 2026-10-22 18:01:24,972 - DEBUG - No XMPP flaps were noticed during the test 2026-10-22 18:01:24,972 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-10-22 18:01:24,972 - INFO - -------------------------------------------------------------------------------- 2026-10-22 18:01:25,272 - DEBUG - No XMPP flaps were noticed during the test 2026-10-22 18:01:25,272 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-10-22 18:01:25,272 - INFO - -------------------------------------------------------------------------------- 2026-10-22 18:01:26,065 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-54863211, ID : cb7d25b5-7bfa-47b2-9f20-d1fe108001e9