2026-11-03 04:08:14,670 - INFO - Domain Default found not creating 2026-11-03 04:08:14,837 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-22505424 not found, creating it 2026-11-03 04:08:15,283 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-22505424, ID : 3f11fe98-6be3-4e27-98e1-5da4b701df75 2026-11-03 04:08:16,965 - INFO - ================================================================================ 2026-11-03 04:08:16,965 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-03 04:08:17,220 - DEBUG - Nothing to compare xmpp stats {'10.0.0.251': {'10.20.0.25': '0'}} with 2026-11-03 04:08:17,220 - INFO - Initial checks done. Running the testcase now 2026-11-03 04:08:17,220 - INFO - 2026-11-03 04:08:17,220 - INFO - ================================================================================ 2026-11-03 04:08:17,220 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-03 04:08:17,220 - 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 04:08:17,507 - DEBUG - Nothing to compare xmpp stats {'10.0.0.251': {'10.20.0.25': '0'}} with 2026-11-03 04:08:17,507 - INFO - Initial checks done. Running the testcase now 2026-11-03 04:08:17,507 - INFO - 2026-11-03 04:08:17,923 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22505424:ctest-vn4-38675568, 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-22505424:ctest-vn4-38675568, 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-22505424:ctest-vn4-38675568, 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-22505424:ctest-vn4-38675568, 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 04:08:18,445 - DEBUG - Response for create_network : {'network': {'id': '106d30d5-75b9-4692-b750-9f2f2418ac1b', 'name': 'ctest-vn4-38675568', 'tenant_id': '3f11fe986be34e2798e15da4b701df75', 'project_id': '3f11fe986be34e2798e15da4b701df75', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22505424', 'ctest-vn4-38675568'], 'port_security_enabled': True, 'description': ''}} 2026-11-03 04:08:18,660 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f880b72-1dcb-40c4-ae43-a24941021f9c', 'name': '', 'tenant_id': '3f11fe986be34e2798e15da4b701df75', 'network_id': '106d30d5-75b9-4692-b750-9f2f2418ac1b', 'ip_version': 4, 'cidr': '58.85.99.128/26', 'allocation_pools': [{'start': '58.85.99.130', 'end': '58.85.99.190'}], 'gateway_ip': '58.85.99.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.85.99.130', 'tags': [], 'project_id': '3f11fe986be34e2798e15da4b701df75'}} 2026-11-03 04:08:18,836 - DEBUG - Response for create_subnet : {'subnet': {'id': '51664c66-adb0-4ac9-ad8e-eec4deb8e9b8', 'name': '', 'tenant_id': '3f11fe986be34e2798e15da4b701df75', 'network_id': '106d30d5-75b9-4692-b750-9f2f2418ac1b', 'ip_version': 6, 'cidr': '24c5:1de2:7497:b816:5b2a:5b73::/96', 'allocation_pools': [{'start': '24c5:1de2:7497:b816:5b2a:5b73:0:2', 'end': '24c5:1de2:7497:b816:5b2a:5b73:ffff:fffe'}], 'gateway_ip': '24c5:1de2:7497:b816:5b2a:5b73:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24c5:1de2:7497:b816:5b2a:5b73:0:2', 'tags': [], 'project_id': '3f11fe986be34e2798e15da4b701df75'}} 2026-11-03 04:08:18,854 - INFO - Created VN ctest-vn4-38675568 2026-11-03 04:08:18,906 - DEBUG - VN ctest-vn4-38675568 UUID is 106d30d5-75b9-4692-b750-9f2f2418ac1b 2026-11-03 04:08:19,087 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '106d30d5-75b9-4692-b750-9f2f2418ac1b', 'name': 'ctest-vn4-38675568', 'tenant_id': '3f11fe986be34e2798e15da4b701df75', 'project_id': '3f11fe986be34e2798e15da4b701df75', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['5f880b72-1dcb-40c4-ae43-a24941021f9c', '51664c66-adb0-4ac9-ad8e-eec4deb8e9b8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22505424', 'ctest-vn4-38675568'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22505424', 'ctest-policy1-96624803']], 'subnet_ipam': [{'subnet_cidr': '58.85.99.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '24c5:1de2:7497:b816:5b2a:5b73::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-03 04:08:19,246 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-11-03 04:08:19,609 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-11-03 04:08:19,636 - DEBUG - Requesting: http://10.0.0.251:8082/domain/8923dba9-9ba4-4910-975e-169f955344cd 2026-11-03 04:08:19,648 - DEBUG - Requesting: http://10.0.0.251:8082/project/3f11fe98-6be3-4e27-98e1-5da4b701df75 2026-11-03 04:08:19,719 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/106d30d5-75b9-4692-b750-9f2f2418ac1b 2026-11-03 04:08:19,731 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/106d30d5-75b9-4692-b750-9f2f2418ac1b 2026-11-03 04:08:19,741 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/92ec88f4-5740-49f4-90aa-f397516b4280 2026-11-03 04:08:19,747 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/92ec88f4-5740-49f4-90aa-f397516b4280 2026-11-03 04:08:19,753 - DEBUG - Requesting: http://10.0.0.251:8082/route-target/a8a55188-a57d-4e24-8848-fe283822f737 2026-11-03 04:08:19,758 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-03 04:08:19,758 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/106d30d5-75b9-4692-b750-9f2f2418ac1b 2026-11-03 04:08:19,767 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/92ec88f4-5740-49f4-90aa-f397516b4280 2026-11-03 04:08:19,779 - INFO - Verified VN network id 12 for VN 106d30d5-75b9-4692-b750-9f2f2418ac1b 2026-11-03 04:08:19,779 - INFO - Verifications in API Server for VN ctest-vn4-38675568 passed 2026-11-03 04:08:19,779 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/106d30d5-75b9-4692-b750-9f2f2418ac1b 2026-11-03 04:08:19,788 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/92ec88f4-5740-49f4-90aa-f397516b4280 2026-11-03 04:08:19,793 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/92ec88f4-5740-49f4-90aa-f397516b4280 2026-11-03 04:08:19,799 - DEBUG - Requesting: http://10.0.0.251:8082/route-target/a8a55188-a57d-4e24-8848-fe283822f737 2026-11-03 04:08:19,816 - DEBUG - Control-node 10.0.0.251 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22505424:ctest-vn4-38675568', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-22505424', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1183655970429552274', 'uuid-lslong': '13209232731895540763'}, 'enable': 'true', 'created': '2026-11-03T04:08:18', 'last-modified': '2026-11-03T04:08:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.746093'} 2026-11-03 04:08:19,850 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-03 04:08:19,852 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-38675568 passed 2026-11-03 04:08:19,853 - DEBUG - ====Verifying policy data for ctest-vn4-38675568 in API_Server ====== 2026-11-03 04:08:19,853 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-11-03 04:08:19,873 - DEBUG - Requesting: http://10.0.0.251:8082/domain/8923dba9-9ba4-4910-975e-169f955344cd 2026-11-03 04:08:19,885 - DEBUG - Requesting: http://10.0.0.251:8082/project/3f11fe98-6be3-4e27-98e1-5da4b701df75 2026-11-03 04:08:19,956 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/106d30d5-75b9-4692-b750-9f2f2418ac1b 2026-11-03 04:08:19,966 - DEBUG - ==>Verifying data for policy with id: a7d72253-edb7-4d4f-a8f5-80770dd8588b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22505424', 'ctest-policy1-96624803'] 2026-11-03 04:08:19,966 - INFO - VN ctest-vn4-38675568 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-03 04:08:19,966 - DEBUG - Verifying the vn in opserver 2026-11-03 04:08:19,966 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22505424:ctest-vn4-38675568 virtual network link through opserver 10.0.0.251 2026-11-03 04:08:19,966 - DEBUG - Requesting: http://10.0.0.251:8081/analytics/uves/virtual-networks 2026-11-03 04:08:20,332 - DEBUG - Requesting: http://10.0.0.251:8081/analytics/uves/virtual-networks 2026-11-03 04:08:20,386 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22505424:ctest-vn4-38675568', 'href': 'http://10.0.0.251:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22505424:ctest-vn4-38675568?flat'} 2026-11-03 04:08:20,386 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22505424:ctest-vn4-38675568 is found in opserver 2026-11-03 04:08:20,396 - DEBUG - Do not have enough data to verify VN in agent 2026-11-03 04:08:20,401 - DEBUG - VRF ids for VN ctest-vn4-38675568: {} 2026-11-03 04:08:20,402 - DEBUG - ====Verifying data for ctest-policy1-96624803 in API_Server ====== 2026-11-03 04:08:20,402 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-11-03 04:08:20,408 - DEBUG - Requesting: http://10.0.0.251:8082/domain/8923dba9-9ba4-4910-975e-169f955344cd 2026-11-03 04:08:20,420 - DEBUG - Requesting: http://10.0.0.251:8082/project/3f11fe98-6be3-4e27-98e1-5da4b701df75 2026-11-03 04:08:20,499 - DEBUG - Requesting: http://10.0.0.251:8082/network-policy/a7d72253-edb7-4d4f-a8f5-80770dd8588b 2026-11-03 04:08:20,511 - INFO - Verified policy ctest-policy1-96624803 in API Server, Result: True 2026-11-03 04:08:20,511 - INFO - Done with setup and verification, moving onto test .. 2026-11-03 04:08:20,521 - INFO - Deleting VN ctest-vn4-38675568 2026-11-03 04:08:20,671 - DEBUG - Response for deleting network () 2026-11-03 04:08:20,672 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/92ec88f4-5740-49f4-90aa-f397516b4280 2026-11-03 04:08:20,678 - DEBUG - Response Code: 404 2026-11-03 04:08:20,679 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-11-03 04:08:20,685 - DEBUG - Requesting: http://10.0.0.251:8082/domain/8923dba9-9ba4-4910-975e-169f955344cd 2026-11-03 04:08:20,739 - DEBUG - Requesting: http://10.0.0.251:8082/project/3f11fe98-6be3-4e27-98e1-5da4b701df75 2026-11-03 04:08:20,811 - INFO - Validated that VN ctest-vn4-38675568 is not found in API Server 2026-11-03 04:08:20,825 - DEBUG - VN ctest-vn4-38675568 is not present in Agent 10.0.0.251 2026-11-03 04:08:20,825 - INFO - Validated that VN ctest-vn4-38675568 is not in any agent 2026-11-03 04:08:20,844 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-38675568 info 2026-11-03 04:08:20,868 - INFO - Deleted policy ctest-policy1-96624803 2026-11-03 04:08:21,034 - DEBUG - policy ctest-policy1-96624803 is not found in API Server 2026-11-03 04:08:21,291 - DEBUG - No XMPP flaps were noticed during the test