2026-04-25 02:33:08,482 - INFO - Domain Default found not creating 2026-04-25 02:33:08,662 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87306495 not found, creating it 2026-04-25 02:33:09,140 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87306495, ID : 3b46c459-5f6a-4876-a2a7-2e00840a71e9 2026-04-25 02:33:10,613 - INFO - ================================================================================ 2026-04-25 02:33:10,613 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-25 02:33:10,869 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-25 02:33:10,869 - INFO - Initial checks done. Running the testcase now 2026-04-25 02:33:10,869 - INFO - 2026-04-25 02:33:10,869 - INFO - ================================================================================ 2026-04-25 02:33:10,869 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-25 02:33:10,869 - 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-04-25 02:33:11,157 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-25 02:33:11,157 - INFO - Initial checks done. Running the testcase now 2026-04-25 02:33:11,157 - INFO - 2026-04-25 02:33:11,509 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87306495:ctest-vn4-45380703, 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-87306495:ctest-vn4-45380703, 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-87306495:ctest-vn4-45380703, 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-87306495:ctest-vn4-45380703, 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-04-25 02:33:12,063 - DEBUG - Response for create_network : {'network': {'id': 'a7067ebc-5dca-410b-a0ca-7c63238a847c', 'name': 'ctest-vn4-45380703', 'tenant_id': '3b46c4595f6a4876a2a72e00840a71e9', 'project_id': '3b46c4595f6a4876a2a72e00840a71e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87306495', 'ctest-vn4-45380703'], 'port_security_enabled': True, 'description': ''}} 2026-04-25 02:33:12,281 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f660e160-743f-42a9-90b8-69b3b5326ee9', 'name': '', 'tenant_id': '3b46c4595f6a4876a2a72e00840a71e9', 'network_id': 'a7067ebc-5dca-410b-a0ca-7c63238a847c', 'ip_version': 4, 'cidr': '41.204.170.192/26', 'allocation_pools': [{'start': '41.204.170.194', 'end': '41.204.170.254'}], 'gateway_ip': '41.204.170.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.204.170.194', 'tags': [], 'project_id': '3b46c4595f6a4876a2a72e00840a71e9'}} 2026-04-25 02:33:12,469 - DEBUG - Response for create_subnet : {'subnet': {'id': '7d74f6f5-d822-448c-ba5e-1f0275c1607a', 'name': '', 'tenant_id': '3b46c4595f6a4876a2a72e00840a71e9', 'network_id': 'a7067ebc-5dca-410b-a0ca-7c63238a847c', 'ip_version': 6, 'cidr': '3072:e8ac:3566:de07:4fff:948c::/96', 'allocation_pools': [{'start': '3072:e8ac:3566:de07:4fff:948c:0:2', 'end': '3072:e8ac:3566:de07:4fff:948c:ffff:fffe'}], 'gateway_ip': '3072:e8ac:3566:de07:4fff:948c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3072:e8ac:3566:de07:4fff:948c:0:2', 'tags': [], 'project_id': '3b46c4595f6a4876a2a72e00840a71e9'}} 2026-04-25 02:33:12,493 - INFO - Created VN ctest-vn4-45380703 2026-04-25 02:33:12,548 - DEBUG - VN ctest-vn4-45380703 UUID is a7067ebc-5dca-410b-a0ca-7c63238a847c 2026-04-25 02:33:12,759 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a7067ebc-5dca-410b-a0ca-7c63238a847c', 'name': 'ctest-vn4-45380703', 'tenant_id': '3b46c4595f6a4876a2a72e00840a71e9', 'project_id': '3b46c4595f6a4876a2a72e00840a71e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f660e160-743f-42a9-90b8-69b3b5326ee9', '7d74f6f5-d822-448c-ba5e-1f0275c1607a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87306495', 'ctest-vn4-45380703'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87306495', 'ctest-policy1-96215693']], 'subnet_ipam': [{'subnet_cidr': '41.204.170.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3072:e8ac:3566:de07:4fff:948c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-25 02:33:12,920 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-25 02:33:13,213 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-25 02:33:13,242 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ab743141-afcb-418c-b12a-f6b984c1e7d7 2026-04-25 02:33:13,252 - DEBUG - Requesting: http://10.0.0.50:8082/project/3b46c459-5f6a-4876-a2a7-2e00840a71e9 2026-04-25 02:33:13,323 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a7067ebc-5dca-410b-a0ca-7c63238a847c 2026-04-25 02:33:13,333 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a7067ebc-5dca-410b-a0ca-7c63238a847c 2026-04-25 02:33:13,342 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a4471d56-e98c-4603-85ff-af2ce2207dc2 2026-04-25 02:33:13,349 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a4471d56-e98c-4603-85ff-af2ce2207dc2 2026-04-25 02:33:13,356 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9d77730e-b1ef-42ba-9ded-77741707d334 2026-04-25 02:33:13,362 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-25 02:33:13,362 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a7067ebc-5dca-410b-a0ca-7c63238a847c 2026-04-25 02:33:13,373 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a4471d56-e98c-4603-85ff-af2ce2207dc2 2026-04-25 02:33:13,387 - INFO - Verified VN network id 11 for VN a7067ebc-5dca-410b-a0ca-7c63238a847c 2026-04-25 02:33:13,388 - INFO - Verifications in API Server for VN ctest-vn4-45380703 passed 2026-04-25 02:33:13,388 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a7067ebc-5dca-410b-a0ca-7c63238a847c 2026-04-25 02:33:13,397 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a4471d56-e98c-4603-85ff-af2ce2207dc2 2026-04-25 02:33:13,405 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a4471d56-e98c-4603-85ff-af2ce2207dc2 2026-04-25 02:33:13,411 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9d77730e-b1ef-42ba-9ded-77741707d334 2026-04-25 02:33:13,422 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87306495:ctest-vn4-45380703', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87306495', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12035446401686716683', 'uuid-lslong': '11586209756603909244'}, 'enable': 'true', 'created': '2026-04-25T02:33:12', 'last-modified': '2026-04-25T02:33:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.694663'} 2026-04-25 02:33:13,428 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-25 02:33:13,428 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-45380703 passed 2026-04-25 02:33:13,428 - DEBUG - ====Verifying policy data for ctest-vn4-45380703 in API_Server ====== 2026-04-25 02:33:13,428 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-25 02:33:13,433 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ab743141-afcb-418c-b12a-f6b984c1e7d7 2026-04-25 02:33:13,444 - DEBUG - Requesting: http://10.0.0.50:8082/project/3b46c459-5f6a-4876-a2a7-2e00840a71e9 2026-04-25 02:33:13,515 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a7067ebc-5dca-410b-a0ca-7c63238a847c 2026-04-25 02:33:13,524 - DEBUG - ==>Verifying data for policy with id: bb68344b-5d69-4cbc-918a-c01118fc3b45, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87306495', 'ctest-policy1-96215693'] 2026-04-25 02:33:13,524 - INFO - VN ctest-vn4-45380703 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-25 02:33:13,524 - DEBUG - Verifying the vn in opserver 2026-04-25 02:33:13,524 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87306495:ctest-vn4-45380703 virtual network link through opserver 10.0.0.50 2026-04-25 02:33:13,524 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-25 02:33:13,819 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-25 02:33:13,880 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87306495:ctest-vn4-45380703', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87306495:ctest-vn4-45380703?flat'} 2026-04-25 02:33:13,880 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87306495:ctest-vn4-45380703 is found in opserver 2026-04-25 02:33:13,891 - DEBUG - Do not have enough data to verify VN in agent 2026-04-25 02:33:13,896 - DEBUG - VRF ids for VN ctest-vn4-45380703: {} 2026-04-25 02:33:13,897 - DEBUG - ====Verifying data for ctest-policy1-96215693 in API_Server ====== 2026-04-25 02:33:13,897 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-25 02:33:13,903 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ab743141-afcb-418c-b12a-f6b984c1e7d7 2026-04-25 02:33:13,915 - DEBUG - Requesting: http://10.0.0.50:8082/project/3b46c459-5f6a-4876-a2a7-2e00840a71e9 2026-04-25 02:33:13,982 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/bb68344b-5d69-4cbc-918a-c01118fc3b45 2026-04-25 02:33:13,994 - INFO - Verified policy ctest-policy1-96215693 in API Server, Result: True 2026-04-25 02:33:13,994 - INFO - Done with setup and verification, moving onto test .. 2026-04-25 02:33:14,003 - INFO - Deleting VN ctest-vn4-45380703 2026-04-25 02:33:14,119 - DEBUG - Response for deleting network () 2026-04-25 02:33:14,119 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a4471d56-e98c-4603-85ff-af2ce2207dc2 2026-04-25 02:33:14,125 - DEBUG - Response Code: 404 2026-04-25 02:33:14,125 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-25 02:33:14,131 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ab743141-afcb-418c-b12a-f6b984c1e7d7 2026-04-25 02:33:14,184 - DEBUG - Requesting: http://10.0.0.50:8082/project/3b46c459-5f6a-4876-a2a7-2e00840a71e9 2026-04-25 02:33:14,253 - INFO - Validated that VN ctest-vn4-45380703 is not found in API Server 2026-04-25 02:33:14,264 - DEBUG - VN ctest-vn4-45380703 is not present in Agent 10.0.0.50 2026-04-25 02:33:14,264 - INFO - Validated that VN ctest-vn4-45380703 is not in any agent 2026-04-25 02:33:14,278 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-45380703 info 2026-04-25 02:33:14,306 - INFO - Deleted policy ctest-policy1-96215693 2026-04-25 02:33:14,464 - DEBUG - policy ctest-policy1-96215693 is not found in API Server 2026-04-25 02:33:14,717 - DEBUG - No XMPP flaps were noticed during the test