2026-04-22 13:37:10,261 - INFO - Domain Default found not creating 2026-04-22 13:37:10,416 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-69775606 not found, creating it 2026-04-22 13:37:10,849 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-69775606, ID : 7b325aeb-d3c7-40f7-b140-2a5c4a22a521 2026-04-22 13:37:12,278 - INFO - ================================================================================ 2026-04-22 13:37:12,278 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-22 13:37:12,533 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2026-04-22 13:37:12,533 - INFO - Initial checks done. Running the testcase now 2026-04-22 13:37:12,533 - INFO - 2026-04-22 13:37:12,533 - INFO - ================================================================================ 2026-04-22 13:37:12,533 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-22 13:37:12,533 - 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-04-22 13:37:12,824 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2026-04-22 13:37:12,824 - INFO - Initial checks done. Running the testcase now 2026-04-22 13:37:12,825 - INFO - 2026-04-22 13:37:13,200 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69775606:ctest-vn4-44887185, 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-69775606:ctest-vn4-44887185, 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-69775606:ctest-vn4-44887185, 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-69775606:ctest-vn4-44887185, 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-04-22 13:37:13,742 - DEBUG - Response for create_network : {'network': {'id': '00c9e14a-eebc-470b-b9e7-bef391d9df8b', 'name': 'ctest-vn4-44887185', 'tenant_id': '7b325aebd3c740f7b1402a5c4a22a521', 'project_id': '7b325aebd3c740f7b1402a5c4a22a521', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69775606', 'ctest-vn4-44887185'], 'port_security_enabled': True, 'description': ''}} 2026-04-22 13:37:13,923 - DEBUG - Response for create_subnet : {'subnet': {'id': '30e66ec2-04be-482b-9a1e-4ad738555346', 'name': '', 'tenant_id': '7b325aebd3c740f7b1402a5c4a22a521', 'network_id': '00c9e14a-eebc-470b-b9e7-bef391d9df8b', 'ip_version': 4, 'cidr': '66.170.146.128/26', 'allocation_pools': [{'start': '66.170.146.130', 'end': '66.170.146.190'}], 'gateway_ip': '66.170.146.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.170.146.130', 'tags': [], 'project_id': '7b325aebd3c740f7b1402a5c4a22a521'}} 2026-04-22 13:37:14,083 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f2f4275-49e2-46f8-8e17-53c6e467adef', 'name': '', 'tenant_id': '7b325aebd3c740f7b1402a5c4a22a521', 'network_id': '00c9e14a-eebc-470b-b9e7-bef391d9df8b', 'ip_version': 6, 'cidr': '25c4:12a0:a47b:31be:5ea2:7d5c::/96', 'allocation_pools': [{'start': '25c4:12a0:a47b:31be:5ea2:7d5c:0:2', 'end': '25c4:12a0:a47b:31be:5ea2:7d5c:ffff:fffe'}], 'gateway_ip': '25c4:12a0:a47b:31be:5ea2:7d5c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25c4:12a0:a47b:31be:5ea2:7d5c:0:2', 'tags': [], 'project_id': '7b325aebd3c740f7b1402a5c4a22a521'}} 2026-04-22 13:37:14,104 - INFO - Created VN ctest-vn4-44887185 2026-04-22 13:37:14,156 - DEBUG - VN ctest-vn4-44887185 UUID is 00c9e14a-eebc-470b-b9e7-bef391d9df8b 2026-04-22 13:37:14,346 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '00c9e14a-eebc-470b-b9e7-bef391d9df8b', 'name': 'ctest-vn4-44887185', 'tenant_id': '7b325aebd3c740f7b1402a5c4a22a521', 'project_id': '7b325aebd3c740f7b1402a5c4a22a521', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['30e66ec2-04be-482b-9a1e-4ad738555346', '2f2f4275-49e2-46f8-8e17-53c6e467adef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69775606', 'ctest-vn4-44887185'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69775606', 'ctest-policy1-46934949']], 'subnet_ipam': [{'subnet_cidr': '66.170.146.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '25c4:12a0:a47b:31be:5ea2:7d5c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-22 13:37:14,504 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-04-22 13:37:14,798 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-04-22 13:37:14,824 - DEBUG - Requesting: http://10.0.0.27:8082/domain/3d4477e5-6f25-4379-ad0e-f85d3877549d 2026-04-22 13:37:14,835 - DEBUG - Requesting: http://10.0.0.27:8082/project/7b325aeb-d3c7-40f7-b140-2a5c4a22a521 2026-04-22 13:37:14,901 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/00c9e14a-eebc-470b-b9e7-bef391d9df8b 2026-04-22 13:37:14,911 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/00c9e14a-eebc-470b-b9e7-bef391d9df8b 2026-04-22 13:37:14,919 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b2d92ab0-adf8-4637-a241-b4a86f57590b 2026-04-22 13:37:14,925 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b2d92ab0-adf8-4637-a241-b4a86f57590b 2026-04-22 13:37:14,930 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/36a580a8-682c-454c-a52a-9b54b859a7b4 2026-04-22 13:37:14,935 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-22 13:37:14,935 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/00c9e14a-eebc-470b-b9e7-bef391d9df8b 2026-04-22 13:37:14,942 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b2d92ab0-adf8-4637-a241-b4a86f57590b 2026-04-22 13:37:14,952 - INFO - Verified VN network id 11 for VN 00c9e14a-eebc-470b-b9e7-bef391d9df8b 2026-04-22 13:37:14,953 - INFO - Verifications in API Server for VN ctest-vn4-44887185 passed 2026-04-22 13:37:14,953 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/00c9e14a-eebc-470b-b9e7-bef391d9df8b 2026-04-22 13:37:14,960 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b2d92ab0-adf8-4637-a241-b4a86f57590b 2026-04-22 13:37:14,966 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b2d92ab0-adf8-4637-a241-b4a86f57590b 2026-04-22 13:37:14,971 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/36a580a8-682c-454c-a52a-9b54b859a7b4 2026-04-22 13:37:14,980 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69775606:ctest-vn4-44887185', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-69775606', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '56824182267987723', 'uuid-lslong': '13395885569970134923'}, 'enable': 'true', 'created': '2026-04-22T13:37:13', 'last-modified': '2026-04-22T13:37:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.659462'} 2026-04-22 13:37:14,985 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-22 13:37:14,985 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-44887185 passed 2026-04-22 13:37:14,985 - DEBUG - ====Verifying policy data for ctest-vn4-44887185 in API_Server ====== 2026-04-22 13:37:14,985 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-04-22 13:37:14,990 - DEBUG - Requesting: http://10.0.0.27:8082/domain/3d4477e5-6f25-4379-ad0e-f85d3877549d 2026-04-22 13:37:15,001 - DEBUG - Requesting: http://10.0.0.27:8082/project/7b325aeb-d3c7-40f7-b140-2a5c4a22a521 2026-04-22 13:37:15,073 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/00c9e14a-eebc-470b-b9e7-bef391d9df8b 2026-04-22 13:37:15,083 - DEBUG - ==>Verifying data for policy with id: bbe93f34-862e-41ed-9002-8eb0a5751383, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69775606', 'ctest-policy1-46934949'] 2026-04-22 13:37:15,083 - INFO - VN ctest-vn4-44887185 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-22 13:37:15,083 - DEBUG - Verifying the vn in opserver 2026-04-22 13:37:15,083 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69775606:ctest-vn4-44887185 virtual network link through opserver 10.0.0.27 2026-04-22 13:37:15,083 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-04-22 13:37:15,374 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-04-22 13:37:15,433 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69775606:ctest-vn4-44887185', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69775606:ctest-vn4-44887185?flat'} 2026-04-22 13:37:15,433 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69775606:ctest-vn4-44887185 is found in opserver 2026-04-22 13:37:15,442 - DEBUG - Do not have enough data to verify VN in agent 2026-04-22 13:37:15,446 - DEBUG - VRF ids for VN ctest-vn4-44887185: {} 2026-04-22 13:37:15,446 - DEBUG - ====Verifying data for ctest-policy1-46934949 in API_Server ====== 2026-04-22 13:37:15,446 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-04-22 13:37:15,451 - DEBUG - Requesting: http://10.0.0.27:8082/domain/3d4477e5-6f25-4379-ad0e-f85d3877549d 2026-04-22 13:37:15,461 - DEBUG - Requesting: http://10.0.0.27:8082/project/7b325aeb-d3c7-40f7-b140-2a5c4a22a521 2026-04-22 13:37:15,529 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/bbe93f34-862e-41ed-9002-8eb0a5751383 2026-04-22 13:37:15,538 - INFO - Verified policy ctest-policy1-46934949 in API Server, Result: True 2026-04-22 13:37:15,538 - INFO - Done with setup and verification, moving onto test .. 2026-04-22 13:37:15,545 - INFO - Deleting VN ctest-vn4-44887185 2026-04-22 13:37:15,645 - DEBUG - Response for deleting network () 2026-04-22 13:37:15,645 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b2d92ab0-adf8-4637-a241-b4a86f57590b 2026-04-22 13:37:15,649 - DEBUG - Response Code: 404 2026-04-22 13:37:15,649 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-04-22 13:37:15,654 - DEBUG - Requesting: http://10.0.0.27:8082/domain/3d4477e5-6f25-4379-ad0e-f85d3877549d 2026-04-22 13:37:15,709 - DEBUG - Requesting: http://10.0.0.27:8082/project/7b325aeb-d3c7-40f7-b140-2a5c4a22a521 2026-04-22 13:37:15,778 - INFO - Validated that VN ctest-vn4-44887185 is not found in API Server 2026-04-22 13:37:15,786 - DEBUG - VN ctest-vn4-44887185 is not present in Agent 10.0.0.27 2026-04-22 13:37:15,786 - INFO - Validated that VN ctest-vn4-44887185 is not in any agent 2026-04-22 13:37:15,796 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-44887185 info 2026-04-22 13:37:15,814 - INFO - Deleted policy ctest-policy1-46934949 2026-04-22 13:37:15,972 - DEBUG - policy ctest-policy1-46934949 is not found in API Server 2026-04-22 13:37:16,226 - DEBUG - No XMPP flaps were noticed during the test