2026-09-17 19:40:24,600 - INFO - Domain Default found not creating 2026-09-17 19:40:24,756 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-61842848 not found, creating it 2026-09-17 19:40:25,230 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-61842848, ID : 2f5e6402-6ec0-4103-914e-e056e734aeb2 2026-09-17 19:40:26,733 - INFO - ================================================================================ 2026-09-17 19:40:26,733 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-17 19:40:27,006 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.25': '0'}} with 2026-09-17 19:40:27,006 - INFO - Initial checks done. Running the testcase now 2026-09-17 19:40:27,006 - INFO - 2026-09-17 19:40:27,006 - INFO - ================================================================================ 2026-09-17 19:40:27,006 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-17 19:40:27,006 - 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-09-17 19:40:27,286 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.25': '0'}} with 2026-09-17 19:40:27,286 - INFO - Initial checks done. Running the testcase now 2026-09-17 19:40:27,286 - INFO - 2026-09-17 19:40:27,685 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61842848:ctest-vn4-02942447, 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-61842848:ctest-vn4-02942447, 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-61842848:ctest-vn4-02942447, 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-61842848:ctest-vn4-02942447, 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-09-17 19:40:28,202 - DEBUG - Response for create_network : {'network': {'id': '36758dac-abaf-4a44-9b1f-77249b22c164', 'name': 'ctest-vn4-02942447', 'tenant_id': '2f5e64026ec04103914ee056e734aeb2', 'project_id': '2f5e64026ec04103914ee056e734aeb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61842848', 'ctest-vn4-02942447'], 'port_security_enabled': True, 'description': ''}} 2026-09-17 19:40:28,416 - DEBUG - Response for create_subnet : {'subnet': {'id': '41b10104-5128-4542-95f5-e55782f3d4da', 'name': '', 'tenant_id': '2f5e64026ec04103914ee056e734aeb2', 'network_id': '36758dac-abaf-4a44-9b1f-77249b22c164', 'ip_version': 4, 'cidr': '30.19.229.0/26', 'allocation_pools': [{'start': '30.19.229.2', 'end': '30.19.229.62'}], 'gateway_ip': '30.19.229.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.19.229.2', 'tags': [], 'project_id': '2f5e64026ec04103914ee056e734aeb2'}} 2026-09-17 19:40:28,624 - DEBUG - Response for create_subnet : {'subnet': {'id': '46e4f738-441f-402a-9058-000549d6e017', 'name': '', 'tenant_id': '2f5e64026ec04103914ee056e734aeb2', 'network_id': '36758dac-abaf-4a44-9b1f-77249b22c164', 'ip_version': 6, 'cidr': '28f5:9536:670e:a6ff:34ff:60cc::/96', 'allocation_pools': [{'start': '28f5:9536:670e:a6ff:34ff:60cc:0:2', 'end': '28f5:9536:670e:a6ff:34ff:60cc:ffff:fffe'}], 'gateway_ip': '28f5:9536:670e:a6ff:34ff:60cc:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28f5:9536:670e:a6ff:34ff:60cc:0:2', 'tags': [], 'project_id': '2f5e64026ec04103914ee056e734aeb2'}} 2026-09-17 19:40:28,643 - INFO - Created VN ctest-vn4-02942447 2026-09-17 19:40:28,696 - DEBUG - VN ctest-vn4-02942447 UUID is 36758dac-abaf-4a44-9b1f-77249b22c164 2026-09-17 19:40:28,912 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '36758dac-abaf-4a44-9b1f-77249b22c164', 'name': 'ctest-vn4-02942447', 'tenant_id': '2f5e64026ec04103914ee056e734aeb2', 'project_id': '2f5e64026ec04103914ee056e734aeb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['41b10104-5128-4542-95f5-e55782f3d4da', '46e4f738-441f-402a-9058-000549d6e017'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61842848', 'ctest-vn4-02942447'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61842848', 'ctest-policy1-88023739']], 'subnet_ipam': [{'subnet_cidr': '30.19.229.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '28f5:9536:670e:a6ff:34ff:60cc::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-17 19:40:29,068 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-09-17 19:40:29,387 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-09-17 19:40:29,414 - DEBUG - Requesting: http://10.0.0.241:8082/domain/26d1e12b-33ce-4f90-b5a3-ff0e22a56826 2026-09-17 19:40:29,427 - DEBUG - Requesting: http://10.0.0.241:8082/project/2f5e6402-6ec0-4103-914e-e056e734aeb2 2026-09-17 19:40:29,503 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/36758dac-abaf-4a44-9b1f-77249b22c164 2026-09-17 19:40:29,515 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/36758dac-abaf-4a44-9b1f-77249b22c164 2026-09-17 19:40:29,524 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/0f9051b9-a742-42b0-bafa-946ab526230e 2026-09-17 19:40:29,531 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/0f9051b9-a742-42b0-bafa-946ab526230e 2026-09-17 19:40:29,537 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/cfa9b5ad-c9bd-40dd-98ba-9c527776125f 2026-09-17 19:40:29,542 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-17 19:40:29,542 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/36758dac-abaf-4a44-9b1f-77249b22c164 2026-09-17 19:40:29,551 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/0f9051b9-a742-42b0-bafa-946ab526230e 2026-09-17 19:40:29,565 - INFO - Verified VN network id 12 for VN 36758dac-abaf-4a44-9b1f-77249b22c164 2026-09-17 19:40:29,565 - INFO - Verifications in API Server for VN ctest-vn4-02942447 passed 2026-09-17 19:40:29,566 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/36758dac-abaf-4a44-9b1f-77249b22c164 2026-09-17 19:40:29,576 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/0f9051b9-a742-42b0-bafa-946ab526230e 2026-09-17 19:40:29,584 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/0f9051b9-a742-42b0-bafa-946ab526230e 2026-09-17 19:40:29,591 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/cfa9b5ad-c9bd-40dd-98ba-9c527776125f 2026-09-17 19:40:29,608 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61842848:ctest-vn4-02942447', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-61842848', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3924198423077538372', 'uuid-lslong': '11177783799262134628'}, 'enable': 'true', 'created': '2026-09-17T19:40:28', 'last-modified': '2026-09-17T19:40:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.729185'} 2026-09-17 19:40:29,615 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-17 19:40:29,615 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-02942447 passed 2026-09-17 19:40:29,615 - DEBUG - ====Verifying policy data for ctest-vn4-02942447 in API_Server ====== 2026-09-17 19:40:29,615 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-09-17 19:40:29,621 - DEBUG - Requesting: http://10.0.0.241:8082/domain/26d1e12b-33ce-4f90-b5a3-ff0e22a56826 2026-09-17 19:40:29,632 - DEBUG - Requesting: http://10.0.0.241:8082/project/2f5e6402-6ec0-4103-914e-e056e734aeb2 2026-09-17 19:40:29,703 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/36758dac-abaf-4a44-9b1f-77249b22c164 2026-09-17 19:40:29,714 - DEBUG - ==>Verifying data for policy with id: a57e1cd2-efcd-4cc3-b3cd-2f9bbfeb46a8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61842848', 'ctest-policy1-88023739'] 2026-09-17 19:40:29,714 - INFO - VN ctest-vn4-02942447 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-17 19:40:29,714 - DEBUG - Verifying the vn in opserver 2026-09-17 19:40:29,714 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61842848:ctest-vn4-02942447 virtual network link through opserver 10.0.0.241 2026-09-17 19:40:29,714 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-09-17 19:40:30,032 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-09-17 19:40:30,097 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61842848:ctest-vn4-02942447', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61842848:ctest-vn4-02942447?flat'} 2026-09-17 19:40:30,097 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61842848:ctest-vn4-02942447 is found in opserver 2026-09-17 19:40:30,108 - DEBUG - Do not have enough data to verify VN in agent 2026-09-17 19:40:30,113 - DEBUG - VRF ids for VN ctest-vn4-02942447: {} 2026-09-17 19:40:30,113 - DEBUG - ====Verifying data for ctest-policy1-88023739 in API_Server ====== 2026-09-17 19:40:30,113 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-09-17 19:40:30,120 - DEBUG - Requesting: http://10.0.0.241:8082/domain/26d1e12b-33ce-4f90-b5a3-ff0e22a56826 2026-09-17 19:40:30,133 - DEBUG - Requesting: http://10.0.0.241:8082/project/2f5e6402-6ec0-4103-914e-e056e734aeb2 2026-09-17 19:40:30,211 - DEBUG - Requesting: http://10.0.0.241:8082/network-policy/a57e1cd2-efcd-4cc3-b3cd-2f9bbfeb46a8 2026-09-17 19:40:30,222 - INFO - Verified policy ctest-policy1-88023739 in API Server, Result: True 2026-09-17 19:40:30,222 - INFO - Done with setup and verification, moving onto test .. 2026-09-17 19:40:30,230 - INFO - Deleting VN ctest-vn4-02942447 2026-09-17 19:40:30,352 - DEBUG - Response for deleting network () 2026-09-17 19:40:30,352 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/0f9051b9-a742-42b0-bafa-946ab526230e 2026-09-17 19:40:30,357 - DEBUG - Response Code: 404 2026-09-17 19:40:30,357 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-09-17 19:40:30,362 - DEBUG - Requesting: http://10.0.0.241:8082/domain/26d1e12b-33ce-4f90-b5a3-ff0e22a56826 2026-09-17 19:40:30,416 - DEBUG - Requesting: http://10.0.0.241:8082/project/2f5e6402-6ec0-4103-914e-e056e734aeb2 2026-09-17 19:40:30,485 - INFO - Validated that VN ctest-vn4-02942447 is not found in API Server 2026-09-17 19:40:30,495 - DEBUG - VN ctest-vn4-02942447 is not present in Agent 10.0.0.241 2026-09-17 19:40:30,495 - INFO - Validated that VN ctest-vn4-02942447 is not in any agent 2026-09-17 19:40:30,510 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-02942447 info 2026-09-17 19:40:30,535 - INFO - Deleted policy ctest-policy1-88023739 2026-09-17 19:40:30,707 - DEBUG - policy ctest-policy1-88023739 is not found in API Server 2026-09-17 19:40:30,962 - DEBUG - No XMPP flaps were noticed during the test