2026-07-06 13:30:23,065 - INFO - Domain Default found not creating 2026-07-06 13:30:23,202 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-00431569 not found, creating it 2026-07-06 13:30:23,724 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-00431569, ID : 8000096f-b2e6-4760-9804-ceebebd74efb 2026-07-06 13:30:25,201 - INFO - ================================================================================ 2026-07-06 13:30:25,202 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-06 13:30:25,457 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-07-06 13:30:25,457 - INFO - Initial checks done. Running the testcase now 2026-07-06 13:30:25,457 - INFO - 2026-07-06 13:30:25,457 - INFO - ================================================================================ 2026-07-06 13:30:25,457 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-06 13:30:25,457 - 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-07-06 13:30:25,748 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-07-06 13:30:25,748 - INFO - Initial checks done. Running the testcase now 2026-07-06 13:30:25,748 - INFO - 2026-07-06 13:30:26,122 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00431569:ctest-vn4-85489449, 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-00431569:ctest-vn4-85489449, 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-00431569:ctest-vn4-85489449, 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-00431569:ctest-vn4-85489449, 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-07-06 13:30:26,606 - DEBUG - Response for create_network : {'network': {'id': 'a088905e-4e20-4ac5-8133-1173f9635d6b', 'name': 'ctest-vn4-85489449', 'tenant_id': '8000096fb2e647609804ceebebd74efb', 'project_id': '8000096fb2e647609804ceebebd74efb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00431569', 'ctest-vn4-85489449'], 'port_security_enabled': True, 'description': ''}} 2026-07-06 13:30:26,804 - DEBUG - Response for create_subnet : {'subnet': {'id': '45a76210-f210-4fd3-b497-61b893f3cc37', 'name': '', 'tenant_id': '8000096fb2e647609804ceebebd74efb', 'network_id': 'a088905e-4e20-4ac5-8133-1173f9635d6b', 'ip_version': 4, 'cidr': '39.96.69.192/26', 'allocation_pools': [{'start': '39.96.69.194', 'end': '39.96.69.254'}], 'gateway_ip': '39.96.69.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.96.69.194', 'tags': [], 'project_id': '8000096fb2e647609804ceebebd74efb'}} 2026-07-06 13:30:26,960 - DEBUG - Response for create_subnet : {'subnet': {'id': '597be97d-8347-4a8b-b2b3-35eb4543d30a', 'name': '', 'tenant_id': '8000096fb2e647609804ceebebd74efb', 'network_id': 'a088905e-4e20-4ac5-8133-1173f9635d6b', 'ip_version': 6, 'cidr': '3ae4:9ae2:67b9:d036:a89b:dcef::/96', 'allocation_pools': [{'start': '3ae4:9ae2:67b9:d036:a89b:dcef:0:2', 'end': '3ae4:9ae2:67b9:d036:a89b:dcef:ffff:fffe'}], 'gateway_ip': '3ae4:9ae2:67b9:d036:a89b:dcef:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ae4:9ae2:67b9:d036:a89b:dcef:0:2', 'tags': [], 'project_id': '8000096fb2e647609804ceebebd74efb'}} 2026-07-06 13:30:26,982 - INFO - Created VN ctest-vn4-85489449 2026-07-06 13:30:27,036 - DEBUG - VN ctest-vn4-85489449 UUID is a088905e-4e20-4ac5-8133-1173f9635d6b 2026-07-06 13:30:27,231 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a088905e-4e20-4ac5-8133-1173f9635d6b', 'name': 'ctest-vn4-85489449', 'tenant_id': '8000096fb2e647609804ceebebd74efb', 'project_id': '8000096fb2e647609804ceebebd74efb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['45a76210-f210-4fd3-b497-61b893f3cc37', '597be97d-8347-4a8b-b2b3-35eb4543d30a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00431569', 'ctest-vn4-85489449'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00431569', 'ctest-policy1-40657937']], 'subnet_ipam': [{'subnet_cidr': '39.96.69.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ae4:9ae2:67b9:d036:a89b:dcef::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-06 13:30:27,400 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-07-06 13:30:27,718 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-07-06 13:30:27,743 - DEBUG - Requesting: http://10.0.0.242:8082/domain/4d8d4255-cc78-4c65-9a13-6ace5be261cc 2026-07-06 13:30:27,754 - DEBUG - Requesting: http://10.0.0.242:8082/project/8000096f-b2e6-4760-9804-ceebebd74efb 2026-07-06 13:30:27,821 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a088905e-4e20-4ac5-8133-1173f9635d6b 2026-07-06 13:30:27,831 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a088905e-4e20-4ac5-8133-1173f9635d6b 2026-07-06 13:30:27,840 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c1fb17e9-10b0-40d8-ae5f-e44264c1ff54 2026-07-06 13:30:27,845 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c1fb17e9-10b0-40d8-ae5f-e44264c1ff54 2026-07-06 13:30:27,851 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/7928f49c-21e1-4aa7-ac7b-daae026290b0 2026-07-06 13:30:27,857 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-06 13:30:27,857 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a088905e-4e20-4ac5-8133-1173f9635d6b 2026-07-06 13:30:27,867 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c1fb17e9-10b0-40d8-ae5f-e44264c1ff54 2026-07-06 13:30:27,879 - INFO - Verified VN network id 9 for VN a088905e-4e20-4ac5-8133-1173f9635d6b 2026-07-06 13:30:27,879 - INFO - Verifications in API Server for VN ctest-vn4-85489449 passed 2026-07-06 13:30:27,879 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a088905e-4e20-4ac5-8133-1173f9635d6b 2026-07-06 13:30:27,888 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c1fb17e9-10b0-40d8-ae5f-e44264c1ff54 2026-07-06 13:30:27,902 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c1fb17e9-10b0-40d8-ae5f-e44264c1ff54 2026-07-06 13:30:27,908 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/7928f49c-21e1-4aa7-ac7b-daae026290b0 2026-07-06 13:30:27,921 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00431569:ctest-vn4-85489449', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-00431569', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11567654377613183685', 'uuid-lslong': '9309804044507897195'}, 'enable': 'true', 'created': '2026-07-06T13:30:26', 'last-modified': '2026-07-06T13:30:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.719644'} 2026-07-06 13:30:27,926 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-06 13:30:27,926 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-85489449 passed 2026-07-06 13:30:27,926 - DEBUG - ====Verifying policy data for ctest-vn4-85489449 in API_Server ====== 2026-07-06 13:30:27,927 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-07-06 13:30:27,931 - DEBUG - Requesting: http://10.0.0.242:8082/domain/4d8d4255-cc78-4c65-9a13-6ace5be261cc 2026-07-06 13:30:27,940 - DEBUG - Requesting: http://10.0.0.242:8082/project/8000096f-b2e6-4760-9804-ceebebd74efb 2026-07-06 13:30:28,013 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a088905e-4e20-4ac5-8133-1173f9635d6b 2026-07-06 13:30:28,023 - DEBUG - ==>Verifying data for policy with id: 386ac9d3-e24a-45eb-9073-adfdfdcbe119, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00431569', 'ctest-policy1-40657937'] 2026-07-06 13:30:28,024 - INFO - VN ctest-vn4-85489449 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-06 13:30:28,024 - DEBUG - Verifying the vn in opserver 2026-07-06 13:30:28,024 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00431569:ctest-vn4-85489449 virtual network link through opserver 10.0.0.242 2026-07-06 13:30:28,024 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-07-06 13:30:28,345 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-07-06 13:30:28,394 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00431569:ctest-vn4-85489449', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00431569:ctest-vn4-85489449?flat'} 2026-07-06 13:30:28,394 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00431569:ctest-vn4-85489449 is found in opserver 2026-07-06 13:30:28,407 - DEBUG - Do not have enough data to verify VN in agent 2026-07-06 13:30:28,412 - DEBUG - VRF ids for VN ctest-vn4-85489449: {} 2026-07-06 13:30:28,412 - DEBUG - ====Verifying data for ctest-policy1-40657937 in API_Server ====== 2026-07-06 13:30:28,412 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-07-06 13:30:28,417 - DEBUG - Requesting: http://10.0.0.242:8082/domain/4d8d4255-cc78-4c65-9a13-6ace5be261cc 2026-07-06 13:30:28,427 - DEBUG - Requesting: http://10.0.0.242:8082/project/8000096f-b2e6-4760-9804-ceebebd74efb 2026-07-06 13:30:28,499 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/386ac9d3-e24a-45eb-9073-adfdfdcbe119 2026-07-06 13:30:28,509 - INFO - Verified policy ctest-policy1-40657937 in API Server, Result: True 2026-07-06 13:30:28,509 - INFO - Done with setup and verification, moving onto test .. 2026-07-06 13:30:28,517 - INFO - Deleting VN ctest-vn4-85489449 2026-07-06 13:30:28,643 - DEBUG - Response for deleting network () 2026-07-06 13:30:28,644 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c1fb17e9-10b0-40d8-ae5f-e44264c1ff54 2026-07-06 13:30:28,649 - DEBUG - Response Code: 404 2026-07-06 13:30:28,650 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-07-06 13:30:28,657 - DEBUG - Requesting: http://10.0.0.242:8082/domain/4d8d4255-cc78-4c65-9a13-6ace5be261cc 2026-07-06 13:30:28,709 - DEBUG - Requesting: http://10.0.0.242:8082/project/8000096f-b2e6-4760-9804-ceebebd74efb 2026-07-06 13:30:28,783 - INFO - Validated that VN ctest-vn4-85489449 is not found in API Server 2026-07-06 13:30:28,792 - DEBUG - VN ctest-vn4-85489449 is not present in Agent 10.0.0.242 2026-07-06 13:30:28,792 - INFO - Validated that VN ctest-vn4-85489449 is not in any agent 2026-07-06 13:30:28,808 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-85489449 info 2026-07-06 13:30:28,838 - INFO - Deleted policy ctest-policy1-40657937 2026-07-06 13:30:29,004 - DEBUG - policy ctest-policy1-40657937 is not found in API Server 2026-07-06 13:30:29,257 - DEBUG - No XMPP flaps were noticed during the test
2026-07-06 13:30:29,257 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-07-06 13:30:29,257 - INFO - -------------------------------------------------------------------------------- 2026-07-06 13:30:29,545 - DEBUG - No XMPP flaps were noticed during the test
2026-07-06 13:30:29,545 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-07-06 13:30:29,545 - INFO - -------------------------------------------------------------------------------- 2026-07-06 13:30:30,229 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-00431569, ID : 8000096f-b2e6-4760-9804-ceebebd74efb