2026-03-05 02:28:19,128 - INFO - Domain Default found not creating 2026-03-05 02:28:19,283 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-70632111 not found, creating it 2026-03-05 02:28:19,792 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-70632111, ID : d992d13e-0b36-4ddb-b911-464220b29c44 2026-03-05 02:28:21,242 - INFO - ================================================================================ 2026-03-05 02:28:21,242 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-05 02:28:21,495 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.252': '0'}} with 2026-03-05 02:28:21,495 - INFO - Initial checks done. Running the testcase now 2026-03-05 02:28:21,495 - INFO - 2026-03-05 02:28:21,495 - INFO - ================================================================================ 2026-03-05 02:28:21,495 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-05 02:28:21,495 - 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-03-05 02:28:21,784 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.252': '0'}} with 2026-03-05 02:28:21,784 - INFO - Initial checks done. Running the testcase now 2026-03-05 02:28:21,784 - INFO - 2026-03-05 02:28:22,146 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70632111:ctest-vn4-25305134, 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-70632111:ctest-vn4-25305134, 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-70632111:ctest-vn4-25305134, 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-70632111:ctest-vn4-25305134, 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-03-05 02:28:22,653 - DEBUG - Response for create_network : {'network': {'id': '03048b3a-060e-4334-84aa-077b2af5bc96', 'name': 'ctest-vn4-25305134', 'tenant_id': 'd992d13e0b364ddbb911464220b29c44', 'project_id': 'd992d13e0b364ddbb911464220b29c44', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70632111', 'ctest-vn4-25305134'], 'port_security_enabled': True, 'description': ''}} 2026-03-05 02:28:22,820 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e589f6b8-b87b-4963-84d7-7c780b5f6bcf', 'name': '', 'tenant_id': 'd992d13e0b364ddbb911464220b29c44', 'network_id': '03048b3a-060e-4334-84aa-077b2af5bc96', 'ip_version': 4, 'cidr': '169.170.18.128/26', 'allocation_pools': [{'start': '169.170.18.130', 'end': '169.170.18.190'}], 'gateway_ip': '169.170.18.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.170.18.130', 'tags': [], 'project_id': 'd992d13e0b364ddbb911464220b29c44'}} 2026-03-05 02:28:23,012 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b98a640-32e3-4fae-b7f9-75de7a1419b3', 'name': '', 'tenant_id': 'd992d13e0b364ddbb911464220b29c44', 'network_id': '03048b3a-060e-4334-84aa-077b2af5bc96', 'ip_version': 6, 'cidr': '31d0:258e:8f81:5000:9604:7b2e::/96', 'allocation_pools': [{'start': '31d0:258e:8f81:5000:9604:7b2e:0:2', 'end': '31d0:258e:8f81:5000:9604:7b2e:ffff:fffe'}], 'gateway_ip': '31d0:258e:8f81:5000:9604:7b2e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31d0:258e:8f81:5000:9604:7b2e:0:2', 'tags': [], 'project_id': 'd992d13e0b364ddbb911464220b29c44'}} 2026-03-05 02:28:23,034 - INFO - Created VN ctest-vn4-25305134 2026-03-05 02:28:23,086 - DEBUG - VN ctest-vn4-25305134 UUID is 03048b3a-060e-4334-84aa-077b2af5bc96 2026-03-05 02:28:23,284 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03048b3a-060e-4334-84aa-077b2af5bc96', 'name': 'ctest-vn4-25305134', 'tenant_id': 'd992d13e0b364ddbb911464220b29c44', 'project_id': 'd992d13e0b364ddbb911464220b29c44', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e589f6b8-b87b-4963-84d7-7c780b5f6bcf', '2b98a640-32e3-4fae-b7f9-75de7a1419b3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70632111', 'ctest-vn4-25305134'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70632111', 'ctest-policy1-76570321']], 'subnet_ipam': [{'subnet_cidr': '169.170.18.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '31d0:258e:8f81:5000:9604:7b2e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-05 02:28:23,446 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-05 02:28:23,743 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-05 02:28:23,773 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f0f8f0ab-ad00-4bf2-b32c-7ffe83ec7aa0 2026-03-05 02:28:23,785 - DEBUG - Requesting: http://10.0.0.38:8082/project/d992d13e-0b36-4ddb-b911-464220b29c44 2026-03-05 02:28:23,851 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/03048b3a-060e-4334-84aa-077b2af5bc96 2026-03-05 02:28:23,861 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/03048b3a-060e-4334-84aa-077b2af5bc96 2026-03-05 02:28:23,870 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d518fd24-e223-40a6-8107-920983927cec 2026-03-05 02:28:23,876 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d518fd24-e223-40a6-8107-920983927cec 2026-03-05 02:28:23,883 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5eaef1d9-066e-41de-abf3-9cc4e524b627 2026-03-05 02:28:23,889 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-05 02:28:23,889 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/03048b3a-060e-4334-84aa-077b2af5bc96 2026-03-05 02:28:23,897 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d518fd24-e223-40a6-8107-920983927cec 2026-03-05 02:28:23,911 - INFO - Verified VN network id 10 for VN 03048b3a-060e-4334-84aa-077b2af5bc96 2026-03-05 02:28:23,911 - INFO - Verifications in API Server for VN ctest-vn4-25305134 passed 2026-03-05 02:28:23,911 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/03048b3a-060e-4334-84aa-077b2af5bc96 2026-03-05 02:28:23,920 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d518fd24-e223-40a6-8107-920983927cec 2026-03-05 02:28:23,926 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d518fd24-e223-40a6-8107-920983927cec 2026-03-05 02:28:23,934 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5eaef1d9-066e-41de-abf3-9cc4e524b627 2026-03-05 02:28:23,945 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70632111:ctest-vn4-25305134', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-70632111', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '217451763346588468', 'uuid-lslong': '9559461384630418582'}, 'enable': 'true', 'created': '2026-03-05T02:28:22', 'last-modified': '2026-03-05T02:28:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.689386'} 2026-03-05 02:28:23,951 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-05 02:28:23,951 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-25305134 passed 2026-03-05 02:28:23,951 - DEBUG - ====Verifying policy data for ctest-vn4-25305134 in API_Server ====== 2026-03-05 02:28:23,951 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-05 02:28:23,956 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f0f8f0ab-ad00-4bf2-b32c-7ffe83ec7aa0 2026-03-05 02:28:23,966 - DEBUG - Requesting: http://10.0.0.38:8082/project/d992d13e-0b36-4ddb-b911-464220b29c44 2026-03-05 02:28:24,034 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/03048b3a-060e-4334-84aa-077b2af5bc96 2026-03-05 02:28:24,044 - DEBUG - ==>Verifying data for policy with id: b2832443-7d4f-441d-915b-05dbe36f3598, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70632111', 'ctest-policy1-76570321'] 2026-03-05 02:28:24,044 - INFO - VN ctest-vn4-25305134 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-05 02:28:24,044 - DEBUG - Verifying the vn in opserver 2026-03-05 02:28:24,044 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70632111:ctest-vn4-25305134 virtual network link through opserver 10.0.0.38 2026-03-05 02:28:24,044 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-05 02:28:24,334 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-05 02:28:24,395 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70632111:ctest-vn4-25305134', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70632111:ctest-vn4-25305134?flat'} 2026-03-05 02:28:24,395 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70632111:ctest-vn4-25305134 is found in opserver 2026-03-05 02:28:24,406 - DEBUG - Do not have enough data to verify VN in agent 2026-03-05 02:28:24,411 - DEBUG - VRF ids for VN ctest-vn4-25305134: {} 2026-03-05 02:28:24,411 - DEBUG - ====Verifying data for ctest-policy1-76570321 in API_Server ====== 2026-03-05 02:28:24,411 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-05 02:28:24,417 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f0f8f0ab-ad00-4bf2-b32c-7ffe83ec7aa0 2026-03-05 02:28:24,430 - DEBUG - Requesting: http://10.0.0.38:8082/project/d992d13e-0b36-4ddb-b911-464220b29c44 2026-03-05 02:28:24,499 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/b2832443-7d4f-441d-915b-05dbe36f3598 2026-03-05 02:28:24,508 - INFO - Verified policy ctest-policy1-76570321 in API Server, Result: True 2026-03-05 02:28:24,508 - INFO - Done with setup and verification, moving onto test .. 2026-03-05 02:28:24,515 - INFO - Deleting VN ctest-vn4-25305134 2026-03-05 02:28:24,616 - DEBUG - Response for deleting network () 2026-03-05 02:28:24,616 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d518fd24-e223-40a6-8107-920983927cec 2026-03-05 02:28:24,621 - DEBUG - Response Code: 404 2026-03-05 02:28:24,621 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-05 02:28:24,625 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f0f8f0ab-ad00-4bf2-b32c-7ffe83ec7aa0 2026-03-05 02:28:24,680 - DEBUG - Requesting: http://10.0.0.38:8082/project/d992d13e-0b36-4ddb-b911-464220b29c44 2026-03-05 02:28:24,751 - INFO - Validated that VN ctest-vn4-25305134 is not found in API Server 2026-03-05 02:28:24,761 - DEBUG - VN ctest-vn4-25305134 is not present in Agent 10.0.0.38 2026-03-05 02:28:24,761 - INFO - Validated that VN ctest-vn4-25305134 is not in any agent 2026-03-05 02:28:24,775 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-25305134 info 2026-03-05 02:28:24,794 - INFO - Deleted policy ctest-policy1-76570321 2026-03-05 02:28:24,958 - DEBUG - policy ctest-policy1-76570321 is not found in API Server 2026-03-05 02:28:25,221 - DEBUG - No XMPP flaps were noticed during the test