2026-11-04 04:12:24,306 - INFO - Domain Default found not creating 2026-11-04 04:12:24,487 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-21129147 not found, creating it 2026-11-04 04:12:24,992 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-21129147, ID : f78583b5-7bb2-4bbe-bf9f-e73117938f67 2026-11-04 04:12:26,727 - INFO - ================================================================================ 2026-11-04 04:12:26,727 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-04 04:12:27,002 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-11-04 04:12:27,002 - INFO - Initial checks done. Running the testcase now 2026-11-04 04:12:27,002 - INFO - 2026-11-04 04:12:27,002 - INFO - ================================================================================ 2026-11-04 04:12:27,002 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-04 04:12:27,002 - 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-11-04 04:12:27,291 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-11-04 04:12:27,291 - INFO - Initial checks done. Running the testcase now 2026-11-04 04:12:27,291 - INFO - 2026-11-04 04:12:27,703 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21129147:ctest-vn4-54479443, 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-21129147:ctest-vn4-54479443, 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-21129147:ctest-vn4-54479443, 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-21129147:ctest-vn4-54479443, 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-11-04 04:12:28,221 - DEBUG - Response for create_network : {'network': {'id': '223f7d48-c2e3-4c79-a1d9-b0a71202f232', 'name': 'ctest-vn4-54479443', 'tenant_id': 'f78583b57bb24bbebf9fe73117938f67', 'project_id': 'f78583b57bb24bbebf9fe73117938f67', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21129147', 'ctest-vn4-54479443'], 'port_security_enabled': True, 'description': ''}} 2026-11-04 04:12:28,460 - DEBUG - Response for create_subnet : {'subnet': {'id': '9fc6d372-6610-4d21-9e41-f19899ce31db', 'name': '', 'tenant_id': 'f78583b57bb24bbebf9fe73117938f67', 'network_id': '223f7d48-c2e3-4c79-a1d9-b0a71202f232', 'ip_version': 4, 'cidr': '2.199.83.192/26', 'allocation_pools': [{'start': '2.199.83.194', 'end': '2.199.83.254'}], 'gateway_ip': '2.199.83.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.199.83.194', 'tags': [], 'project_id': 'f78583b57bb24bbebf9fe73117938f67'}} 2026-11-04 04:12:28,610 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd78cbd77-fb0a-4382-94b9-2c53c540b757', 'name': '', 'tenant_id': 'f78583b57bb24bbebf9fe73117938f67', 'network_id': '223f7d48-c2e3-4c79-a1d9-b0a71202f232', 'ip_version': 6, 'cidr': '3cb1:9175:c8f9:f4de:e113:255d::/96', 'allocation_pools': [{'start': '3cb1:9175:c8f9:f4de:e113:255d:0:2', 'end': '3cb1:9175:c8f9:f4de:e113:255d:ffff:fffe'}], 'gateway_ip': '3cb1:9175:c8f9:f4de:e113:255d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3cb1:9175:c8f9:f4de:e113:255d:0:2', 'tags': [], 'project_id': 'f78583b57bb24bbebf9fe73117938f67'}} 2026-11-04 04:12:28,630 - INFO - Created VN ctest-vn4-54479443 2026-11-04 04:12:28,686 - DEBUG - VN ctest-vn4-54479443 UUID is 223f7d48-c2e3-4c79-a1d9-b0a71202f232 2026-11-04 04:12:28,885 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '223f7d48-c2e3-4c79-a1d9-b0a71202f232', 'name': 'ctest-vn4-54479443', 'tenant_id': 'f78583b57bb24bbebf9fe73117938f67', 'project_id': 'f78583b57bb24bbebf9fe73117938f67', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['9fc6d372-6610-4d21-9e41-f19899ce31db', 'd78cbd77-fb0a-4382-94b9-2c53c540b757'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21129147', 'ctest-vn4-54479443'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21129147', 'ctest-policy1-18398724']], 'subnet_ipam': [{'subnet_cidr': '2.199.83.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3cb1:9175:c8f9:f4de:e113:255d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-04 04:12:29,062 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-04 04:12:29,431 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-04 04:12:29,457 - DEBUG - Requesting: http://10.0.0.177:8082/domain/2aa1593e-0905-4cb6-be0a-b6482102598d 2026-11-04 04:12:29,471 - DEBUG - Requesting: http://10.0.0.177:8082/project/f78583b5-7bb2-4bbe-bf9f-e73117938f67 2026-11-04 04:12:29,551 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/223f7d48-c2e3-4c79-a1d9-b0a71202f232 2026-11-04 04:12:29,563 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/223f7d48-c2e3-4c79-a1d9-b0a71202f232 2026-11-04 04:12:29,574 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/a6e07a1b-7e8c-48f7-adfa-2e9698151759 2026-11-04 04:12:29,581 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/a6e07a1b-7e8c-48f7-adfa-2e9698151759 2026-11-04 04:12:29,589 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/18092274-212d-4131-929a-bb0fa5afffab 2026-11-04 04:12:29,597 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-04 04:12:29,597 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/223f7d48-c2e3-4c79-a1d9-b0a71202f232 2026-11-04 04:12:29,609 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/a6e07a1b-7e8c-48f7-adfa-2e9698151759 2026-11-04 04:12:29,632 - INFO - Verified VN network id 11 for VN 223f7d48-c2e3-4c79-a1d9-b0a71202f232 2026-11-04 04:12:29,632 - INFO - Verifications in API Server for VN ctest-vn4-54479443 passed 2026-11-04 04:12:29,633 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/223f7d48-c2e3-4c79-a1d9-b0a71202f232 2026-11-04 04:12:29,644 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/a6e07a1b-7e8c-48f7-adfa-2e9698151759 2026-11-04 04:12:29,652 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/a6e07a1b-7e8c-48f7-adfa-2e9698151759 2026-11-04 04:12:29,659 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/18092274-212d-4131-929a-bb0fa5afffab 2026-11-04 04:12:29,672 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21129147:ctest-vn4-54479443', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-21129147', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2467828872283114617', 'uuid-lslong': '11662546941660820018'}, 'enable': 'true', 'created': '2026-11-04T04:12:28', 'last-modified': '2026-11-04T04:12:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.812301'} 2026-11-04 04:12:29,679 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-04 04:12:29,679 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-54479443 passed 2026-11-04 04:12:29,679 - DEBUG - ====Verifying policy data for ctest-vn4-54479443 in API_Server ====== 2026-11-04 04:12:29,679 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-04 04:12:29,685 - DEBUG - Requesting: http://10.0.0.177:8082/domain/2aa1593e-0905-4cb6-be0a-b6482102598d 2026-11-04 04:12:29,697 - DEBUG - Requesting: http://10.0.0.177:8082/project/f78583b5-7bb2-4bbe-bf9f-e73117938f67 2026-11-04 04:12:29,770 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/223f7d48-c2e3-4c79-a1d9-b0a71202f232 2026-11-04 04:12:29,780 - DEBUG - ==>Verifying data for policy with id: fd5d416a-0743-4125-9187-5e00804472e7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21129147', 'ctest-policy1-18398724'] 2026-11-04 04:12:29,780 - INFO - VN ctest-vn4-54479443 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-04 04:12:29,780 - DEBUG - Verifying the vn in opserver 2026-11-04 04:12:29,780 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21129147:ctest-vn4-54479443 virtual network link through opserver 10.0.0.177 2026-11-04 04:12:29,780 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-11-04 04:12:30,153 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-11-04 04:12:30,208 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21129147:ctest-vn4-54479443', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21129147:ctest-vn4-54479443?flat'} 2026-11-04 04:12:30,208 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21129147:ctest-vn4-54479443 is found in opserver 2026-11-04 04:12:30,221 - DEBUG - Do not have enough data to verify VN in agent 2026-11-04 04:12:30,225 - DEBUG - VRF ids for VN ctest-vn4-54479443: {} 2026-11-04 04:12:30,226 - DEBUG - ====Verifying data for ctest-policy1-18398724 in API_Server ====== 2026-11-04 04:12:30,226 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-04 04:12:30,232 - DEBUG - Requesting: http://10.0.0.177:8082/domain/2aa1593e-0905-4cb6-be0a-b6482102598d 2026-11-04 04:12:30,243 - DEBUG - Requesting: http://10.0.0.177:8082/project/f78583b5-7bb2-4bbe-bf9f-e73117938f67 2026-11-04 04:12:30,313 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/fd5d416a-0743-4125-9187-5e00804472e7 2026-11-04 04:12:30,326 - INFO - Verified policy ctest-policy1-18398724 in API Server, Result: True 2026-11-04 04:12:30,326 - INFO - Done with setup and verification, moving onto test .. 2026-11-04 04:12:30,336 - INFO - Deleting VN ctest-vn4-54479443 2026-11-04 04:12:30,495 - DEBUG - Response for deleting network () 2026-11-04 04:12:30,496 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/a6e07a1b-7e8c-48f7-adfa-2e9698151759 2026-11-04 04:12:30,502 - DEBUG - Response Code: 404 2026-11-04 04:12:30,502 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-04 04:12:30,509 - DEBUG - Requesting: http://10.0.0.177:8082/domain/2aa1593e-0905-4cb6-be0a-b6482102598d 2026-11-04 04:12:30,563 - DEBUG - Requesting: http://10.0.0.177:8082/project/f78583b5-7bb2-4bbe-bf9f-e73117938f67 2026-11-04 04:12:30,638 - INFO - Validated that VN ctest-vn4-54479443 is not found in API Server 2026-11-04 04:12:30,652 - DEBUG - VN ctest-vn4-54479443 is not present in Agent 10.0.0.177 2026-11-04 04:12:30,652 - INFO - Validated that VN ctest-vn4-54479443 is not in any agent 2026-11-04 04:12:30,674 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-54479443 info 2026-11-04 04:12:30,701 - INFO - Deleted policy ctest-policy1-18398724 2026-11-04 04:12:30,877 - DEBUG - policy ctest-policy1-18398724 is not found in API Server 2026-11-04 04:12:31,142 - DEBUG - No XMPP flaps were noticed during the test 2026-11-04 04:12:31,143 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-11-04 04:12:31,143 - INFO - -------------------------------------------------------------------------------- 2026-11-04 04:12:31,447 - DEBUG - No XMPP flaps were noticed during the test 2026-11-04 04:12:31,447 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-11-04 04:12:31,447 - INFO - -------------------------------------------------------------------------------- 2026-11-04 04:12:32,216 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-21129147, ID : f78583b5-7bb2-4bbe-bf9f-e73117938f67