2026-06-22 02:05:19,772 - INFO - Domain Default found not creating 2026-06-22 02:05:19,957 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74803339 not found, creating it 2026-06-22 02:05:20,416 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74803339, ID : 31bd8da3-271c-415e-bce1-99fa994f6b0a 2026-06-22 02:05:22,127 - INFO - ================================================================================ 2026-06-22 02:05:22,127 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-22 02:05:22,386 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-06-22 02:05:22,386 - INFO - Initial checks done. Running the testcase now 2026-06-22 02:05:22,387 - INFO - 2026-06-22 02:05:22,387 - INFO - ================================================================================ 2026-06-22 02:05:22,387 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-22 02:05:22,387 - 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-06-22 02:05:22,675 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-06-22 02:05:22,675 - INFO - Initial checks done. Running the testcase now 2026-06-22 02:05:22,675 - INFO - 2026-06-22 02:05:23,072 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74803339:ctest-vn4-70107910, 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-74803339:ctest-vn4-70107910, 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-74803339:ctest-vn4-70107910, 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-74803339:ctest-vn4-70107910, 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-06-22 02:05:23,573 - DEBUG - Response for create_network : {'network': {'id': '436e9de0-5c35-46d9-8bbe-20791d674d37', 'name': 'ctest-vn4-70107910', 'tenant_id': '31bd8da3271c415ebce199fa994f6b0a', 'project_id': '31bd8da3271c415ebce199fa994f6b0a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74803339', 'ctest-vn4-70107910'], 'port_security_enabled': True, 'description': ''}} 2026-06-22 02:05:23,772 - DEBUG - Response for create_subnet : {'subnet': {'id': '2846c7a3-b5f3-441a-99bd-0e6c1a2d1029', 'name': '', 'tenant_id': '31bd8da3271c415ebce199fa994f6b0a', 'network_id': '436e9de0-5c35-46d9-8bbe-20791d674d37', 'ip_version': 4, 'cidr': '52.147.186.192/26', 'allocation_pools': [{'start': '52.147.186.194', 'end': '52.147.186.254'}], 'gateway_ip': '52.147.186.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.147.186.194', 'tags': [], 'project_id': '31bd8da3271c415ebce199fa994f6b0a'}} 2026-06-22 02:05:23,935 - DEBUG - Response for create_subnet : {'subnet': {'id': '8537b3cd-15ee-4940-aaca-af08c0bc94a4', 'name': '', 'tenant_id': '31bd8da3271c415ebce199fa994f6b0a', 'network_id': '436e9de0-5c35-46d9-8bbe-20791d674d37', 'ip_version': 6, 'cidr': '35e4:1d31:c56:fc82:3f8f:bbc5::/96', 'allocation_pools': [{'start': '35e4:1d31:c56:fc82:3f8f:bbc5:0:2', 'end': '35e4:1d31:c56:fc82:3f8f:bbc5:ffff:fffe'}], 'gateway_ip': '35e4:1d31:c56:fc82:3f8f:bbc5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35e4:1d31:c56:fc82:3f8f:bbc5:0:2', 'tags': [], 'project_id': '31bd8da3271c415ebce199fa994f6b0a'}} 2026-06-22 02:05:23,954 - INFO - Created VN ctest-vn4-70107910 2026-06-22 02:05:24,005 - DEBUG - VN ctest-vn4-70107910 UUID is 436e9de0-5c35-46d9-8bbe-20791d674d37 2026-06-22 02:05:24,206 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '436e9de0-5c35-46d9-8bbe-20791d674d37', 'name': 'ctest-vn4-70107910', 'tenant_id': '31bd8da3271c415ebce199fa994f6b0a', 'project_id': '31bd8da3271c415ebce199fa994f6b0a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2846c7a3-b5f3-441a-99bd-0e6c1a2d1029', '8537b3cd-15ee-4940-aaca-af08c0bc94a4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74803339', 'ctest-vn4-70107910'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74803339', 'ctest-policy1-74226662']], 'subnet_ipam': [{'subnet_cidr': '52.147.186.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '35e4:1d31:c56:fc82:3f8f:bbc5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-22 02:05:24,369 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-22 02:05:24,738 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-22 02:05:24,765 - DEBUG - Requesting: http://10.0.0.33:8082/domain/09aea800-b3dc-4891-8c39-3cc96fd0cd6d 2026-06-22 02:05:24,777 - DEBUG - Requesting: http://10.0.0.33:8082/project/31bd8da3-271c-415e-bce1-99fa994f6b0a 2026-06-22 02:05:24,854 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/436e9de0-5c35-46d9-8bbe-20791d674d37 2026-06-22 02:05:24,869 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/436e9de0-5c35-46d9-8bbe-20791d674d37 2026-06-22 02:05:24,879 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b7859644-d06c-4c18-8fd7-39b1106f2265 2026-06-22 02:05:24,886 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b7859644-d06c-4c18-8fd7-39b1106f2265 2026-06-22 02:05:24,893 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b55f685b-842d-467a-a5d3-89fff882369e 2026-06-22 02:05:24,898 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-22 02:05:24,898 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/436e9de0-5c35-46d9-8bbe-20791d674d37 2026-06-22 02:05:24,907 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b7859644-d06c-4c18-8fd7-39b1106f2265 2026-06-22 02:05:24,919 - INFO - Verified VN network id 12 for VN 436e9de0-5c35-46d9-8bbe-20791d674d37 2026-06-22 02:05:24,919 - INFO - Verifications in API Server for VN ctest-vn4-70107910 passed 2026-06-22 02:05:24,919 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/436e9de0-5c35-46d9-8bbe-20791d674d37 2026-06-22 02:05:24,928 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b7859644-d06c-4c18-8fd7-39b1106f2265 2026-06-22 02:05:24,936 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b7859644-d06c-4c18-8fd7-39b1106f2265 2026-06-22 02:05:24,945 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b55f685b-842d-467a-a5d3-89fff882369e 2026-06-22 02:05:24,960 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74803339:ctest-vn4-70107910', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74803339', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4858994634924574425', 'uuid-lslong': '10069521521403448631'}, 'enable': 'true', 'created': '2026-06-22T02:05:23', 'last-modified': '2026-06-22T02:05:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.779880'} 2026-06-22 02:05:24,966 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-22 02:05:24,966 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-70107910 passed 2026-06-22 02:05:24,967 - DEBUG - ====Verifying policy data for ctest-vn4-70107910 in API_Server ====== 2026-06-22 02:05:24,967 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-22 02:05:24,973 - DEBUG - Requesting: http://10.0.0.33:8082/domain/09aea800-b3dc-4891-8c39-3cc96fd0cd6d 2026-06-22 02:05:24,983 - DEBUG - Requesting: http://10.0.0.33:8082/project/31bd8da3-271c-415e-bce1-99fa994f6b0a 2026-06-22 02:05:25,048 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/436e9de0-5c35-46d9-8bbe-20791d674d37 2026-06-22 02:05:25,058 - DEBUG - ==>Verifying data for policy with id: a05deb1a-6d74-4aa5-851e-dc1ef24c38cc, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74803339', 'ctest-policy1-74226662'] 2026-06-22 02:05:25,058 - INFO - VN ctest-vn4-70107910 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-22 02:05:25,058 - DEBUG - Verifying the vn in opserver 2026-06-22 02:05:25,058 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74803339:ctest-vn4-70107910 virtual network link through opserver 10.0.0.33 2026-06-22 02:05:25,058 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-22 02:05:25,425 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-22 02:05:25,499 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74803339:ctest-vn4-70107910', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74803339:ctest-vn4-70107910?flat'} 2026-06-22 02:05:25,499 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74803339:ctest-vn4-70107910 is found in opserver 2026-06-22 02:05:25,512 - DEBUG - Do not have enough data to verify VN in agent 2026-06-22 02:05:25,519 - DEBUG - VRF ids for VN ctest-vn4-70107910: {} 2026-06-22 02:05:25,519 - DEBUG - ====Verifying data for ctest-policy1-74226662 in API_Server ====== 2026-06-22 02:05:25,520 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-22 02:05:25,528 - DEBUG - Requesting: http://10.0.0.33:8082/domain/09aea800-b3dc-4891-8c39-3cc96fd0cd6d 2026-06-22 02:05:25,540 - DEBUG - Requesting: http://10.0.0.33:8082/project/31bd8da3-271c-415e-bce1-99fa994f6b0a 2026-06-22 02:05:25,610 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/a05deb1a-6d74-4aa5-851e-dc1ef24c38cc 2026-06-22 02:05:25,619 - INFO - Verified policy ctest-policy1-74226662 in API Server, Result: True 2026-06-22 02:05:25,619 - INFO - Done with setup and verification, moving onto test .. 2026-06-22 02:05:25,627 - INFO - Deleting VN ctest-vn4-70107910 2026-06-22 02:05:25,758 - DEBUG - Response for deleting network () 2026-06-22 02:05:25,758 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b7859644-d06c-4c18-8fd7-39b1106f2265 2026-06-22 02:05:25,762 - DEBUG - Response Code: 404 2026-06-22 02:05:25,763 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-22 02:05:25,767 - DEBUG - Requesting: http://10.0.0.33:8082/domain/09aea800-b3dc-4891-8c39-3cc96fd0cd6d 2026-06-22 02:05:25,817 - DEBUG - Requesting: http://10.0.0.33:8082/project/31bd8da3-271c-415e-bce1-99fa994f6b0a 2026-06-22 02:05:25,899 - INFO - Validated that VN ctest-vn4-70107910 is not found in API Server 2026-06-22 02:05:25,912 - DEBUG - VN ctest-vn4-70107910 is not present in Agent 10.0.0.33 2026-06-22 02:05:25,912 - INFO - Validated that VN ctest-vn4-70107910 is not in any agent 2026-06-22 02:05:25,927 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-70107910 info 2026-06-22 02:05:25,953 - INFO - Deleted policy ctest-policy1-74226662 2026-06-22 02:05:26,117 - DEBUG - policy ctest-policy1-74226662 is not found in API Server 2026-06-22 02:05:26,375 - DEBUG - No XMPP flaps were noticed during the test
2026-06-22 02:05:26,375 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-22 02:05:26,375 - INFO - -------------------------------------------------------------------------------- 2026-06-22 02:05:26,672 - DEBUG - No XMPP flaps were noticed during the test
2026-06-22 02:05:26,672 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-22 02:05:26,672 - INFO - -------------------------------------------------------------------------------- 2026-06-22 02:05:27,799 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-74803339, ID : 31bd8da3-271c-415e-bce1-99fa994f6b0a