2026-08-17 09:44:07,538 - INFO - Domain Default found not creating 2026-08-17 09:44:07,713 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-25785100 not found, creating it 2026-08-17 09:44:08,246 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-25785100, ID : c350f976-2c4a-4b88-aa3d-365ae571e7fa 2026-08-17 09:44:10,047 - INFO - ================================================================================ 2026-08-17 09:44:10,047 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-17 09:44:10,306 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-08-17 09:44:10,306 - INFO - Initial checks done. Running the testcase now 2026-08-17 09:44:10,306 - INFO - 2026-08-17 09:44:10,306 - INFO - ================================================================================ 2026-08-17 09:44:10,306 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-17 09:44:10,306 - 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-08-17 09:44:10,602 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-08-17 09:44:10,602 - INFO - Initial checks done. Running the testcase now 2026-08-17 09:44:10,602 - INFO - 2026-08-17 09:44:11,040 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25785100:ctest-vn4-64263356, 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-25785100:ctest-vn4-64263356, 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-25785100:ctest-vn4-64263356, 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-25785100:ctest-vn4-64263356, 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-08-17 09:44:11,571 - DEBUG - Response for create_network : {'network': {'id': 'a3ef4bc9-9aa1-4162-8143-c54bd29ad213', 'name': 'ctest-vn4-64263356', 'tenant_id': 'c350f9762c4a4b88aa3d365ae571e7fa', 'project_id': 'c350f9762c4a4b88aa3d365ae571e7fa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25785100', 'ctest-vn4-64263356'], 'port_security_enabled': True, 'description': ''}} 2026-08-17 09:44:11,757 - DEBUG - Response for create_subnet : {'subnet': {'id': '050796e9-47eb-470e-904e-0d24d6dfd9ba', 'name': '', 'tenant_id': 'c350f9762c4a4b88aa3d365ae571e7fa', 'network_id': 'a3ef4bc9-9aa1-4162-8143-c54bd29ad213', 'ip_version': 4, 'cidr': '96.124.32.64/26', 'allocation_pools': [{'start': '96.124.32.66', 'end': '96.124.32.126'}], 'gateway_ip': '96.124.32.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.124.32.66', 'tags': [], 'project_id': 'c350f9762c4a4b88aa3d365ae571e7fa'}} 2026-08-17 09:44:11,956 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f126439-5cca-4ea4-b058-9806b3156a55', 'name': '', 'tenant_id': 'c350f9762c4a4b88aa3d365ae571e7fa', 'network_id': 'a3ef4bc9-9aa1-4162-8143-c54bd29ad213', 'ip_version': 6, 'cidr': '3c63:2fed:580a:a0f6:cc3f:8f6::/96', 'allocation_pools': [{'start': '3c63:2fed:580a:a0f6:cc3f:8f6:0:2', 'end': '3c63:2fed:580a:a0f6:cc3f:8f6:ffff:fffe'}], 'gateway_ip': '3c63:2fed:580a:a0f6:cc3f:8f6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c63:2fed:580a:a0f6:cc3f:8f6:0:2', 'tags': [], 'project_id': 'c350f9762c4a4b88aa3d365ae571e7fa'}} 2026-08-17 09:44:11,977 - INFO - Created VN ctest-vn4-64263356 2026-08-17 09:44:12,032 - DEBUG - VN ctest-vn4-64263356 UUID is a3ef4bc9-9aa1-4162-8143-c54bd29ad213 2026-08-17 09:44:12,235 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a3ef4bc9-9aa1-4162-8143-c54bd29ad213', 'name': 'ctest-vn4-64263356', 'tenant_id': 'c350f9762c4a4b88aa3d365ae571e7fa', 'project_id': 'c350f9762c4a4b88aa3d365ae571e7fa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['050796e9-47eb-470e-904e-0d24d6dfd9ba', '8f126439-5cca-4ea4-b058-9806b3156a55'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25785100', 'ctest-vn4-64263356'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25785100', 'ctest-policy1-12303238']], 'subnet_ipam': [{'subnet_cidr': '96.124.32.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c63:2fed:580a:a0f6:cc3f:8f6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-17 09:44:12,396 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-08-17 09:44:12,767 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-08-17 09:44:12,802 - DEBUG - Requesting: http://10.0.0.33:8082/domain/773cf3a6-4e29-495e-a118-7160e7920208 2026-08-17 09:44:12,821 - DEBUG - Requesting: http://10.0.0.33:8082/project/c350f976-2c4a-4b88-aa3d-365ae571e7fa 2026-08-17 09:44:12,900 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a3ef4bc9-9aa1-4162-8143-c54bd29ad213 2026-08-17 09:44:12,915 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a3ef4bc9-9aa1-4162-8143-c54bd29ad213 2026-08-17 09:44:12,926 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6f907733-7cd9-4c31-9581-7c36e998b6aa 2026-08-17 09:44:12,933 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6f907733-7cd9-4c31-9581-7c36e998b6aa 2026-08-17 09:44:12,941 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0393fb0f-d0fd-406d-8b7d-a34d7ecdd93e 2026-08-17 09:44:12,948 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-17 09:44:12,948 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a3ef4bc9-9aa1-4162-8143-c54bd29ad213 2026-08-17 09:44:12,959 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6f907733-7cd9-4c31-9581-7c36e998b6aa 2026-08-17 09:44:12,975 - INFO - Verified VN network id 11 for VN a3ef4bc9-9aa1-4162-8143-c54bd29ad213 2026-08-17 09:44:12,975 - INFO - Verifications in API Server for VN ctest-vn4-64263356 passed 2026-08-17 09:44:12,975 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a3ef4bc9-9aa1-4162-8143-c54bd29ad213 2026-08-17 09:44:12,986 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6f907733-7cd9-4c31-9581-7c36e998b6aa 2026-08-17 09:44:12,993 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6f907733-7cd9-4c31-9581-7c36e998b6aa 2026-08-17 09:44:13,001 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0393fb0f-d0fd-406d-8b7d-a34d7ecdd93e 2026-08-17 09:44:13,015 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25785100:ctest-vn4-64263356', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25785100', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11812743676870869346', 'uuid-lslong': '9314505383778898451'}, 'enable': 'true', 'created': '2026-08-17T09:44:11', 'last-modified': '2026-08-17T09:44:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.804230'} 2026-08-17 09:44:13,022 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-17 09:44:13,022 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-64263356 passed 2026-08-17 09:44:13,022 - DEBUG - ====Verifying policy data for ctest-vn4-64263356 in API_Server ====== 2026-08-17 09:44:13,022 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-08-17 09:44:13,029 - DEBUG - Requesting: http://10.0.0.33:8082/domain/773cf3a6-4e29-495e-a118-7160e7920208 2026-08-17 09:44:13,040 - DEBUG - Requesting: http://10.0.0.33:8082/project/c350f976-2c4a-4b88-aa3d-365ae571e7fa 2026-08-17 09:44:13,117 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a3ef4bc9-9aa1-4162-8143-c54bd29ad213 2026-08-17 09:44:13,129 - DEBUG - ==>Verifying data for policy with id: 62b65f10-5d8d-4440-b26a-dfa8b79ef6cf, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25785100', 'ctest-policy1-12303238'] 2026-08-17 09:44:13,129 - INFO - VN ctest-vn4-64263356 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-17 09:44:13,129 - DEBUG - Verifying the vn in opserver 2026-08-17 09:44:13,129 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25785100:ctest-vn4-64263356 virtual network link through opserver 10.0.0.33 2026-08-17 09:44:13,129 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-08-17 09:44:13,499 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-08-17 09:44:13,553 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25785100:ctest-vn4-64263356', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25785100:ctest-vn4-64263356?flat'} 2026-08-17 09:44:13,553 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25785100:ctest-vn4-64263356 is found in opserver 2026-08-17 09:44:13,567 - DEBUG - Do not have enough data to verify VN in agent 2026-08-17 09:44:13,572 - DEBUG - VRF ids for VN ctest-vn4-64263356: {} 2026-08-17 09:44:13,572 - DEBUG - ====Verifying data for ctest-policy1-12303238 in API_Server ====== 2026-08-17 09:44:13,572 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-08-17 09:44:13,579 - DEBUG - Requesting: http://10.0.0.33:8082/domain/773cf3a6-4e29-495e-a118-7160e7920208 2026-08-17 09:44:13,590 - DEBUG - Requesting: http://10.0.0.33:8082/project/c350f976-2c4a-4b88-aa3d-365ae571e7fa 2026-08-17 09:44:13,666 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/62b65f10-5d8d-4440-b26a-dfa8b79ef6cf 2026-08-17 09:44:13,676 - INFO - Verified policy ctest-policy1-12303238 in API Server, Result: True 2026-08-17 09:44:13,677 - INFO - Done with setup and verification, moving onto test .. 2026-08-17 09:44:13,687 - INFO - Deleting VN ctest-vn4-64263356 2026-08-17 09:44:13,825 - DEBUG - Response for deleting network () 2026-08-17 09:44:13,825 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6f907733-7cd9-4c31-9581-7c36e998b6aa 2026-08-17 09:44:13,832 - DEBUG - Response Code: 404 2026-08-17 09:44:13,832 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-08-17 09:44:13,838 - DEBUG - Requesting: http://10.0.0.33:8082/domain/773cf3a6-4e29-495e-a118-7160e7920208 2026-08-17 09:44:13,894 - DEBUG - Requesting: http://10.0.0.33:8082/project/c350f976-2c4a-4b88-aa3d-365ae571e7fa 2026-08-17 09:44:13,972 - INFO - Validated that VN ctest-vn4-64263356 is not found in API Server 2026-08-17 09:44:13,986 - DEBUG - VN ctest-vn4-64263356 is not present in Agent 10.0.0.33 2026-08-17 09:44:13,986 - INFO - Validated that VN ctest-vn4-64263356 is not in any agent 2026-08-17 09:44:14,001 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-64263356 info 2026-08-17 09:44:14,030 - INFO - Deleted policy ctest-policy1-12303238 2026-08-17 09:44:14,195 - DEBUG - policy ctest-policy1-12303238 is not found in API Server 2026-08-17 09:44:14,464 - DEBUG - No XMPP flaps were noticed during the test 2026-08-17 09:44:14,464 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-08-17 09:44:14,464 - INFO - -------------------------------------------------------------------------------- 2026-08-17 09:44:14,764 - DEBUG - No XMPP flaps were noticed during the test 2026-08-17 09:44:14,764 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-08-17 09:44:14,765 - INFO - -------------------------------------------------------------------------------- 2026-08-17 09:44:15,522 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-25785100, ID : c350f976-2c4a-4b88-aa3d-365ae571e7fa