2026-05-09 05:31:40,295 - INFO - Domain Default found not creating 2026-05-09 05:31:40,447 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-18209347 not found, creating it 2026-05-09 05:31:41,007 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-18209347, ID : 7338674a-1fc0-4f1a-8166-222087ba4c80 2026-05-09 05:31:42,482 - INFO - ================================================================================ 2026-05-09 05:31:42,482 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-09 05:31:42,738 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-05-09 05:31:42,738 - INFO - Initial checks done. Running the testcase now 2026-05-09 05:31:42,738 - INFO - 2026-05-09 05:31:42,738 - INFO - ================================================================================ 2026-05-09 05:31:42,738 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-09 05:31:42,738 - 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-05-09 05:31:43,025 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-05-09 05:31:43,026 - INFO - Initial checks done. Running the testcase now 2026-05-09 05:31:43,026 - INFO - 2026-05-09 05:31:43,369 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18209347:ctest-vn4-15812953, 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-18209347:ctest-vn4-15812953, 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-18209347:ctest-vn4-15812953, 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-18209347:ctest-vn4-15812953, 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-05-09 05:31:43,865 - DEBUG - Response for create_network : {'network': {'id': 'd64ac596-8f27-4b76-8910-0eb093c2a7eb', 'name': 'ctest-vn4-15812953', 'tenant_id': '7338674a1fc04f1a8166222087ba4c80', 'project_id': '7338674a1fc04f1a8166222087ba4c80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18209347', 'ctest-vn4-15812953'], 'port_security_enabled': True, 'description': ''}} 2026-05-09 05:31:44,066 - DEBUG - Response for create_subnet : {'subnet': {'id': '21948caf-ecb6-42aa-9a49-2aed6a4cb3c4', 'name': '', 'tenant_id': '7338674a1fc04f1a8166222087ba4c80', 'network_id': 'd64ac596-8f27-4b76-8910-0eb093c2a7eb', 'ip_version': 4, 'cidr': '160.52.19.128/26', 'allocation_pools': [{'start': '160.52.19.130', 'end': '160.52.19.190'}], 'gateway_ip': '160.52.19.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.52.19.130', 'tags': [], 'project_id': '7338674a1fc04f1a8166222087ba4c80'}} 2026-05-09 05:31:44,243 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fef6a9dc-f15c-42c4-87a3-4c72df69f57e', 'name': '', 'tenant_id': '7338674a1fc04f1a8166222087ba4c80', 'network_id': 'd64ac596-8f27-4b76-8910-0eb093c2a7eb', 'ip_version': 6, 'cidr': '328c:7fdf:8780:da92:7fe4:4943::/96', 'allocation_pools': [{'start': '328c:7fdf:8780:da92:7fe4:4943:0:2', 'end': '328c:7fdf:8780:da92:7fe4:4943:ffff:fffe'}], 'gateway_ip': '328c:7fdf:8780:da92:7fe4:4943:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '328c:7fdf:8780:da92:7fe4:4943:0:2', 'tags': [], 'project_id': '7338674a1fc04f1a8166222087ba4c80'}} 2026-05-09 05:31:44,261 - INFO - Created VN ctest-vn4-15812953 2026-05-09 05:31:44,313 - DEBUG - VN ctest-vn4-15812953 UUID is d64ac596-8f27-4b76-8910-0eb093c2a7eb 2026-05-09 05:31:44,499 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd64ac596-8f27-4b76-8910-0eb093c2a7eb', 'name': 'ctest-vn4-15812953', 'tenant_id': '7338674a1fc04f1a8166222087ba4c80', 'project_id': '7338674a1fc04f1a8166222087ba4c80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['21948caf-ecb6-42aa-9a49-2aed6a4cb3c4', 'fef6a9dc-f15c-42c4-87a3-4c72df69f57e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18209347', 'ctest-vn4-15812953'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18209347', 'ctest-policy1-53106912']], 'subnet_ipam': [{'subnet_cidr': '160.52.19.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '328c:7fdf:8780:da92:7fe4:4943::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-09 05:31:44,661 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-09 05:31:44,949 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-09 05:31:44,976 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c3976781-ee5c-4ebc-8205-9d6772bd7cc3 2026-05-09 05:31:44,988 - DEBUG - Requesting: http://10.0.0.38:8082/project/7338674a-1fc0-4f1a-8166-222087ba4c80 2026-05-09 05:31:45,056 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d64ac596-8f27-4b76-8910-0eb093c2a7eb 2026-05-09 05:31:45,067 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d64ac596-8f27-4b76-8910-0eb093c2a7eb 2026-05-09 05:31:45,076 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/67b6d58c-d746-41a5-83ec-cc4cd00f0dd6 2026-05-09 05:31:45,083 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/67b6d58c-d746-41a5-83ec-cc4cd00f0dd6 2026-05-09 05:31:45,090 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b835ff84-0d25-4c6e-9511-ed0ddc503115 2026-05-09 05:31:45,096 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-09 05:31:45,096 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d64ac596-8f27-4b76-8910-0eb093c2a7eb 2026-05-09 05:31:45,104 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/67b6d58c-d746-41a5-83ec-cc4cd00f0dd6 2026-05-09 05:31:45,117 - INFO - Verified VN network id 11 for VN d64ac596-8f27-4b76-8910-0eb093c2a7eb 2026-05-09 05:31:45,117 - INFO - Verifications in API Server for VN ctest-vn4-15812953 passed 2026-05-09 05:31:45,117 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d64ac596-8f27-4b76-8910-0eb093c2a7eb 2026-05-09 05:31:45,125 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/67b6d58c-d746-41a5-83ec-cc4cd00f0dd6 2026-05-09 05:31:45,131 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/67b6d58c-d746-41a5-83ec-cc4cd00f0dd6 2026-05-09 05:31:45,136 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b835ff84-0d25-4c6e-9511-ed0ddc503115 2026-05-09 05:31:45,147 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18209347:ctest-vn4-15812953', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-18209347', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15441371522830650230', 'uuid-lslong': '9876410134379538411'}, 'enable': 'true', 'created': '2026-05-09T05:31:43', 'last-modified': '2026-05-09T05:31:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.673363'} 2026-05-09 05:31:45,152 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-09 05:31:45,152 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15812953 passed 2026-05-09 05:31:45,153 - DEBUG - ====Verifying policy data for ctest-vn4-15812953 in API_Server ====== 2026-05-09 05:31:45,153 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-09 05:31:45,158 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c3976781-ee5c-4ebc-8205-9d6772bd7cc3 2026-05-09 05:31:45,167 - DEBUG - Requesting: http://10.0.0.38:8082/project/7338674a-1fc0-4f1a-8166-222087ba4c80 2026-05-09 05:31:45,234 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d64ac596-8f27-4b76-8910-0eb093c2a7eb 2026-05-09 05:31:45,243 - DEBUG - ==>Verifying data for policy with id: 9351c14a-5c52-4313-b375-53e748050a4c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18209347', 'ctest-policy1-53106912'] 2026-05-09 05:31:45,243 - INFO - VN ctest-vn4-15812953 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-09 05:31:45,243 - DEBUG - Verifying the vn in opserver 2026-05-09 05:31:45,243 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18209347:ctest-vn4-15812953 virtual network link through opserver 10.0.0.38 2026-05-09 05:31:45,243 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-05-09 05:31:45,537 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-05-09 05:31:45,593 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18209347:ctest-vn4-15812953', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18209347:ctest-vn4-15812953?flat'} 2026-05-09 05:31:45,593 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18209347:ctest-vn4-15812953 is found in opserver 2026-05-09 05:31:45,602 - DEBUG - Do not have enough data to verify VN in agent 2026-05-09 05:31:45,606 - DEBUG - VRF ids for VN ctest-vn4-15812953: {} 2026-05-09 05:31:45,606 - DEBUG - ====Verifying data for ctest-policy1-53106912 in API_Server ====== 2026-05-09 05:31:45,606 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-09 05:31:45,611 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c3976781-ee5c-4ebc-8205-9d6772bd7cc3 2026-05-09 05:31:45,621 - DEBUG - Requesting: http://10.0.0.38:8082/project/7338674a-1fc0-4f1a-8166-222087ba4c80 2026-05-09 05:31:45,689 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/9351c14a-5c52-4313-b375-53e748050a4c 2026-05-09 05:31:45,697 - INFO - Verified policy ctest-policy1-53106912 in API Server, Result: True 2026-05-09 05:31:45,697 - INFO - Done with setup and verification, moving onto test .. 2026-05-09 05:31:45,705 - INFO - Deleting VN ctest-vn4-15812953 2026-05-09 05:31:45,815 - DEBUG - Response for deleting network () 2026-05-09 05:31:45,815 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/67b6d58c-d746-41a5-83ec-cc4cd00f0dd6 2026-05-09 05:31:45,820 - DEBUG - Response Code: 404 2026-05-09 05:31:45,820 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-09 05:31:45,825 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c3976781-ee5c-4ebc-8205-9d6772bd7cc3 2026-05-09 05:31:45,881 - DEBUG - Requesting: http://10.0.0.38:8082/project/7338674a-1fc0-4f1a-8166-222087ba4c80 2026-05-09 05:31:45,950 - INFO - Validated that VN ctest-vn4-15812953 is not found in API Server 2026-05-09 05:31:45,958 - DEBUG - VN ctest-vn4-15812953 is not present in Agent 10.0.0.38 2026-05-09 05:31:45,958 - INFO - Validated that VN ctest-vn4-15812953 is not in any agent 2026-05-09 05:31:45,971 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15812953 info 2026-05-09 05:31:45,995 - INFO - Deleted policy ctest-policy1-53106912 2026-05-09 05:31:46,156 - DEBUG - policy ctest-policy1-53106912 is not found in API Server 2026-05-09 05:31:46,409 - DEBUG - No XMPP flaps were noticed during the test 2026-05-09 05:31:46,409 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-09 05:31:46,410 - INFO - -------------------------------------------------------------------------------- 2026-05-09 05:31:46,697 - DEBUG - No XMPP flaps were noticed during the test 2026-05-09 05:31:46,697 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-09 05:31:46,697 - INFO - -------------------------------------------------------------------------------- 2026-05-09 05:31:47,724 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-18209347, ID : 7338674a-1fc0-4f1a-8166-222087ba4c80