2026-06-04 16:20:07,684 - INFO - Domain Default found not creating 2026-06-04 16:20:07,857 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-02205880 not found, creating it 2026-06-04 16:20:08,341 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-02205880, ID : 541d1b99-0432-4f6b-a4cb-c6ec03a9ba10 2026-06-04 16:20:09,915 - INFO - ================================================================================ 2026-06-04 16:20:09,915 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-04 16:20:10,183 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.18': '0'}} with 2026-06-04 16:20:10,184 - INFO - Initial checks done. Running the testcase now 2026-06-04 16:20:10,184 - INFO - 2026-06-04 16:20:10,184 - INFO - ================================================================================ 2026-06-04 16:20:10,184 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-04 16:20:10,184 - 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-04 16:20:10,464 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.18': '0'}} with 2026-06-04 16:20:10,464 - INFO - Initial checks done. Running the testcase now 2026-06-04 16:20:10,464 - INFO - 2026-06-04 16:20:10,823 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02205880:ctest-vn4-66464427, 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-02205880:ctest-vn4-66464427, 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-02205880:ctest-vn4-66464427, 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-02205880:ctest-vn4-66464427, 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-04 16:20:11,336 - DEBUG - Response for create_network : {'network': {'id': '216687b7-4f0a-4887-b58c-09859de29f75', 'name': 'ctest-vn4-66464427', 'tenant_id': '541d1b9904324f6ba4cbc6ec03a9ba10', 'project_id': '541d1b9904324f6ba4cbc6ec03a9ba10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02205880', 'ctest-vn4-66464427'], 'port_security_enabled': True, 'description': ''}} 2026-06-04 16:20:11,523 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e039669-f99b-4042-8018-fa45c14b9b57', 'name': '', 'tenant_id': '541d1b9904324f6ba4cbc6ec03a9ba10', 'network_id': '216687b7-4f0a-4887-b58c-09859de29f75', 'ip_version': 4, 'cidr': '98.153.19.0/26', 'allocation_pools': [{'start': '98.153.19.2', 'end': '98.153.19.62'}], 'gateway_ip': '98.153.19.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.153.19.2', 'tags': [], 'project_id': '541d1b9904324f6ba4cbc6ec03a9ba10'}} 2026-06-04 16:20:11,689 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a32d70d0-d181-47d8-8958-92baa29d8d6d', 'name': '', 'tenant_id': '541d1b9904324f6ba4cbc6ec03a9ba10', 'network_id': '216687b7-4f0a-4887-b58c-09859de29f75', 'ip_version': 6, 'cidr': '35e2:3e5c:62cd:a7d:ca4b:17d::/96', 'allocation_pools': [{'start': '35e2:3e5c:62cd:a7d:ca4b:17d:0:2', 'end': '35e2:3e5c:62cd:a7d:ca4b:17d:ffff:fffe'}], 'gateway_ip': '35e2:3e5c:62cd:a7d:ca4b:17d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35e2:3e5c:62cd:a7d:ca4b:17d:0:2', 'tags': [], 'project_id': '541d1b9904324f6ba4cbc6ec03a9ba10'}} 2026-06-04 16:20:11,711 - INFO - Created VN ctest-vn4-66464427 2026-06-04 16:20:11,762 - DEBUG - VN ctest-vn4-66464427 UUID is 216687b7-4f0a-4887-b58c-09859de29f75 2026-06-04 16:20:11,972 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '216687b7-4f0a-4887-b58c-09859de29f75', 'name': 'ctest-vn4-66464427', 'tenant_id': '541d1b9904324f6ba4cbc6ec03a9ba10', 'project_id': '541d1b9904324f6ba4cbc6ec03a9ba10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e039669-f99b-4042-8018-fa45c14b9b57', 'a32d70d0-d181-47d8-8958-92baa29d8d6d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02205880', 'ctest-vn4-66464427'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02205880', 'ctest-policy1-17473659']], 'subnet_ipam': [{'subnet_cidr': '98.153.19.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '35e2:3e5c:62cd:a7d:ca4b:17d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-04 16:20:12,135 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-06-04 16:20:12,436 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-06-04 16:20:12,471 - DEBUG - Requesting: http://10.0.0.129:8082/domain/749c21dd-f00a-4e48-8a23-a95d17fee122 2026-06-04 16:20:12,483 - DEBUG - Requesting: http://10.0.0.129:8082/project/541d1b99-0432-4f6b-a4cb-c6ec03a9ba10 2026-06-04 16:20:12,560 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/216687b7-4f0a-4887-b58c-09859de29f75 2026-06-04 16:20:12,571 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/216687b7-4f0a-4887-b58c-09859de29f75 2026-06-04 16:20:12,580 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/045b509c-f756-4c14-ba42-5afab7818860 2026-06-04 16:20:12,587 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/045b509c-f756-4c14-ba42-5afab7818860 2026-06-04 16:20:12,593 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/e8059f77-d187-4c96-9002-083de7a162e7 2026-06-04 16:20:12,599 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-04 16:20:12,599 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/216687b7-4f0a-4887-b58c-09859de29f75 2026-06-04 16:20:12,608 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/045b509c-f756-4c14-ba42-5afab7818860 2026-06-04 16:20:12,623 - INFO - Verified VN network id 11 for VN 216687b7-4f0a-4887-b58c-09859de29f75 2026-06-04 16:20:12,623 - INFO - Verifications in API Server for VN ctest-vn4-66464427 passed 2026-06-04 16:20:12,623 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/216687b7-4f0a-4887-b58c-09859de29f75 2026-06-04 16:20:12,633 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/045b509c-f756-4c14-ba42-5afab7818860 2026-06-04 16:20:12,639 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/045b509c-f756-4c14-ba42-5afab7818860 2026-06-04 16:20:12,645 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/e8059f77-d187-4c96-9002-083de7a162e7 2026-06-04 16:20:12,656 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02205880:ctest-vn4-66464427', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-02205880', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2406760272250947719', 'uuid-lslong': '13081841487088623477'}, 'enable': 'true', 'created': '2026-06-04T16:20:11', 'last-modified': '2026-06-04T16:20:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.713853'} 2026-06-04 16:20:12,662 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-04 16:20:12,662 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-66464427 passed 2026-06-04 16:20:12,662 - DEBUG - ====Verifying policy data for ctest-vn4-66464427 in API_Server ====== 2026-06-04 16:20:12,662 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-06-04 16:20:12,668 - DEBUG - Requesting: http://10.0.0.129:8082/domain/749c21dd-f00a-4e48-8a23-a95d17fee122 2026-06-04 16:20:12,679 - DEBUG - Requesting: http://10.0.0.129:8082/project/541d1b99-0432-4f6b-a4cb-c6ec03a9ba10 2026-06-04 16:20:12,753 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/216687b7-4f0a-4887-b58c-09859de29f75 2026-06-04 16:20:12,766 - DEBUG - ==>Verifying data for policy with id: 419dbfc7-b66f-4c66-98ae-5d36411621f9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02205880', 'ctest-policy1-17473659'] 2026-06-04 16:20:12,766 - INFO - VN ctest-vn4-66464427 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-04 16:20:12,766 - DEBUG - Verifying the vn in opserver 2026-06-04 16:20:12,766 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02205880:ctest-vn4-66464427 virtual network link through opserver 10.0.0.129 2026-06-04 16:20:12,766 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-06-04 16:20:13,066 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-06-04 16:20:13,128 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02205880:ctest-vn4-66464427', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02205880:ctest-vn4-66464427?flat'} 2026-06-04 16:20:13,128 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02205880:ctest-vn4-66464427 is found in opserver 2026-06-04 16:20:13,137 - DEBUG - Do not have enough data to verify VN in agent 2026-06-04 16:20:13,142 - DEBUG - VRF ids for VN ctest-vn4-66464427: {} 2026-06-04 16:20:13,143 - DEBUG - ====Verifying data for ctest-policy1-17473659 in API_Server ====== 2026-06-04 16:20:13,143 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-06-04 16:20:13,149 - DEBUG - Requesting: http://10.0.0.129:8082/domain/749c21dd-f00a-4e48-8a23-a95d17fee122 2026-06-04 16:20:13,159 - DEBUG - Requesting: http://10.0.0.129:8082/project/541d1b99-0432-4f6b-a4cb-c6ec03a9ba10 2026-06-04 16:20:13,228 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/419dbfc7-b66f-4c66-98ae-5d36411621f9 2026-06-04 16:20:13,237 - INFO - Verified policy ctest-policy1-17473659 in API Server, Result: True 2026-06-04 16:20:13,237 - INFO - Done with setup and verification, moving onto test .. 2026-06-04 16:20:13,246 - INFO - Deleting VN ctest-vn4-66464427 2026-06-04 16:20:13,368 - DEBUG - Response for deleting network () 2026-06-04 16:20:13,368 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/045b509c-f756-4c14-ba42-5afab7818860 2026-06-04 16:20:13,373 - DEBUG - Response Code: 404 2026-06-04 16:20:13,373 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-06-04 16:20:13,379 - DEBUG - Requesting: http://10.0.0.129:8082/domain/749c21dd-f00a-4e48-8a23-a95d17fee122 2026-06-04 16:20:13,435 - DEBUG - Requesting: http://10.0.0.129:8082/project/541d1b99-0432-4f6b-a4cb-c6ec03a9ba10 2026-06-04 16:20:13,505 - INFO - Validated that VN ctest-vn4-66464427 is not found in API Server 2026-06-04 16:20:13,515 - DEBUG - VN ctest-vn4-66464427 is not present in Agent 10.0.0.129 2026-06-04 16:20:13,515 - INFO - Validated that VN ctest-vn4-66464427 is not in any agent 2026-06-04 16:20:13,527 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-66464427 info 2026-06-04 16:20:13,549 - INFO - Deleted policy ctest-policy1-17473659 2026-06-04 16:20:13,710 - DEBUG - policy ctest-policy1-17473659 is not found in API Server 2026-06-04 16:20:13,963 - DEBUG - No XMPP flaps were noticed during the test
2026-06-04 16:20:13,963 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-06-04 16:20:13,963 - INFO - -------------------------------------------------------------------------------- 2026-06-04 16:20:14,260 - DEBUG - No XMPP flaps were noticed during the test
2026-06-04 16:20:14,260 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-06-04 16:20:14,260 - INFO - -------------------------------------------------------------------------------- 2026-06-04 16:20:14,947 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-02205880, ID : 541d1b99-0432-4f6b-a4cb-c6ec03a9ba10