2026-05-14 02:23:10,053 - INFO - Domain Default found not creating 2026-05-14 02:23:10,208 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-13706649 not found, creating it 2026-05-14 02:23:10,638 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-13706649, ID : 2a1042a8-39ee-4afb-a71c-dac574dcc584 2026-05-14 02:23:12,026 - INFO - ================================================================================ 2026-05-14 02:23:12,026 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-14 02:23:12,278 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2026-05-14 02:23:12,278 - INFO - Initial checks done. Running the testcase now 2026-05-14 02:23:12,278 - INFO - 2026-05-14 02:23:12,278 - INFO - ================================================================================ 2026-05-14 02:23:12,278 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-14 02:23:12,278 - 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-05-14 02:23:12,573 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2026-05-14 02:23:12,573 - INFO - Initial checks done. Running the testcase now 2026-05-14 02:23:12,573 - INFO - 2026-05-14 02:23:12,917 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13706649:ctest-vn4-88169160, 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-13706649:ctest-vn4-88169160, 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-13706649:ctest-vn4-88169160, 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-13706649:ctest-vn4-88169160, 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-05-14 02:23:13,413 - DEBUG - Response for create_network : {'network': {'id': '81d2f54a-00c5-4c7c-ad7a-b1ee3a69bb83', 'name': 'ctest-vn4-88169160', 'tenant_id': '2a1042a839ee4afba71cdac574dcc584', 'project_id': '2a1042a839ee4afba71cdac574dcc584', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13706649', 'ctest-vn4-88169160'], 'port_security_enabled': True, 'description': ''}} 2026-05-14 02:23:13,608 - DEBUG - Response for create_subnet : {'subnet': {'id': 'be78ee9a-8417-4b34-af1a-59b3602a4957', 'name': '', 'tenant_id': '2a1042a839ee4afba71cdac574dcc584', 'network_id': '81d2f54a-00c5-4c7c-ad7a-b1ee3a69bb83', 'ip_version': 4, 'cidr': '148.124.92.128/26', 'allocation_pools': [{'start': '148.124.92.130', 'end': '148.124.92.190'}], 'gateway_ip': '148.124.92.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.124.92.130', 'tags': [], 'project_id': '2a1042a839ee4afba71cdac574dcc584'}} 2026-05-14 02:23:13,755 - DEBUG - Response for create_subnet : {'subnet': {'id': '4af41581-82a5-41c4-a982-2b01f268a24f', 'name': '', 'tenant_id': '2a1042a839ee4afba71cdac574dcc584', 'network_id': '81d2f54a-00c5-4c7c-ad7a-b1ee3a69bb83', 'ip_version': 6, 'cidr': '3e25:ded7:122b:84ed:eb70:2e59::/96', 'allocation_pools': [{'start': '3e25:ded7:122b:84ed:eb70:2e59:0:2', 'end': '3e25:ded7:122b:84ed:eb70:2e59:ffff:fffe'}], 'gateway_ip': '3e25:ded7:122b:84ed:eb70:2e59:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e25:ded7:122b:84ed:eb70:2e59:0:2', 'tags': [], 'project_id': '2a1042a839ee4afba71cdac574dcc584'}} 2026-05-14 02:23:13,773 - INFO - Created VN ctest-vn4-88169160 2026-05-14 02:23:13,825 - DEBUG - VN ctest-vn4-88169160 UUID is 81d2f54a-00c5-4c7c-ad7a-b1ee3a69bb83 2026-05-14 02:23:14,001 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '81d2f54a-00c5-4c7c-ad7a-b1ee3a69bb83', 'name': 'ctest-vn4-88169160', 'tenant_id': '2a1042a839ee4afba71cdac574dcc584', 'project_id': '2a1042a839ee4afba71cdac574dcc584', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['be78ee9a-8417-4b34-af1a-59b3602a4957', '4af41581-82a5-41c4-a982-2b01f268a24f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13706649', 'ctest-vn4-88169160'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13706649', 'ctest-policy1-07993155']], 'subnet_ipam': [{'subnet_cidr': '148.124.92.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e25:ded7:122b:84ed:eb70:2e59::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-14 02:23:14,161 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-05-14 02:23:14,455 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-05-14 02:23:14,488 - DEBUG - Requesting: http://10.0.0.19:8082/domain/a23dcd57-2c7b-4927-a8b1-473a86091eff 2026-05-14 02:23:14,500 - DEBUG - Requesting: http://10.0.0.19:8082/project/2a1042a8-39ee-4afb-a71c-dac574dcc584 2026-05-14 02:23:14,565 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/81d2f54a-00c5-4c7c-ad7a-b1ee3a69bb83 2026-05-14 02:23:14,579 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/81d2f54a-00c5-4c7c-ad7a-b1ee3a69bb83 2026-05-14 02:23:14,588 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/cd02e01e-40d7-4722-9ee0-634ff49575b4 2026-05-14 02:23:14,595 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/cd02e01e-40d7-4722-9ee0-634ff49575b4 2026-05-14 02:23:14,601 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/2a6e6d51-bd0e-4027-8bd2-199479b655da 2026-05-14 02:23:14,606 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-14 02:23:14,606 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/81d2f54a-00c5-4c7c-ad7a-b1ee3a69bb83 2026-05-14 02:23:14,614 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/cd02e01e-40d7-4722-9ee0-634ff49575b4 2026-05-14 02:23:14,626 - INFO - Verified VN network id 11 for VN 81d2f54a-00c5-4c7c-ad7a-b1ee3a69bb83 2026-05-14 02:23:14,626 - INFO - Verifications in API Server for VN ctest-vn4-88169160 passed 2026-05-14 02:23:14,626 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/81d2f54a-00c5-4c7c-ad7a-b1ee3a69bb83 2026-05-14 02:23:14,635 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/cd02e01e-40d7-4722-9ee0-634ff49575b4 2026-05-14 02:23:14,641 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/cd02e01e-40d7-4722-9ee0-634ff49575b4 2026-05-14 02:23:14,648 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/2a6e6d51-bd0e-4027-8bd2-199479b655da 2026-05-14 02:23:14,657 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13706649:ctest-vn4-88169160', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-13706649', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9354809074191256700', 'uuid-lslong': '12500499352460573571'}, 'enable': 'true', 'created': '2026-05-14T02:23:13', 'last-modified': '2026-05-14T02:23:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.680485'} 2026-05-14 02:23:14,663 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-14 02:23:14,663 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88169160 passed 2026-05-14 02:23:14,663 - DEBUG - ====Verifying policy data for ctest-vn4-88169160 in API_Server ====== 2026-05-14 02:23:14,664 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-05-14 02:23:14,668 - DEBUG - Requesting: http://10.0.0.19:8082/domain/a23dcd57-2c7b-4927-a8b1-473a86091eff 2026-05-14 02:23:14,677 - DEBUG - Requesting: http://10.0.0.19:8082/project/2a1042a8-39ee-4afb-a71c-dac574dcc584 2026-05-14 02:23:14,744 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/81d2f54a-00c5-4c7c-ad7a-b1ee3a69bb83 2026-05-14 02:23:14,752 - DEBUG - ==>Verifying data for policy with id: 96b44328-9e56-4acd-bbdc-1568ddfbfc66, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13706649', 'ctest-policy1-07993155'] 2026-05-14 02:23:14,752 - INFO - VN ctest-vn4-88169160 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-14 02:23:14,752 - DEBUG - Verifying the vn in opserver 2026-05-14 02:23:14,752 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13706649:ctest-vn4-88169160 virtual network link through opserver 10.0.0.19 2026-05-14 02:23:14,753 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-05-14 02:23:15,050 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-05-14 02:23:15,105 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13706649:ctest-vn4-88169160', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13706649:ctest-vn4-88169160?flat'} 2026-05-14 02:23:15,105 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13706649:ctest-vn4-88169160 is found in opserver 2026-05-14 02:23:15,114 - DEBUG - Do not have enough data to verify VN in agent 2026-05-14 02:23:15,119 - DEBUG - VRF ids for VN ctest-vn4-88169160: {} 2026-05-14 02:23:15,119 - DEBUG - ====Verifying data for ctest-policy1-07993155 in API_Server ====== 2026-05-14 02:23:15,119 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-05-14 02:23:15,123 - DEBUG - Requesting: http://10.0.0.19:8082/domain/a23dcd57-2c7b-4927-a8b1-473a86091eff 2026-05-14 02:23:15,132 - DEBUG - Requesting: http://10.0.0.19:8082/project/2a1042a8-39ee-4afb-a71c-dac574dcc584 2026-05-14 02:23:15,199 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/96b44328-9e56-4acd-bbdc-1568ddfbfc66 2026-05-14 02:23:15,207 - INFO - Verified policy ctest-policy1-07993155 in API Server, Result: True 2026-05-14 02:23:15,207 - INFO - Done with setup and verification, moving onto test .. 2026-05-14 02:23:15,214 - INFO - Deleting VN ctest-vn4-88169160 2026-05-14 02:23:15,314 - DEBUG - Response for deleting network () 2026-05-14 02:23:15,314 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/cd02e01e-40d7-4722-9ee0-634ff49575b4 2026-05-14 02:23:15,318 - DEBUG - Response Code: 404 2026-05-14 02:23:15,318 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-05-14 02:23:15,323 - DEBUG - Requesting: http://10.0.0.19:8082/domain/a23dcd57-2c7b-4927-a8b1-473a86091eff 2026-05-14 02:23:15,373 - DEBUG - Requesting: http://10.0.0.19:8082/project/2a1042a8-39ee-4afb-a71c-dac574dcc584 2026-05-14 02:23:15,441 - INFO - Validated that VN ctest-vn4-88169160 is not found in API Server 2026-05-14 02:23:15,449 - DEBUG - VN ctest-vn4-88169160 is not present in Agent 10.0.0.19 2026-05-14 02:23:15,449 - INFO - Validated that VN ctest-vn4-88169160 is not in any agent 2026-05-14 02:23:15,461 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88169160 info 2026-05-14 02:23:15,479 - INFO - Deleted policy ctest-policy1-07993155 2026-05-14 02:23:15,645 - DEBUG - policy ctest-policy1-07993155 is not found in API Server 2026-05-14 02:23:15,897 - DEBUG - No XMPP flaps were noticed during the test