2026-01-26 02:09:28,993 - INFO - Domain Default found not creating 2026-01-26 02:09:29,201 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-98071741 not found, creating it 2026-01-26 02:09:29,656 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-98071741, ID : 648883ac-b089-4cc5-a959-6cc1927a2e4a 2026-01-26 02:09:31,291 - INFO - ================================================================================ 2026-01-26 02:09:31,291 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-26 02:09:31,544 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with 2026-01-26 02:09:31,544 - INFO - Initial checks done. Running the testcase now 2026-01-26 02:09:31,544 - INFO - 2026-01-26 02:09:31,544 - INFO - ================================================================================ 2026-01-26 02:09:31,544 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-26 02:09:31,545 - 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-26 02:09:31,832 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with 2026-01-26 02:09:31,832 - INFO - Initial checks done. Running the testcase now 2026-01-26 02:09:31,832 - INFO - 2026-01-26 02:09:32,196 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98071741:ctest-vn4-07972369, 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-98071741:ctest-vn4-07972369, 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-98071741:ctest-vn4-07972369, 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-98071741:ctest-vn4-07972369, 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-26 02:09:32,729 - DEBUG - Response for create_network : {'network': {'id': '1de4271f-f0fe-4d15-84b0-3f3fccaffdb1', 'name': 'ctest-vn4-07972369', 'tenant_id': '648883acb0894cc5a9596cc1927a2e4a', 'project_id': '648883acb0894cc5a9596cc1927a2e4a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98071741', 'ctest-vn4-07972369'], 'port_security_enabled': True, 'description': ''}} 2026-01-26 02:09:32,940 - DEBUG - Response for create_subnet : {'subnet': {'id': '6ca527ac-0002-4881-8810-e9fad6178073', 'name': '', 'tenant_id': '648883acb0894cc5a9596cc1927a2e4a', 'network_id': '1de4271f-f0fe-4d15-84b0-3f3fccaffdb1', 'ip_version': 4, 'cidr': '129.237.188.64/26', 'allocation_pools': [{'start': '129.237.188.66', 'end': '129.237.188.126'}], 'gateway_ip': '129.237.188.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.237.188.66', 'tags': [], 'project_id': '648883acb0894cc5a9596cc1927a2e4a'}} 2026-01-26 02:09:33,136 - DEBUG - Response for create_subnet : {'subnet': {'id': '53a449c2-b5cb-4985-9b3f-9382ee46ae56', 'name': '', 'tenant_id': '648883acb0894cc5a9596cc1927a2e4a', 'network_id': '1de4271f-f0fe-4d15-84b0-3f3fccaffdb1', 'ip_version': 6, 'cidr': '3359:72c2:4e92:8e5b:b5fa:2e3f::/96', 'allocation_pools': [{'start': '3359:72c2:4e92:8e5b:b5fa:2e3f:0:2', 'end': '3359:72c2:4e92:8e5b:b5fa:2e3f:ffff:fffe'}], 'gateway_ip': '3359:72c2:4e92:8e5b:b5fa:2e3f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3359:72c2:4e92:8e5b:b5fa:2e3f:0:2', 'tags': [], 'project_id': '648883acb0894cc5a9596cc1927a2e4a'}} 2026-01-26 02:09:33,164 - INFO - Created VN ctest-vn4-07972369 2026-01-26 02:09:33,219 - DEBUG - VN ctest-vn4-07972369 UUID is 1de4271f-f0fe-4d15-84b0-3f3fccaffdb1 2026-01-26 02:09:33,439 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1de4271f-f0fe-4d15-84b0-3f3fccaffdb1', 'name': 'ctest-vn4-07972369', 'tenant_id': '648883acb0894cc5a9596cc1927a2e4a', 'project_id': '648883acb0894cc5a9596cc1927a2e4a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6ca527ac-0002-4881-8810-e9fad6178073', '53a449c2-b5cb-4985-9b3f-9382ee46ae56'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98071741', 'ctest-vn4-07972369'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98071741', 'ctest-policy1-27987398']], 'subnet_ipam': [{'subnet_cidr': '129.237.188.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3359:72c2:4e92:8e5b:b5fa:2e3f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-26 02:09:33,607 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-26 02:09:33,909 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-26 02:09:33,949 - DEBUG - Requesting: http://10.0.0.27:8082/domain/86876349-3213-4255-84d6-1553c6e59d0b 2026-01-26 02:09:33,963 - DEBUG - Requesting: http://10.0.0.27:8082/project/648883ac-b089-4cc5-a959-6cc1927a2e4a 2026-01-26 02:09:34,046 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1de4271f-f0fe-4d15-84b0-3f3fccaffdb1 2026-01-26 02:09:34,060 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1de4271f-f0fe-4d15-84b0-3f3fccaffdb1 2026-01-26 02:09:34,071 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/30cd5f97-3080-4c64-94de-a3f875f27ba2 2026-01-26 02:09:34,079 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/30cd5f97-3080-4c64-94de-a3f875f27ba2 2026-01-26 02:09:34,087 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/a3faabb5-d61e-4429-b3c0-1da3f1d12c2a 2026-01-26 02:09:34,096 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-26 02:09:34,096 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1de4271f-f0fe-4d15-84b0-3f3fccaffdb1 2026-01-26 02:09:34,110 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/30cd5f97-3080-4c64-94de-a3f875f27ba2 2026-01-26 02:09:34,131 - INFO - Verified VN network id 11 for VN 1de4271f-f0fe-4d15-84b0-3f3fccaffdb1 2026-01-26 02:09:34,131 - INFO - Verifications in API Server for VN ctest-vn4-07972369 passed 2026-01-26 02:09:34,131 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1de4271f-f0fe-4d15-84b0-3f3fccaffdb1 2026-01-26 02:09:34,146 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/30cd5f97-3080-4c64-94de-a3f875f27ba2 2026-01-26 02:09:34,155 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/30cd5f97-3080-4c64-94de-a3f875f27ba2 2026-01-26 02:09:34,163 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/a3faabb5-d61e-4429-b3c0-1da3f1d12c2a 2026-01-26 02:09:34,177 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98071741:ctest-vn4-07972369', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98071741', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2153889539930606869', 'uuid-lslong': '9561211552157138353'}, 'enable': 'true', 'created': '2026-01-26T02:09:32', 'last-modified': '2026-01-26T02:09:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.763624'} 2026-01-26 02:09:34,184 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-26 02:09:34,184 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-07972369 passed 2026-01-26 02:09:34,184 - DEBUG - ====Verifying policy data for ctest-vn4-07972369 in API_Server ====== 2026-01-26 02:09:34,184 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-26 02:09:34,193 - DEBUG - Requesting: http://10.0.0.27:8082/domain/86876349-3213-4255-84d6-1553c6e59d0b 2026-01-26 02:09:34,209 - DEBUG - Requesting: http://10.0.0.27:8082/project/648883ac-b089-4cc5-a959-6cc1927a2e4a 2026-01-26 02:09:34,284 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1de4271f-f0fe-4d15-84b0-3f3fccaffdb1 2026-01-26 02:09:34,297 - DEBUG - ==>Verifying data for policy with id: be63bb26-256e-4d79-878e-2ca8d21eabe5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98071741', 'ctest-policy1-27987398'] 2026-01-26 02:09:34,297 - INFO - VN ctest-vn4-07972369 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-26 02:09:34,297 - DEBUG - Verifying the vn in opserver 2026-01-26 02:09:34,297 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98071741:ctest-vn4-07972369 virtual network link through opserver 10.0.0.27 2026-01-26 02:09:34,297 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-26 02:09:34,594 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-26 02:09:34,683 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98071741:ctest-vn4-07972369', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98071741:ctest-vn4-07972369?flat'} 2026-01-26 02:09:34,683 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98071741:ctest-vn4-07972369 is found in opserver 2026-01-26 02:09:34,703 - DEBUG - Do not have enough data to verify VN in agent 2026-01-26 02:09:34,710 - DEBUG - VRF ids for VN ctest-vn4-07972369: {} 2026-01-26 02:09:34,710 - DEBUG - ====Verifying data for ctest-policy1-27987398 in API_Server ====== 2026-01-26 02:09:34,710 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-26 02:09:34,717 - DEBUG - Requesting: http://10.0.0.27:8082/domain/86876349-3213-4255-84d6-1553c6e59d0b 2026-01-26 02:09:34,731 - DEBUG - Requesting: http://10.0.0.27:8082/project/648883ac-b089-4cc5-a959-6cc1927a2e4a 2026-01-26 02:09:34,808 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/be63bb26-256e-4d79-878e-2ca8d21eabe5 2026-01-26 02:09:34,820 - INFO - Verified policy ctest-policy1-27987398 in API Server, Result: True 2026-01-26 02:09:34,820 - INFO - Done with setup and verification, moving onto test .. 2026-01-26 02:09:34,829 - INFO - Deleting VN ctest-vn4-07972369 2026-01-26 02:09:34,974 - DEBUG - Response for deleting network () 2026-01-26 02:09:34,974 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/30cd5f97-3080-4c64-94de-a3f875f27ba2 2026-01-26 02:09:34,984 - DEBUG - Response Code: 404 2026-01-26 02:09:34,985 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-26 02:09:34,990 - DEBUG - Requesting: http://10.0.0.27:8082/domain/86876349-3213-4255-84d6-1553c6e59d0b 2026-01-26 02:09:35,044 - DEBUG - Requesting: http://10.0.0.27:8082/project/648883ac-b089-4cc5-a959-6cc1927a2e4a 2026-01-26 02:09:35,125 - INFO - Validated that VN ctest-vn4-07972369 is not found in API Server 2026-01-26 02:09:35,136 - DEBUG - VN ctest-vn4-07972369 is not present in Agent 10.0.0.27 2026-01-26 02:09:35,136 - INFO - Validated that VN ctest-vn4-07972369 is not in any agent 2026-01-26 02:09:35,153 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-07972369 info 2026-01-26 02:09:35,189 - INFO - Deleted policy ctest-policy1-27987398 2026-01-26 02:09:35,363 - DEBUG - policy ctest-policy1-27987398 is not found in API Server 2026-01-26 02:09:35,625 - DEBUG - No XMPP flaps were noticed during the test 2026-01-26 02:09:35,625 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-26 02:09:35,625 - INFO - -------------------------------------------------------------------------------- 2026-01-26 02:09:35,913 - DEBUG - No XMPP flaps were noticed during the test 2026-01-26 02:09:35,913 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-26 02:09:35,913 - INFO - -------------------------------------------------------------------------------- 2026-01-26 02:09:36,649 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-98071741, ID : 648883ac-b089-4cc5-a959-6cc1927a2e4a