2026-11-03 00:12:03,611 - INFO - Domain Default found not creating 2026-11-03 00:12:03,769 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-81227569 not found, creating it 2026-11-03 00:12:04,209 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-81227569, ID : d22e7150-9ee5-42fd-be2f-1577c3ba0a43 2026-11-03 00:12:05,708 - INFO - ================================================================================ 2026-11-03 00:12:05,708 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-03 00:12:05,965 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-11-03 00:12:05,965 - INFO - Initial checks done. Running the testcase now 2026-11-03 00:12:05,965 - INFO - 2026-11-03 00:12:05,965 - INFO - ================================================================================ 2026-11-03 00:12:05,965 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-03 00:12:05,965 - 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-11-03 00:12:06,249 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-11-03 00:12:06,249 - INFO - Initial checks done. Running the testcase now 2026-11-03 00:12:06,249 - INFO - 2026-11-03 00:12:06,617 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81227569:ctest-vn4-78721853, 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-81227569:ctest-vn4-78721853, 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-81227569:ctest-vn4-78721853, 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-81227569:ctest-vn4-78721853, 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-11-03 00:12:07,126 - DEBUG - Response for create_network : {'network': {'id': '3c43f2a6-e519-46d8-b0e3-6e8916e7c2c4', 'name': 'ctest-vn4-78721853', 'tenant_id': 'd22e71509ee542fdbe2f1577c3ba0a43', 'project_id': 'd22e71509ee542fdbe2f1577c3ba0a43', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81227569', 'ctest-vn4-78721853'], 'port_security_enabled': True, 'description': ''}} 2026-11-03 00:12:07,285 - DEBUG - Response for create_subnet : {'subnet': {'id': '2094c2ab-c87d-4830-ae30-f8b0a6b7f9e2', 'name': '', 'tenant_id': 'd22e71509ee542fdbe2f1577c3ba0a43', 'network_id': '3c43f2a6-e519-46d8-b0e3-6e8916e7c2c4', 'ip_version': 4, 'cidr': '12.67.196.64/26', 'allocation_pools': [{'start': '12.67.196.66', 'end': '12.67.196.126'}], 'gateway_ip': '12.67.196.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.67.196.66', 'tags': [], 'project_id': 'd22e71509ee542fdbe2f1577c3ba0a43'}} 2026-11-03 00:12:07,490 - DEBUG - Response for create_subnet : {'subnet': {'id': '6521c646-602d-45ba-86b1-beaf88231147', 'name': '', 'tenant_id': 'd22e71509ee542fdbe2f1577c3ba0a43', 'network_id': '3c43f2a6-e519-46d8-b0e3-6e8916e7c2c4', 'ip_version': 6, 'cidr': '25a9:2a9b:6d6e:f1ff:6af8:6c0c::/96', 'allocation_pools': [{'start': '25a9:2a9b:6d6e:f1ff:6af8:6c0c:0:2', 'end': '25a9:2a9b:6d6e:f1ff:6af8:6c0c:ffff:fffe'}], 'gateway_ip': '25a9:2a9b:6d6e:f1ff:6af8:6c0c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25a9:2a9b:6d6e:f1ff:6af8:6c0c:0:2', 'tags': [], 'project_id': 'd22e71509ee542fdbe2f1577c3ba0a43'}} 2026-11-03 00:12:07,506 - INFO - Created VN ctest-vn4-78721853 2026-11-03 00:12:07,556 - DEBUG - VN ctest-vn4-78721853 UUID is 3c43f2a6-e519-46d8-b0e3-6e8916e7c2c4 2026-11-03 00:12:07,738 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c43f2a6-e519-46d8-b0e3-6e8916e7c2c4', 'name': 'ctest-vn4-78721853', 'tenant_id': 'd22e71509ee542fdbe2f1577c3ba0a43', 'project_id': 'd22e71509ee542fdbe2f1577c3ba0a43', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['2094c2ab-c87d-4830-ae30-f8b0a6b7f9e2', '6521c646-602d-45ba-86b1-beaf88231147'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81227569', 'ctest-vn4-78721853'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81227569', 'ctest-policy1-95714214']], 'subnet_ipam': [{'subnet_cidr': '12.67.196.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '25a9:2a9b:6d6e:f1ff:6af8:6c0c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-03 00:12:07,896 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-03 00:12:08,210 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-03 00:12:08,245 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a96a62f2-7a5f-471a-a4e3-c9ed36f86c1e 2026-11-03 00:12:08,259 - DEBUG - Requesting: http://10.0.0.38:8082/project/d22e7150-9ee5-42fd-be2f-1577c3ba0a43 2026-11-03 00:12:08,333 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3c43f2a6-e519-46d8-b0e3-6e8916e7c2c4 2026-11-03 00:12:08,343 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3c43f2a6-e519-46d8-b0e3-6e8916e7c2c4 2026-11-03 00:12:08,351 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/445d56dd-c9fb-4bd2-b535-40c17a3181dd 2026-11-03 00:12:08,357 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/445d56dd-c9fb-4bd2-b535-40c17a3181dd 2026-11-03 00:12:08,362 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3a924b98-6da2-472c-88e5-9fc2885d12ae 2026-11-03 00:12:08,367 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-03 00:12:08,367 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3c43f2a6-e519-46d8-b0e3-6e8916e7c2c4 2026-11-03 00:12:08,375 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/445d56dd-c9fb-4bd2-b535-40c17a3181dd 2026-11-03 00:12:08,385 - INFO - Verified VN network id 12 for VN 3c43f2a6-e519-46d8-b0e3-6e8916e7c2c4 2026-11-03 00:12:08,385 - INFO - Verifications in API Server for VN ctest-vn4-78721853 passed 2026-11-03 00:12:08,385 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3c43f2a6-e519-46d8-b0e3-6e8916e7c2c4 2026-11-03 00:12:08,393 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/445d56dd-c9fb-4bd2-b535-40c17a3181dd 2026-11-03 00:12:08,398 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/445d56dd-c9fb-4bd2-b535-40c17a3181dd 2026-11-03 00:12:08,402 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3a924b98-6da2-472c-88e5-9fc2885d12ae 2026-11-03 00:12:08,412 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81227569:ctest-vn4-78721853', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-81227569', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4342581264337422040', 'uuid-lslong': '12746152905462497988'}, 'enable': 'true', 'created': '2026-11-03T00:12:07', 'last-modified': '2026-11-03T00:12:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.697827'} 2026-11-03 00:12:08,420 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-03 00:12:08,420 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-78721853 passed 2026-11-03 00:12:08,420 - DEBUG - ====Verifying policy data for ctest-vn4-78721853 in API_Server ====== 2026-11-03 00:12:08,420 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-03 00:12:08,424 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a96a62f2-7a5f-471a-a4e3-c9ed36f86c1e 2026-11-03 00:12:08,433 - DEBUG - Requesting: http://10.0.0.38:8082/project/d22e7150-9ee5-42fd-be2f-1577c3ba0a43 2026-11-03 00:12:08,507 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3c43f2a6-e519-46d8-b0e3-6e8916e7c2c4 2026-11-03 00:12:08,515 - DEBUG - ==>Verifying data for policy with id: 66156f85-f8e5-422b-bee2-7529d4c4cc63, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81227569', 'ctest-policy1-95714214'] 2026-11-03 00:12:08,515 - INFO - VN ctest-vn4-78721853 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-03 00:12:08,515 - DEBUG - Verifying the vn in opserver 2026-11-03 00:12:08,515 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81227569:ctest-vn4-78721853 virtual network link through opserver 10.0.0.38 2026-11-03 00:12:08,515 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-11-03 00:12:08,842 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-11-03 00:12:08,890 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81227569:ctest-vn4-78721853', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81227569:ctest-vn4-78721853?flat'} 2026-11-03 00:12:08,890 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81227569:ctest-vn4-78721853 is found in opserver 2026-11-03 00:12:08,899 - DEBUG - Do not have enough data to verify VN in agent 2026-11-03 00:12:08,903 - DEBUG - VRF ids for VN ctest-vn4-78721853: {} 2026-11-03 00:12:08,904 - DEBUG - ====Verifying data for ctest-policy1-95714214 in API_Server ====== 2026-11-03 00:12:08,904 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-03 00:12:08,909 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a96a62f2-7a5f-471a-a4e3-c9ed36f86c1e 2026-11-03 00:12:08,919 - DEBUG - Requesting: http://10.0.0.38:8082/project/d22e7150-9ee5-42fd-be2f-1577c3ba0a43 2026-11-03 00:12:08,990 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/66156f85-f8e5-422b-bee2-7529d4c4cc63 2026-11-03 00:12:08,998 - INFO - Verified policy ctest-policy1-95714214 in API Server, Result: True 2026-11-03 00:12:08,998 - INFO - Done with setup and verification, moving onto test .. 2026-11-03 00:12:09,004 - INFO - Deleting VN ctest-vn4-78721853 2026-11-03 00:12:09,106 - DEBUG - Response for deleting network () 2026-11-03 00:12:09,106 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/445d56dd-c9fb-4bd2-b535-40c17a3181dd 2026-11-03 00:12:09,110 - DEBUG - Response Code: 404 2026-11-03 00:12:09,110 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-03 00:12:09,115 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a96a62f2-7a5f-471a-a4e3-c9ed36f86c1e 2026-11-03 00:12:09,164 - DEBUG - Requesting: http://10.0.0.38:8082/project/d22e7150-9ee5-42fd-be2f-1577c3ba0a43 2026-11-03 00:12:09,244 - INFO - Validated that VN ctest-vn4-78721853 is not found in API Server 2026-11-03 00:12:09,253 - DEBUG - VN ctest-vn4-78721853 is not present in Agent 10.0.0.38 2026-11-03 00:12:09,253 - INFO - Validated that VN ctest-vn4-78721853 is not in any agent 2026-11-03 00:12:09,266 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-78721853 info 2026-11-03 00:12:09,286 - INFO - Deleted policy ctest-policy1-95714214 2026-11-03 00:12:09,452 - DEBUG - policy ctest-policy1-95714214 is not found in API Server 2026-11-03 00:12:09,710 - DEBUG - No XMPP flaps were noticed during the test
2026-11-03 00:12:09,710 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-11-03 00:12:09,710 - INFO - -------------------------------------------------------------------------------- 2026-11-03 00:12:09,998 - DEBUG - No XMPP flaps were noticed during the test
2026-11-03 00:12:09,998 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-11-03 00:12:09,998 - INFO - -------------------------------------------------------------------------------- 2026-11-03 00:12:10,693 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-81227569, ID : d22e7150-9ee5-42fd-be2f-1577c3ba0a43