2026-01-31 16:12:56,719 - INFO - Domain Default found not creating 2026-01-31 16:12:56,882 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-61314386 not found, creating it 2026-01-31 16:12:57,350 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-61314386, ID : 823c4d05-37f7-4dc5-be58-2067b2456dea 2026-01-31 16:12:58,781 - INFO - ================================================================================ 2026-01-31 16:12:58,781 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-31 16:12:59,035 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-01-31 16:12:59,035 - INFO - Initial checks done. Running the testcase now 2026-01-31 16:12:59,036 - INFO - 2026-01-31 16:12:59,036 - INFO - ================================================================================ 2026-01-31 16:12:59,036 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-31 16:12:59,036 - 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-01-31 16:12:59,332 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-01-31 16:12:59,332 - INFO - Initial checks done. Running the testcase now 2026-01-31 16:12:59,332 - INFO - 2026-01-31 16:12:59,681 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61314386:ctest-vn4-00061963, 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-61314386:ctest-vn4-00061963, 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-61314386:ctest-vn4-00061963, 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-61314386:ctest-vn4-00061963, 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-01-31 16:13:00,196 - DEBUG - Response for create_network : {'network': {'id': 'e6c97c58-37ab-4051-9b4e-517a94a5ac94', 'name': 'ctest-vn4-00061963', 'tenant_id': '823c4d0537f74dc5be582067b2456dea', 'project_id': '823c4d0537f74dc5be582067b2456dea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61314386', 'ctest-vn4-00061963'], 'port_security_enabled': True, 'description': ''}} 2026-01-31 16:13:00,407 - DEBUG - Response for create_subnet : {'subnet': {'id': 'effa2b0c-b727-4638-99c2-3f41caed9201', 'name': '', 'tenant_id': '823c4d0537f74dc5be582067b2456dea', 'network_id': 'e6c97c58-37ab-4051-9b4e-517a94a5ac94', 'ip_version': 4, 'cidr': '132.57.210.0/26', 'allocation_pools': [{'start': '132.57.210.2', 'end': '132.57.210.62'}], 'gateway_ip': '132.57.210.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.57.210.2', 'tags': [], 'project_id': '823c4d0537f74dc5be582067b2456dea'}} 2026-01-31 16:13:00,570 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c54ce69c-76ae-4e22-a8f8-9ac5feb7ed9b', 'name': '', 'tenant_id': '823c4d0537f74dc5be582067b2456dea', 'network_id': 'e6c97c58-37ab-4051-9b4e-517a94a5ac94', 'ip_version': 6, 'cidr': '3ca0:f40b:be86:550:d823:a829::/96', 'allocation_pools': [{'start': '3ca0:f40b:be86:550:d823:a829:0:2', 'end': '3ca0:f40b:be86:550:d823:a829:ffff:fffe'}], 'gateway_ip': '3ca0:f40b:be86:550:d823:a829:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ca0:f40b:be86:550:d823:a829:0:2', 'tags': [], 'project_id': '823c4d0537f74dc5be582067b2456dea'}} 2026-01-31 16:13:00,590 - INFO - Created VN ctest-vn4-00061963 2026-01-31 16:13:00,642 - DEBUG - VN ctest-vn4-00061963 UUID is e6c97c58-37ab-4051-9b4e-517a94a5ac94 2026-01-31 16:13:00,840 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e6c97c58-37ab-4051-9b4e-517a94a5ac94', 'name': 'ctest-vn4-00061963', 'tenant_id': '823c4d0537f74dc5be582067b2456dea', 'project_id': '823c4d0537f74dc5be582067b2456dea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['effa2b0c-b727-4638-99c2-3f41caed9201', 'c54ce69c-76ae-4e22-a8f8-9ac5feb7ed9b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61314386', 'ctest-vn4-00061963'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61314386', 'ctest-policy1-79521342']], 'subnet_ipam': [{'subnet_cidr': '132.57.210.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ca0:f40b:be86:550:d823:a829::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-31 16:13:00,994 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-31 16:13:01,288 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-31 16:13:01,319 - DEBUG - Requesting: http://10.0.0.50:8082/domain/25c20401-9e91-4c60-a660-ce8f3756086f 2026-01-31 16:13:01,331 - DEBUG - Requesting: http://10.0.0.50:8082/project/823c4d05-37f7-4dc5-be58-2067b2456dea 2026-01-31 16:13:01,400 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e6c97c58-37ab-4051-9b4e-517a94a5ac94 2026-01-31 16:13:01,412 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e6c97c58-37ab-4051-9b4e-517a94a5ac94 2026-01-31 16:13:01,422 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/613cc27e-7075-4cbd-adfb-e95b0868ffb9 2026-01-31 16:13:01,429 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/613cc27e-7075-4cbd-adfb-e95b0868ffb9 2026-01-31 16:13:01,436 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/80af2ba8-f8de-40df-bf54-076aee15f4af 2026-01-31 16:13:01,442 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-31 16:13:01,442 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e6c97c58-37ab-4051-9b4e-517a94a5ac94 2026-01-31 16:13:01,450 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/613cc27e-7075-4cbd-adfb-e95b0868ffb9 2026-01-31 16:13:01,464 - INFO - Verified VN network id 12 for VN e6c97c58-37ab-4051-9b4e-517a94a5ac94 2026-01-31 16:13:01,464 - INFO - Verifications in API Server for VN ctest-vn4-00061963 passed 2026-01-31 16:13:01,464 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e6c97c58-37ab-4051-9b4e-517a94a5ac94 2026-01-31 16:13:01,473 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/613cc27e-7075-4cbd-adfb-e95b0868ffb9 2026-01-31 16:13:01,479 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/613cc27e-7075-4cbd-adfb-e95b0868ffb9 2026-01-31 16:13:01,485 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/80af2ba8-f8de-40df-bf54-076aee15f4af 2026-01-31 16:13:01,499 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61314386:ctest-vn4-00061963', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-61314386', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16629959817375203409', 'uuid-lslong': '11190971710984006804'}, 'enable': 'true', 'created': '2026-01-31T16:13:00', 'last-modified': '2026-01-31T16:13:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.681748'} 2026-01-31 16:13:01,505 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-31 16:13:01,505 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-00061963 passed 2026-01-31 16:13:01,505 - DEBUG - ====Verifying policy data for ctest-vn4-00061963 in API_Server ====== 2026-01-31 16:13:01,505 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-31 16:13:01,511 - DEBUG - Requesting: http://10.0.0.50:8082/domain/25c20401-9e91-4c60-a660-ce8f3756086f 2026-01-31 16:13:01,522 - DEBUG - Requesting: http://10.0.0.50:8082/project/823c4d05-37f7-4dc5-be58-2067b2456dea 2026-01-31 16:13:01,596 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e6c97c58-37ab-4051-9b4e-517a94a5ac94 2026-01-31 16:13:01,606 - DEBUG - ==>Verifying data for policy with id: 15417a50-5483-4773-bb93-433153e17a1d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61314386', 'ctest-policy1-79521342'] 2026-01-31 16:13:01,606 - INFO - VN ctest-vn4-00061963 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-31 16:13:01,606 - DEBUG - Verifying the vn in opserver 2026-01-31 16:13:01,606 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61314386:ctest-vn4-00061963 virtual network link through opserver 10.0.0.50 2026-01-31 16:13:01,606 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-31 16:13:01,897 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-31 16:13:01,957 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61314386:ctest-vn4-00061963', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61314386:ctest-vn4-00061963?flat'} 2026-01-31 16:13:01,957 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61314386:ctest-vn4-00061963 is found in opserver 2026-01-31 16:13:01,967 - DEBUG - Do not have enough data to verify VN in agent 2026-01-31 16:13:01,971 - DEBUG - VRF ids for VN ctest-vn4-00061963: {} 2026-01-31 16:13:01,971 - DEBUG - ====Verifying data for ctest-policy1-79521342 in API_Server ====== 2026-01-31 16:13:01,972 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-31 16:13:01,977 - DEBUG - Requesting: http://10.0.0.50:8082/domain/25c20401-9e91-4c60-a660-ce8f3756086f 2026-01-31 16:13:01,988 - DEBUG - Requesting: http://10.0.0.50:8082/project/823c4d05-37f7-4dc5-be58-2067b2456dea 2026-01-31 16:13:02,056 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/15417a50-5483-4773-bb93-433153e17a1d 2026-01-31 16:13:02,068 - INFO - Verified policy ctest-policy1-79521342 in API Server, Result: True 2026-01-31 16:13:02,068 - INFO - Done with setup and verification, moving onto test .. 2026-01-31 16:13:02,076 - INFO - Deleting VN ctest-vn4-00061963 2026-01-31 16:13:02,175 - DEBUG - Response for deleting network () 2026-01-31 16:13:02,175 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/613cc27e-7075-4cbd-adfb-e95b0868ffb9 2026-01-31 16:13:02,179 - DEBUG - Response Code: 404 2026-01-31 16:13:02,179 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-31 16:13:02,184 - DEBUG - Requesting: http://10.0.0.50:8082/domain/25c20401-9e91-4c60-a660-ce8f3756086f 2026-01-31 16:13:02,238 - DEBUG - Requesting: http://10.0.0.50:8082/project/823c4d05-37f7-4dc5-be58-2067b2456dea 2026-01-31 16:13:02,307 - INFO - Validated that VN ctest-vn4-00061963 is not found in API Server 2026-01-31 16:13:02,316 - DEBUG - VN ctest-vn4-00061963 is not present in Agent 10.0.0.50 2026-01-31 16:13:02,317 - INFO - Validated that VN ctest-vn4-00061963 is not in any agent 2026-01-31 16:13:02,332 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-00061963 info 2026-01-31 16:13:02,353 - INFO - Deleted policy ctest-policy1-79521342 2026-01-31 16:13:02,518 - DEBUG - policy ctest-policy1-79521342 is not found in API Server 2026-01-31 16:13:02,770 - DEBUG - No XMPP flaps were noticed during the test
2026-01-31 16:13:02,770 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-01-31 16:13:02,770 - INFO - -------------------------------------------------------------------------------- 2026-01-31 16:13:03,058 - DEBUG - No XMPP flaps were noticed during the test
2026-01-31 16:13:03,058 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-01-31 16:13:03,058 - INFO - -------------------------------------------------------------------------------- 2026-01-31 16:13:03,734 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-61314386, ID : 823c4d05-37f7-4dc5-be58-2067b2456dea